/* =========================
   育ちの場　歩｜style.css（白×オレンジ版）
   ========================= */

:root{
  --primary:#F28C00;      /* メインのオレンジ */
  --primary-2:#FFB266;    /* 薄いオレンジ */
  --primary-dark:#C26F00; /* 文字用の濃いオレンジ */
  --bg:#FFFFFF;
  --bg-alt:#FFF7ED;       /* 薄いクリーム */
  --text:#222;
  --muted:#666;
  --line:#EAEAEA;
  --radius:16px;
  --shadow:0 4px 18px rgba(0,0,0,.06);
  --container:1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
body{
  margin:0; color:var(--text); background:var(--bg);
  /* 全体を丸ゴ系に統一（Zen Maru Gothic） */
  font-family: "Zen Maru Gothic", "M PLUS Rounded 1c",
               "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic",
               "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, Meiryo, sans-serif;
  line-height:1.8;
}


.container{max-width:var(--container); padding:0 20px; margin:0 auto}
.section{padding:72px 0}
.section.alt{background:var(--bg-alt)}
.mt-32{margin-top:32px}
.muted{color:var(--muted); font-size:.96rem}

.display{
  font-family:inherit;
  font-size: clamp(24px, 4vw, 30px); /* 小さめに */
  line-height:1.25;
  margin:0 0 12px;
}
h1,h2,h3{margin:0 0 12px}
h2{font-size: clamp(22px, 3.5vw, 32px)}
h3{font-size: clamp(18px, 2.4vw, 22px)}
.lead{font-size:1.05rem; color:var(--muted)}

a{color:var(--primary-dark); text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid #FFE2BF; outline-offset:2px; border-radius:8px
}

/* ボタン */
.btn{
  display:inline-block; padding:12px 18px; border-radius:999px; border:2px solid transparent;
  font-weight:700; text-decoration:none; box-shadow:var(--shadow); transition:.2s;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--primary); color:#fff}
.btn-primary.small{padding:8px 14px}
.btn-outline{border-color:var(--primary); color:var(--primary); background:#fff}
.btn-light{background:#fff; border-color:var(--line); color:var(--text)}

/* Header */
.site-header{ position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--line) }
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:64px }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700 }
.brand-mark{
  width:28px; height:28px; border-radius:50%; display:grid; place-items:center;
  background:var(--primary); color:#fff; font-weight:700;
}
.primary-nav ul{ display:flex; gap:18px; list-style:none; margin:0; padding:0; align-items:center }
.primary-nav a{ padding:8px 4px }
.nav-toggle{ display:none; background:none; border:none; font-size:24px }
@media (max-width:800px){
  .nav-toggle{display:block}
  .primary-nav ul{
    position:absolute; right:12px; top:64px; background:#fff; border:1px solid var(--line);
    border-radius:12px; padding:10px; display:none; flex-direction:column; min-width:220px; box-shadow:var(--shadow)
  }
  .primary-nav ul.open{display:flex}
}

/* Hero */
.hero{background:linear-gradient(180deg, #fff, #FFF9F2)}
.hero-inner{display:grid; grid-template-columns:1.1fr .9fr; gap:28px; align-items:center}
.hero-visual img{ width:100%; height:320px; object-fit:cover; border-radius:var(--radius); display:block }
@media (max-width:900px){ .hero-inner{grid-template-columns:1fr} .hero-visual img{height:220px} }
.cta-row{display:flex; gap:12px; margin:16px 0 8px}

/* Hero 塾名：本文フォントで中央・強調 */
.hero-brand{
  display:flex;
  justify-content:center;  /* 中央寄せ */
  align-items:baseline;
  gap:.45em;
  white-space:nowrap;
  font-family: inherit;    /* 本文と同じ書体 */
  margin:0 auto 10px;      /* 中央配置 */
}
.hero-brand .brand-main{
  font-family: inherit;
  font-size:clamp(34px, 5.6vw, 48px);  /* 大きめ */
  font-weight:700;
  color:var(--primary);
  letter-spacing:.08em;
  line-height:1;
}
/* Hero タイトル：中央寄せ + 2行目だけ4文字分インデント */
.hero .display{
  display: inline-block;   /* 要素自体をセンターに */
  margin-left: auto;
  margin-right: auto;
  text-align: left;        /* 文字は左寄せのまま */
  padding-left: 4em;       /* 2行目以降のインデント量（PC） */
  text-indent: -4em;       /* 1行目だけ戻す＝ぶら下がり */
}
@media (max-width: 600px){
  .hero .display{
    padding-left: 2.5em;   /* スマホ用のインデント量 */
    text-indent: -2.5em;
  }
}

/* Hero 見出しブロックを中央に */
.hero-copy{ text-align: center; }

/* Cards / 特長 */
.cards-3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow) }
@media (max-width:900px){.cards-3{grid-template-columns:1fr}}

