@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ============================================================
   Growth Compass - Child Theme Custom CSS  v2
   Brand Color: #00576e
   対象: wp-content/themes/cocoon-child-master/style.css

   【前提：Cocoon管理画面との分離ルール】
   このCSSで色を指定している箇所（ヘッダー・ナビ・フッター・
   ボタン）については、Cocoon管理画面の同項目を「空（未設定）」
   のまま維持すること。管理画面で同じ項目に色を入力すると
   管理画面側が優先され、このCSSが無効になります。
   ============================================================ */

/* --------------------------------------------------
   [1] CSS変数（ブランドカラー一元管理）
       後からブランドカラーを変更する場合は
       ここの値だけ変えれば全体に反映されます
-------------------------------------------------- */
:root {
  --gc-brand:       #00576e;
  --gc-brand-dark:  #003d50;
  --gc-brand-light: #e6f4f7;
  --gc-text-main:   #2c3e50;
  --gc-text-muted:  #6b7c8f;
  --gc-border:      #cfe0e6;
  --gc-white:       #ffffff;
}

/* --------------------------------------------------
   [2] 本文テキスト・行間
       color と line-height はサイト全体の基本値として設定
       letter-spacing は記事エリアのみに限定
-------------------------------------------------- */
body {
  color: var(--gc-text-main);
  line-height: 1.9;
}

.entry-content {
  letter-spacing: 0.03em;
}

.entry-content p {
  margin-bottom: 1.4em;
}

/* --------------------------------------------------
   [3] リンクカラー（記事本文エリア限定）
       グローバルな a { } は使わず、記事エリアに限定。
       ナビ・UI系のリンクはCocoon既定値に任せる。
-------------------------------------------------- */
.entry-content a,
.article-header a {
  color: var(--gc-brand);
  transition: color 0.2s ease;
}

.entry-content a:hover,
.article-header a:hover {
  color: var(--gc-brand-dark);
}

/* --------------------------------------------------
   [4] ヘッダー（ロゴエリア）
       前提: 管理画面「Cocoon設定 > ヘッダー > ロゴエリア背景色」
             を空のままにすること
-------------------------------------------------- */
.header {
  background-color: var(--gc-brand);
}

.header .site-name-text-link,
.header .site-name-text-link:hover {
  color: var(--gc-white);
}

.header .tagline {
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------
   [5] グローバルナビゲーション
       前提: 管理画面「Cocoon設定 > ヘッダー > グローバルナビ背景色
             ／グローバルナビ文字色」を空のままにすること
-------------------------------------------------- */
#header-container .navi {
  background-color: var(--gc-brand-dark);
}

#navi .navi-in > ul > li > a {
  color: var(--gc-white);
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#navi .navi-in > ul > li > a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--gc-white);
}

/* ドロップダウンメニュー */
#navi .navi-in .sub-menu {
  background-color: var(--gc-brand-dark);
}

#navi .navi-in .sub-menu a {
  color: var(--gc-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navi .navi-in .sub-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--gc-white);
}

/* --------------------------------------------------
   [6] 記事タイトル
       ブログ記事・固定ページ両方に適用されます。
       固定ページだけ除外したい場合は .single .entry-title に変更。
-------------------------------------------------- */
.entry-title {
  border-left: 4px solid var(--gc-brand);
  padding-left: 0.7em;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------
   [7] カテゴリーラベル
-------------------------------------------------- */
.cat-label {
  background-color: var(--gc-brand);
  color: var(--gc-white);
  border-radius: 3px;
  font-size: 0.72em;
  padding: 2px 7px;
}

/* --------------------------------------------------
   [8] 記事メタ情報（投稿日・更新日）
-------------------------------------------------- */
.post-date,
.post-update {
  color: var(--gc-text-muted);
  font-size: 0.85em;
}

/* --------------------------------------------------
   [9] 記事カード（一覧）
       entry-card-wrap と a-wrap が同一要素に付与される
       Cocoonの構造に合わせ、複合クラスセレクターを使用。
-------------------------------------------------- */
.entry-card-wrap.a-wrap {
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 87, 110, 0.07);
}

