/* ============================================================
   株式会社三機 共通スタイルシート v2 — Industrial Editorial
   最終更新：2026年7月
   コンセプト：ペーパーホワイト基調 × ネイビーインク × 図面モチーフ
   （ブランド色ネイビー/スチール/ゴールドは従来を継承）
   ============================================================ */

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

/* ── CSS変数 ── */
:root {
  --color-navy:        #1a2744;
  --color-navy-light:  #243259;
  --color-ink:         #0f1a30;
  --color-steel:       #2e5b8a;
  --color-steel-light: #3a72a8;
  --color-gold:        #e8a020;
  --color-gold-light:  #f0b840;
  --color-line:        #06C755;
  --color-line-dark:   #05a747;
  --color-bg:          #f3f6fa;
  --color-off-white:   #f8fafc;
  --color-paper:       #ffffff;
  --color-text:        #1a2744;
  --color-text-muted:  #48536b;  /* 白地で 7.71:1（旧#5c677eは5.68:1）。文字サイズは変えずに可読性だけ上げる */
  --color-white:       #ffffff;
  --color-border:      #d8e0e8;
  --color-border-dark: rgba(255,255,255,.14);

  /* サイト標準：アイコン */
  --color-icon-surface:#355f90;
  --color-icon-surface-strong:#24466f;
  --color-icon-on-dark:#ffffff;
  --color-icon-on-light:#2e5b8a;
  --size-icon-card:    56px;
  --size-icon-mark:    28px;
  --radius-icon-card:  12px;
  --btn-radius:        8px;
  --btn-height:        52px;
  --btn-shadow-strong: 0 10px 24px rgba(26,39,68,.16);
  --btn-shadow-soft:   0 6px 18px rgba(46,91,138,.16);
  --heading-max:       24ch;
  --heading-max-wide:  36ch;
  --hero-h1-size:      clamp(2.3rem, 5vw, 4.4rem);
  --page-h1-size:      clamp(1.9rem, 4.2vw, 3rem);
  --section-h2-size:   clamp(1.6rem, 3.2vw, 2.4rem);
  --section-copy-size: 0.95rem;
  --label-size:        0.78rem;
  --heading-line:      1.16;
  --copy-line:         1.85;
  --field-height:      52px;
  --field-radius:      12px;
  --field-border:      1.5px solid var(--color-border);
  --field-padding-x:   16px;
  --field-focus-ring:  0 0 0 4px rgba(46,91,138,.12);
  --field-placeholder: #98a0ae;
  --field-help-size:   0.78rem;
  --photo-ratio-wide:  16 / 9;
  --photo-ratio-card:  4 / 3;
  --photo-ratio-square:1 / 1;
  --photo-ratio-tall:  5 / 4;

  --font-jp:     'Noto Sans JP', sans-serif;
  --font-en:     'Oswald', sans-serif;

  --shadow-sm:   0 2px 10px rgba(26,39,68,.06);
  --shadow-md:   0 10px 30px rgba(26,39,68,.10);
  --shadow-lg:   0 18px 50px rgba(26,39,68,.16);

  --radius-sm:   8px;
  --radius-md:   10px;
  --radius-lg:   22px;

  --transition:  0.3s cubic-bezier(.22,.61,.36,1);
  --max-width:   1280px;

  /* 図面グリッド（ダーク面用） */
  --blueprint-grid:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  /* ドット方眼（ライト面用） */
  --paper-dots: radial-gradient(rgba(26,39,68,.10) 1px, transparent 1.5px);
  /* 紙質グレイン（ダークパネル用・SVGノイズ） */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ── 日本語の自然な改行 ── */
body { word-break: auto-phrase; }
.phrase { display: inline-block; }

/* ── リセット ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; font-size: 16px; } /* sticky header の高さぶん、アンカー先が隠れないように */
body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--color-gold); color: var(--color-navy); }

/* ── スクロールバーもブランド色に ── */
html { scrollbar-color: var(--color-steel) var(--color-bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-steel);
  border-radius: 6px;
  border: 3px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-navy); }

/* ── アンカー着地位置：スティッキーヘッダーに隠れない ── */
[id] { scroll-margin-top: 120px; }

/* ── キーボード操作の可視化（アクセシビリティ） ── */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 2000;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ── コンテナ ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   ヘッダー（v2：ライトヘッダー＋ぼかしスティッキー）
   ============================================================ */

