/*
Theme Name: Konon Acoustic
Theme URI: https://konon-acoustic.jp/
Author: infinityworks
Author URI: https://infinityworks.jp/
Description: KONON ACOUSTIC 専用オリジナルテーマ。既存の静的サイトのデザインをそのまま移植し、本文はブロックエディタで編集可能。
Version: 1.2
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: konon-acoustic
*/

/* =====================================================
   Konon Acoustic — style.css
   全ページ共通スタイルシート

   【タイポグラフィ・余白の設計方針(シニア世代向け / W3C WCAG 2.2準拠)】
   - 文字サイズは相対単位rem。16px基準で必ず整数pxになる値だけを使う
     (WCAG 1.4.4: ブラウザの文字サイズ設定・200%拡大に追従するため)
   - 行間は単位なしの比率(WCAG 1.4.12: 1.5以上)。本文は2.0
   - 段落の間隔は文字サイズの2倍(WCAG 1.4.12)。本文18px → 36px
   - 1行の文字数は日本語で40字程度まで(WCAG 1.4.8)。本文幅 720px = 18px × 40字
   - 余白(margin / padding / gap)は4pxの倍数の整数px
   - 本文より見出しを十分大きくし、大小の差(めりはり)を付ける
   ===================================================== */

/* ── FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ── VARIABLES & RESET ─────────────────────────────── */
:root {
  --navy-deep: #0d1f40;
  --navy:      #1a3f7a;
  --navy-mid:  #1a2744;
  --blue:      #2a5faa;
  --text:      #1a2744;
  --muted:     #5e728f;
  --border:    #d4dcea;
  --bg:        #ffffff;
  --bg-light:  #f4f7fb;
  --green:     #1a7a40;
  --orange:    #c85a0a;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', Georgia, serif;
  --sans:  'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(26,39,90,0.10);

  /* 文字サイズ(rem。コメントは既定16px時のpx値) */
  --fs-label:      0.875rem;  /* 14px 補助ラベル・タグ・日付・パンくず */
  --fs-ui:         1rem;      /* 16px カード内の説明文・リスト・ボタン・フォーム */
  --fs-body:       1.125rem;  /* 18px 本文 */
  --fs-h4:         1.25rem;   /* 20px カード・ブロックの見出し */
  --fs-h3:         1.5rem;    /* 24px 記事内の小見出し */
  --fs-h2-article: 1.875rem;  /* 30px 記事内の大見出し */
  --fs-h2:         2.25rem;   /* 36px セクション見出し */
  --fs-h1:         2.75rem;   /* 44px ページタイトル */
  --fs-hero:       3.25rem;   /* 52px トップのキャッチコピー */

  /* 行間(単位なし。上記サイズで必ず整数pxになる比率) */
  --lh-body:    2;     /* 18px → 36px */
  --lh-ui:      1.75;  /* 16px → 28px */
  --lh-label:   1.5;   /* 14px → 21px */
  --lh-heading: 1.5;

  /* ページの幅は2段階だけ。大手サイトの主流(1100〜1340px)の下限と、W3C WCAG 1.4.8(日本語は1行40字)に合わせた */
  --w-wide: 1120px;  /* ワイド: セクション・カード一覧・フッター・ブログ一覧・フォーム */
  --w-read: 720px;   /* 読み物: 記事本文(18px × 40字) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: var(--lh-body); font-size: var(--fs-body); }
/* 日本語の折り返しルール:
   1) 語・文節の途中で折り返さない(word-break: auto-phrase。対応外のブラウザは js/phrase-wrap.js が補う)
   2) 行頭に句読点・閉じ括弧・小さい「ゃゅょっ」が来ない(line-break: strict) */
body { word-break: auto-phrase; line-break: strict; overflow-wrap: break-word; }
.phrase-wrapped { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: var(--lh-heading); text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: var(--fs-ui); line-height: var(--lh-ui); }
sub, sup { font-size: var(--fs-label); line-height: 0; }

/* Gutenbergのグループブロックは常に .wp-block-group__inner-container という
   中間divを自動挿入する。この階層を透過させ、既存デザインのCSS（例:
   .philosophy-grid や .room-specs の display:grid）が、ブロックエディタ経由の
   固定ページでも静的HTMLと同じ見た目になるようにする。 */
.wp-block-group__inner-container { display: contents; }

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 32px;
  border-radius: 4px; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 700;
  font-family: var(--sans); cursor: pointer; transition: all .2s;
  letter-spacing: 1px; border: 2px solid transparent;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ── NAVIGATION ────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 68px;
  background: rgba(13,31,64,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-logo { font-family: var(--serif); font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; color: #fff; letter-spacing: 2px; }
.nav-logo span { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 400; opacity: .7; display: block; letter-spacing: 1px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.8); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links .active a { color: #fff; }
.nav-links .nav-cta a { background: var(--navy); color: #fff; padding: 4px 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,.25); }
.nav-links .nav-cta a:hover { background: var(--blue); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 101; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HERO (subpages) ──────────────────────────── */
.page-hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, #1a3a6b 100%);
  padding: 96px 48px; text-align: center; position: relative; overflow: hidden;
  min-height: 416px;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--bg); clip-path: ellipse(55% 100% at 50% 100%);
}
/* eyebrow(英語ラベル)とh1(見出し)は、常にページの縦方向中央を基準に固定位置へ配置する。
   説明文(page-hero-sub)が1行/2行で変わっても、この2つの位置は動かない。
   下端の曲線(page-hero::after、高さ60px)は中央ほど深く食い込むため、
   青い部分の実質的な中央は箱の中央より30px(60pxの半分)上にある。そのぶん基準点を上げる。 */
.page-hero-eyebrow { position: absolute; top: calc(50% - 30px); left: 48px; right: 48px; margin-top: -74px; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(160,200,255,.85); }
.page-hero h1 { position: absolute; top: calc(50% - 30px); left: 48px; right: 48px; transform: translateY(-50%); margin: 0; font-size: var(--fs-h1); color: #fff; }
.page-hero-sub { position: absolute; top: calc(50% - 30px); left: 48px; right: 48px; margin: 44px auto 0; max-width: 560px; color: rgba(190,215,245,.9); font-size: var(--fs-body); line-height: var(--lh-body); }

/* ── BREADCRUMB ────────────────────────────────────── */
.breadcrumb { padding: 20px 48px; padding-top: calc(68px + 20px); padding-left: max(32px, calc(50% - 360px)); background: var(--bg-light); border-bottom: 1px solid var(--border); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--muted); }
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { text-decoration: underline; }
body.sw-page .breadcrumb { padding-left: max(48px, calc((100% - var(--w-wide)) / 2 + 24px)); }

/* ── SECTIONS (common) ─────────────────────────────── */
.section { padding: 96px 32px; }
.section-inner { max-width: var(--w-wide); margin: 0 auto; }
.section-eyebrow { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; opacity: .8; }
.section-title { font-size: var(--fs-h2); color: var(--text); margin-bottom: 24px; line-height: var(--lh-heading); }
.section-lead { font-size: var(--fs-body); color: var(--muted); line-height: var(--lh-body); margin-bottom: 48px; max-width: var(--w-read); }

/* ── FINAL / EXP CTA ───────────────────────────────── */
.final-cta, .exp-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #1a3a6b 100%);
  padding: 96px 32px; text-align: center; position: relative; overflow: hidden;
}
.final-cta::before, .exp-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(100,160,255,.12), transparent 70%);
}
.final-cta .section-inner, .exp-cta .section-inner { position: relative; z-index: 1; }
.final-cta h2, .exp-cta h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: 24px; }
.final-cta p, .exp-cta p { color: rgba(190,215,245,.9); font-size: var(--fs-body); line-height: var(--lh-body); max-width: 640px; margin: 0 auto 40px; }
.cta-btns, .final-cta-btns, .exp-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ────────────────────────────────────────── */
.site-footer { background: var(--navy-mid); padding: 48px 48px 32px; color: rgba(255,255,255,.7); }
.footer-inner { max-width: var(--w-wide); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-logo { font-family: var(--serif); font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: 2px; margin-bottom: 8px; }
.footer-tagline { font-size: var(--fs-ui); line-height: var(--lh-ui); }
.footer-links { display: flex; gap: 24px; list-style: none; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.footer-links a:hover { color: rgba(255,255,255,.85); }
.footer-copy { max-width: var(--w-wide); margin: 32px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-label); line-height: var(--lh-label); text-align: center; }

/* ── HOME (front page hero) ────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-deep) 0%, #1a3a6b 60%, #0d2a5a 100%);
  padding-top: 68px;
}
.hero-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 64px 32px; max-width: 820px; }
.hero-eyebrow { display: inline-block; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 3px; color: rgba(160,200,255,.9); text-transform: uppercase; border: 1px solid rgba(160,200,255,.3); padding: 4px 16px; border-radius: 20px; margin-bottom: 32px; }
.hero h1 { font-size: var(--fs-hero); color: #fff; margin-bottom: 24px; line-height: var(--lh-heading); text-shadow: 0 2px 20px rgba(0,0,0,.3); word-break: keep-all; overflow-wrap: break-word; }
.hero h1 em { font-style: normal; }
.hero h1 .nobr, .hero-sub .nobr { display: inline-block; }
/* グラデーション文字は、親のemではなく各nobrスパンに直接適用する。
   一部のモバイルSafariで、inline-blockの子要素をemの背景クリップが
   正しく貫通できず、文字が透明(不可視)になる既知の不具合を避けるため。 */
.hero h1 em .nobr { background: linear-gradient(120deg,#7ec8ff,#b8a0ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: var(--fs-body); color: rgba(190,215,245,.9); margin-bottom: 48px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: var(--lh-body); word-break: keep-all; overflow-wrap: break-word; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.authority-bar { background: var(--navy-mid); padding: 36px 48px; display: flex; justify-content: center; align-items: stretch; gap: 0; flex-wrap: wrap; }
.auth-item { text-align: center; padding: 8px 48px; border-right: 1px solid rgba(255,255,255,.12); flex: 1; min-width: 200px; }
.auth-item:last-child { border-right: none; }
.auth-label { font-size: var(--fs-label); line-height: var(--lh-label); color: rgba(160,200,255,.85); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.auth-value { font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; color: #fff; font-family: var(--serif); word-break: keep-all; overflow-wrap: break-word; }
.problem { background: var(--bg); }
.problem-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(280px,100%),1fr)); gap: 24px; }
.problem-card { background: var(--bg-light); border: 1px solid var(--border); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 32px 28px; transition: box-shadow .2s,transform .2s; }
.problem-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; }
.card-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.card-sub { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; color: var(--navy); letter-spacing: 1px; margin-bottom: 12px; opacity: .85; }
.problem-card p { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }
.card-link { display: inline-block; margin-top: 20px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--navy); padding-bottom: 1px; transition: opacity .2s; }
.card-link:hover { opacity: .65; }
.experience-section { background: var(--bg-light); }
.experience-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.experience-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--navy-deep); position: relative; }
.experience-visual img { width: 100%; height: 100%; object-fit: cover; }
.experience-figure .room-caption { margin-top: 12px; }
.exp-badge { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); color: var(--navy); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 2px; padding: 4px 12px; border-radius: 20px; }
.exp-features { list-style: none; margin: 32px 0 40px; display: flex; flex-direction: column; gap: 12px; }
.exp-features li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted); }
.exp-check { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: var(--fs-label); line-height: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 6px; }
.problem-illustration-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 40px auto 0; }
.problem-illustration-wrap img { display: block; width: 100%; }
.room-diagram-section { background: var(--bg); }
.room-diagram-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 40px; }
.room-diagram-wrap img { display: block; width: 100%; }
.room-caption { text-align: center; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); margin-top: 16px; }
.services { background: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(300px,100%),1fr)); gap: 32px; }
.service-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow); transition: transform .2s; }
.service-card:hover { transform: translateY(-3px); }
.service-num { font-size: 2.5rem; font-weight: 700; font-family: var(--serif); color: var(--navy); opacity: .15; line-height: 1; margin-bottom: 8px; }
.service-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 16px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.service-list li { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.service-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); flex-shrink: 0; opacity: .5; }

