@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600;700&family=Noto+Sans+JP:wght@400;500;700&family=Oswald:wght@400;500;600;700&family=M+PLUS+Rounded+1c:wght@400;500;700;900&display=swap');

:root {
  /* 基本色は theme.json (sitemeister/theme@2) から theme-loader.js が実行時に上書きする。
     ここの値は theme.json 読込前の初期表示用デフォルト。管理画面で色を変えると
     theme.json が更新され、リロードで反映される (再ビルド不要)。 */
  --color-primary:       #1583B9;
  --color-secondary:     #6FC9EA;
  --color-accent:        #F2994A;
  --color-bg:            #F3FAFD;
  --color-text:          #15384A;
  /* 派生色は 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:    #ffffff;
  --color-on-secondary:  #111111;
  --color-on-accent:     #111111;
  /* 明背景(白セクション)に乗る見出し/下線/ロゴ/表ヘッダのインク色。primary が淡色でも読めるオンブランド濃色(輝度から自動決定)。 */
  --color-heading-ink:   #1677A8;
  /* ── タイポグラフィスケール(SSOT 2026-07-19 design.md No.35)。文字サイズ調整はここだけ触る ── */
  --fs-hero-xl: clamp(3.5rem, 5vw, 4.5rem);   /* MVキャッチ ≤14字 */
  --fs-hero-lg: clamp(3rem, 4.2vw, 3.75rem);  /* MVキャッチ ≤28字 */
  --fs-hero-md: clamp(2.5rem, 3.5vw, 3rem);   /* MVキャッチ 29字〜 */
  --fs-h2:      clamp(1.5rem, 4vw, 2.2rem);   /* セクション見出し */
  --fs-h3:      1.2rem;                        /* カード見出し */
  /* モジュール内の小見出し(繰り返し出てくる項目タイトル)。2026-07-24 ユーザー確定の
     2段階スケール: セクション見出し=--fs-h2 / モジュール小見出し=ここ / カード見出し=--fs-h3。
     ★clamp にしてあるのはモバイルで潰すため(!important で束縛するので部品側の
     メディアクエリが効かなくなる。固定27pxだとSPで大き過ぎる)。 */
  --fs-mod-title: clamp(1.25rem, 2.6vw, 1.6875rem);  /* 20px 〜 27px */
  --fs-lead:    1.08rem;                       /* リード文 */
  --fs-body:    1rem;                          /* 本文16px=デジタル庁デザインシステム準拠(2026-07-19) */
  --fs-small:   0.9375rem;                     /* 注記・キャプション(15px) */
  --lh-body:    1.7;
  /* フッター背景(白文字前提)。primary が淡色で primary-dark が明るくなる場合の色抜けを防ぐ暗色。 */
  --color-footer-bg:     #125f86;
  --font-heading: 'M PLUS Rounded 1c', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --radius: 18px;
  --radius-btn: 999px;
  --radius-card: 18px;
  --shadow: 0 10px 30px rgba(22, 70, 98, 0.10);
  --shadow-card: 0 8px 20px rgba(22, 70, 98, 0.12);
  --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: var(--fs-body); line-height: var(--lh-body); 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, .staff-card img { max-height: none; }
.gallery-item img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }  /* 写真は16:9統一(2026-07-18ユーザー確定) */
/* SEC-01: ギャラリーは余白なしで敷き詰める(レイアウトルール 2026-07-18) */
.gallery-grid { gap: 0; }
.gallery-grid .gallery-item { margin: 0; }
a { color: var(--color-heading-ink); text-decoration: none; transition: var(--transition); }

/* --- A11Y_FOCUS_BLOCK (2026-08-01) -----------------------------------------
   design.md の42ルールは全て目視指摘由来のため、キーボード操作の可視性が空白だった
   (実測: 生成 common.css に :focus-visible 0件 / スキップリンク 0件)。
   WCAG 2.4.7(フォーカスの可視化) / 2.4.1(ブロックスキップ) / 2.3.3(動きの抑制) を満たす。
   outline は currentColor: 文字色は No.1 で背景に対し 4.5:1 を保証済みなので、
   明背景・暗いヒーロー上のどちらでも自動的に見える色になる。 */
:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; border-radius: 2px; }
/* マウス操作では出さない(:focus-visible 非対応ブラウザだけ従来どおり) */
:focus:not(:focus-visible) { outline: none; }

/* 本文へスキップ: 通常は視覚的に隠し、Tab で入った時だけ左上に出す */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 0.6rem 1rem; background: var(--color-primary); color: var(--color-on-primary);
  font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 0; }