/* 営業時間バー */
.header-topbar {
  background: var(--color-ink);
  color: rgba(255,255,255,.82);
  font-size: 0.76rem;
  text-align: center;
  padding: 6px 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 26px;
  letter-spacing: .02em;
}
.header-topbar .inline-meta-icon svg,
.header-topbar svg {
  width: 12px; height: 12px;
  stroke: var(--color-gold);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -1px; margin-right: 5px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253,252,249,.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ロゴ */
.header-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo img {
  width: 46px;
  height: auto;
  flex-shrink: 0;
}
.header-logo-text {
  font-family: var(--font-en);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-navy);
  line-height: 1.15;
}
.header-logo-text small {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: .14em;
}

/* 連絡先まわり */
.header-contact {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-tel { text-align: right; line-height: 1.25; }
.header-tel a {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--color-navy);
  transition: color var(--transition);
}
.header-tel a:hover { color: var(--color-steel); }
.header-tel small {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.btn-line-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-line);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 14px rgba(6,199,85,.25);
}
.btn-line-header:hover {
  background: var(--color-line-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6,199,85,.32);
}

/* PCナビ */
.header-nav {
  border-top: 1px solid var(--color-border);
}
.header-nav ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.header-nav a {
  position: relative;
  display: inline-block;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  transition: color var(--transition);
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 20px; right: 20px; bottom: 8px;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.header-nav a:hover { color: var(--color-steel); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-nav a.is-active { color: var(--color-steel); }
.header-nav a.is-active::after { transform: scaleX(1); }
.mobile-nav a.is-active { color: var(--color-steel); border-left: 3px solid var(--color-gold); padding-left: 25px; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 12px 11px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビ */
.mobile-nav {
  display: none;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 8px 0; }
.mobile-nav a {
  display: block;
  padding: 14px 28px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 1px dashed var(--color-border);
}
.mobile-nav li:last-child a { border-bottom: none; }
.mobile-nav .mobile-nav-tel { color: var(--color-steel); font-weight: 700; letter-spacing: .04em; }
.mobile-nav .mobile-nav-tel-note { font-size: 0.72rem; font-weight: 400; color: var(--color-text-muted); margin-left: 8px; }
.mobile-nav a:active { background: var(--color-off-white); }

/* Coming Soon バッジ */
.coming-soon-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: .08em;
  color: var(--color-steel);
  background: rgba(46,91,138,.1);
  border: 1px solid rgba(46,91,138,.25);
  border-radius: 999px;
  vertical-align: middle;
}

.footer .coming-soon-badge {
  color: #d9e7f3;
  background: #263e55;
  border-color: #6f8aa2;
}

/* ============================================================
   下層ページヒーロー・パンくず
   ============================================================ */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--color-ink) 0%, var(--color-navy) 62%, #23396b 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain), var(--blueprint-grid);
  background-size: 140px 140px, 44px 44px, 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.3));
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -10%; top: -60%;
  width: 55%; height: 220%;
  background: radial-gradient(closest-side, rgba(232,160,32,.16), transparent 70%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  padding: 72px 24px 64px;
}
.page-hero-label {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-label::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--color-gold);
}
.page-hero h1 {
  font-size: var(--page-h1-size);
  font-weight: 900;
  line-height: var(--heading-line);
  letter-spacing: .01em;
  max-width: var(--heading-max-wide);
  text-wrap: balance;
}
.page-hero p {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(255,255,255,.78);
  max-width: 760px;
  line-height: var(--copy-line);
  text-wrap: pretty;
}
.page-hero strong { color: var(--color-gold-light); }