/* Generic media / columns（アクセス差替え時も使用） */
.two-col{display:grid; grid-template-columns:1.1fr .9fr; gap:24px; align-items:center}
.ph-img{
  background:#FFF2E5; border:1px dashed #FFD7A6; border-radius:var(--radius);
  display:grid; place-items:center; color:var(--primary-dark); font-weight:700; min-height:180px;
}
@media (max-width:900px){.two-col{grid-template-columns:1fr}}

/* Pricing */
.price-note{
  background:#FFF2E5;
  border:1px solid #FFE2BF;
  padding:12px 14px;
  border-radius:12px;
  margin:8px 0 14px;
}

/* 2枚のカードを同じ行・同じ高さで並べる（Flex） */
.price-grid{
  display:flex;
  flex-wrap:wrap;        /* 下段のカード（キャンペーン等）は折り返し */
  gap:16px;
  margin-top:12px;
  align-items:stretch;   /* ← 高さを揃えるキモ */
}

/* カード本体（伸縮可能＆中身は縦並び） */
.price-card{
  flex:1 1 0;            /* 2枚が均等幅で並ぶ */
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

/* 目立たせる枠（既存仕様を踏襲） */
.price-card.featured{ border-color:var(--primary) }

/* リストの余白調整（末尾で余白だぶりを防ぐ） */
.price-list{ padding-left:18px; margin:0; }
.price-list li{ margin:6px 0; }
.price-card > :last-child{ margin-bottom:0; }

/* 横いっぱいにしたいカード（キャンペーン等） */
.price-grid .price-card.wide{
  flex:1 1 100%;         /* 行をフル幅で占有 */
}

/* モバイルは縦1列に */
@media (max-width:900px){
  .price-grid{ flex-direction:column; }
  .price-card{ flex:1 1 auto; }
}



/* News */
.news-list{display:grid; gap:14px}
.news-item{ border-bottom:1px solid var(--line); padding-bottom:12px }
.news-item h3{margin:4px 0}

/* FAQ */
.accordion details{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 16px }
.accordion details+details{margin-top:10px}
.accordion summary{cursor:pointer; font-weight:600}
/* FAQ：質問と回答のサイズ差をつける */
.accordion summary{ font-size: 1.05rem; font-weight: 700; }  /* 質問：やや大きめ */
.accordion .content{  font-size: 0.92rem; line-height: 1.9; } /* 回答：質問より ~1.5pt 小 */


/* SNS・連絡先 */
.sns-grid{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:16px; margin-top:14px; align-items:stretch;
}
.sns-card{
  display:block; text-align:center; padding:18px;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); transition:transform .15s ease;
  color:inherit; text-decoration:none;
}
.sns-card:hover{ transform:translateY(-2px); text-decoration:none }
.sns-icon{ width:80px; height:80px; object-fit:contain; margin:8px auto 12px; display:block }
.sns-title{ font-weight:700; }
.sns-sub{ color:var(--muted); font-size:.95rem }
@media (max-width:900px){ .sns-grid{ grid-template-columns:repeat(2, 1fr) } }
@media (max-width:600px){ .sns-grid{ grid-template-columns:1fr } }

/* Google Map の埋め込み：カード調・角丸・高さ固定 */
.map-embed{
  position: relative;
  width: 100%;
  height: 360px;                 /* 標準の高さ */
  border: 1px solid var(--line);
  border-radius: 16px;           /* 角丸 */
  overflow: hidden;              /* iframeの角も切る */
  box-shadow: var(--shadow);
  background: #fff;
}
.map-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 小さめバリエーション（アクセス欄用） */
.map-embed.sm{
  height: 300px;
  max-width: 560px;              /* ちょい小さく */
  margin-left: auto;             /* 右カラム内で右寄せしたい場合は auto/0 調整可 */
  margin-right: 0;
}

@media (max-width: 900px){
  .map-embed{ height: 300px; }
  .map-embed.sm{ height: 260px; max-width: 100%; margin: 0; }
}
@media (max-width: 600px){
  .map-embed{ height: 240px; }
  .map-embed.sm{ height: 220px; }
}



/* フォーム・共通 */
.check{padding-left:18px}
.check li{list-style:disc; margin:4px 0}
.map{height:260px}

.form-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px }
.form-grid .full{grid-column:1 / -1}

/* 申込みフォームだけ1列に */
#contact .form-grid{ grid-template-columns:1fr; }

label{ display:grid; gap:6px; font-weight:600 }

/* 入力フィールド共通（checkboxは除外） */
input:not([type="checkbox"]), select, textarea{
  width:100%; padding:12px; border:1px solid var(--line);
  border-radius:12px; font:inherit; background:#fff;
}
input:not([type="checkbox"]):focus, select:focus, textarea:focus{
  outline:2px solid #FFE2BF; border-color:#FFE2BF;
}