/* ── PROFILE ────────────────────────────────────────── */
.profile-intro-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.profile-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: linear-gradient(150deg,var(--navy-deep),#1a3a6b); position: relative; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,.35); text-align: center; padding: 32px; }
.photo-fallback svg { margin-bottom: 16px; opacity: .5; }
.profile-name { font-family: var(--serif); font-size: var(--fs-h2-article); font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: var(--lh-heading); }
.profile-name-en { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); letter-spacing: 2px; margin-bottom: 24px; }
.profile-title-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 700; padding: 4px 16px; border-radius: 20px; margin-bottom: 32px; letter-spacing: 1px; }
.profile-intro-text { font-size: var(--fs-body); color: var(--muted); line-height: var(--lh-body); margin-bottom: 36px; }
.profile-intro-text strong { color: var(--text); }
.profile-quote { border-left: 4px solid var(--navy); padding: 20px 24px; margin: 32px 0; background: var(--bg-light); border-radius: 0 var(--radius) var(--radius) 0; }
.profile-quote p { font-family: var(--serif); font-size: var(--fs-h4); color: var(--text); line-height: 1.8; font-style: italic; }
.profile-quote cite { display: block; margin-top: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); font-style: normal; }
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }
.timeline-dot,
.timeline-item::before { content: ''; position: absolute; left: -46px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 3px var(--border); }
.timeline-period { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 2px; color: var(--navy); margin-bottom: 8px; opacity: .8; }
.timeline-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.timeline-body { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)); gap: 24px; }
.philosophy-card { background: var(--bg-light); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 28px; }
.philosophy-card .philo-num { font-size: 2.25rem; font-weight: 700; font-family: var(--serif); color: var(--navy); opacity: .12; line-height: 1; margin-bottom: 4px; }
.philosophy-card .philo-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.philosophy-card p { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.room-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: linear-gradient(150deg,var(--navy-deep),#1a3a6b); position: relative; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-photo-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top,rgba(13,31,64,.85),transparent); color: rgba(255,255,255,.95); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 700; padding: 24px 16px 12px; letter-spacing: 1px; }
.room-photo-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,.3); text-align: center; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.room-specs { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; }
.spec-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.spec-label { font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.spec-value { font-family: var(--serif); font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; color: var(--navy); }

/* ── EXPERIENCE PAGE ────────────────────────────────── */
.exp-intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.exp-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: linear-gradient(150deg,var(--navy-deep),#1a3a6b); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: var(--fs-ui); line-height: var(--lh-ui); text-align: center; position: relative; }
.exp-photo-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top,rgba(13,31,64,.85),transparent); color: rgba(255,255,255,.95); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 700; padding: 24px 16px 12px; letter-spacing: 1px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: var(--fs-ui); line-height: 1; }
.feature-title { display: block; font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: var(--fs-body); line-height: var(--lh-heading); }
.feature-body { display: block; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.room-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.room-img { aspect-ratio: 16/9; background: linear-gradient(150deg,var(--navy-deep),#1a3a6b); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: var(--fs-ui); line-height: var(--lh-ui); text-align: center; position: relative; }
.room-img-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top,rgba(13,31,64,.85),transparent); color: rgba(255,255,255,.95); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 700; padding: 24px 16px 12px; letter-spacing: 1px; }
.room-body { padding: 24px; }
.room-name { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.room-desc { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); margin-bottom: 16px; }
.room-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.room-tag { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; padding: 4px 12px; border-radius: 12px; background: rgba(26,63,122,.08); color: var(--navy); border: 1px solid rgba(26,63,122,.2); }
.flow-steps { position: relative; display: flex; flex-direction: column; gap: 0; }
.flow-step { display: grid; grid-template-columns: 80px 1fr; gap: 32px; align-items: stretch; }
.flow-step-left { display: flex; flex-direction: column; align-items: center; }
.flow-num { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-size: var(--fs-body); line-height: 1; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-line,
.flow-step-left::after { content: ''; width: 2px; flex: 1; background: var(--border); margin: 8px auto; }
.flow-step:last-child .flow-line,
.flow-step:last-child .flow-step-left::after { display: none; }
.flow-right { padding: 0 0 40px; }
.flow-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.flow-body { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.faq-q { font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 12px; display: flex; gap: 12px; align-items: flex-start; }
.faq-q::before { content: 'Q'; width: 28px; height: 28px; background: var(--navy); color: #fff; border-radius: 50%; font-size: var(--fs-label); line-height: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-a { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); padding-left: 40px; }
.faq-inner { max-width: var(--w-read); margin: 0 auto; }
/* ページ本文(データ)内の個別指定 .hg-xxxx { max-width: 900px } より優先させるため、クラスを重ねて指定する */
.section-inner.faq-inner { max-width: var(--w-read); }
.section-inner:has(.contact-grid) { max-width: var(--w-wide); }

/* ── SERVICE PAGE ───────────────────────────────────── */
.service-section { padding: 96px 32px; }
.service-section:nth-child(even) { background: var(--bg-light); }
.service-section:nth-child(odd) { background: var(--bg); }
.service-inner { max-width: var(--w-wide); margin: 0 auto; }
.service-header { display: flex; align-items: flex-start; gap: 32px; margin-bottom: 48px; }
.service-num-big { font-family: var(--serif); font-size: 5rem; font-weight: 700; color: var(--navy); opacity: .1; line-height: 1; flex-shrink: 0; }
.service-label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--navy); opacity: .8; margin-bottom: 8px; }
.service-title-big { font-family: var(--serif); font-size: var(--fs-h2); line-height: var(--lh-heading); color: var(--text); margin-bottom: 12px; }
.service-tagline { font-size: var(--fs-body); color: var(--muted); line-height: var(--lh-body); }
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 40px; }
.service-includes h3, .service-process h3 { font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.include-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.include-list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.include-list li::before { content: '✓'; color: var(--navy); font-weight: 700; flex-shrink: 0; }
.process-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.process-steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.process-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: var(--fs-label); line-height: 1; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.price-note { margin-top: 32px; background: rgba(26,63,122,.05); border: 1px solid rgba(26,63,122,.15); border-radius: var(--radius); padding: 20px 24px; font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }
.price-note strong { color: var(--text); }
.flow-section { background: var(--bg); padding: 96px 32px; }
.flow-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 32px; }
.flow-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; position: relative; }
.flow-card:not(:last-child)::after { content: '→'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--border); font-size: var(--fs-h4); line-height: 1; font-weight: 700; }
.flow-card:nth-child(3n)::after { display: none; }
.flow-card-num { font-family: var(--serif); font-size: 1.75rem; line-height: var(--lh-heading); font-weight: 700; color: var(--navy); opacity: .25; margin-bottom: 4px; }
.flow-card-title { font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.flow-card-body { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }

/* ── WORKS PAGE ─────────────────────────────────────── */
.coming-banner { background: rgba(26,63,122,.06); border: 1px dashed rgba(26,63,122,.3); border-radius: var(--radius); padding: 32px; text-align: center; margin-bottom: 48px; }
.coming-banner p { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.coming-banner strong { color: var(--navy); }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(300px,100%),1fr)); gap: 32px; }
.work-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.work-img { aspect-ratio: 4/3; background: linear-gradient(135deg,#1a2744,#1a3f7a); display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,.25); font-size: var(--fs-ui); line-height: var(--lh-ui); text-align: center; position: relative; }
.work-status { position: absolute; top: 16px; right: 16px; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 1px; padding: 4px 12px; border-radius: 12px; }
.status-published { background: var(--navy); color: #fff; }
.status-coming { background: rgba(255,255,255,.15); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.25); }
.work-body { padding: 24px; }
.work-category { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--navy); opacity: .8; margin-bottom: 8px; }
.work-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.work-desc { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); margin-bottom: 16px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.work-tag { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; padding: 4px 12px; border-radius: 12px; background: rgba(26,63,122,.08); color: var(--navy); border: 1px solid rgba(26,63,122,.2); }

/* ── CONTACT PAGE ───────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.contact-form { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.contact-form p { font-size: var(--fs-ui); line-height: var(--lh-ui); }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.form-label .required { color: #c42828; margin-left: 8px; font-size: var(--fs-label); line-height: var(--lh-label); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 6px; font-size: var(--fs-body); line-height: var(--lh-heading); font-family: var(--sans);
  color: var(--text); background: var(--bg); transition: border-color .2s,box-shadow .2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,63,122,.12); }
.form-textarea { resize: vertical; min-height: 160px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235e728f' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-note { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--muted); margin-top: 8px; }
.form-submit { width: 100%; padding: 16px; background: var(--navy); color: #fff; border: none; border-radius: 6px; font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; font-family: var(--sans); cursor: pointer; transition: background .2s; letter-spacing: 1px; }
.form-submit:hover { background: var(--blue); }
.form-privacy { font-size: var(--fs-label); color: var(--muted); text-align: center; margin-top: 16px; line-height: var(--lh-label); }

/* Contact Form 7 - ラジオボタン(ご要望内容) */
.form-radio-group { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.form-radio-group .wpcf7-list-item { margin: 0; }
.form-radio-group .wpcf7-list-item label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body); line-height: var(--lh-heading); color: var(--text); cursor: pointer; }
.form-radio-group input[type="radio"] { width: 20px; height: 20px; accent-color: var(--navy); cursor: pointer; }