.breadcrumb {
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.78rem;
}
.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
  color: var(--color-text-muted);
}
.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
  color: var(--color-border);
}
.breadcrumb a { color: var(--color-steel); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   セクション共通
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--color-off-white); }

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}
.section-head.center,
.section-head[style*="text-align:center"],
.section-head[style*="text-align: center"] { margin-left: auto; margin-right: auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-steel);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* 雑誌風の通し番号：ページ内の主要セクションに ( 01 ) を自動付与 */
body { counter-reset: sec; }
.section-head .section-label::before,
.checker-copy .section-label::before,
.chat-section-text .section-label::before {
  counter-increment: sec;
  content: "( " counter(sec, decimal-leading-zero) " )";
  width: auto;
  height: auto;
  background: none;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: .12em;
}
.section-head h2 {
  font-size: var(--section-h2-size);
  font-weight: 900;
  line-height: var(--heading-line);
  color: var(--color-navy);
  letter-spacing: .01em;
  text-wrap: balance;
  max-width: var(--heading-max-wide);
}
/* 日本語見出しを文節単位で折り返す（対応ブラウザのみ。非対応でも従来表示のまま） */
h1, h2, h3 {
  word-break: auto-phrase;
}
/* 本文の折返しを整える（文末1〜2文字だけの孤立行などを防ぐ） */
p, li, .card-text, .law-card-desc, .flow-desc, .accordion-body,
.reason-desc, .service-card-desc, .work-desc, .news-card-title {
  text-wrap: pretty;
}
.section-head h2 em {
  font-style: normal;
  color: var(--color-steel);
  position: relative;
}
.section-head p {
  margin-top: 18px;
  font-size: var(--section-copy-size);
  color: var(--color-text-muted);
  line-height: var(--copy-line);
}

/* 仕切り：図面の寸法線モチーフ */
.section-divider {
  margin-top: 26px;
  width: 84px;
  height: 5px;
  position: relative;
  background:
    linear-gradient(var(--color-gold), var(--color-gold)) left center / 36px 3px no-repeat,
    linear-gradient(var(--color-border), var(--color-border)) right center / 42px 1px no-repeat;
}

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