/* 動きを減らす設定の利用者には、アニメーションを止める。
   ただし .fade-in は opacity:0 から入るため、止めるだけだと本文が消える。明示的に見せる。 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}
/* --- /A11Y_FOCUS_BLOCK ---------------------------------------------------- */
a:hover { opacity: 0.8; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.3; }
/* ★class を持たない素の見出しにもタイポSSOTの既定を与える(2026-07-24)。
   これが無いと AI が書いた <h3> がブラウザ既定(1.17em=18.7px)に落ち、
   .card h3(--fs-h3=19.2px)と並んだときに1ページ内で見出しが割れる(実測7箇所)。
   hero/page-hero/モジュールは自前の指定が後で上書きするので影響しない。 */
main h2 { font-size: var(--fs-h2); }
main h3, main h4 { font-size: var(--fs-h3); }
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { padding: 5.5rem 0; }
/* No.4b/No.26 連続セクションの視覚分離: 交互の面色は ensure-layout-rules.js が bg-alt を明示付与
   (nth-of-type はモジュール(.lgx)混在とCTA移設で偶奇が崩れるため廃止)。 */
main > section.bg-alt { background: var(--color-surface) !important; }
.section-title { margin-bottom: 24px; font-size: var(--fs-h2); color: var(--color-heading-ink); margin-bottom: 2.5rem; text-align: center; }
.section-title::after { content: ''; display: block; width: 3rem; height: 3px; background: var(--color-heading-ink); margin: 0.75rem auto 0; border-radius: 2px; }
/* No.9 プローズの垂直リズム(詰まり過ぎ防止)。カード等コンポーネント内部は各自の padding に任せ、
   コンテナ直下の本文段落・リード文にのみ 24〜32px の間隔を与える。 */
.lead { font-size: var(--fs-lead); line-height: 1.9; margin-bottom: var(--space-md); color: var(--color-text); text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.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: 1rem 2.4rem; 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.08em; 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); }
/* No.1: 写真の上の枠線ボタン(電話/LINE等)は白文字+半透明背景で可読性を確保 */
.hero .btn-outline, .cta-section:not(.no-photo) .btn-outline, .media-band:not(.no-photo) .btn-outline { color: #fff; border-color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.14); }
.hero .btn-outline:hover, .cta-section:not(.no-photo) .btn-outline:hover, .media-band:not(.no-photo) .btn-outline:hover { background: #fff; color: var(--color-primary); border-color: #fff; }

/* ヘッダー */
.site-header { position: sticky; top: 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: 68px; }
/* ロゴ: 長い店舗名がヘッダー幅を食い潰してナビ全体をハンバーガーへ畳ませる事故を防ぐ。
   テキストロゴは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: 68px; 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 - 68px); 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%; }  /* ナビがハンバーガー収納時はロゴ枠を広げ無駄な省略を防ぐ */

/* フッター */
/* フッターは固定仕様: AIがページ内styleで background を明色上書きし白文字が沈む実害(2026-07-18)。!importantで保護 */
.site-footer { background: var(--color-footer-bg) !important; color: rgba(255,255,255,0.85) !important; padding: 3rem 0 1.5rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; 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-nav ul { list-style: none; }
.site-footer .footer-nav li { margin-bottom: 0.4rem; }
.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(78vh, 720px); /* 2026-07-18 ユーザー確定: 高さ固定(トークン可変62vh/620px上限を廃止・小さくしない) */ display: flex; align-items: center; overflow: hidden; }
/* Hero高さ固定(2026-07-19 ユーザー確定: A〜C全案で同一高さ)。PCは height 固定で案間の揺れを排除 */
@media (min-width: 901px) { .hero { height: min(78vh, 720px); } }
.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.7) 0%, rgba(0,0,0,0.55) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 780px; margin: 0 auto; padding: 2rem; text-align: center; }
.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(2.2rem, 6vw, 3.9rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
/* メインキャッチ文字サイズ段階(レイアウトルール 2026-07-18): 短文=56〜72px/2行=48〜60px/長文=40〜48px。
   ensure-hero-title-size.js が文字数で付与。これを超えるサイズは作らない。 */
.hero-title--xl { font-size: var(--fs-hero-xl) !important; }
.hero-title--lg { font-size: var(--fs-hero-lg) !important; }
.hero-title--md { font-size: var(--fs-hero-md) !important; }
.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 全面 + 重ね文字)がそのまま該当。明示クラスは中央寄せの保険のみ。 */
/* MV-01/02 (2026-07-18 レイアウトルール): 写真1枚(全面)のMVはキャッチ【中央配置】。端寄せは2カラム分割型のみ。 */
.hero--full-bleed .hero-content { background: transparent; margin: 0 auto; text-align: center; }
.hero--full-bleed .hero-actions { justify-content: center; }
/* overlay-bottom: テキストを下部に置き下からのスクリムで可読化(オーバーレイ安全・案の多様化用) */
.hero--overlay-bottom { align-items: flex-end; }
.hero--overlay-bottom .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.08) 100%); }
.hero--overlay-bottom .hero-content { max-width: 760px; padding-bottom: 3rem; margin: 0; }
/* 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: 1rem; }
/* ちょうど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: none; 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: 16/9; object-fit: cover; }
/* No.42: .card 内の class 無し画像は 16:9 cover に揃える(素材比の違いで同一行のカード画像の高さが
   割れ、キャプション位置ズレ・枠外へのはみ出しになるため)。max-height:none は No.8 の 800px 上限を外す。 */
