/* =====================================================
   SUICH | common.css
   ─────────────────────────────────────────────────
   【用途】全ページ共通のスタイル定義
   　・CSS変数（色・サイズ）
   　・リセットスタイル
   　・ヘッダー・ナビゲーション
   　・フッター
   　・ページヒーロー（各ページ上部の緑背景エリア）
   　・共通ボタン・CTAセクション
   　・プレースホルダー画像
   　・レスポンシブ対応
   ─────────────────────────────────────────────────
   WordPress化するときの対応：
   　functions.php で wp_enqueue_style() に登録する
===================================================== */


/* =====================================================
   セクション1：CSS変数（デザイントークン）
   ─────────────────────────────────────────────────
   サイト全体で使い回す色・サイズの定義。
   値を変えるだけでサイト全体のデザインが変わる。
===================================================== */
:root {
  /* グリーン系カラーパレット（メインカラー） */
  --green-dark:   #1a3a2a;   /* 最も濃いグリーン（ヘッダー・ヒーロー背景） */
  --green-mid:    #2d5a3d;   /* 中間グリーン（CTAセクション背景など） */
  --green-light:  #3d7a52;   /* 明るいグリーン（ホバー時など） */
  --green-accent: #4a9162;   /* アクセントグリーン（ボタン・リンク色） */
  --green-pale:   #e8f0eb;   /* 薄いグリーン（背景・ハイライト） */
  --green-muted:  #c8dccf;   /* くすんだグリーン（サブテキスト・装飾） */
  --green-vivid:  #95EA55;  /* 彩度の高いグリーン（ボタンなど） */

  /* グレー系カラーパレット（テキスト・背景） */
  --grey-dark:  #2c2c2c;   /* 本文テキスト色 */
  --grey-mid:   #555;      /* サブテキスト色 */
  --grey-light: #8a8a8a;   /* 補足テキスト・日付など */
  --grey-pale:  #f4f4f2;   /* セクション背景（薄グレー） */
  --white:      #fafaf8;   /* ページ背景色（純白より少し温かみのある白） */
  --border:     #d4ddd7;   /* ボーダー線の色 */

  /* ダーク背景上のテキスト色（5段階）
     ヘッダー・ヒーローなど緑の背景上で使用する白系テキスト */
  --on-dark-high:  rgba(255,255,255,1.0);  /* 見出し・重要テキスト（ほぼ白） */
  --on-dark-mid:   rgba(255,255,255,1.0);  /* 本文・説明テキスト */
  --on-dark-low:   rgba(255,255,255,1.0);  /* 補足・サブテキスト */
  --on-dark-faint: rgba(255,255,255,1.0);  /* 区切り・注釈・薄いテキスト */
  --on-dark-ghost: rgba(255,255,255,0.08);  /* 半透明背景・ボーダー用 */

  /* レイアウト設定 */
  --site-max:  1440px;  /* サイト全体の最大幅 */
  --side-pad:  96px;    /* 左右の余白（PC） */
}


/* =====================================================
   セクション2：リセット・ベーススタイル
   ─────────────────────────────────────────────────
   ブラウザのデフォルトスタイルをリセットし、
   サイト全体の基本的な見た目を設定する。
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;  /* paddingをwidthの内側に含める */
}

html {
  scroll-behavior: smooth;  /* アンカーリンクのスムーズスクロール */
}

body {
  font-family: 'Noto Sans JP', sans-serif;  /* 全体のフォント */
  background: var(--white);
  color: var(--grey-dark);
  font-size: 16px;          /* ベースフォントサイズ（これが1remの基準） */
  line-height: 1.95;        /* 行間（読みやすさのため広めに設定） */
}


/* =====================================================
   セクション3：ヘッダー・グローバルナビゲーション
   ─────────────────────────────────────────────────
   全ページ上部に固定表示されるヘッダーと
   ナビゲーションメニューのスタイル。
   スクロールしても常に画面上部に表示される。
===================================================== */

/* ヘッダー本体：画面上部に固定 */
header {
  position: fixed;          /* スクロールしても固定表示 */
  top: 0; left: 0; right: 0;
  z-index: 500;             /* 他の要素より手前に表示 */
  background: rgba(26, 58, 42, 0.97);  /* 半透明の深いグリーン */
  backdrop-filter: blur(14px);          /* 背景をぼかしてガラス風に */
  border-bottom: 1px solid var(--on-dark-ghost);
}