/* ============================================================
   カード
   ============================================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
a.card { display: block; color: inherit; text-decoration: none; } /* カードをリンクにしても見た目は同じ */
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46,91,138,.35);
}
.card-body { padding: 28px; }
.card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* カードアイコン（標準：紺タイル＋白線画） */
.card-icon {
  width: var(--size-icon-card);
  height: var(--size-icon-card);
  border-radius: var(--radius-icon-card);
  background: linear-gradient(140deg, var(--color-icon-surface), var(--color-icon-surface-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.card-icon svg {
  width: var(--size-icon-mark);
  height: var(--size-icon-mark);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon--label {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: #fff;
}

/* 図面記号ビジュアル */
.schematic-visual {
  background:
    var(--paper-dots),
    linear-gradient(150deg, #f2f6fb, #e8eef6);
  background-size: 18px 18px, 100% 100%;
  border-bottom: 1px solid var(--color-border);
  padding: 30px 24px 22px;
  text-align: center;
}
.schematic-visual svg {
  stroke: var(--color-steel);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto;
}
.schematic-visual-title {
  margin-top: 10px;
  font-family: var(--font-en);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--color-steel);
  text-transform: uppercase;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--btn-height);
  padding: 0 30px;
  border-radius: var(--btn-radius);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-navy);
  color: #fff;
  box-shadow: var(--btn-shadow-strong);
}
.btn-primary:hover { background: var(--color-gold); color: var(--color-navy); }

.btn-steel {
  background: var(--color-steel);
  color: #fff;
  box-shadow: var(--btn-shadow-soft);
}
.btn-steel:hover { background: var(--color-steel-light); color: #fff; }

.btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-secondary:hover { background: rgba(255,255,255,.18); border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: #fff; }

.btn-line {
  background: var(--color-line);
  color: #fff;
  box-shadow: 0 8px 22px rgba(6,199,85,.28);
}
.btn-line:hover { background: var(--color-line-dark); color: #fff; }

.btn-lg { height: 62px; padding: 0 40px; font-size: 1rem; border-radius: 14px; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ============================================================
   テーブル
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
.table th, .table td { padding: 15px 20px; text-align: left; }
.table thead th {
  background: var(--color-navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.table tbody tr { border-bottom: 1px solid var(--color-border); }
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: var(--color-off-white); }
.table td:first-child { font-weight: 700; color: var(--color-navy); white-space: nowrap; }

/* ============================================================
   アコーディオン（FAQ）
   ============================================================ */
.accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.accordion-item.open { border-color: rgba(46,91,138,.4); box-shadow: var(--shadow-sm); }
.accordion-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-navy);
  line-height: 1.5;
}
.q-mark, .a-mark {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.95rem;
}
.q-mark { background: var(--color-navy); color: var(--color-gold); }
/* Aマークは絶対配置。float だと2行目以降がマークの下に回り込んで頭が揃わない */
.a-mark {
  background: var(--color-gold); color: var(--color-navy);
  position: absolute; left: 24px; top: 18px;
}
.accordion-header .arrow {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--color-steel);
  transition: transform var(--transition);
}
.accordion-item.open .arrow { transform: rotate(180deg); }
.accordion-body {
  display: none;
  position: relative;
  padding: 0 24px 22px 70px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.95;
  border-top: 1px dashed var(--color-border);
  padding-top: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease, display .35s allow-discrete;
}
.accordion-item.open .accordion-body { display: block; }
/* 対応ブラウザではふわっと開く（非対応は従来どおり即時表示） */
@starting-style {
  .accordion-item.open .accordion-body { opacity: 0; transform: translateY(-6px); }
}

/* ============================================================
   フォーム
   ============================================================ */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.form-label .required,
.form-label [class*="require"] {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-gold);
  padding: 1px 8px;
  border-radius: 999px;
  vertical-align: 2px;
}
.form-input, .form-textarea, select.form-input {
  width: 100%;
  height: var(--field-height);
  padding: 0 var(--field-padding-x);
  border: var(--field-border);
  border-radius: var(--field-radius);
  background: var(--color-white);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-textarea { height: auto; min-height: 150px; padding: 14px var(--field-padding-x); resize: vertical; line-height: 1.7; }
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-steel);
  box-shadow: var(--field-focus-ring);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--field-placeholder); }
.form-help, .form-note {
  font-size: var(--field-help-size);
  color: var(--color-text-muted);
  margin-top: 6px;
}
.form-error { font-size: 0.8rem; color: #c62828; margin-top: 6px; font-weight: 700; }

/* ============================================================
   チャットウィジェット
   ============================================================ */
.chat-widget {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(120deg, var(--color-ink), var(--color-navy));
  color: #fff;
}
.chat-header-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}
.chat-header-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat-header-name { font-size: 0.9rem; font-weight: 700; }
.chat-header-status {
  font-size: 0.7rem;
  color: #7ee2a8;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-header-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d97b;
  box-shadow: 0 0 0 3px rgba(52,217,123,.22);
}
.chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    var(--paper-dots),
    var(--color-paper);
  background-size: 20px 20px, 100% 100%;
}
.chat-bubble {
  max-width: 85%;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-bubble-ai {
  align-self: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
  color: var(--color-text);
}
.chat-bubble-user {
  align-self: flex-end;
  background: var(--color-steel);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px 4px;
  background: var(--color-paper);
}
.chat-quick-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-steel);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 7px 15px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.chat-quick-btn:hover {
  background: var(--color-steel);
  border-color: var(--color-steel);
  color: #fff;
}
/* タイピングインジケーター（3点ドット） */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
}
.chat-typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-steel);
  opacity: .35;
  animation: chatTyping 1.2s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chatTyping {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* AI回答についての注記 */
.chat-disclaimer {
  padding: 0 20px 14px;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  background: var(--color-paper);
  line-height: 1.6;
}

.chat-notice {
  margin: 8px 20px 0;
  padding: 10px 14px;
  background: #fdf6e3;
  border: 1px solid #eeda9e;
  border-radius: 10px;
  font-size: 0.78rem;
  color: #7a5c00;
  line-height: 1.7;
}
.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  background: var(--color-paper);
}
.chat-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: var(--field-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.chat-input:focus { outline: none; border-color: var(--color-steel); box-shadow: var(--field-focus-ring); }
.chat-send-btn {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.chat-send-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-send-btn:hover { background: var(--color-gold); color: var(--color-navy); transform: scale(1.06); }
.chat-send-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============================================================
   メディアフレーム（写真比率標準）
   ============================================================ */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  aspect-ratio: var(--photo-ratio-card);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: var(--photo-ratio-wide); }
.media-frame--square { aspect-ratio: var(--photo-ratio-square); }
.media-frame--tall { aspect-ratio: var(--photo-ratio-tall); }
.media-frame--contain img { object-fit: contain; }
.media-frame--card { border: 1px solid var(--color-border); }
.media-frame--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  background:
    var(--paper-dots),
    var(--color-off-white);
  background-size: 16px 16px, 100% 100%;
}

/* Coming Soon パネル */
.coming-soon-panel {
  background: var(--color-white);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}
.coming-soon-panel .section-label { justify-content: center; color: var(--color-gold); }
.coming-soon-panel .section-label::before { background: var(--color-gold); }
.coming-soon-panel h2 { font-size: 1.3rem; font-weight: 900; color: var(--color-navy); margin-bottom: 12px; }
.coming-soon-panel p { font-size: 0.9rem; color: var(--color-text-muted); max-width: 560px; margin: 0 auto; line-height: 1.95; }

