@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600;700&family=Noto+Sans+JP:wght@400;500;700&family=Quicksand:wght@400;500;600;700&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

:root {
  /* 基本色は theme.json (sitemeister/theme@2) から theme-loader.js が実行時に上書きする。
     ここの値は theme.json 読込前の初期表示用デフォルト。管理画面で色を変えると
     theme.json が更新され、リロードで反映される (再ビルド不要)。 */
  --color-primary:       #8294a6;
  --color-secondary:     #27ae60;
  --color-accent:        #e8803a;
  --color-bg:            #ffffff;
  --color-text:          #2c3e50;
  /* 派生色は var() 参照にして、--color-primary / --color-bg の上書きが連鎖するようにする */
  --color-text-muted:    color-mix(in srgb, var(--color-text) 55%, var(--color-bg));
  --color-primary-light: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
  /* No.4b セクション面色: 交互背景で隣接セクションを分離するための極薄トーン(bgに主色を5%だけ混ぜる) */
  --color-surface:       color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
  --color-primary-dark:  color-mix(in srgb, var(--color-primary) 80%, #000);
  /* ブランド色ベタ塗り面の上に乗せる文字色(輝度から自動決定。背景色と文字の同化を防ぐ) */
  --color-on-primary:    #111111;
  --color-on-secondary:  #111111;
  --color-on-accent:     #111111;
  /* 明背景(白セクション)に乗る見出し/下線/ロゴ/表ヘッダのインク色。primary が淡色でも読めるオンブランド濃色(輝度から自動決定)。 */
  --color-heading-ink:   #2c3e50;
  /* フッター背景(白文字前提)。primary が淡色で primary-dark が明るくなる場合の色抜けを防ぐ暗色。 */
  --color-footer-bg:     #687685;
  --font-heading: 'Zen Maru Gothic', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --radius: 6px;
  --radius-btn: 999px;
  --radius-card: 12px;
  --shadow: 0 10px 30px rgba(25,58,38,0.08);
  --shadow-card: 0 8px 24px rgba(25,58,38,0.06);
  --transition: all 0.3s ease;
  /* No.9 余白スケール(垂直リズム): 関連要素=sm/md でまとめ、別ブロック=lg 以上で離す。 */
  --space-sm: 24px;   /* 見出し→リード等、関連要素の最小間隔 */
  --space-md: 32px;   /* リード→画像→本文 の間 */
  --space-lg: 48px;   /* 異なる情報ブロック間の最小間隔 */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
/* 本文は 17px(1.0625rem)。余白が大きい分、本文が小さく見えないよう基本サイズを上げる(見出しはrem固定=html基準で不変)。 */
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); font-size: 1.0625rem; line-height: 1.7; overflow-x: hidden; max-width: 100%; }
/* No.8 コンテンツ画像(通常フローの内容画像)は縦に伸び過ぎないよう最大高さ800pxで抑える(スクロールせず収まる)。
   ★上限の対象は「高さが intrinsic(height:auto) な内容画像」だけ。器のサイズ/aspect-ratio で
   高さが決まる object-fit:cover 系の画像は 800px 上限を外す(切れて比率が崩れるのを防ぐ)。
   全面背景(.hero-bg/.page-hero-bg/.cta-bg/.media-band)は各セレクタで max-height:none 済、
   その他の cover 画像は直後にまとめて max-height:none に戻す。 */
img { max-width: 100%; height: auto; display: block; max-height: 800px; }
/* No.8 補正: object-fit:cover を使う画像はコンテナ/aspect-ratio が高さを決めるため 800px 上限を外す
   (これを外さないとヒーロー下のカード/ギャラリー/特集/お問い合わせ帯の画像が 800px で切れてレイアウトがずれる)。 */
.card-img, .two-col img, .gallery-item img, .feature-img, .staff-card img { max-height: none; }
a { color: var(--color-heading-ink); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.8; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.3; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { padding: 6.5rem 0; }
/* No.4b 連続セクションの視覚分離: 偶数番の .section に極薄の面色を敷いて隣接セクションを区切る(のっぺり連続を防ぐ)。
   hero(.hero)/写真帯(.cta-section)は .section を持たないため対象外=自前背景を維持。カード等は面色上でコントラストが立つ。 */
.section:nth-of-type(even) { background: var(--color-surface); }
.section-title { font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--color-heading-ink); margin-bottom: 2.5rem; text-align: left; }
.section-title::after { content: ''; display: block; width: 3rem; height: 3px; background: var(--color-heading-ink); margin: 0.75rem 0 0; border-radius: 2px; }
/* No.9 プローズの垂直リズム(詰まり過ぎ防止)。カード等コンポーネント内部は各自の padding に任せ、
   コンテナ直下の本文段落・リード文にのみ 24〜32px の間隔を与える。 */
