/*
Theme Name: SIGNAL (Cocoon Child)
Template: cocoon-master
Description: Noise into Signal. — たかお / Takao Motoyama の個人ブランディングテーマ。Cocoon子テーマ。
Author: Takao Motoyama
Version: 1.2.0
*/

/* =========================================================
   SIGNAL — Cocoon Child Theme
   実CSSは css/signal.css に分離しています（functions.php で読込）
   このファイルには「Cocoon本体を上書きするための最小限」だけ置いています
   ========================================================= */

/* Cocoonのデフォルト背景・文字色をリセット
   色は直書きせず変数を使う。body.single で変数がベージュに切り替わるため、
   記事ページだけ自動的に明るくなる（!important を直書き色に付けると、
   詳細度に関係なく勝ってしまい記事ページの上書きが効かなくなる） */
body,
#container,
#content,
#main,
.content,
.main,
.wrap {
  background-color: var(--bg, #08080a) !important;
  color: var(--ink, #f2f2f0);
}

/* Cocoonのサイドバー・不要パーツを非表示（1カラム運用前提）
   Cocoon側は固定幅（.wrap = 1256px など）を持っているため、
   幅の指定をすべて解除しないとスマホで横に溢れて縮小表示になる */
#sidebar { display: none !important; }
#container,
#content,
#main,
.content,
.main,
.wrap,
.body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#main { margin: 0 !important; }
#content { padding: 0 !important; margin: 0 !important; }
.content { margin: 0 !important; }

/* 横スクロールの発生を根元で断つ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Cocoonのヘッダー／フッターを自前のものに置き換えるため一旦隠す */
#header-container,
.navi-in,
#footer { display: none !important; }