/* checkbox専用のリセット */
input[type="checkbox"]{
  width:auto; height:auto; padding:0; margin:0;
}

/* 必須マーク */
.req{ color:#b4002a; font-weight:700; margin-left:6px }

/* 同意チェック行：横並びで左寄せ */
#contact .form-grid .checkline{
  display:inline-flex;       /* ラベルをインラインフレックス化 */
  align-items:center;
  gap:8px;
  justify-self:start;        /* グリッド内で左端に寄せる */
  text-align:left;
}

/* 送信行 */
.form-actions{ margin-top:8px; display:flex; align-items:center; gap:16px }
.form-note{ color:var(--muted); margin:0 }


/* ギャラリー（最後にまとめて表示） */
.gallery-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-top:12px;
}
.gallery-grid figure{ margin:0; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:var(--shadow) }
.sq{ aspect-ratio:1/1; width:100%; background:#fff }
.sq img{ width:100%; height:100%; object-fit:cover; display:block }
@media (max-width:900px){ .gallery-grid{ grid-template-columns:repeat(2, 1fr) } }
@media (max-width:600px){ .gallery-grid{ grid-template-columns:1fr } }

/* ===== Footer（整理版・最小セット） ===== */
.site-footer{
  border-top:1px solid var(--line);
  padding:20px 0;
  background:#fff;
  color:var(--muted);
}

/* 左：コピーライト / 右：サイト内リンク */
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px 24px;
  flex-wrap:wrap;
}

/* コピーライトは 1 行固定（スマホでも折り返さない） */
.site-footer small{
  white-space: nowrap;
  line-height: 1.6;
  display:inline-block;
}

/* 右側リンク群を右寄せに */
.footer-col.right{
  margin-left:auto;
  min-width:60%;           /* 50〜70% で調整可 */
}

.footer-nav{
  text-align:right;
  line-height:2;
  margin:0;
  padding:0;
}
.footer-nav a{
  display:inline-block;
  text-decoration:none;
  color:var(--primary-dark);
}
.footer-nav a:hover{ text-decoration:underline; }

/* 区切り線（最後以外の前に「｜」を付ける） */
.footer-nav a + a::before{
  content:"｜";
  margin:0 .6em;
  color:#c9c9c9;
}

/* モバイル：右リンク → 上、コピーライト → 下（どちらも右寄せ） */
@media (max-width:600px){
  .footer-inner{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  .footer-col.right{ order:1; min-width:100%; }
  .footer-col.left { order:2; }
  .footer-nav{ text-align:right; }
  .site-footer small{ white-space:nowrap; }
}

/* ====== ここから下は既存のルールを維持（変更なし） ====== */

/* 現在位置の強調（ナビ） */
.primary-nav a.active{color:var(--primary); font-weight:700; text-decoration:underline}

/* --- 特長カードの横幅を少しだけ拡張（このセクションだけ） --- */
#features .container{
  max-width: 1200px; /* ← 1100px から +100px。様子見で 1180〜1240 に調整可 */
}

/* デスクトップでは見出しの不自然な改行を抑制 */
@media (min-width: 901px){
  #features .card h3{
    white-space: nowrap;   /* 1行に収める（モバイルは通常の折返し） */
  }
}

/* 改行禁止ユーティリティ */
.nowrap{ white-space: nowrap; }

/* 価格リスト内の注記行（※）はマーカー非表示 */
.price-list li.muted{ list-style: none; }

/* ボタンの禁改行＋縮小禁止（スマホで1文字だけ改行されないように） */
.btn{ white-space: nowrap; }
.form-actions .btn{ flex-shrink: 0; }   /* 横幅を無理に縮めない */
.form-actions{ flex-wrap: wrap; }       /* 代わりに注意書きを下に回す */

@media (max-width:480px){
  .btn{ padding:10px 16px; font-size:0.95rem; }
}

/* 受講の流れ：カード化の体裁合わせ */
.flow .flow-card{ margin-top:12px; }
.flow-steps{ margin:6px 0 0; padding-left:1.2em; }
.flow-steps li{ margin:6px 0; }

/* 置換：既存の .hero-inner ブロック */
.hero-inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-areas:
    "brand brand"   /* ← 上段で左右2カラムにまたがって表示 */
    "copy  visual";
  gap:28px;
  align-items:center;
}

/* 追加：各エリア割り当て */
.hero-brand{ grid-area: brand; justify-content:center; margin:0 0 6px; }
.hero-copy { grid-area: copy;  }
.hero-visual{ grid-area: visual; }

/* モバイルは上から：塾名 → テキスト → 画像 */
@media (max-width:900px){
  .hero-inner{
    grid-template-columns:1fr;
    grid-template-areas:
      "brand"
      "copy"
      "visual";
  }
}