.lead { font-size: 1.08rem; line-height: 1.9; margin-bottom: var(--space-md); color: var(--color-text); }
.container > p, .section > .container > p { margin-bottom: var(--space-sm); }
.container > p:last-child, .section > .container > p:last-child { margin-bottom: 0; }
.btn { display: inline-block; padding: 0.8rem 1.8rem; background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-btn); font-family: var(--font-heading); font-weight: 700; text-transform: none; letter-spacing: 0.02em; transition: var(--transition); border: 2px solid var(--color-primary); cursor: pointer; }
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; opacity: 1; }
.btn-outline { background: transparent; color: var(--color-heading-ink); border-color: var(--color-heading-ink); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-on-primary); }

/* ヘッダー */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; isolation: isolate; background: #ffffff; background: var(--color-bg, #ffffff); border-bottom: 1px solid var(--color-primary-light); transition: var(--transition); }
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
/* ロゴ: 長い店舗名がヘッダー幅を食い潰してナビ全体をハンバーガーへ畳ませる事故を防ぐ。
   テキストロゴは1行省略(…)+max-widthで上限化し、ナビに幅を優先配分(flex:0 1 auto/min-width:0)。
   フル名は title 属性で保持。画像ロゴ(.site-logo-img)はクリップしないよう除外。 */
