@charset "UTF-8";

/*
 * 全ページ共通の追加スタイルを定義する。
 */
body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  
  /* ベースの背景色はCocoon設定「全体 → サイト背景色」で管理する。 */

  /*
   * 背景画像は先に書いたものが手前に重なるため、ドットを最上層に配置する。
   * 青灰色のドット、左上のブルー、右側のラベンダーの順に重ねる。
   * 楕円の大きさ・色の濃さはここで調整できる。
   */
  background-image:
    radial-gradient(circle, rgba(80, 107, 133, 0.05) 0.7px, transparent 0.9px),
    radial-gradient(ellipse 720px 480px at 4% 360px, rgba(157, 180, 201, 0.2), transparent 72%),
    radial-gradient(ellipse 640px 480px at 98% 600px, rgba(172, 180, 201, 0.12), transparent 72%);

  /* ドットは縦横に、グラデーションは縦方向に繰り返す。 */
  background-size: 24px 24px, 100% 1200px, 100% 1200px;
  background-repeat: repeat, repeat-y, repeat-y;
  /* ブルーの画像を上にずらし、見える位置を保ちながら繰り返しの境界を透明にする。 */
  background-position: 0 0, 0 -120px, 0 0;

  /* 背景は固定せずページと一緒にスクロールする。アニメーションは設定しない。 */
  background-attachment: scroll;
}

/* 投稿日と更新日の文字サイズを全ページでそろえる。 */
.post-date,
.post-update {
  font-size: 15px;
}

/* コンテンツの上下に同じ外側余白を設ける。 */
.content {
  margin-top: 36px;
  margin-bottom: 36px;
}

/* フッター側の余白がコンテンツ側の指定と重ならないようにする。 */
.footer {
  margin-top: 0;
}

/* メインコンテンツの角丸を設定する。内側余白はCocoon設定に任せる。 */
.main {
  border-radius: var(--cocoon-child-radius);
}

/* トップページのみメインコンテンツの背景を透過する。 */
body.home #main {
  background: transparent;
  padding-top: 0;
  /* 親テーマの透明な1px枠によるヘッダーとの隙間も取り除く。 */
  border-top-width: 0;
}

/* トップページ自体の投稿日・更新日を非表示にする。 */
body.home #main > article .date-tags {
  display: none;
}

/* トップページの先頭画像をヘッダー直下に寄せる。 */
body.home .content {
  margin-top: 0;
}

body.home #main > article,
body.home #main > article > .article-header,
body.home #main > article > .entry-content,
body.home #main > article > .entry-content > :first-child {
  margin-top: 0;
  padding-top: 0;
}

body.home #main > article > .article-header {
  margin-bottom: 0;
}

body.home #main > article .eye-catch {
  margin-top: 0;
}

/* モバイルのサイドバー外側余白。Cocoonの内側余白とは別に確保する。 */
@media screen and (max-width: 834px) {
  #sidebar {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }
}