/* ヘッダー内側のレイアウト（ロゴ左・ナビ右） */
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* ロゴリンク */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* ロゴテキスト（画像がない間のテキストロゴ） */
.logo-text {
  font-family: 'Noto Serif JP', serif;  /* 明朝体でブランド感を演出 */
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  line-height: 1.4;
  white-space: nowrap;
}

/* グローバルナビゲーション：リンクを横並びにする */
.gnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ナビゲーションの各リンク */
.gnav-link {
  color: var(--on-dark-low);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 2px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.gnav-link:hover {
  color: #fff;
  background: var(--on-dark-ghost);
}

/* 「お問い合わせ」ボタン：アクセントカラーで目立たせる */
.gnav-link--cta {
  background: var(--green-accent);
  color: #fff !important;
  padding: 9px 22px;
  margin-left: 12px;
  font-weight: 600;
  transition: background .2s !important;
}
.gnav-link--cta:hover {
  background: var(--green-light) !important;
}

/* レスポンシブ：幅が狭くなったらパディングを縮小 */
@media (max-width: 1440px) { .header-inner { padding: 0 56px; } }
/* スマホ：ナビを非表示（ハンバーガーメニュー実装時に対応） */
@media (max-width: 900px)  { .gnav { display: none; } .header-inner { padding: 0 24px; } }



/* =====================================================
   メガメニュー（ドロップダウンナビゲーション）
   JavaScriptの main.js と連携して開閉する。
   .is-open クラスが付いたときだけ表示される。
===================================================== */
.gnav-item { position: relative; height: 100%; display: flex; align-items: center; }
.gnav-item > .gnav-link { height: 76px; display: flex; align-items: center; }
.arr { font-size:16px; opacity: 0.5; margin-left: 3px; transition: transform .2s; }

/* メガメニュー本体：初期は非表示 */
.mega {
  display: none !important;
  position: fixed;         /* absoluteをfixedに → ヘッダー基準で安定 */
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 90vw); /* 最大900px、画面幅の90%まで */
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  z-index: 600;
  border-top: 3px solid var(--green-accent);
}
/* .is-open クラスが付いたら表示 */
.mega.is-open { display: flex !important; }

.mega-col { padding: 32px 28px; flex: 1; border-right: 1px solid var(--border); min-width: 0; }
.mega-col:last-child { border-right: none; }
.mega-col-label {
  font-size:16px; letter-spacing: 0.28em; color: var(--green-accent);
  font-weight: 700; text-transform: uppercase;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.mega-link {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 10px; border-radius: 3px; text-decoration: none;
  transition: background .15s; margin-bottom: 2px;
}
.mega-link:hover { background: var(--green-pale); }
.mega-link-title { font-size: 16px; font-weight: 700; color: var(--green-dark); line-height: 1.35; margin-bottom: 2px; }
.mega-link-desc { font-size:16px; color: var(--grey-light); line-height: 1.5; }

/* メガメニュー右側のCTAカラム */
.mega-cta {
  background: var(--green-dark); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  border-radius: 0 0 8px 0; width: 250px; flex-shrink: 0;
}
.mega-cta-title { font-size:16px; letter-spacing: 0.18em; color: var(--green-muted); font-weight: 500; margin-bottom: 4px; }
.mega-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-accent); color: #fff;
  padding: 11px 16px; border-radius: 3px; text-decoration: none;
  font-size: 16px; font-weight: 600; letter-spacing: 0.06em; transition: background .2s;
}
.mega-cta-btn:hover { background: var(--green-light); }
.mega-cta-btn-sub {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--on-dark-faint); color: var(--on-dark-mid);
  padding: 10px 16px; border-radius: 3px; text-decoration: none;
  font-size:16px; transition: border-color .2s, color .2s;
}
.mega-cta-btn-sub:hover { border-color: #fff; color: #fff; }


/* =====================================================
   .wrap：コンテンツを中央寄せ・左右余白を確保する
   index.css だけでなく全ページで使うため common.css に定義
===================================================== */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 96px; }
.col  { max-width: 800px; margin: 0 auto; }
.col-left  { max-width: 800px; margin-right: auto; }
.col-right { max-width: 800px; margin-left: auto; }

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .mega { display: none !important; }
}