.site-logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-heading-ink); flex: 0 1 auto; min-width: 0; max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-logo:has(.site-logo-img) { max-width: none; overflow: visible; }
.site-nav { flex: 0 0 auto; }
/* gap は --nav-scale(JS 縮小フィット)で段階縮小し、項目過多でも極力横並びを保つ。既定=1。 */
.site-nav ul { display: flex; flex-wrap: nowrap; align-items: center; gap: calc(0.75rem * var(--nav-scale, 1)); list-style: none; }
.site-nav a { font-size: 0.82rem; font-weight: 500; color: var(--color-text); padding: 0.25rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav .sm-langswitch { display: flex; gap: 0.5rem; }
.site-nav a:hover, .site-nav a.active { color: var(--color-heading-ink); border-bottom-color: var(--color-heading-ink); opacity: 1; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: var(--transition); display: block; }
/* ナビ オートたたみ(B): 横並びが実測で container に収まらない時、common.js が .nav-collapsed を付与し
   画面幅に関わらずハンバーガー化する(=ラベル長/項目数に依存せず見切れを防ぐ安全網)。@media のモバイル挙動と同型。 */
.site-header.nav-collapsed .hamburger { display: flex; }
.site-header.nav-collapsed .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #ffffff; background: var(--color-bg, #ffffff); padding: 1rem; border-top: 1px solid var(--color-primary-light); box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 99; max-height: calc(100vh - 76px); overflow-y: auto; }
.site-header.nav-collapsed .site-nav.open { display: block; }
.site-header.nav-collapsed .site-nav ul { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
.site-header.nav-collapsed .site-nav a { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--color-primary-light); min-height: 44px; white-space: normal; }
.site-header.nav-collapsed .site-nav .sm-langswitch { gap: 1rem; padding: 0.5rem 0; }
.site-header.nav-collapsed .site-logo { max-width: 72%; }  /* ナビがハンバーガー収納時はロゴ枠を広げ無駄な省略を防ぐ */

/* フッター */
.site-footer { background: var(--color-footer-bg); color: rgba(255,255,255,0.85); padding: 0.6rem 0 0.4rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.site-footer .footer-name { font-family: var(--font-heading); font-size: 1.25rem; color: #fff; margin-bottom: 0.75rem; }
.site-footer .footer-info p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.site-footer .footer-info { text-align: right; }
.site-footer .footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: flex-start; width: 100%; }
.site-footer .footer-nav li { margin-bottom: 0; }
.site-footer .footer-nav a { font-size: 0.9rem; }
.site-footer .footer-sns { display: flex; gap: 0.85rem; margin-top: 1rem; align-items: center; }
.site-footer .footer-sns a { display: inline-flex; padding: 0; border: none; opacity: 0.85; transition: var(--transition); }
.site-footer .footer-sns a:hover { opacity: 1; transform: translateY(-2px); }
/* SNSアイコンは images/sns-*.svg のファイル参照(ロゴと同方式・ブランド色)。 */
.site-footer .footer-sns img { width: 24px; height: 24px; object-fit: contain; display: block; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ヒーロー */
/* ★写真サイズ: フルブリードのヒーローは vh 指定だけだと縦長画面で過大になるため px で上限を掛ける(min())。 */
.hero { position: relative; min-height: min(68vh, 720px); display: flex; align-items: flex-start; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 600px; margin: 0; padding: 2rem; text-align: left; }
.hero-eyebrow { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 0.75rem; }
.hero-title { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 600; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; line-height: 1.8; }

/* ヒーロー・アーキタイプ (hero_style 由来。3案で構造そのものを変えてファーストビューの同質化を防ぐ) */
/* full-bleed: 上の基本(.hero-bg 全面 + 重ね文字)がそのまま該当。明示クラスは中央寄せの保険のみ。 */
.hero--full-bleed .hero-content { background: transparent; }
/* centered-overlay: 全面背景の上に、中央の半透明カードへ文字を収める */
.hero--centered-overlay { align-items: center; justify-content: center; text-align: center; }
.hero--centered-overlay .hero-overlay { background: rgba(0,0,0,0.28); }
.hero--centered-overlay .hero-content { max-width: 640px; margin: 0 auto; text-align: center;
  background: rgba(18,16,14,0.42); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-card);
  padding: clamp(2rem,4vw,3.25rem) clamp(1.75rem,4vw,3.5rem); backdrop-filter: blur(3px); }
/* stacked-minimal: 重ねずに「文字ブロック(明色面)＋下に写真帯」を縦積み。DOMは共通・order で並べ替え */
.hero--stacked { flex-direction: column; align-items: stretch; justify-content: flex-start;
  background: var(--color-bg); padding-top: clamp(2.5rem,5vw,4.5rem); }
.hero--stacked .hero-overlay { display: none; }
.hero--stacked .hero-content { order: 0; color: var(--color-text); max-width: 920px; width: 100%;
  margin: 0 auto; padding: 0 clamp(1.25rem,4vw,2.5rem) clamp(1.75rem,4vw,2.75rem); text-align: left; }
.hero--stacked .hero-bg { position: relative; inset: auto; order: 1; width: 100%; height: auto;
  flex: 1 1 auto; min-height: 38vh; border-radius: var(--radius); }
.hero--stacked .hero-eyebrow { color: var(--color-primary); }
.hero--stacked .hero-title { color: var(--color-primary); }
.hero--stacked .hero-subtitle { color: var(--color-text-muted); }
/* split-text-image: 文字(明色面)を左、写真を右に 50/50 で並べる */
.hero--split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--color-bg); }
.hero--split .hero-overlay { display: none; }
.hero--split .hero-content { order: 1; align-self: center; color: var(--color-text); max-width: none;
  margin: 0; padding: clamp(2rem,5vw,4.5rem) clamp(1.5rem,4vw,3.5rem); text-align: left; }
.hero--split .hero-bg { position: relative; inset: auto; order: 2; width: 100%; height: 100%; }
.hero--split .hero-eyebrow { color: var(--color-primary); }
.hero--split .hero-title { color: var(--color-primary); }
.hero--split .hero-subtitle { color: var(--color-text-muted); }
/* side-by-side-rounded: 文字＋角丸写真を左右に。余白広め・温かいブロック構図 */
.hero--side-rounded { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(1.5rem,4vw,3.5rem);
  align-items: center; background: var(--color-bg); padding: clamp(2rem,5vw,4.5rem) clamp(1.5rem,5vw,4rem); }
.hero--side-rounded .hero-overlay { display: none; }
.hero--side-rounded .hero-content { order: 1; color: var(--color-text); max-width: none; margin: 0; padding: 0; text-align: left; }
.hero--side-rounded .hero-bg { position: relative; inset: auto; order: 2; width: 100%; height: auto;
  aspect-ratio: 4/5; border-radius: calc(var(--radius-card) * 1.6); box-shadow: var(--shadow); }
