/* ============================================================
   株式会社Hyssop コーポレートサイト  共通スタイル
   - カラーは :root の CSS 変数で一元管理（差し替えはここだけ）
   ============================================================ */

/* ---------- カラー / トークン ---------- */
:root {
  --primary:        #2BA7DD;   /* スカイブルー（メイン） */
  --primary-dark:   #1B6FA0;   /* 濃紺アクセント・見出し */
  --primary-light:  #EAF6FC;   /* 淡い背景 */
  --accent:         #FFB400;   /* CTA / 電話番号の強調（補色） */
  --accent-dark:    #E09E00;
  --text:           #2A3540;
  --bg:             #FFFFFF;
  --muted:          #6B7785;
  --border:         #E2E8EE;
  --shadow:         0 6px 24px rgba(27, 111, 160, 0.10);
  --shadow-sm:      0 2px 10px rgba(27, 111, 160, 0.08);
  --radius:         14px;
  --radius-sm:      8px;
  --header-h:       76px;
  --maxw:           1120px;
  --gutter:         20px;
  --font: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
          "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Poppins", "Noto Sans JP", sans-serif;  /* 英字見出し・数字用 */
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
/* 見出しの不自然な折り返し（孤立文字など）を防ぐ：PC・スマホ共通 */
h1, h2, h3, h4 { text-wrap: balance; line-break: strict; }
table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- レイアウト共通 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--tint { background: var(--primary-light); }
.section--dark { background: var(--primary-dark); color: #fff; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head .en {
  display: block; color: var(--primary); font-weight: 700;
  letter-spacing: .18em; font-size: .8rem; text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--primary-dark); font-weight: 800;
  position: relative; padding-bottom: 18px;
}
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 2px; background: var(--accent);
}
.section-head p { color: var(--muted); margin-top: 14px; }

.lead { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  line-height: 1.3; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #4a3500; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--accent-dark); color: #4a3500; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; }
.brand .name { font-weight: 800; color: var(--primary-dark); font-size: 1.25rem; line-height: 1.1; }
.brand .name small { display: block; margin-top: 4px; font-size: .62rem; color: var(--muted); font-weight: 600; letter-spacing: .12em; }

.gnav { display: flex; align-items: center; gap: 4px; }
.gnav > li { position: relative; }
.gnav a, .sub-toggle {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: .95rem; font-weight: 700;
  color: var(--text); border-radius: var(--radius-sm);
  background: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1.3;
}
.gnav a:hover, .sub-toggle:hover, .gnav a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-light); }
.caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .2s;
}

/* サブメニュー（ドロップダウン） */
.subnav {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 8px; margin-top: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 110;
}
/* PC（マウス環境）のホバー表示。
   タッチ端末を含めると、タップ後に :hover が固着して▼が戻らなくなるため除外する。 */