.entry-card-wrap.a-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 87, 110, 0.13);
}

.card-title {
  line-height: 1.55;
  font-weight: 600;
}

/* --------------------------------------------------
   [10] ボタン
        前提: 管理画面「Cocoon設定 > ボタン > 背景色」を
              空のままにすること
        ※エディターで色指定したボタンには影響しない
          （.has-text-color を除外しているため）
-------------------------------------------------- */
.btn:not(.has-text-color),
.btn-wrap:not(.has-text-color) > a {
  background-color: var(--gc-brand);
  color: var(--gc-white);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn:not(.has-text-color):hover,
.btn-wrap:not(.has-text-color) > a:hover {
  background-color: var(--gc-brand-dark);
  color: var(--gc-white);
}

/* --------------------------------------------------
   [11] ページネーション
-------------------------------------------------- */
.page-numbers {
  color: var(--gc-brand);
  border: 1px solid var(--gc-border);
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background-color: var(--gc-brand);
  color: var(--gc-white);
  border-color: var(--gc-brand);
}

/* --------------------------------------------------
   [12] サイドバー ウィジェットタイトル
        .sidebar に限定することでフッターウィジェットの
        タイトルには影響しない
-------------------------------------------------- */
.sidebar .widget-title {
  color: var(--gc-brand);
  border-bottom: 2px solid var(--gc-brand);
  padding-bottom: 0.4em;
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------
   [13] フッター
        前提: 管理画面「Cocoon設定 > フッター > 背景色／文字色」
              を空のままにすること
-------------------------------------------------- */
.footer-container {
  background-color: var(--gc-brand-dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer-container a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-container a:hover {
  color: var(--gc-white);
}

.footer-bottom {
  background-color: var(--gc-brand-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   レスポンシブ調整
   ============================================================ */

@media screen and (max-width: 1023px) {
  .entry-title {
    font-size: 1.4em;
  }
}

@media screen and (max-width: 834px) {
  .entry-content {
    font-size: 1em;
    line-height: 1.85;
  }

  .entry-title {
    font-size: 1.3em;
    padding-left: 0.55em;
  }

  .header {
    background-color: var(--gc-brand);
  }
}

@media screen and (max-width: 480px) {
  .entry-content {
    font-size: 0.95em;
    line-height: 1.8;
  }

  .entry-card-wrap.a-wrap:hover {
    transform: none;
    box-shadow: 0 1px 4px rgba(0, 87, 110, 0.07);
  }
}
/* ========================================
   主要カテゴリー：カード風デザイン
======================================== */

.gc-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.gc-category-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gc-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.gc-category-card h3 {
  margin-top: 0;
  font-size: 18px;
  color: #00576e;
}

.gc-category-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.gc-category-card a {
  display: inline-block;
  margin-top: 10px;
  color: #00576e;
  font-weight: bold;
  text-decoration: none;
}

.gc-category-card a:hover {
  text-decoration: underline;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .gc-category-grid {
    grid-template-columns: 1fr;
  }
}/* ========================================
   ファーストビュー
======================================== */

.gc-hero-title {
  font-size: 28px;
  font-weight: 700;
  color: #00576e;
  line-height: 1.6;
  margin-bottom: 20px;
}

.gc-hero-text {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 30px;
}

.gc-hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* メインボタン */
.gc-btn-main {
  background-color: #00576e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.gc-btn-main:hover {
  background-color: #003d50;
}

/* サブボタン */
.gc-btn-sub {
  border: 1px solid #00576e;
  color: #00576e;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.gc-btn-sub:hover {
  background-color: #e6f4f7;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .gc-hero-title {
    font-size: 22px;
  }

  .gc-hero-text {
    font-size: 14px;
  }
}
.gc-cta-primary {
  background-color: #00576e !important;
  color: #ffffff !important;
  font-weight: bold;
}

.gc-cta-primary,
.gc-btn-main {
  color: #ffffff !important;
}

.entry-content a.gc-btn-main {
  color: #ffffff !important;
}
.gc-btn-main {
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.gc-btn-main:hover {
  transform: translateY(-2px);
}
.gc-cta-wrap {
  gap: 16px;
}
/* カードの基本 */
.gc-category-card {
  transition: all 0.3s ease;
}

/* ホバー時（ふわっと浮く） */
.gc-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.entry-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.entry-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}
/* ===== メインビジュアル（完全表示） ===== */
.gc-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.gc-hero img {
  width: 100%;
  height: 100%;
  display: block;
}
/* ===== Cocoonの制限を解除 ===== */
.page .content {
  max-width: 100%;
  padding: 0;
}

.page .main {
  padding: 0;
}

.page .entry-content {
  padding: 0;
}
/* ===== 上の余白を完全削除 ===== */
body {
  margin: 0;
}

#main,
.main,
.content,
.entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ヘッダー直下の隙間も消す */
#header-container {
  margin-bottom: 0 !important;
}
.gc-hero {
  margin-top: 0 !important;
}
/* ===== ナビを画像上に重ねる ===== */
.gc-hero {
  position: relative;
}

.gc-hero-nav {
  position: absolute;
  top: 20px;
  right: 40px;

  display: flex;
  gap: 20px;

  z-index: 10;
}

.gc-hero-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.gc-hero-nav a:hover {
  opacity: 0.7;
}

.gc-search {
  color: #fff;
  cursor: pointer;
}
/* ウィジェット風カード */
.gc-widget-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* 通常版 */
.wp-block-columns > .wp-block-column:first-child {
  flex: 0 0 70%;
}

.wp-block-columns > .wp-block-column:last-child {
  flex: 0 0 30%;
}

/* 効かない場合の保険（下に書く） */
.wp-block-columns > .wp-block-column:first-child {
  flex: 0 0 70% !important;
}

.wp-block-columns > .wp-block-column:last-child {
  flex: 0 0 30% !important;
}
.wp-block-column:last-child {
  padding-left: 10px;
}
.gc-sidebar > * {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* ===== Cocoon強制上書き：カラム比率 ===== */
.wp-block-columns {
  display: flex !important;
}

.wp-block-columns > .wp-block-column:first-child {
  width: 70% !important;
  flex: none !important;
}

.wp-block-columns > .wp-block-column:last-child {
  width: 30% !important;
  flex: none !important;
}
.gc-sidebar-box {
  background: #ffffff !important;
  padding: 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* 中の個別カードを無効化 */
.gc-sidebar-box > * {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 20px;
}
.gc-sidebar-box {
  margin-top: 20px;
}
/* ===== メインコンテンツだけ中央寄せ ===== */
.gc-main-container {
  max-width: 1380px;
  margin: 40px auto;
  padding: 0 20px;
}
.gc-main-wrap {
  max-width: 1380;
  padding-left: 40px auto;
  padding-right: 0 20px;
}
/* ===== メインビジュアル高さ調整 ===== */
.gc-hero {
  height: 420px; /* ←ここで高さ調整（おすすめ：350〜450px） */
  overflow: hidden;
}

.gc-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom; /* ←ここが超重要（下基準） */
}
.gc-hero-nav {
  background: rgba(0,0,0,0.4);
  padding: 8px 16px;
  border-radius: 6px;
}
.wp-block-columns {
  gap: 30px !important;
}
.wp-block-column:last-child {
  padding-left: 30px;
}
.page-id-13 .wp-block-columns {
  gap: 40px !important;
}
/* プロフィールページだけ上寄せ */
.page-id-13 .gc-hero img {
  object-position: top;
}
.page-id-13 .gc-hero {
  height: 200px;
}
#header-container {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 20;
}
.gc-hero {
  margin-top: -120px;
}
#header-container {
  margin-bottom: -120px !important;
}
.page-id-13 .gc-main-container {
  max-width: 1200px; /* ←今より小さくすると余白が増える */
  padding: 0 60px;   /* ←左右余白を増やす */
}

/* プライバシーポリシー・免責事項ページも同じ余白に統一 */
.page-id-3 .gc-main-container,
.page-id-17 .gc-main-container {
  max-width: 1200px;
  padding: 0 60px;
  margin: 40px auto;
  box-sizing: border-box;
}

/* カラム間の余白も統一 */
.page-id-3 .wp-block-columns,
.page-id-17 .wp-block-columns {
  gap: 40px !important;
}

/* サイドバー余白調整 */
.page-id-3 .wp-block-column:last-child,
.page-id-17 .wp-block-column:last-child {
  padding-left: 0 !important;
}
.page-id-15 .gc-hero {
  height: 200px;
}
.page-id-15 .gc-main-container {
  max-width: 1200px;
  padding: 0 60px;
}
.page-id-13 .wp-block-columns,
.page-id-15 .wp-block-columns {
  gap: 40px !important;
}

.page-id-13 .wp-block-column:last-child,
.page-id-15 .wp-block-column:last-child {
  padding-left: 0 !important;
}
.wp-block-column:last-child {
  padding-left: 0 !important;
}
.page-id-15 .gc-main-container {
  max-width: 1200px;
  padding: 0 60px;
  margin: 40px auto;
  box-sizing: border-box;
}
.page-id-15 .entry-content {
  padding: 0 !important;
}

.page-id-15 .wp-block-group {
  padding: 0 !important;
}
.page-id-15 .wp-block-columns {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Cocoonカラム用調整 */
.page-id-15 .column-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}
.page-id-15 .column-left {
  padding-right: 20px;
}

.page-id-15 .column-right {
  padding-left: 20px;
}
/* ===== お問い合わせフォーム（デザイン改善） ===== */

.wpcf7 {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wpcf7 label {
  font-weight: 600;
  font-size: 14px;
}

.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  font-size: 14px;
}

.wpcf7 textarea {
  height: 160px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  background-color: #00576e;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #00576e;
}
.wpcf7 {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.wpcf7 input[type="submit"] {
  width: 20%;
  margin: 0 auto;
  display: block;
}
.wpcf7 {
  margin-top: 40px;
}
/* ===============================
   運営者についてページ調整
================================ */

/* メインビジュアル高さ（プロフィールと同じ） */
.page-id-506 .gc-hero {
  height: 200px;
}

/* メインコンテンツ幅・余白（プロフィールと同じ） */
.page-id-506 .gc-main-container {
  max-width: 1200px;
  padding: 0 60px;
}

/* カラム間の余白 */
.page-id-506 .wp-block-columns {
  gap: 40px !important;
}

/* サイドバーの余白調整 */
.page-id-506 .wp-block-column:last-child {
  padding-left: 0 !important;
}
.gc-under-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  position: relative;
  padding-bottom: 10px;
}

.gc-under-title::after {
  content: "";
  display: block;
  width: 190px; /* ←線の長さ（調整OK） */
  height: 2px;
  background-color: #00576e; /* ブランドカラー */
  margin-top: 10px;
}
@media screen and (max-width: 768px) {
  .gc-hero {
    height: 250px;
  }

  .gc-hero img {
    object-position: center;
  }
}
@media screen and (max-width: 768px) {
  .widget_calendar,
  .calendar_wrap {
    display: none;
  }

  .sidebar {
    margin-top: 20px;
  }
}
@media screen and (max-width: 768px) {
  .widget.widget_calendar,
  .widget_calendar,
  .calendar_wrap,
  #wp-calendar {
    display: none !important;
  }
}