.hero--side-rounded .hero-eyebrow { color: var(--color-accent); }
.hero--side-rounded .hero-title { color: var(--color-primary); }
.hero--side-rounded .hero-subtitle { color: var(--color-text-muted); }
@media (max-width: 720px) {
  .hero--split, .hero--side-rounded { grid-template-columns: 1fr; }
  .hero--split .hero-bg, .hero--side-rounded .hero-bg { min-height: 40vh; aspect-ratio: 16/10; }
}

/* カード */
/* minmax は 220px。ちょうど4枚は下の .cols-4 が repeat(4,1fr) で固定(container 1440px 化後も4列維持)。auto-fit は 4枚未満/可変枚数のグリッド向け。 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
/* ちょうど4枚のグリッドは確実に4列(タブレットで2列, モバイルで1列)。3+1崩れ防止。 */
@media (min-width: 901px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 641px) and (max-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--color-primary-light); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); }
/* No.10 ホバーアクションはリンク(=押せる箇所)にのみ付ける。<a> で内包された card のみ持ち上げる。 */
a:hover .card, a.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.14); }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1.05rem; font-weight: 600; color: var(--color-heading-ink); margin-bottom: 0.5rem; }
.card-text { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.7; }

/* 2カラムレイアウト */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* フォーム */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-text); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-primary-light); border-radius: var(--radius); font-size: 0.95rem; font-family: var(--font-body); background: #fff; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ページヒーロー（サブページ用） */
.page-hero { position: relative; height: 280px; display: flex; align-items: center; overflow: hidden; padding-top: 76px; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.62); }
.page-hero-content { position: relative; z-index: 1; color: #fff !important; text-align: center; width: 100%; padding: 1rem; }
.page-hero-content * { color: #fff !important; }
.page-hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
.page-hero-breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 0.5rem; }

/* CTA セクション */
.cta-section { position: relative; padding: 4rem 0; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.cta-content { position: relative; z-index: 1; color: #fff; }
.cta-content h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1rem; }
.cta-content p { margin-bottom: 1.75rem; font-size: 1.05rem; color: rgba(255,255,255,0.9); }

/* ── 背景画像/背景色の上のテキスト可読性 (透過・同化の防止) ── */
/* .over-image: hero/cta 以外の任意の「背景写真の上にテキスト」セクションに付ける汎用スクリム。
   親に付け、子(テキスト)は自動で前面(z-index)に出る。下を濃く=テキスト帯を読みやすく。 */
.over-image { position: relative; isolation: isolate; }
.over-image > * { position: relative; z-index: 1; }
.over-image::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.20) 100%);
}
/* 中央寄せ構図用の均一スクリム */
.over-image-center::before { background: rgba(0,0,0,0.50); }
/* No.11 文字の影は禁止(前時代的・視認性低下)。可読性は .hero-overlay/.over-image のスクリムで確保する。
   クラス名は verify-contract C5 が存在を要求するため温存(影は付与しない)。 */
.text-on-image { /* readability comes from overlay/scrim, not a drop shadow */ }
/* ブランド色でベタ塗りした面: 背景色とセットで自動可読な文字色になる。背景色と文字の同化を防ぐ */
.on-primary   { background: var(--color-primary);   color: var(--color-on-primary); }
.on-secondary { background: var(--color-secondary); color: var(--color-on-secondary); }
.on-accent    { background: var(--color-accent);    color: var(--color-on-accent); }
.on-primary :where(h1,h2,h3,h4,h5,h6,p,a,li,span,strong),
.on-secondary :where(h1,h2,h3,h4,h5,h6,p,a,li,span,strong),
.on-accent :where(h1,h2,h3,h4,h5,h6,p,a,li,span,strong) { color: inherit; }

/* アコーディオン（FAQ） */
.accordion { border: 1px solid var(--color-primary-light); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--color-primary-light); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn { width: 100%; text-align: left; padding: 1.1rem 1.25rem; background: none; border: none; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--color-text); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); }
.accordion-btn::after { content: '+'; font-size: 1.3rem; color: var(--color-heading-ink); transition: var(--transition); }
.accordion-btn.open::after { content: '−'; }
.accordion-body { display: none; padding: 1rem 1.25rem 1.25rem; color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.8; }

/* テーブル */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.price-table th { background: var(--color-heading-ink); color: #fff; padding: 0.75rem 1rem; text-align: left; font-family: var(--font-heading); }
.price-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-primary-light); }
/* No.10 料金表の行はリンクではないためホバー着色しない(押せると誤認させない)。 */
.price-table .price-cell { text-align: right; font-weight: 600; color: var(--color-heading-ink); }