/* Contact Form 7 - 送信エラー・確認メッセージ */
.wpcf7-not-valid-tip { display: block; font-size: var(--fs-ui); line-height: var(--lh-ui); color: #c42828; margin-top: 8px; }
.wpcf7-not-valid { border-color: #c42828 !important; }
.wpcf7-response-output { border-radius: 6px; padding: 16px 20px; font-size: var(--fs-ui); line-height: var(--lh-ui); margin-top: 24px; }
form.invalid .wpcf7-response-output, form.failed .wpcf7-response-output, form.aborted .wpcf7-response-output, form.spam .wpcf7-response-output {
  border: 1px solid #c42828; background: #fdecec; color: #c42828;
}
form.sent .wpcf7-response-output { border: 1px solid #1a7a40; background: #eaf7ee; color: #1a7a40; }
.aside-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.aside-card:last-child { margin-bottom: 0; }
.aside-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.aside-title-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: var(--fs-label); line-height: 1; flex-shrink: 0; }
.aside-body { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }
.aside-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.aside-list li { display: flex; gap: 8px; align-items: flex-start; }
.aside-list li::before { content: '・'; flex-shrink: 0; }

/* ── ACOUSTICS HUB ──────────────────────────────────── */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 24px; }
.topic-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s,box-shadow .2s; display: flex; flex-direction: column; }
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,39,90,.14); }
.topic-card-head { padding: 32px 28px 20px; background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.topic-card-head::after { content: ''; position: absolute; bottom: -20px; right: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.04); }
.topic-num { font-size: 2.5rem; font-weight: 700; font-family: var(--serif); opacity: .2; line-height: 1; margin-bottom: 4px; }
.topic-tag { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
.topic-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; }
.topic-card-body { padding: 24px 28px; flex: 1; }
.topic-desc { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); margin-bottom: 20px; }
.topic-link { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 2px; transition: opacity .2s; }
.topic-link:hover { opacity: .65; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.qa-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.qa-q { font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.qa-a { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }

/* ── ARTICLE PAGES / BLOG 記事本文(共通の読み物スタイル) ───────
   音響の知識の記事(.article)とブログ記事(.single-post-content)は同じ見た目にそろえる。
   本文18px・行間2.0・段落間36px・1行40字(幅720px)。 */
.article { padding: 80px 32px 96px; }
.article { container-type: inline-size; }
.article-inner { max-width: var(--w-read); margin: 0 auto; }
/* 記事内の図・カード・表は、本文(720px)より広いワイド幅(1120px)まで広げる。小さい画面では本文と同じ幅。
   100cqw = 記事エリアの内側の幅(スクロールバーを除く)。100vwだとスクロールバー分ずれるため使わない */
.article .figure, .article .key-points, .article .reflection-grid, .article .rt-table {
  width: max(100%, min(var(--w-wide), 100cqw)); position: relative; left: 50%; transform: translateX(-50%);
}
.article-lead { font-size: var(--fs-h4); color: var(--muted); line-height: 1.8; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.article h2, .single-post-content h2 { font-size: var(--fs-h2-article); line-height: var(--lh-heading); color: var(--text); margin: 64px 0 24px; }
.article h3, .single-post-content h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); color: var(--text); margin: 48px 0 16px; }
.article h4, .single-post-content h4 { font-family: var(--sans); font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.article p, .single-post-content p { font-size: var(--fs-body); color: var(--muted); line-height: var(--lh-body); margin-bottom: 36px; }
.article strong, .single-post-content strong { color: var(--text); }
.single-post-content ul, .single-post-content ol { margin: 0 0 36px 28px; }
.single-post-content li { font-size: var(--fs-body); line-height: var(--lh-body); }
.single-post-content table { width: 100%; border-collapse: collapse; margin: 24px 0 36px; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.single-post-content th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-weight: 700; }
.single-post-content td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.single-post-content figure { margin: 32px 0; }
.single-post-content figcaption { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); margin-top: 12px; text-align: center; }
.highlight { background: rgba(26,63,122,.05); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 24px 0; }
.highlight p { margin-bottom: 0; }
.warn-box { background: rgba(200,90,10,.05); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 24px 0; }
.warn-box p { margin-bottom: 0; color: var(--muted); }
.key-points { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; margin: 32px 0; }
.kp { background: var(--bg-light); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 20px; }
.kp .kp-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.kp .kp-body { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }
.figure { margin: 32px 0; }
.figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.article .figure-caption { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); margin-top: 12px; margin-bottom: 0; text-align: center; }
.reflection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.rp-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.rp-card .rp-title { font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.rp-badge { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-size: var(--fs-label); line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.rp-card .rp-body { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); }
.rt-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.rt-table th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-weight: 700; }
.rt-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.rt-table tr:nth-child(even) td { background: var(--bg-light); }
.rt-table .ideal { color: var(--green); font-weight: 700; }
.rt-table .bad { color: #c42828; }
.cta-inline { background: linear-gradient(135deg,var(--navy-deep),#1a3a6b); border-radius: var(--radius); padding: 40px; text-align: center; margin-top: 48px; }
.cta-inline h3 { font-size: var(--fs-h3); color: #fff; margin: 0 0 12px; }
.cta-inline p { font-size: var(--fs-ui); color: rgba(190,215,245,.9); margin-bottom: 24px; line-height: var(--lh-ui); }
.cta-inline p:last-child { margin-bottom: 0; }
.article-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); gap: 16px; flex-wrap: wrap; }
.article-nav p { margin-bottom: 0; }
.article-nav a { font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 700; color: var(--navy); }
.article-nav a:hover { text-decoration: underline; }

/* ── BLOG (投稿一覧 / 個別記事 / アーカイブ / 検索) ──── */
.blog-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; max-width: calc(var(--w-wide) + 64px); margin: 0 auto; padding: 56px 32px 96px; align-items: start; }
.blog-main { min-width: 0; }
.blog-list { display: flex; flex-direction: column; gap: 32px; }
.blog-card { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; padding: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-card--no-thumb { grid-template-columns: 1fr; }
.blog-card-thumb { aspect-ratio: 1/1; background: var(--bg-light); overflow: hidden; }
.blog-card-thumb a { display: block; height: 100%; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { min-width: 0; }
.blog-card-cat { display: inline-block; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); background: rgba(26,63,122,.08); border: 1px solid rgba(26,63,122,.2); padding: 4px 12px; border-radius: 12px; margin-bottom: 12px; }
.blog-card-title { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: var(--lh-heading); }
.blog-card-title a:hover { color: var(--navy); }
.blog-card-excerpt { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); margin-bottom: 12px; }
.blog-card-date { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--muted); }
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.blog-pagination a, .blog-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--border); font-size: var(--fs-ui); line-height: 1; color: var(--text); }
.blog-pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.blog-pagination a:hover { border-color: var(--navy); color: var(--navy); }