/* ============================================================
   協力会社の取扱商品（トップ・協力会社ページ共通）
   ============================================================ */
.partner-products { margin-top: 44px; }
.partner-products-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}
.partner-products-head h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-navy);
}
.partner-products-head .en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.partner-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.partner-product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.partner-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46,91,138,.35);
}
.partner-product-media {
  aspect-ratio: var(--photo-ratio-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    var(--paper-dots),
    linear-gradient(150deg, #f1f5fa, #e7edf5);
  background-size: 18px 18px, 100% 100%;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-steel);
}
.partner-product-media svg { width: 44px; height: 44px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.partner-product-media .en {
  font-family: var(--font-en);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--color-steel);
}
.partner-product-media img { width: 100%; height: 100%; object-fit: cover; }
.partner-product-body { padding: 20px 22px; }
.partner-product-tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 900;
  color: var(--color-steel);
  background: rgba(46,91,138,.1);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.partner-product-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.partner-product-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}
.partner-products-note {
  margin-top: 16px;
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

/* ============================================================
   フッター
   ============================================================ */
.footer {
  position: relative;
  background: var(--color-ink);
  color: rgba(255,255,255,.78);
  padding: 80px 0 0;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain), var(--blueprint-grid);
  background-size: 140px 140px, 44px 44px, 44px 44px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  pointer-events: none;
}
/* 巨大アウトラインの透かしロゴ（エディトリアル仕上げ） */
.footer::after {
  content: 'SANKI';
  position: absolute;
  right: -0.06em;
  bottom: 42px;
  font-family: var(--font-en);
  font-size: clamp(6rem, 17vw, 15rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.07);
  pointer-events: none;
  user-select: none;
}
.footer .container { position: relative; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-logo-text {
  font-family: var(--font-en);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}
.footer-logo-text small {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.footer-desc {
  font-size: 0.84rem;
  line-height: 2;
  color: rgba(255,255,255,.62);
  margin-bottom: 24px;
  max-width: 460px;
}
.footer-desc strong { color: var(--color-gold-light); font-weight: 700; }
.footer-info p {
  font-size: 0.84rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.footer-info-icon svg,
.footer-info svg {
  width: 13px; height: 13px;
  stroke: var(--color-gold);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}
.footer-heading {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-heading::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--color-border-dark);
}
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a {
  font-size: 0.86rem;
  color: rgba(255,255,255,.72);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav a:hover { color: var(--color-gold-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding: 22px 0 26px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
}

/* ============================================================
   フローティング導線・ページトップ・進捗バー
   ============================================================ */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}
.floating-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.floating-btn:hover { transform: translateY(-3px) scale(1.02); }
.floating-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.floating-btn-line { background: var(--color-line); }
.floating-btn-chat { background: var(--color-steel); }
.floating-btn-line svg { stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.floating-btn-chat svg { stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-top-btn {
  position: fixed;
  left: 20px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-md);
}
.page-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.page-top-btn:hover { background: var(--color-navy); color: #fff; }
.page-top-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  z-index: 1200;
  pointer-events: none;
}

/* モバイル固定CTAバー */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(15,26,48,.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 950;
  transform: translateY(100%);
  transition: transform .3s ease;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-cta-bar.show { transform: translateY(0); }
.mobile-cta-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
}
.mobile-cta-bar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-cta-bar .cta-line { background: var(--color-line); }
.mobile-cta-bar .cta-line svg { fill: #fff; stroke: none; }
.mobile-cta-bar .cta-diag { color: var(--color-gold-light); }

/* ============================================================
   アニメーション
   ============================================================ */
.fade-up { opacity: 1; transform: none; }
.js-reveal .fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.js-reveal .fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger > * { transition-delay: 0s; }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: .1s; }
.stagger.visible > *:nth-child(3) { transition-delay: .2s; }
.stagger.visible > *:nth-child(4) { transition-delay: .3s; }
.js-reveal .stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.js-reveal .stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ============================================================
   改行制御ユーティリティ
   ============================================================ */
.keep-together { display: inline-block; }
.keep-together-mobile-wrap { display: inline-block; }
.mobile-only-break { display: none; }
.desktop-only-break { display: inline; }
.mobile-heading-balance { text-wrap: balance; }
.inline-meta-icon { display: inline-flex; align-items: center; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .partner-product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  .header-topbar { font-size: 0.66rem; gap: 3px 14px; padding: 5px 10px; }
  .header-inner { padding: 10px 16px; }
  .header-logo img { width: 38px; }
  .header-logo-text { font-size: 1rem; }
  .header-tel { display: none; }
  .btn-line-header { padding: 9px 16px; font-size: 0.78rem; }
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .page-hero-content { padding: 52px 20px 44px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 18px; }
  .partner-product-grid { grid-template-columns: 1fr; }
  .card-body { padding: 22px; }

  .btn { padding: 0 22px; font-size: 0.88rem; }
  .btn-lg { height: 56px; padding: 0 28px; font-size: 0.94rem; }

  .table th, .table td { padding: 12px 14px; }

  .accordion-header { padding: 16px 16px; font-size: 0.88rem; gap: 10px; }
  .accordion-body { padding: 14px 16px 18px 62px; }
  .a-mark { left: 16px; top: 14px; }

  .chat-widget { max-width: 100%; }
  .chat-messages { height: 240px; padding: 16px; }

  .footer { padding-top: 56px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }

  /* モバイルは画面下の固定CTAバー（電話/LINE/診断）に一本化し、浮遊LINEボタンは出さない */
  .floating-buttons { display: none; }
  .page-top-btn { left: 14px; bottom: 78px; width: 42px; height: 42px; }
  .mobile-cta-bar { display: grid; }
  .has-cta-bar .footer { padding-bottom: 54px; }

  .mobile-only-break { display: inline; }
  .desktop-only-break { display: none; }
  .keep-together-mobile-wrap { display: inline; }
}

/* ── 動きを減らす設定への配慮 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js-reveal .fade-up, .js-reveal .stagger > * { opacity: 1; transform: none; }
}

/* 2026-09：共通の紙面・ナビゲーションを整理 */
.header-topbar { background: var(--color-bg); color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); }
.header-topbar svg { stroke: var(--color-steel); }
.header { background: rgba(255,255,255,.95); }
.btn-line-header { background: #e7f6eb; color: #205637; box-shadow: none; border: 1px solid #c4e3ce; border-radius: 6px; }
.btn-line-header:hover { background: #d4eedc; box-shadow: none; transform: none; }
.header-nav a { font-size: .82rem; font-weight: 500; }
.header-nav a::after { background: var(--color-steel); }
.section-head h2 { font-weight: 700; line-height: 1.5; }
.card { box-shadow: none; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.floating-btn { border-radius: 8px; box-shadow: var(--shadow-sm); }
.floating-btn-line { background: #e7f6eb; color: #205637; border: 1px solid #c4e3ce; }
.floating-btn-line svg { stroke: currentColor; }
.footer::after { opacity: .035; }
.footer-bottom { color: #aab7c8; }
.footer-privacy { display: block; margin-bottom: 10px; color: #d9e7f3; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1120px) {
  .header { display: grid; grid-template-columns: minmax(200px, 1fr) auto minmax(280px, 1fr); align-items: center; gap: 28px; padding: 18px max(24px, calc((100% - 1232px) / 2)); }
  .header-inner { display: contents; }
  .header-logo { grid-column: 1; grid-row: 1; }
  .header-contact { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  .header-nav { grid-column: 2; grid-row: 1; border: 0; }
  .header-nav ul { padding: 0; gap: 22px; }
  .header-nav a { padding: 14px 0; white-space: nowrap; }
  .header-nav a::after { left: 0; right: 0; }
}
@media (max-width: 768px) {
  .header-topbar { padding: 6px 16px; font-size: .61rem; }
  .header-topbar > span:nth-child(2) { display: none; }
  .header-logo a { gap: 8px; }
  .header-logo img { width: 30px; }
  .header-logo-text { font-size: .86rem; }
  .header-logo-text small { font-size: .58rem; }
  .header-contact { gap: 8px; }
  .btn-line-header { padding: 9px 12px; font-size: .7rem; min-height: 42px; }
  .hamburger { width: 42px; height: 42px; border-radius: 6px; }
  .mobile-nav { max-height: calc(100dvh - 135px); overflow-y: auto; }
  .mobile-cta-bar .cta-line { background: #a4e7ba; color: #153b22; }
  .mobile-cta-bar .cta-line svg { fill: currentColor; }
}