/* ギャラリーグリッド */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
/* No.10 ギャラリー画像のズームは、リンク(ライトボックス等)で内包された時のみ。単なる表示画像には付けない。 */
a:hover .gallery-item img, a.gallery-item:hover img { transform: scale(1.05); }

/* ── 写真の並べ方バリエーション ── */
/* design-plan が weight に応じてセクション毎に割当。modifier クラスを足すだけで配置が変わる。 */
/* 非対称: 先頭を大きく(重み高いギャラリーの主役見せ) */
.gallery-grid.is-asym { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 1rem; }
.gallery-grid.is-asym > .gallery-item { grid-column: span 2; aspect-ratio: 4/3; }
.gallery-grid.is-asym > .gallery-item:first-child { grid-column: span 4; grid-row: span 2; aspect-ratio: 16/10; }
/* masonry: 高さバラバラ(写真の自然比を活かす) */
.gallery-grid.is-masonry { display: block; column-count: 3; column-gap: 1rem; grid-template-columns: none; }
.gallery-grid.is-masonry > .gallery-item { display: block; width: 100%; margin: 0 0 1rem; break-inside: avoid; aspect-ratio: auto; }
.gallery-grid.is-masonry > .gallery-item img { height: auto; }
/* 横スクロール1列(カルーセル風・大判を流す) */
.gallery-grid.is-rail { display: flex; overflow-x: auto; gap: 1rem; grid-template-columns: none; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.gallery-grid.is-rail > .gallery-item { flex: 0 0 min(80%, 420px); scroll-snap-align: start; aspect-ratio: 4/3; }
/* 全幅写真バンド(内容セクションを写真主役に。重み高いセクション向け) */
.media-band { position: relative; min-height: min(52vh, 540px); display: flex; align-items: center; overflow: hidden; }
.media-band > img, .media-band .media-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; z-index: 0; }
.media-band .media-band-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 70%); z-index: 1; }
/* 連続する写真帯の後段は .no-photo で背景写真/オーバーレイを外し素背景化(写真の連続=不自然を回避)。
   文字は白抜き前提なので、素背景では見出し=オンブランド濃色/本文=text へ可読化する。 */
.cta-section.no-photo .cta-bg, .cta-section.no-photo .cta-overlay,
.media-band.no-photo > img, .media-band.no-photo .media-band-bg, .media-band.no-photo .media-band-overlay { display: none; }
.cta-section.no-photo, .media-band.no-photo { background: var(--color-surface); min-height: 0; }
.cta-section.no-photo .cta-content, .media-band.no-photo .media-band-content { color: var(--color-text) !important; }
.cta-section.no-photo .cta-content h2, .media-band.no-photo .media-band-content h2,
.cta-section.no-photo .cta-content h3, .media-band.no-photo .media-band-content h3 { color: var(--color-heading-ink) !important; }
.cta-section.no-photo .cta-content p, .media-band.no-photo .media-band-content p { color: var(--color-text-muted) !important; }
.cta-section.no-photo .btn-outline, .media-band.no-photo .btn-outline { color: var(--color-heading-ink) !important; border-color: var(--color-heading-ink) !important; }
.media-band .media-band-content { position: relative; z-index: 2; color: #fff; max-width: 680px; padding: clamp(2rem,5vw,4rem); }
/* 交互メディア行: 子の .two-col を自動で左右反転(写真と文を互い違いに積む) */
.media-alt > .two-col { margin-bottom: clamp(2rem,5vw,4rem); }
.media-alt > .two-col:last-child { margin-bottom: 0; }
.media-alt > .two-col:nth-child(even) { direction: rtl; }
.media-alt > .two-col:nth-child(even) > * { direction: ltr; }
/* カード列数の明示指定(密度を weight で変える) */
@media (min-width: 901px) { .card-grid.cols-2 { grid-template-columns: repeat(2,1fr); } .card-grid.cols-3 { grid-template-columns: repeat(3,1fr); } }
/* 大判フィーチャー画像(重み最大セクションの主役写真) */
.feature-img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 16/9; }
.feature-img.tall { aspect-ratio: 3/4; }
@media (max-width: 720px) {
  .gallery-grid.is-asym { grid-template-columns: 1fr 1fr; }
  .gallery-grid.is-asym > .gallery-item, .gallery-grid.is-asym > .gallery-item:first-child { grid-column: span 1; grid-row: auto; aspect-ratio: 4/3; }
  .gallery-grid.is-masonry { column-count: 2; }
}