/* サイドバー */
.blog-sidebar { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.widget { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.widget-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.widget-search-form { display: flex; gap: 8px; }
.widget-search-form input[type="search"] { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: var(--fs-ui); font-family: var(--sans); }
.widget-search-form button { background: var(--navy); color: #fff; border: none; border-radius: 6px; padding: 0 16px; cursor: pointer; }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.widget ul li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.widget ul li::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--navy); }
.widget ul li a { flex: 1; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.widget ul li a:hover { color: var(--navy); }
.widget ul li a .count { font-size: var(--fs-label); color: var(--muted); }

/* ウィジェットエリア内の見出し(WordPress標準の「見出し」ブロック)と、その下のリストとの余白・区切り線 */
.widget .wp-block-heading { font-size: var(--fs-h4); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ウィジェットエリア内の検索ブロック(WordPress標準ブロック)の高さを他のフォームと揃える */
.widget .wp-block-search__input { height: 44px !important; box-sizing: border-box; padding: 0 12px; font-size: var(--fs-ui); border: 1px solid var(--border); border-radius: 6px; font-family: var(--sans); }
.widget .wp-block-search__button { height: 44px !important; box-sizing: border-box; padding: 0 16px; font-size: var(--fs-ui); background: var(--navy); border-radius: 6px; white-space: nowrap; }

/* 個別記事ページ */
.single-post-header { max-width: var(--w-read); margin: 0 auto 40px; }
.single-post-cat { display: inline-block; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--navy); background: rgba(26,63,122,.08); border: 1px solid rgba(26,63,122,.2); padding: 4px 16px; border-radius: 14px; margin-bottom: 16px; }
.single-post-title { font-family: var(--serif); font-size: var(--fs-h2); line-height: var(--lh-heading); color: var(--text); margin-bottom: 16px; }
.single-post-meta { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.single-post-thumb { max-width: var(--w-read); margin: 0 auto 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.single-post-thumb img { width: 100%; display: block; }
.single-post-content { max-width: var(--w-read); margin: 0 auto; font-size: var(--fs-body); color: var(--muted); line-height: var(--lh-body); }
.single-post-content img { border-radius: var(--radius); margin: 24px 0; }
.single-post-tags { max-width: var(--w-read); margin: 48px auto 0; display: flex; gap: 8px; flex-wrap: wrap; }
.single-post-tags a { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; padding: 4px 12px; border-radius: 12px; background: var(--bg-light); color: var(--navy); border: 1px solid var(--border); }
.post-nav { max-width: var(--w-read); margin: 48px auto 0; padding-top: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-nav a { font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 700; color: var(--navy); max-width: 45%; }

/* 404ページ */
.error-404-wrap { max-width: 640px; margin: 0 auto; padding: 112px 32px 96px; text-align: center; }
.error-404-code { font-family: var(--serif); font-size: 5rem; font-weight: 700; color: var(--navy); opacity: .18; line-height: 1; margin-bottom: 16px; }
.error-404-title { font-size: var(--fs-h3); color: var(--text); margin-bottom: 16px; }
.error-404-body { font-size: var(--fs-body); color: var(--muted); line-height: var(--lh-body); margin-bottom: 40px; }

/* ── STANDING WAVE PAGE (body.sw-page) ─────────────── */
body.sw-page {
  --surface: #ffffff;
  --surface2: #edf2f8;
  --accent: #1a3f7a;
  background: transparent;
}
body.sw-page .container { width: min(100% - 48px, var(--w-wide)); margin: 0 auto; padding: 40px 0 64px; }
body.sw-page .card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; margin-bottom: 32px; box-shadow: 0 2px 16px rgba(26,39,90,.07); }
body.sw-page .card h2 { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 700; margin-bottom: 20px; margin-top: 0; display: flex; align-items: center; gap: 12px; color: var(--text); }
body.sw-page .step-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: var(--fs-ui); line-height: 1; font-weight: 800; flex-shrink: 0; }
body.sw-page .desc { color: var(--muted); font-size: var(--fs-body); margin-bottom: 20px; line-height: var(--lh-body); }
body.sw-page .canvas-wrap { position: relative; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
body.sw-page .room-canvas-wrap { position: relative; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
body.sw-page canvas { display: block; width: 100%; max-width: 100%; }
body.sw-page .legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
body.sw-page .legend-item { display: flex; align-items: center; gap: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
body.sw-page .legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
body.sw-page .legend-line { width: 24px; height: 3px; border-radius: 2px; flex-shrink: 0; }
body.sw-page .controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 16px; }
body.sw-page .ctrl-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); }
body.sw-page .ctrl-group label { color: var(--muted); white-space: nowrap; }
body.sw-page input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: var(--border); outline: none; cursor: pointer; width: 120px; }
body.sw-page input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; }
body.sw-page .val-label { min-width: 48px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--text); font-variant-numeric: tabular-nums; }
body.sw-page .btn { padding: 8px 16px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); font-size: var(--fs-ui); line-height: var(--lh-ui); cursor: pointer; transition: background .15s,border-color .15s,color .15s; }
body.sw-page .btn:hover { background: var(--border); color: var(--text); }
body.sw-page .btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
body.sw-page .mode-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
body.sw-page .facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; margin-top: 16px; }
body.sw-page .fact { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
body.sw-page .fact-title { font-size: var(--fs-label); line-height: var(--lh-label); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
body.sw-page .fact-val { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
body.sw-page .fact-unit { font-size: var(--fs-ui); color: var(--muted); margin-left: 4px; }
body.sw-page .fact-sub { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--muted); margin-top: 4px; }
body.sw-page .na-labels { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
body.sw-page .na-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 20px; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; }
body.sw-page .na-pill.node { background: rgba(26,63,122,.08); color: var(--accent); border: 1px solid rgba(26,63,122,.25); }
body.sw-page .na-pill.anti { background: rgba(196,40,40,.08); color: #c42828; border: 1px solid rgba(196,40,40,.25); }
body.sw-page .info-box { background: rgba(26,63,122,.05); border: 1px solid rgba(26,63,122,.18); border-radius: 8px; padding: 16px 20px; font-size: var(--fs-ui); color: var(--muted); margin-top: 16px; line-height: var(--lh-ui); }
body.sw-page .info-box strong { color: var(--text); }
body.sw-page .summary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
body.sw-page .summary-card { background: var(--surface2); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 8px; padding: 20px; }
body.sw-page .summary-card h3 { font-size: var(--fs-body); line-height: var(--lh-heading); color: var(--accent); margin-bottom: 8px; margin-top: 0; }
body.sw-page .summary-card p { font-size: var(--fs-ui); color: var(--muted); line-height: var(--lh-ui); margin: 0; }

/* ── RESPONSIVE ─────────────────────────────────────── */
/* タブレット幅(〜1024px):
   ・サイドバー(380px)を残すと記事一覧の列が狭まりカードの本文が潰れるため、サイドバーを一覧の下に回して1列にする
   ・ナビ項目が文字サイズ16pxでは1行に収まらないため、ハンバーガーメニューに切り替える */
@media (max-width: 1024px) {
  :root { --fs-hero: 2.75rem; }
  .blog-layout { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(13,31,64,.98); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 32px 24px;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links .nav-cta { margin-top: 16px; }
  .nav-links .nav-cta a { display: inline-block; border-bottom: none; padding: 4px 16px; }
}

@media (max-width: 768px) {
  /* スマホ幅では見出しを一段小さくする(本文18pxとの大小差は保つ) */
  :root {
    --fs-hero:       2rem;      /* 32px */
    --fs-h1:         2rem;      /* 32px */
    --fs-h2:         1.75rem;   /* 28px */
    --fs-h2-article: 1.625rem;  /* 26px */
    --fs-h3:         1.375rem;  /* 22px */
  }
  .site-nav { padding: 0 24px; }
  .nav-links { padding: 8px 24px 24px; }
  .page-hero { padding: 64px 24px; min-height: 416px; }
  .page-hero-eyebrow, .page-hero h1, .page-hero-sub { left: 24px; right: 24px; }
  .page-hero-eyebrow { margin-top: -80px; }
  .page-hero-sub { font-size: var(--fs-ui); line-height: var(--lh-ui); }
  .breadcrumb { padding: 16px 24px; }
  .section, .service-section, .flow-section { padding: 64px 24px; }
  .authority-bar { padding: 24px 16px; }
  .auth-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 16px; }
  .auth-item:last-child { border-bottom: none; }
  .experience-inner, .exp-intro-grid, .rooms-grid, .room-grid,
  .service-detail-grid, .profile-intro-inner, .contact-grid,
  .qa-grid, .reflection-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-header { flex-direction: column; gap: 16px; }
  .service-num-big { font-size: 3rem; }
  .flow-step { grid-template-columns: 60px 1fr; gap: 16px; }
  .flow-cards { grid-template-columns: 1fr; }
  .flow-card:not(:last-child)::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .site-footer { padding: 48px 24px 32px; }
  .contact-form { padding: 24px; }
  .article { padding: 64px 24px; }
  body.sw-page .controls { flex-direction: column; align-items: flex-start; }
  .blog-layout { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
  .blog-card { grid-template-columns: 96px 1fr; gap: 16px; padding: 20px; align-items: start; }
  .blog-card--no-thumb { grid-template-columns: 1fr; }
}