.card img:not([class]) { width: 100%; aspect-ratio: 16/9; object-fit: cover; max-height: none; }
/* No.42-2: class 無し img は【高さが決まっている器】に収める(器を突き抜けて後続テキストに重なる事故の防止)。
   器が auto 高さなら height:100% は auto に解決されるので従来挙動のまま(No.8 の 800px 上限も維持)。 */
main img:not([class]) { height: 100%; object-fit: cover; }
/* 写真/地図だけのカラムはセクション高さに対して縦中央(2026-07-19 ユーザー確定。
   テキスト列は従来どおり上寄せのまま、片側だけ短い写真・地図が浮かないよう中央へ) */
.two-col > div:has(> img:first-child:last-child) { align-self: center; }
.two-col > div:has(> .map-embed:first-child:last-child) { align-self: center; }
/* アクセス系セクションの地図埋め込み(No.31): 写真枠と同寸で収める */
.map-embed { width: 100%; }
.map-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; display: block; border: 0; border-radius: var(--radius-card); }
/* 写真カードの1列スライド形式(2026-07-19): ギャラリー同居ページで写真過多になるため
   ensure-layout-rules.js が .card-grid に is-slide を付与しスライド化する */
.card-slider-wrap { position: relative; }
.card-grid.is-slide { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 0.5rem; scrollbar-width: thin; }
.card-grid.is-slide > .card { flex: 0 0 clamp(260px, 31%, 360px); scroll-snap-align: start; }
.card-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--color-heading-ink); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: 0.85; }
.card-slider-btn:hover { opacity: 1; }
.card-slider-btn.prev { left: -10px; }
.card-slider-btn.next { right: -10px; }
@media (max-width: 900px) { .card-slider-btn { display: none; } }
.card-body { padding: 1.25rem; }
.card-title { font-size: var(--fs-h3); 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: 文が短く写真が縦長のとき縦中央だと文が浮いて空白過多になるため上寄せ+画像は横長寄りにして縦バランスを整える。 */
/* セクション背景の交互リズム: bg-alt 明示付与方式(No.26)。付与は ensure-layout-rules.js。 */
/* 写真:文字=5:7 (2026-07-17 ユーザー指摘: 50/50は写真と文字が均等で見にくい) */
.two-col { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 3rem; align-items: start; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 16/9; max-height: 460px; }

/* フォーム */
.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; }
.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.5); }
.page-hero-content { position: relative; z-index: 1; color: #fff; text-align: center; width: 100%; padding: 1rem; }
.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: var(--fs-lead); 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) !important; color: #fff !important; padding: 0.75rem 1rem; text-align: left; font-family: var(--font-heading); } /* AIの上書きで文字=背景同色化する事故防止(2026-07-19)。ペアで確定 */
.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; max-height: 560px; object-fit: cover; }
/* 横スクロール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; }
/* 全幅写真バンド(内容セクションを写真主役に。重み高いセクション向け) */
/* 写真表示の上限=モジュール相当 (2026-07-17 ユーザー指示: 全幅大判の大画面表示は不要)。design.md No.17 */
.media-band { position: relative; min-height: min(36vh, 400px); max-height: 460px; 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; }
/* 右側が薄いグラデだと右カラムの文字が沈む(実測「3つの軸」)。全面を均一に暗く。 */
.media-band .media-band-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.52); z-index: 1; }
/* 連続する写真帯の後段は .no-photo で背景写真/オーバーレイを外し素背景化(写真の連続=不自然を回避)。
   文字は白抜き前提なので、素背景では見出し=オンブランド濃色/本文=text へ可読化する。
   ★色は !important 必須: AIが中身に style="color:#fff" を書くことがあり(発生率≈1.6%実測)、
   インライン白がこの可読化ルールに勝つと素背景×白文字=完全不可視になるため。 */
.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; padding: 5.5rem 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,
.cta-section.no-photo .cta-content h4, .media-band.no-photo .media-band-content h4 { 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; }
/* 生成時の構造保証 (2026-07-17 ユーザー方針: 修復でなく最初から正しく):
   ①本文フォントの下限=0.95rem(極小文字の禁止を物理化) ②本文中のテキストリンクは下線で識別
   (「詳しく見る」がテキストと同化する実測指摘への決定論対策) */