/* スタッフカード */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.staff-card { text-align: center; }
.staff-card img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; border: 4px solid var(--color-primary-light); }
.staff-card .staff-name { font-size: 1.05rem; font-weight: 700; color: var(--color-heading-ink); }
.staff-card .staff-role { font-size: 0.85rem; color: var(--color-text-muted); margin: 0.25rem 0 0.75rem; }
.staff-card .staff-msg { font-size: 0.9rem; line-height: 1.7; }

/* フェードイン */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* レスポンシブ */
/* ナビ折返し対策: 項目数に応じた幅でハンバーガーへ畳む(横並びがcontainerに収まらず2段化/はみ出すのを防ぐ) */
@media (max-width: 1200px) {
  .hamburger { display: flex; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #ffffff; background: var(--color-bg, #ffffff); padding: 1rem; border-top: 1px solid var(--color-primary-light); box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 99; max-height: calc(100vh - 76px); overflow-y: auto; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .site-nav a { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--color-primary-light); min-height: 44px; white-space: normal; }
  .site-nav .sm-langswitch { gap: 1rem; padding: 0.5rem 0; }
  .site-logo { max-width: 72%; }  /* 横並びナビ非表示時はロゴ枠を広げ無駄な省略を防ぐ */
}
@media (max-width: 768px) {
  /* ヒーロー */
  .hero { min-height: 50vh; }
  .hero-content { padding: 1.5rem; max-width: 100%; }
  /* No.5 スマホで h1(ヒーロー見出し)が大きすぎて折返し崩れするのを防ぐ明示サイズ */
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.25; }
  .page-hero-title { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.25; }

  /* セクション */
  .section { padding: 3.5rem 0; }  /* No.9 スマホでも過密にならない下限 */
  .container { padding: 0 1rem; }
  .section-title { margin-bottom: 1.5rem; }

  /* グリッド */
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .two-col.reverse { direction: ltr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: 1fr; }

  /* フッター */
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 2rem 0 1rem; }

  /* ページヒーロー */
  .page-hero { height: 180px; }

  /* ボタン: タッチターゲット確保 */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; }
}

/* ヘッダー上段右側: 電話番号 + 購入ボタン */
.header-top-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: 1.25rem;
}
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-heading-ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: none !important;
  opacity: 1 !important;
}
.header-tel:hover { opacity: 0.75 !important; }
.header-tel svg { flex-shrink: 0; color: var(--color-primary); }
.header-tel-num { letter-spacing: 0.04em; }
.header-buy-btn {
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
  white-space: nowrap;
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.header-buy-btn:hover {
  background: color-mix(in srgb, var(--color-accent) 80%, #000);
  border-color: color-mix(in srgb, var(--color-accent) 80%, #000);
  color: #fff;
}
@media (max-width: 1200px) {
  .header-top-right { margin-right: 0.75rem; }
  .header-tel-num { display: none; }
}
@media (max-width: 600px) {
  .header-top-right { gap: 0.75rem; margin-right: 0.5rem; }
  .header-buy-btn { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
}

/* ヘッダー2段レイアウト */
.site-header--two-row { height: auto; }
.site-header--two-row .site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-header--two-row .site-header__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-primary-light);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  height: auto;
}
.site-header--two-row .site-header__bottom .site-nav {
  display: block;
  position: static;
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
  max-height: none;
  overflow: visible;
}
.site-header--two-row .site-header__bottom .site-nav ul {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(0.75rem * var(--nav-scale, 1));
}
.site-header--two-row .site-header__bottom .site-nav a {
  display: inline-flex;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  min-height: auto;
  white-space: nowrap;
}
/* 2段ヘッダーのハンバーガー展開時はナビを上段直下に表示 */
@media (max-width: 1200px) {
  .site-header--two-row .site-header__bottom { display: none; }
  .site-header--two-row .site-header__bottom.open { display: flex; }
  .site-header--two-row .site-header__bottom .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-header--two-row .site-header__bottom .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-primary-light);
    min-height: 44px;
    white-space: normal;
  }
}
@media (max-width: 768px) {
  .site-header--two-row .site-header__bottom { display: none; }
  .site-header--two-row .site-header__bottom.open { display: flex; }
}

/* JS共通 */