@media (hover: hover) and (pointer: fine) {
  .has-sub:hover .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-sub:hover .caret { transform: rotate(180deg); }
}
/* キーボード操作（Tabでの移動）で開く。
   マウス／タップ時は js/main.js 側でフォーカスを外しており、ここは効かない。 */
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub:focus-within .caret { transform: rotate(180deg); }
.subnav a { font-size: .9rem; font-weight: 600; white-space: nowrap; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-tel { text-align: right; line-height: 1.15; }
.header-tel a { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
.header-tel small { display: block; font-size: .68rem; color: var(--muted); }
.header-call { display: none; padding: 12px 16px; }   /* スマホ表示時のみ出る電話ボタン */

/* ヘッダーのSNS（Instagram）アイコン */
.header-sns {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--primary-dark); background: var(--primary-light);
  transition: background .2s, color .2s;
}
.header-sns:hover { background: var(--primary); color: #fff; }
.header-sns svg { width: 21px; height: 21px; fill: currentColor; display: block; }

/* ハンバーガーメニュー内のInstagram項目（スマホのみ表示） */
.gnav-sns { display: none; }
.gnav-sns a svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: var(--primary);
  border-radius: var(--radius-sm); cursor: pointer; position: relative; flex: none;
}
.nav-toggle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24px; height: 2px; background: #fff; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: #fff; transition: .25s; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- ヒーロー ----------
   各ページで --hero-bg に画像を指定すると背景写真になる。
   例) <section class="hero" style="--hero-bg:url('assets/img/hero/top.jpg')">
   未指定／画像が無い場合は従来どおりブルーのグラデーション表示（壊れない）。 */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(27,111,160,.86) 0%, rgba(43,167,221,.62) 100%),
    var(--hero-bg, none) center / cover no-repeat,
    linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/hero.svg") center/cover no-repeat; opacity: .15; mix-blend-mode: screen;
}
.hero .inner { position: relative; z-index: 1; padding: 96px var(--gutter) 104px; max-width: 760px; }
.hero h1 { font-size: clamp(1.35rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.5; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.hero h1 .hl { color: #FFE9A8; }
.hero h1 .nb { white-space: nowrap; }
.hero p { margin-top: 22px; font-size: clamp(1rem, 2.4vw, 1.2rem); }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero .badge {
  display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
  padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: 20px;
}

/* ページ見出し帯（下層ページ用）
   各ページで --hero-bg に画像を指定すると背景写真になる。
   例) <div class="page-hero" style="--hero-bg:url('assets/img/hero/house-cleaning.jpg')">
   未指定／画像が無い場合は従来どおりブルーのグラデーション表示。 */
.page-hero {
  background:
    linear-gradient(120deg, rgba(27,111,160,.88) 0%, rgba(43,167,221,.72) 100%),
    var(--hero-bg, none) center / cover no-repeat,
    linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 72px 0; position: relative;
}
/* ページ別ヒーロー背景画像（url はこの CSS ファイル基準＝../assets で解決される）。
   差し替えは src/assets/img/hero/ の同名ファイルを上書きするだけでOK。 */
.hero.h-top          { --hero-bg: url("../assets/img/hero/top.jpg"); }
.page-hero.h-house   { --hero-bg: url("../assets/img/hero/house-cleaning.jpg"); }
.page-hero.h-reno    { --hero-bg: url("../assets/img/hero/renovation.jpg"); }
.page-hero.h-large   { --hero-bg: url("../assets/img/hero/large-scale.jpg"); }
.page-hero.h-pest    { --hero-bg: url("../assets/img/hero/pest-control.jpg"); }
.page-hero.h-esg     { --hero-bg: url("../assets/img/hero/esg-sdgs.jpg"); }
.page-hero.h-recruit { --hero-bg: url("../assets/img/hero/recruit.jpg"); }
.page-hero.h-company { --hero-bg: url("../assets/img/hero/company.jpg"); }
.page-hero.h-contact { --hero-bg: url("../assets/img/hero/contact.jpg"); }
.page-hero .en { letter-spacing: .2em; font-size: .8rem; opacity: .85; text-transform: uppercase; }
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-top: 6px; }
.breadcrumb { font-size: .82rem; color: var(--muted); padding: 14px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

/* ---------- カード / グリッド ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/10; background: var(--primary-light); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { color: var(--primary-dark); font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .92rem; flex: 1; }
.card .more { margin-top: 16px; font-weight: 700; color: var(--primary); }

/* トップ「事業紹介」：PCで2列×2行・正方形に近いカード */
.biz-grid { max-width: 880px; margin-left: auto; margin-right: auto; }
.biz-grid .thumb { aspect-ratio: 4 / 3; }

/* ハウスクリーニング：バナー画像 */
.banner-img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* サービス一覧（アイコン風イラストを中央に表示） */
.svc-grid .thumb { aspect-ratio: 4 / 3; background: var(--primary-light); display: grid; place-items: center; padding: 18px; }
.svc-grid .thumb img { width: auto; max-width: 72%; max-height: 72%; object-fit: contain; }
.svc-grid .body { align-items: flex-start; }
.svc-badge { display: inline-block; background: var(--accent); color: #4a3500; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }

/* 施工事例（ビフォーアフター写真） */
.works-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* 理由カード（アイコン丸） */
.reason { text-align: center; padding: 30px 22px; }
.reason .ico {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--primary-light); display: grid; place-items: center; color: var(--primary-dark);
  font-size: 1.9rem;
}
.reason h3 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 8px; }
.reason p { color: var(--muted); font-size: .9rem; }

/* ---------- 経営理念 ---------- */
.philo { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.philo-item { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.philo-item .no { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.philo-item h3 { margin: 8px 0 6px; color: var(--primary-dark); font-size: 1.15rem; }
.philo-item p { color: var(--muted); font-size: .92rem; }

/* ---------- 流れ（ステップ） ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; position: relative; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: "STEP " counter(step);
  display: inline-block; background: var(--primary); color: #fff; font-weight: 800; font-size: .72rem;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .05em;
}
.step h3 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- お客様の声 ---------- */
.voice { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.voice .stars { color: var(--accent); margin-bottom: 8px; }
.voice p { font-size: .94rem; }
.voice .who { margin-top: 14px; color: var(--muted); font-size: .82rem; font-weight: 700; }

/* ---------- 料金表 ---------- */
.price-table { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table thead th { background: var(--primary-dark); color: #fff; font-weight: 700; }
.price-table tbody tr:nth-child(even) { background: var(--primary-light); }
.price-table .price { color: var(--primary-dark); font-weight: 800; white-space: nowrap; }
.note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ---------- ビフォーアフター ---------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.ba .pane { text-align: center; }
.ba .pane span { display: inline-block; font-weight: 800; font-size: .8rem; padding: 3px 14px; border-radius: 999px; margin-bottom: 8px; }
.ba .before span { background: #E9EDF1; color: var(--muted); }
.ba .after span { background: var(--primary); color: #fff; }
.ba .arrow { font-size: 2rem; color: var(--accent); font-weight: 800; }
.ba img, .ba .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); background: var(--primary-light); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--primary-dark); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--primary); color: #fff; border-radius: 50%; font-size: .8rem; margin-right: 12px; vertical-align: middle; }
.faq summary::after { content: "＋"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--primary); font-weight: 800; }
.faq details[open] summary::after { content: "－"; }
.faq .answer { padding: 0 20px 20px 58px; color: var(--muted); font-size: .92rem; }

/* ---------- 定義テーブル（会社概要 等） ---------- */
.deftable { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.deftable th, .deftable td { padding: 16px 20px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.deftable th { width: 32%; background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.deftable tr:last-child th, .deftable tr:last-child td { border-bottom: 0; }

/* ---------- CTA 帯 ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
.cta-band p { margin-top: 12px; opacity: .95; }
.cta-band .tel-big { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 800; margin-top: 18px; }
.cta-band .tel-big a { color: #fff; }
.cta-band .actions { margin-top: 24px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- フォーム ---------- */
.form-grid { display: grid; gap: 20px; max-width: 720px; margin: 0 auto; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.field .req { background: var(--accent); color: #4a3500; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 4px; margin-left: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.field .error { color: #d6453b; font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d6453b; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; background: var(--primary-light); border: 1px solid var(--primary); color: var(--primary-dark); padding: 20px; border-radius: var(--radius); font-weight: 700; text-align: center; }

/* ---------- フッター ---------- */
.site-footer { background: #16242E; color: #cfd8e0; padding: 56px 0 24px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cfd8e0; }
.site-footer a:hover { color: var(--primary); }
.site-footer .fnav li { margin-bottom: 8px; }
.site-footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer .fbrand img { width: 40px; height: 40px; }
.site-footer .fbrand .name { color: #fff; font-weight: 800; font-size: 1.2rem; }
.site-footer .sns { display: flex; gap: 12px; margin-top: 14px; }
.site-footer .sns a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; transition: background .2s, color .2s; }
.site-footer .sns a:hover { background: rgba(255,255,255,.2); color: #fff; }
.site-footer .sns a svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; text-align: center; font-size: .8rem; color: #8b97a3; }

/* ---------- 汎用 ---------- */
.placeholder-pic { background: var(--primary-light); display: grid; place-items: center; color: var(--primary); font-weight: 700; font-size: .85rem; border-radius: var(--radius-sm); aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
br.br-sp { display: none; }   /* スマホ専用の改行：既定は非表示（PCで無効） */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tag-list li { background: var(--primary-light); color: var(--primary-dark); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }

/* ---------- 洗練（フォント適用・ヒーロー・カード質感・スクロールアニメ） ---------- */
.section-head .en, .page-hero .en, .hero .badge,
.philo-item .no, .reason .ico, .step::before { font-family: var(--font-en); }

/* ヒーロー：見出しを大きく・余白を広めに */
.hero .inner { padding: 116px var(--gutter) 124px; }
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.9rem); line-height: 1.45; }

/* カード：hover で画像をわずかにズーム */
.card .thumb { overflow: hidden; }
.card .thumb img { transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.06); }

/* スクロール表示アニメーション（JSで .reveal を付与し、表示域で .in-view） */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .gnav a, .sub-toggle { padding: 10px 10px; font-size: .88rem; }
  .header-tel a { font-size: 1.1rem; }
  .header-tel small { font-size: .62rem; }
}

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .philo, .site-footer .cols { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }
  br.br-pc { display: none; }    /* PC用の改行はスマホで無効化 */
  br.br-sp { display: inline; }  /* スマホ用の改行を有効化 */
  .hero .inner { padding: 56px var(--gutter) 64px; }

  /* スマホ：ヘッダー（白い帯）をコンパクトにして上部の空白感を抑える */
  :root { --header-h: 60px; }
  .brand img { width: 40px; height: 40px; }
  .brand .name { font-size: 1.05rem; }
  .brand .name small { font-size: .58rem; }

  /* スマホ：Instagramはヘッダーではなくハンバーガーメニュー内に表示 */
  .header-sns { display: none; }
  .gnav-sns { display: block; }
  .gnav .gnav-sns a { justify-content: flex-start; gap: 10px; }

  /* スマホ：ヘッダーは ロゴ＋電話ボタン＋ハンバーガー のみ */
  .nav-toggle { display: block; }
  .header-tel, .header-quote { display: none; }
  .header-call { display: inline-flex; }

  /* スマホ：メニューパネル（上から出現） */
  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 8px; gap: 2px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .gnav.open { transform: translateY(0); }
  .gnav > li { position: static; }
  .gnav a, .sub-toggle { width: 100%; padding: 14px 16px; font-size: 1rem; justify-content: space-between; }

  /* スマホ：サブメニューはアコーディオン展開 */
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; margin: 0; padding: 0 0 6px 12px; min-width: 0;
    display: none;
  }
  .has-sub.open .subnav { display: block; }
  .has-sub.open .caret { transform: rotate(180deg); }
  .subnav a { padding: 12px 16px; font-size: .95rem; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .ba .arrow { transform: rotate(90deg); }
  .deftable th { width: 38%; }
}

@media (max-width: 420px) {
  .deftable th, .deftable td { display: block; width: 100%; }
  .deftable th { border-bottom: 0; }
}