/* 本文floor。見出しクラス(card-title/section-title等)のpは対象外(floorが見出しに勝って17px化する事故 2026-07-19) */
.section p:not(.card-title):not(.section-title):not([class*="title"]), .section li, .section dd { font-size: max(0.95rem, 1em); }
.section p a:not(.btn), .section li a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
/* 固定バー系部品の平置き防止 (2026-07-17): 部品CSSが読めなかった場合、素のリンク/アイコンが
   フッター下に平置きされる実害。既定は非表示にし、部品CSS(sticky-cta.css等)が display を
   上書きした時だけ表示する=未スタイル時は「出ない」が正。 */
.sticky-cta, .footer_fixed_content { display: none; }
/* .no-photo × .over-image の同居(矛盾クラス)対策: 素背景化したら汎用スクリム(::before)も必ず消す。
   残すと「写真なし+黒グラデだけの灰色帯×白文字」になり文字が透ける(2026-07-17 実測)。 */
.cta-section.no-photo::before, .media-band.no-photo::before { display: none !important; }
/* CTAの装飾線禁止(2026-07-19 ユーザー指摘: secondary系1px線がピンク線として浮く)。区切りは交互背景(bg-alt)が担う */
.cta-section { border-top: none !important; border-bottom: none !important; }
/* フッター下余白の根絶(2026-07-19): sticky-ctaバーはフッター表示中に自動退避するため、
   AIが書くbodyのpadding-bottom逃しは不要どころか白帯として残る。0で固定 */
body { padding-bottom: 0 !important; }
/* 写真+overlay型ヒーローの文字はAIのテーマ色上書きに関わらず白系を保証する(暗写真×濃色文字の沈み対策)。
   .hero-overlay が存在する(=写真前提の)ヒーローだけに効かせる(hero-split等の素背景型は対象外)。 */
.hero .hero-overlay ~ .hero-content,
.hero .hero-overlay ~ .hero-content .hero-title,
.hero .hero-overlay ~ .hero-content .hero-eyebrow { color: #fff !important; }
.hero .hero-overlay ~ .hero-content .hero-subtitle { color: rgba(255,255,255,0.92) !important; }
/* widget(Shadow DOM)のテーマ適合 (2026-07-17): loader.js 内の色変数は @layer theme の :root,:host 定義。
   外側からホスト要素([data-sm-widget])に同名変数を直接当てるとレイヤー/:host より必ず優先されるため、
   問い合わせフォームの送信ボタン等がテーマ色になる(既定は Tailwind 青 #3c83f6 のままで浮く)。
   同名の自己参照を避けるため :root で別名に退避してから渡す。 */
:root { --sm-page-primary: var(--color-primary); --sm-page-on-primary: var(--color-on-primary, #fff);
        --sm-page-text: var(--color-text); --sm-page-muted: var(--color-text-muted);
        --sm-page-border: var(--color-primary-light, rgba(0,0,0,.2)); }
[data-sm-widget] { --color-primary: var(--sm-page-primary); --color-primary-foreground: var(--sm-page-on-primary);
  /* ラベル/見出し色も写像: 既定 --color-foreground は濃紺固定で、暗背景テーマだと沈んで不可視になる(2026-07-17実測) */
  --color-foreground: var(--sm-page-text); --color-muted-foreground: var(--sm-page-muted);
  /* ★Tailwind の .border は border-style:var(--tw-border-style) 依存。Shadow DOM 内で未定義だと
     style:none → border-width が 0px に潰れ、白い入力欄が明るい背景に溶ける(実測: 鈴木事務所サイトで
     入力枠が不可視)。host に solid を与えると 1px solid が復活する(ライブ実証済)。 */
  --tw-border-style: solid; --color-border: var(--sm-page-border); }
.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%; max-height: 460px; 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: var(--fs-h3); 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: 68px; 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 - 68px); 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; }
}

/* JS共通 */

/* =======================================================================
   smfix — 株式会社ダブルアール B案 全体調整 (2026-08-27)
   明るいブルー系への刷新／生成テンプレート由来の余白不足・折り返し未指定の是正。
   上流の common.css 本体には手を入れず、この末尾ブロックだけで上書きする。
   ======================================================================= */