/* =====================================================
   セクション4：ページヒーロー（各ページ上部エリア）
   ─────────────────────────────────────────────────
   index.html以外の各ページ上部にある
   濃いグリーン背景のヒービジュアルエリア。
   ページタイトルやパンくずリストが入る。
===================================================== */

/* ヒーローセクション本体 */
.page-hero {
  background: var(--green-dark);
  padding: 160px 0 110px;  /* 上部はヘッダー分 + 余裕を確保 */
  position: relative;
  overflow: hidden;
}

/* 放射状グラデーションの装飾背景 */
.page-hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(61,122,82,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 5% 90%,  rgba(45,90,61,0.2)  0%, transparent 55%);
}

/* グリッド線の装飾（微細なラインでテクスチャを演出） */
.page-hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(var(--on-dark-ghost) 1px, transparent 1px),
    linear-gradient(90deg, var(--on-dark-ghost) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ヒーロー内のコンテンツ（テキストなど）：グラデーションより手前に */
.page-hero-inner {
  position: relative; z-index: 3;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 96px 56px;
}

/* パンくずリスト */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 28px;
  font-size: 16px;
  color: var(--on-dark-faint);
}
.breadcrumb a { color: var(--on-dark-faint); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--on-dark-mid); }
.breadcrumb span { color: var(--on-dark-ghost); }

/* ページバッジ（「Cases」「Profile」などのラベル） */
.page-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,1.0);
  padding: 6px 16px; border-radius: 2px;
  font-size: 16px; letter-spacing: 0.2em;
  color: var(--on-dark-high); margin-bottom: 22px;
}
.page-badge::before {
  content: ''; width: 5px; height: 5px;
  background: var(--green-accent); border-radius: 50%;
}

/* ページメインタイトル */
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700; color: #fff;
  line-height: 1.5; margin-bottom: 16px; letter-spacing: 0.02em;
}
.page-hero h1 em { font-style: normal; color: var(--green-vivid); }

/* ページサブテキスト（タイトル下の説明文） */
.page-hero-sub {
  font-size: 16px;
  color: var(--on-dark-low);
  max-width: 640px; line-height: 1.9;
  border-left: 2px solid var(--green-accent); padding-left: 16px;
  margin-bottom: 48px;
}

/* フェードインアニメーション（ページ読み込み時） */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-badge   { animation: fadeUp 0.7s ease both; }
.page-hero h1 { animation: fadeUp 0.7s ease 0.1s both; }
.page-hero-sub{ animation: fadeUp 0.7s ease 0.2s both; }


/* =====================================================
   セクション5：共通ボタン・CTAセクション
   ─────────────────────────────────────────────────
   各ページ下部の「無料相談」誘導セクションと
   そこで使うボタンのスタイル。
===================================================== */

/* 緑背景のCTAセクション全体 */
.bottom-cta {
  background:var(--green-dark);
  padding: 144px 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.bottom-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 70% 30%, rgba(74,145,98,0.3) 0%, transparent 65%);
}

/* CTAセクション内のコンテンツ幅を制限 */
.bottom-cta-inner {
  position: relative;
  max-width: 1440px; margin: 0 auto; padding: 0 96px;
}
.bottom-cta h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 700; color: #fff; line-height: 1.55; margin-bottom: 14px;
}
.bottom-cta p { font-size: 16px; color: var(--on-dark-low); margin-bottom: 36px; }

/* ボタングループ：横並び・中央揃え */
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }

/* 白背景ボタン（電話相談など主要アクション用） */
.btn-white {
  background: #fff; color: var(--green-dark);
  padding: 16px 40px; font-size: 16px; font-weight: 700;
  letter-spacing: 0.08em; text-decoration: none;
  border-radius: 2px; transition: transform .2s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }

/* アウトラインボタン（フォーム相談など副次アクション用） */
.btn-outline-w {
  border: 1.5px solid var(--on-dark-faint); color: #fff;
  padding: 16px 36px; font-size: 16px;
  letter-spacing: 0.08em; text-decoration: none;
  border-radius: 2px; transition: border-color .2s, background .2s;
}
.btn-outline-w:hover { border-color: #fff; background: var(--on-dark-ghost); }

/* 安心材料テキスト（「秘密厳守」「全国対応」など） */
.cta-note {
  font-size: 16px; color: var(--on-dark-faint); letter-spacing: 0.1em;
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.cta-note span::before { content: '✓ '; color: var(--green-muted); }

/* 電話、メールアイコン */
.btn-tel{
  padding: 0.2em 0 0.2em 2em;
  background: url("../img/icon_tel.png") no-repeat left center / 1.5em; 
}

.btn-mail{
  padding: 0.2em 0 0.2em 2em;
  background: url("../img/icon_mail.png") no-repeat left center / 1.5em;  	
}

.btn-mail-g{
  padding: 0.2em 0 0.2em 2em;
  background: url("../img/icon_mail_g.png") no-repeat left center / 1.5em;  	
}

.btn-voice{
  padding: 0.2em 0 0.2em 2em;
  background: url("../img/icon_voice.png") no-repeat left center / 1.5em;  	
}

/* =====================================================
   セクション6：関連ページリンク（ページ下部）
   ─────────────────────────────────────────────────
   各ページ末尾の「あわせてご覧ください」エリア。
   3カラムのカードリンクが並ぶ。
===================================================== */
.related { background: var(--grey-pale); padding: 128px 0; border-top: 1px solid var(--border); }
.related-inner { max-width: 1440px; margin: 0 auto; padding: 0 96px; }
.related-label { font-size: 20px; letter-spacing: 0.25em; color: var(--green-accent); font-weight: 500; margin-bottom: 10px; }
.related-title{margin-bottom: 10px;}
.related-title-sm { font-family: 'Noto Serif JP', serif; font-size: 22px; font-weight: 700; color: var(--green-dark); margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.related-card {
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  padding: 24px 22px; text-decoration: none; display: block;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.related-card:hover { border-color: var(--green-accent); box-shadow: 0 4px 20px rgba(45,90,61,0.1); transform: translateY(-2px); }
.related-card-tag   { font-size: 16px; letter-spacing: 0.15em; color: var(--green-accent); font-weight: 500; margin-bottom: 8px; text-transform: uppercase; }
.related-card-title { font-size: 16px; font-weight: 700; color: var(--green-dark); line-height: 1.55; margin-bottom: 8px; }
.related-card-desc  { font-size: 16px; color: var(--grey-light); line-height: 1.7; }


/* =====================================================
   セクション7：メインサイトバナー
   ─────────────────────────────────────────────────
   メインサイト（baikyaku-consultation.com）への
   誘導バナー。ページによって表示される。
===================================================== */
.main-site-banner { background: var(--green-pale); border-top: 2px solid var(--green-muted); border-bottom: 1px solid var(--border); }
.msb-inner  { max-width: 1440px; margin: 0 auto; padding: 16px 96px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.msb-left   { display: flex; align-items: center; gap: 12px; }
.msb-icon   { font-size: 20px; }
.msb-eyebrow{ font-size: 16px; letter-spacing: 0.2em; color: var(--green-accent); font-weight: 500; margin-bottom: 2px; text-transform: uppercase; }
.msb-title  { font-size: 16px; font-weight: 700; color: var(--green-dark); }
.msb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-mid); color: #fff;
  padding: 10px 22px; font-size: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-decoration: none;
  border-radius: 3px; white-space: nowrap; transition: background .2s;
}
.msb-btn:hover { background: var(--green-light); }


/* =====================================================
   セクション8：フッター
   ─────────────────────────────────────────────────
   全ページ共通のフッターエリア。
   ロゴ・タグライン・ナビリンク・コピーライトが入る。
===================================================== */
footer { background: var(--green-dark); padding: 80px 0 48px; border-top: 1px solid var(--on-dark-ghost); }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 0 96px; }
.footer-top {
  display: grid; grid-template-columns: 260px 1fr; gap: 80px;
  padding-bottom: 64px; border-bottom: 1px solid var(--on-dark-ghost); margin-bottom: 40px;
}
.footer-logo    { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: #fff; letter-spacing: 0.15em; margin-bottom: 10px; }
.footer-tagline { font-size: 16px; color: var(--on-dark-faint); line-height: 1.95; }
.footer-nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-nav-group h4     { font-size: 16px; letter-spacing: 0.2em; color: var(--green-muted); text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.footer-nav-group a      { display: block; font-size: 16px; color: var(--on-dark-faint); text-decoration: none; padding: 5px 0; transition: color .2s; }
.footer-nav-group a:hover{ color: var(--on-dark-mid); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--on-dark-faint); flex-wrap: wrap; gap: 12px; }
footer a{color: #FFF; text-decoration: none;}
footer a:hover{text-decoration: underline;}
.icon_link_ex{padding-right: 1.5em; background: url("../img/icon_link_ex.png") no-repeat left 6.5em center / 1em;}


/* =====================================================
   セクション9：プレースホルダー画像
   ─────────────────────────────────────────────────
   実際の写真が入る前に表示するグレーの仮画像。
   写真を入れる際はこの要素をimgタグに差し替える。
===================================================== */
/* 基本プレースホルダースタイル */
.ph {
  background: #c8c8c8;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #444;
  font-size: 16px; font-weight: 500; line-height: 1.7;
  font-family: 'Noto Sans JP', sans-serif;
}
.ph-icon { margin-bottom: 10px; opacity: 0.45; flex-shrink: 0; }
.ph-label{ max-width: 240px; }  /* テキストの最大幅 */

/* ヒーロー背景用（absolute配置で全面を覆う） */
.ph-hero { position: absolute; inset: 0; z-index: 0; border-radius: 0; background: linear-gradient(var(--green-dark), var(--green-light)); opacity: 0.4; }

/* サムネイルのサイズバリエーション */
.ph-thumb-sm   { height: 160px; background: #b0b0b0; }   /* 小：関連記事カードなど */
.ph-thumb-md   { height: 200px; background: #b0b0b0; }   /* 中：解決事例カードなど */
.ph-thumb-lg   { height: 260px; background: #b0b0b0; }   /* 大：コラムカードなど */
.ph-thumb-xl   { height: 300px; background: #b0b0b0; }   /* 特大：投稿詳細サムネなど */
.ph-thumb-hero { height: 420px; background: #b0b0b0; }   /* ページトップの大きい画像 */
.ph-case       { height: 180px; background: #b0b0b0; }   /* 解決事例カード専用 */

/* ヒーローの背景色バリエーション */
.ph-hero--column { background: #2a3f30; }  /* コラム一覧ページのヒーロー */
.ph-hero--post   { background: #2a3530; }  /* コラム記事ページのヒーロー */

/* プロフィール写真用 */
.ph-case-wrap { overflow: hidden; }
.profile-avatar--ph   { font-size: 0; border: none; }
.profile-avatar--photo{ font-size: 0; border: none; width: 120px; height: 120px; border-radius: 50%; }
.ph-avatar-label      { font-size: 16px; line-height: 1.5; margin-top: 2px; }
.ph-avatar-label--lg  { font-size: 16px; line-height: 1.5; margin-top: 4px; }

/* ブログサムネイルの背景色（グレー3段階） */
.ph-thumb-inner--1 { background: #b0b0b0; position: relative; }  /* 記事1 */
.ph-thumb-inner--2 { background: #b8b8b8; position: relative; }  /* 記事2 */
.ph-thumb-inner--3 { background: #adadad; position: relative; }  /* 記事3 */
.ph-thumb-overlay-box{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1;
}
.ph-thumb-overlay-box img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ph-thumb-label { font-size: 16px; color: #333; font-weight: 600; margin-top: 4px; }


/* =====================================================
   セクション10：ユーティリティ（汎用クラス）
   ─────────────────────────────────────────────────
   各所で使い回す小さなスタイル。
   クラス名から用途が分かるようにしている。
===================================================== */
.text-center { text-align: center; }
.mt-16  { margin-top: 16px; }
.mt-28  { margin-top: 28px; }
.mt-36  { margin-top: 36px; }
.mb-56  { margin-bottom: 56px; }

/* eyebrow（セクション上部の小さい英字ラベル）の色バリエーション */
.eyebrow--muted { color: var(--green-muted); }

/* markタグ（本文中のハイライト）バリエーション */
.mark-green      { background: linear-gradient(transparent 55%, rgba(74,145,98,.4) 55%); color: inherit; padding: 0 2px; }
.mark-green-dark { background: linear-gradient(transparent 55%, rgba(74,145,98,.4) 55%); color: #fff;     padding: 0 2px; }
.mark-white      { background: linear-gradient(transparent 55%, var(--on-dark-faint) 55%); color: var(--on-dark-mid); padding: 0 2px; }

/* display見出しのサイズ・マージンバリエーション */
.display--sm   { font-size: clamp(20px,2.2vw,30px); }
.display--mb16 { margin-bottom: 16px; }
.display--mb32 { margin-bottom: 32px; }
.display--mb40 { margin-bottom: 40px; }
.display--mb48 { margin-bottom: 48px; }
.display--mb56 { margin-bottom: 56px; }

/* body-leadテキストのバリエーション */
.body-lead--mb48   { margin-bottom: 48px; }
.body-lead--hero   { color: var(--on-dark-low); margin-bottom: 36px; }

/* story-markのバリエーション（章の区切り線） */
.story-mark--grey  { background: var(--grey-pale); }
.story-mark--dark  { background: var(--green-dark); border-top: 1px solid var(--on-dark-ghost); }
.story-step-num--dark    { color: rgba(74,145,98,.25); }
.story-step-label--muted { color: var(--green-muted); }
.story-step-title--white { color: #fff; }

/* calloutのバリエーション（引用・注意書きボックス） */
.callout--dark      { background: var(--on-dark-ghost); border-left-color: var(--green-accent); }
.callout-text       { color: #fff; }

/* 解決事例カードのサイズ */
.w-900 { max-width: 900px; margin: 0 auto; }

/* 比較テーブルセクションの背景 */
.s-comparison { background: #fff; padding: 160px 0; }

/* 選ばれる理由：5つ目のカードは全幅表示 */
.reason-item--full { grid-column: 1 / -1; }

/* 売却ガイドのプロカード：全幅表示 */
.pro-card--full { grid-column: 1 / -1; }

/* ロゴ画像プレースホルダー（deprecated：テキストロゴに変更済み） */
/* .logo-ph は使用しなくなったため残しているが、削除して良い */


/* =====================================================
   レスポンシブ対応（モバイル・タブレット）
   ─────────────────────────────────────────────────
   画面幅に応じてレイアウトを調整する。
===================================================== */
.pc{display: block!important;}
.sp{display: none!important;}

@media (max-width: 900px) {
  .pc{display: none!important;}
  .sp{display: block!important;}
  
  /* 関連記事：3カラム→1カラム */
  .related-grid { grid-template-columns: 1fr; }
  /* フッター：2カラム→1カラム */
  .footer-top   { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav   { grid-template-columns: 1fr 1fr; }
}

/* section headings (synced from guide.css) */
.section-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.25em;
  color: var(--green-accent);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-num em {
  font-style: normal;
  font-size: 50px;
  font-weight: 500;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3.7vw, 36px);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* =====================================================
   Mobile foundation
===================================================== */
.mobile-menu-btn {
  display: none;
  width: 9vw;
  height: 9vw;
  border: 1px solid var(--on-dark-ghost);
  border-radius: 3px;
  background: var(--on-dark-ghost);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1vw;
  cursor: pointer;
}
.mobile-menu-btn span {
  width: 4vw;
  height: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --side-pad: 24px;
  }

  html.is-menu-open,
  body.is-menu-open {
    overflow: hidden;
  }

  body {
    font-size: 3.4vw;
    line-height: 1.85;
    overflow-x: hidden;
  }

  header {
    background: rgba(26, 58, 42, 0.98);
  }

  .header-inner {
    height: 13vw;
    padding: 0 4vw;
  }

  .logo-text {
    max-width: calc(100vw - 88px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 4vw;
    letter-spacing: 0.05em;
  }

  .gnav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    flex-shrink: 0;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    inset: 64px 0 auto 0;
    height: calc(100dvh - 13vw);
    background: #fff;
    z-index: 490;
    transform: translateX(100%);
    transition: transform .24s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
  }

  .mobile-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-drawer-inner {
    padding: 4vw 4vw 6vw;
  }

  .mobile-nav-link,
  .mobile-nav-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    padding: 3vw 0;
    color: var(--green-dark);
    text-decoration: none;
    font-size: 3vw;
    font-weight: 700;
    line-height: 1.45;
    border-bottom: 1px solid var(--border);
    background: transparent;
  }

  .mobile-nav-summary {
    list-style: none;
    cursor: pointer;
  }
  .mobile-nav-summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav-summary::after {
    content: '+';
    color: var(--green-accent);
    font-size: 4vw;
    line-height: 1;
  }
  .mobile-nav-group[open] > .mobile-nav-summary::after {
    content: '-';
  }

  .mobile-subnav {
    padding: 2vw 0 2vw 3vw;
    border-bottom: 1px solid var(--border);
  }
  .mobile-subnav a {
    display: block;
    padding: 2vw 0;
    color: var(--grey-mid);
    text-decoration: none;
    font-size: 3vw;
    line-height: 1.55;
  }

  .mobile-nav-link--cta {
    justify-content: center;
    margin-top: 4vw;
    padding: 3vw 4vw;
    border: none;
    border-radius: 3px;
    background: var(--green-accent);
    color: #fff;
  }

  .wrap,
  .related-inner,
  .footer-inner,
  .bottom-cta-inner {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .page-hero {
    padding: 22vw 0 14vw;
  }

  .page-hero-inner {
    padding: 0 5vw;
  }

  .page-hero h1 {
    font-size: clamp(6vw, 9vw, 8vw);
    line-height: 1.45;
  }

  .page-hero-sub {
    max-width: none;
    margin-bottom: 6vw;
    font-size: 3.4vw;
  }

  .bottom-cta,
  .related {
    padding: 14vw 0;
  }

  .bottom-cta h2 {
    font-size: clamp(5vw, 7vw, 6vw);
  }

  .cta-btns,
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .breadcrumb {
  	display: none;
  }
  
  .btn-white,
  .btn-outline-w,
  .btn-cta-main,
  .btn-cta-sub,
  .btn-hero,
  .btn-hero-sub,
  .more-link,
  .section-link-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 2vw;
  }

  .related-card {
    padding: 4vw 4vw;
  }

  .main-site-banner .msb-inner,
  .msb-inner {
    padding: 3vw 5vw;
    align-items: stretch;
  }

  .msb-left {
    align-items: flex-start;
  }

  .msb-btn {
    width: 100%;
    justify-content: center;
  }
  
  .js-sp-accordion-content{
  	display: none;
  }
  
  /* 右端の開閉アイコン（閉じている時：↑） */
  .js-sp-accordion-trigger{
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .js-sp-accordion-trigger::after {
	  width: 1.0em;
	  height: 1.0em;
	  background: url("../img/icon_open.png") no-repeat center / contain;
	  content: '';
	  position: absolute;
	  right: 24px;
	  bottom: 2vw;
	  transform: translateY(-50%);
	  font-family: sans-serif;
	  color: var(--green-accent);
	  font-size: 18px;
	  font-weight: 400;
	  transition: transform 0.3s;
	}

  /* 開いている時のスタイル（開いている時：↓） */
  .js-sp-accordion.is-open .js-sp-accordion-trigger::after {
	  background: url("../img/icon_close.png") no-repeat center / contain;
  }

  footer {
    padding: 11vw 0 7vw;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 6vw;
    padding-bottom: 7vw;
    margin-bottom: 6vw;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4vw;
  }

  .footer-bottom {
    display: grid;
    gap: 2vw;
  }
}

@media (max-width: 480px) {
  .wrap,
  .related-inner,
  .footer-inner,
  .bottom-cta-inner,
  .page-hero-inner {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .related-label,
  .section-num {
    font-size: 3vw;
    letter-spacing: 0.18em;
  }

  .section-title {
    font-size: clamp(4vw, 7vw, 6vw);
  }
}