/* --- 1. theme-loader が写像しない派生トークン (P029) と smfix 用トークン --- */
:root{
  --color-heading-ink: #12719F;   /* 白地に乗る見出し/下線のインク色 (primary より一段濃く) */
  --color-footer-bg:   #0D5478;   /* フッター地色 (白文字前提) */

  --smfix-sky:      #6FC9EA;      /* 明るい水色。装飾の主役 */
  --smfix-sky-soft: #E7F5FC;      /* 面で敷く極淡の水色 */
  --smfix-line:     #D5E9F3;      /* 罫線 */
  --smfix-grad:      linear-gradient(135deg, #1583B9 0%, #23A0D6 100%);
  --smfix-grad-soft: linear-gradient(135deg, #EAF6FC 0%, #F8FCFE 100%);
}

/* --- 2. 日本語の折り返しをフレーズ単位に (生成CSSは指定ゼロ: P008 / P179) --- */
.hero-title, .page-hero-title, .section-title, .card-title, .hero-subtitle, .hero-eyebrow,
main h1, main h2, main h3, main h4, main h5,
main p, main li, main dt, main dd, main th, main td, main figcaption,
.btn, .accordion-btn, .site-footer p{
  word-break: auto-phrase;
  overflow-wrap: break-word;
  line-break: strict;
}
main a[href^="tel:"], .smfix-tel{ white-space: nowrap; }

/* --- 3. 垂直リズムの底上げ (要素間が詰まりがち: P008 / P023) --- */
.section{ padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section > .container > p{ margin-block: 0 var(--space-md); }
.section > .container > p:last-child{ margin-bottom: 0; }
.card-grid{ gap: clamp(1.25rem, 2.4vw, 2rem); margin-top: var(--space-md); }
.two-col{ gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.gallery-grid{ gap: clamp(1rem, 2vw, 1.5rem); margin-top: var(--space-md); }
.table-scroll{ margin-top: var(--space-md); }
/* 「本文 → ボタン」でボタンが本文に貼りつくのを防ぐ */
.section .container > p:has(> .btn){ margin-top: var(--space-lg); }
.section .container > p > .btn + .btn{ margin-left: .55rem; }

/* --- 4. セクション見出しの下線を2色グラデにして軽やかに --- */
.section-title::after{
  width: 4rem; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--smfix-sky) 100%);
}

/* --- 5. ボタン: グラデで「明るいブルー」を出しつつ白文字の可読性を保つ --- */
.btn{
  background: var(--smfix-grad);
  border-color: transparent;
  padding: .95rem 2.2rem;
  box-shadow: 0 6px 16px rgba(21,131,185,.26);
}
.btn:hover{ filter: brightness(1.07); box-shadow: 0 10px 22px rgba(21,131,185,.32); }
.btn-outline{
  background: transparent; border-color: var(--color-primary);
  color: var(--color-primary); box-shadow: none;
}
.btn-outline:hover{ background: var(--color-primary); color: #fff; filter:none; }

/* --- 6. カード: 白面＋淡い水色の縁。裸置きカードの内側余白ゼロを埋める (P018) --- */
.card{ border: 1px solid var(--smfix-line); box-shadow: 0 6px 18px rgba(21,131,185,.08); }
.card:hover{ transform: translateY(-4px); box-shadow: 0 14px 32px rgba(21,131,185,.16); }
.card > h3, .card > p, .card > ul, .card > ol{ padding-inline: clamp(1.1rem, 2vw, 1.45rem); }
.card > h3{ margin: 1.15rem 0 .5rem; color: var(--color-heading-ink); font-size: var(--fs-h3); }
.card > p{ margin-bottom: 1.05rem; line-height: 1.75; }
.card > p:last-child{ margin-bottom: 1.35rem; }
.card > img{ margin-bottom: 0; }
.card > img + h3{ margin-top: 1.25rem; }
/* カードに画像が無い(流れ・FAQ等)ときは上側にも余白を足す */
.card > h3:first-child{ margin-top: 1.35rem; }

/* 3:4 の縦切り抜きは横位置の施工写真を大きく削るため 4:3 に寄せる (P097 / P155) */
.feature-img{ aspect-ratio: 16/9; max-height: none; }
.feature-img.tall{ aspect-ratio: 4/3; max-height: none; }

/* --- 7. 交互背景をごく淡い水色に (!important 指定を上書き) --- */
main > section.bg-alt{ background: var(--smfix-sky-soft) !important; }

/* --- 8. 下層ヒーロー: 固定高で中身が切れるのを解消し、暗幕を青寄りに (P096) --- */
.page-hero{ height: auto; min-height: clamp(200px, 26vw, 300px); }
.page-hero-overlay{
  background: linear-gradient(100deg, rgba(9,68,100,.74) 0%, rgba(21,131,185,.55) 100%);
}
.page-hero-content{ padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.page-hero-title{ text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.smfix-page-lead{
  max-width: 44rem; margin: .9rem auto 0; color: rgba(255,255,255,.94);
  font-size: var(--fs-lead); line-height: 1.85; text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* --- 9. TOPヒーロー --- */
.hero--centered-overlay .hero-overlay{
  background: linear-gradient(180deg, rgba(8,60,88,.5) 0%, rgba(12,88,126,.6) 100%);
}
.hero-eyebrow{
  display:inline-block; background: rgba(255,255,255,.94); color: var(--color-heading-ink);
  font-weight:700; letter-spacing:.08em; text-transform:none;
  padding:.45em 1.25em; border-radius:999px; margin-bottom: 1.1rem;
}
.hero-title{ text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.hero-subtitle{ text-shadow: 0 2px 10px rgba(0,0,0,.35); }

/* --- 10. FAQ / 料金表 --- */
.accordion-item{ border-color: var(--smfix-line); }
.accordion-btn{ font-weight: 700; color: var(--color-heading-ink); }
.price-table th{ background: var(--color-heading-ink); color:#fff; }
.price-table td, .price-table th{ border-color: var(--smfix-line); }

/* ======================= 追加コンポーネント (smfix-*) ======================= */

/* 11-1. 「リフォームの流れ」への導線。各ページの流れセクションを外した跡に置く */
.smfix-flowlink{
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center;
  gap: clamp(.9rem, 2vw, 1.6rem);
  background: var(--smfix-grad-soft);
  border: 1px solid var(--smfix-line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  margin-top: var(--space-lg);
}
.smfix-flowlink-icon{
  width: 52px; height: 52px; border-radius: 50%; background: var(--smfix-grad);
  color:#fff; display:grid; place-items:center;
  font-family: var(--font-heading); font-size: 1.25rem; font-weight:700;
}
.smfix-flowlink-title{
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
  color: var(--color-heading-ink); margin: 0 0 .25rem;
}
.smfix-flowlink-note{ margin: 0 !important; font-size: var(--fs-small); color: var(--color-text-muted); }
.smfix-flowlink .btn{ white-space: nowrap; }
@media (max-width: 720px){
  .smfix-flowlink{ grid-template-columns: auto minmax(0,1fr); text-align:left; }
  .smfix-flowlink .btn{ grid-column: 1 / -1; text-align:center; }
}

/* 11-2. チェックリスト（対応内容の列挙） */
.smfix-check{ list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; gap: .75rem; }
.smfix-check.cols-2{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.smfix-check > li{ position: relative; padding-left: 2.1rem; line-height: 1.75; }
.smfix-check > li::before{
  content: "✓"; position: absolute; left: 0; top: .2em;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--smfix-grad); color: #fff;
  font-size: .78rem; font-weight: 700; line-height: 1.4rem; text-align: center;
}
.smfix-check > li b{ color: var(--color-heading-ink); }

/* 11-3. 注記ボックス */
.smfix-note{
  margin-top: var(--space-md);
  background: var(--smfix-sky-soft); border-left: 4px solid var(--smfix-sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1rem, 2.4vw, 1.35rem) clamp(1.1rem, 2.6vw, 1.55rem);
  font-size: var(--fs-small); line-height: 1.8;
}
.smfix-note p{ margin: 0 !important; }
.smfix-note p + p{ margin-top: .5rem !important; }

/* 11-4. 対応メニュー（総合住宅リフォームの一覧） */
.smfix-menu{
  list-style:none; padding:0; margin: var(--space-md) 0 0;
  display:grid; gap: clamp(.8rem, 1.8vw, 1.1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.smfix-menu > li{
  background:#fff; border:1px solid var(--smfix-line); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; line-height:1.7;
}
.smfix-menu > li b{
  display:block; color: var(--color-heading-ink); font-family: var(--font-heading);
  font-size: 1.05rem; margin-bottom: .35rem;
}
.smfix-menu > li span{ font-size: var(--fs-small); color: var(--color-text-muted); }

/* 11-5. 定義リスト（工期の目安・会社情報など） */
.smfix-spec{ margin: var(--space-md) 0 0; border-top:1px solid var(--smfix-line);
  background:#fff; border-radius: var(--radius); overflow:hidden; }
.smfix-spec > div{
  display:grid; grid-template-columns: minmax(8rem, 14rem) minmax(0,1fr);
  border-bottom:1px solid var(--smfix-line);
}
.smfix-spec dt{
  background: var(--smfix-sky-soft); color: var(--color-heading-ink); font-weight:700;
  padding: .95rem 1.1rem; margin:0;
}
.smfix-spec dd{ padding: .95rem 1.1rem; margin:0; }
@media (max-width: 600px){
  .smfix-spec > div{ grid-template-columns: 1fr; }
  .smfix-spec dd{ padding-top: .55rem; }
}

/* 11-6. スタッフ紹介（撮影前のプレースホルダ運用） */
.staff-grid{ margin-top: var(--space-md); }
.staff-card{
  background:#fff; border:1px solid var(--smfix-line); border-radius: var(--radius-card);
  overflow:hidden; padding-bottom: 1.4rem;
}
.staff-card img{ /* テンプレ既定は 180px の丸アバター(border-radius:50%)。顔写真を大きく見せたいので
     カード幅いっぱいの縦位置写真に置き換える(丸め・枠・中央寄せマージンを解除) */
  width:100%; height:auto; aspect-ratio: 3/4; max-height: 400px; object-fit: cover;
  border-radius: 0; border: none; margin: 0; display: block; }
.staff-card .staff-name{ margin: 1.15rem 0 .15rem; font-size:1.15rem; color: var(--color-heading-ink); }
.staff-card .staff-role{ margin: 0 0 .7rem; font-size: var(--fs-small); color: var(--color-text-muted); }
.staff-card .staff-msg{ margin: 0; padding-inline: 1.3rem; text-align:left; line-height:1.8; }
.smfix-photo-pending{
  display:inline-block; margin: .1rem 0 .85rem; padding: .3em 1em;
  border-radius:999px; background: var(--smfix-sky-soft); color: var(--color-heading-ink);
  font-size: .8125rem; font-weight:700; letter-spacing:.02em;
}

/* 11-7. 説明パネル（協力会社ネットワーク等） */
.smfix-panel{
  background: var(--smfix-grad-soft); border:1px solid var(--smfix-line);
  border-radius: var(--radius); padding: clamp(1.4rem, 3.2vw, 2.2rem);
  margin-top: var(--space-md);
}
.smfix-panel > :first-child{ margin-top:0 !important; }
.smfix-panel > :last-child{ margin-bottom:0 !important; }
.smfix-panel h3{ color: var(--color-heading-ink); margin-bottom:.6rem; }

/* 11-8. 施工事例の Before / After 並び */
.smfix-ba{
  display:grid; gap: clamp(.9rem, 2vw, 1.3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: var(--space-md);
}
.smfix-ba figure{ margin:0; }
.smfix-ba img{ width:100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.smfix-ba figcaption{ margin-top:.6rem; font-size: var(--fs-small); line-height:1.75; }
.smfix-ba-tag{
  display:inline-block; margin-right:.5rem; padding:.15em .85em; border-radius:999px;
  background: var(--color-heading-ink); color:#fff; font-weight:700; font-size:.75rem;
  vertical-align: .05em;
}
.smfix-ba-tag.is-after{ background: var(--color-accent); color:#1b1b1b; }

/* 11-9. 事例カード（施工事例ページ） */
.smfix-case{ margin-top: var(--space-md); display:grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.smfix-case > article{
  background:#fff; border:1px solid var(--smfix-line); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.9rem);
}
.smfix-case > article > h3{
  margin: 0 0 .35rem; color: var(--color-heading-ink); font-size: 1.2rem;
}
.smfix-case .smfix-case-meta{
  margin: 0 0 .9rem !important; font-size: var(--fs-small); color: var(--color-text-muted);
}

/* --- 12. SP 調整 --- */
@media (max-width: 768px){
  .section{ padding-block: clamp(2.5rem, 9vw, 3.5rem); }
  .card-grid{ grid-template-columns: 1fr; }
  .smfix-check.cols-2{ grid-template-columns: 1fr; }
  .btn{ padding: .9rem 1.7rem; }
  .section .container > p > .btn{ display:block; text-align:center; }
  .section .container > p > .btn + .btn{ margin-left:0; margin-top:.7rem; }
}

/* --- 13. 実レンダリング確認で見つかった崩れの是正 (2026-08-27) --- */
/* common.css の `main img:not([class]) { height:100% }` が、クラス無しの <img> を
   カードの全高まで広げてしまい、overflow:hidden の .card から見出し・本文が
   押し出されて消える(施工事例のカード / スタッフ紹介で実測)。 */
/* height:100% は「親の高さが決まっている」前提のルールだが、実際にはカード / figure /
   グリッドアイテムの高さを画像が乗っ取り、見出し・本文・キャプションを押し出す。
   高さは各コンポーネント側の aspect-ratio に任せる(P196) */
main img:not([class]){ height: auto; }


/* 写真つき CTA / media-band: 暗幕が薄く白見出しとリンクが沈む (P037 / P079 / P095) */
.cta-section:not(.no-photo) .cta-overlay{
  background: linear-gradient(180deg, rgba(8,58,84,.74) 0%, rgba(9,72,104,.82) 100%);
}
.cta-section:not(.no-photo) .cta-content,
.cta-section:not(.no-photo) > .container{ position: relative; z-index: 2; }
.cta-section:not(.no-photo) a:not(.btn),
.media-band:not(.no-photo) a:not(.btn){
  color: #fff; text-decoration: underline; text-underline-offset: .2em;
}
.media-band .media-band-overlay{
  background: linear-gradient(100deg, rgba(8,58,84,.84) 0%, rgba(10,74,106,.40) 100%);
}

/* 下層ヒーローのリード文が明るい写真に負けないよう暗幕を濃くする */
.page-hero-overlay{
  background: linear-gradient(100deg, rgba(8,60,90,.80) 0%, rgba(20,124,176,.58) 100%);
}

/* SP: 2列だけの一覧表(会社情報など)は min-width:480px を外して横スクロールを不要にする (P053) */
@media (max-width: 600px){
  .price-table:not(:has(tr > *:nth-child(3))){ min-width: 0; }
  .price-table th{ white-space: nowrap; }
  .price-table th, .price-table td{ padding-inline: .75rem; }
}

/* ヒーローのアイブロウを白ピルにしたので、テンプレの `color:#fff !important` を打ち消す
   (白ピル×白文字で読めなくなる。SP実測) */
.hero .hero-overlay ~ .hero-content .hero-eyebrow{ color: var(--color-heading-ink) !important; }

/* TOPヒーローの中央パネルはテンプレ既定が黒茶(rgba(18,16,14,.42))で、
   明るいブルー基調から浮くのでブランド色寄りの半透明ネイビーに差し替える */
.hero--centered-overlay .hero-content{
  background: linear-gradient(165deg, rgba(8,58,88,.58) 0%, rgba(12,92,132,.52) 100%);
  border-color: rgba(255,255,255,.26);
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 50px rgba(6,42,64,.28);
}

/* --- 14. 支給ロゴ(RR+ renovation)をヘッダーに組み込む (2026-08-27) --- */
/* common.js のナビ収納判定は「ロゴは省略で 88px まで縮む」前提(LOGO_MIN)だが、
   .site-logo:has(.site-logo-img) が max-width を外すためロゴ枠は縮まない。
   結果、ナビ10項目とロゴ+屋号が重なる(1280px 実測)。横並びナビのときは
   屋号テキストを畳み、余裕のある 1400px 以上でだけ併記する。 */
.site-logo{ display: inline-flex; align-items: center; gap: .55rem; line-height: 1; }
.site-logo-img{ height: 42px; width: auto; display: block; flex: none; }
.site-logo-text{
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
  color: var(--color-heading-ink); white-space: nowrap;
}
/* 横並びナビが出る 1201〜1399px だけ屋号を畳む(1200px 以下はハンバーガーで余裕がある) */
@media (min-width: 1201px) and (max-width: 1399px){
  .site-logo-text{ display: none; }
}
@media (max-width: 1200px){
  .site-logo-img{ height: 36px; }
}
@media (max-width: 480px){
  .site-header.nav-collapsed .site-logo-img{ height: 32px; }
  .site-logo-text{ font-size: .95rem; }
}

/* 加盟・登録の証書写真は文字を読ませる画像なので、切らずに全体を見せる (P041) */
.smfix-member img{
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain;
  background: #fff; border: 1px solid var(--smfix-line); border-radius: var(--radius);
}
.smfix-member{ margin-top: var(--space-md); }

/* Before/After の帯と、その後ろに続く見出し・注記の間隔 */
.smfix-ba + h3, .smfix-ba + .smfix-note, .smfix-ba + .smfix-flowlink{ margin-top: var(--space-lg); }
.smfix-ba figcaption{ display: block; }
.smfix-ba-tag{ margin-bottom: .25rem; }

/* --- 15. ギャラリーの素の <figure> にアスペクト比が無く、段の高さが揃わない (2026-08-27) --- */
/* .gallery-item は「4:3の枠 + 中身を cover」で組まれているが、キャプション付きの
   素の <figure><img><figcaption> にはその指定が無い。素材の縦横比(1408x768 と 1280x896)が
   混在すると1行の中で高さがばらつくので、画像側に 4:3 を与えてサイトの作法に揃える。 */
.gallery-grid > figure{ margin: 0; }
.gallery-grid > figure > img{
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); display: block;
}
.gallery-grid > figure > figcaption{
  margin-top: .6rem; font-size: var(--fs-small); line-height: 1.7;
  color: var(--color-text-muted);
}
.smfix-imgnote{
  margin-top: 1rem !important; font-size: var(--fs-small); line-height: 1.7;
  color: var(--color-text-muted);
}

/* sm-widget-theme-bridge:start (auto-generated — 手で編集しないでください) */
:root {
  --sm-widget-primary: var(--color-primary, #3c83f6);
  --sm-widget-ink: var(--color-text, #0f1729);
  --sm-widget-font: var(--font-body, sans-serif);
}
[data-sm-widget="news"],
[data-sm-widget="column"],
[data-sm-widget="contact"] {
  --color-primary: var(--sm-widget-primary);
  --color-foreground: var(--sm-widget-ink);
  --color-muted-foreground: color-mix(in srgb, var(--sm-widget-ink) 62%, transparent);
  --color-border: color-mix(in srgb, var(--sm-widget-ink) 14%, transparent);
  font-family: var(--sm-widget-font);
}
/* sm-widget-theme-bridge:end */
