:root {
  /* Foundation */
  --color-paper: #f5f3ec;
  --color-paper-elevated: #ffffff;
  --color-paper-recessed: #e8e6dc;

  /* Text */
  --color-ink: #0e120a;
  --color-ink-muted: #4a4d3f;
  --color-ink-subtle: #878471;

  /* Brand */
  --color-moss: #2b3a1f;
  --color-moss-deep: #1a2412;
  --color-lime: #c8e85c;
  --color-lime-bright: #d8f57a;

  /* Functional */
  --color-line: #d8d5c8;
  --color-line-strong: #b3b0a3;
  --color-shadow: rgba(14, 18, 10, 0.08);

  /* Spacing (8px grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;
  --space-24: 192px;

  /* Typography */
  --font-display: "Zen Old Mincho", serif;
  --font-sans: "Inter", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 200ms ease-out;
  --transition-base: 400ms ease-out;
  --transition-slow: 800ms ease-out;

  /* Container */
  --container-max: 1280px;
  --container-fullbleed-max: 1600px;
  --container-padding: max(20px, min(5vw, 80px));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f5f3ec;
  background: var(--color-paper);
  color: #0e120a;
  color: var(--color-ink);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  font-feature-settings: "palt";
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Zen Old Mincho", serif;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: max(2.5rem, min(8vw, 7rem)); }

h2 { font-size: max(1.75rem, min(4vw, 3rem)); }

h3 { font-size: 1.25rem; font-family: "Inter", "Noto Sans JP", sans-serif; font-family: var(--font-sans); }

p { margin: 0 0 16px; margin: 0 0 var(--space-2); }

a { color: inherit; -webkit-text-decoration: none; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* 数字は等幅 */

.num, .mono { font-family: "JetBrains Mono", "Courier New", monospace; font-family: var(--font-mono); font-weight: 500; }

/* フォーカスリング */

*:focus-visible {
  outline: 2px solid #c8e85c;
  outline: 2px solid var(--color-lime);
  outline-offset: 4px;
}

/* R5 a11y: skip-link（WCAG 2.1「Bypass Blocks」A）
   通常は画面外に追い出し、Tab フォーカス時のみ画面左上に出現。
   R5 外部レビュー S-C 対応：position: absolute → fixed に変更
   （深いスクロール位置から Shift+Tab で focus 戻った時も常に viewport 左上に出現） */

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  left: var(--space-2);
  background: #0e120a;
  background: var(--color-ink);
  color: #f5f3ec;
  color: var(--color-paper);
  padding: 16px 24px;
  padding: var(--space-2) var(--space-3);
  z-index: 100000;
  -webkit-text-decoration: none;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.15s ease-out;
}

.skip-link:focus {
  top: 16px;
  top: var(--space-2);
}

/* main にプログラム的フォーカスした際の outline は抑制（ユーザー意図フォーカスではないため） */

main:focus {
  outline: none;
}

/* reduced-motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================================
   竜壱自動車 公式サイト（パターンA / シンプル・信頼感）
   横浜市泉区 板金塗装・全塗装・車検・出張整備
=================================================== */

:root {
  --bg: #fbfaf5;
  --text: #1a1d13;
  --accent: rgb(122, 158, 35);
  --accent-dark: rgb(83, 111, 0);
  --accent-light: rgb(224, 238, 202);
  --gray: #5f6153;
  --border: #e2e0d4;
  --white: #ffffff;
  --radius: 6px;
}

@supports (color: color(display-p3 0 0 0%)) {
:root {
  --accent-dark: rgb(83, 111, 0);
}

@media (color-gamut: p3) {
:root {
  --accent-dark: color(display-p3 0.34322 0.43428 0.05029);
}
}
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fbfaf5;
  background: var(--bg);
  color: #1a1d13;
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  line-height: 1.4;
}

/* ---- Header ---- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,245,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e0d4;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 max(1rem, min(4vw, 2rem));
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  -webkit-text-decoration: none;
  text-decoration: none;
  color: #1a1d13;
  color: var(--text);
  white-space: nowrap;
}

.logo em {
  font-style: normal;
  color: rgb(83, 111, 0);
  color: color(display-p3 0.34322 0.43428 0.05029);
  color: var(--accent-dark);
}

.pc-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.pc-nav a {
  -webkit-text-decoration: none;
  text-decoration: none;
  font-size: 0.875rem;
  color: #1a1d13;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}

.pc-nav a:hover, .pc-nav a.current { color: rgb(83, 111, 0); color: color(display-p3 0.34322 0.43428 0.05029); color: var(--accent-dark); }

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.h-btn-line {
  background: #06c755;
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  border-radius: var(--radius);
  -webkit-text-decoration: none;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.h-btn-tel {
  font-size: 0.8rem;
  font-weight: 700;
  -webkit-text-decoration: none;
  text-decoration: none;
  color: #1a1d13;
  color: var(--text);
}

/* hamburger */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span { display: block; width: 24px; height: 2px; background: #1a1d13; background: var(--text); }

/* mobile nav */

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: #fbfaf5;
  background: var(--bg);
  border-bottom: 1px solid #e2e0d4;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1.5rem max(1rem, min(4vw, 2rem));
  gap: 0;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  -webkit-text-decoration: none;
  text-decoration: none;
  color: #1a1d13;
  color: var(--text);
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2e0d4;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.mobile-nav-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* ---- Breadcrumb ---- */

.breadcrumb {
  background: #ffffff;
  background: var(--white);
  border-bottom: 1px solid #e2e0d4;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem max(1rem, min(4vw, 2rem));
  font-size: 0.78rem;
  color: #5f6153;
  color: var(--gray);
}

.breadcrumb-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb a { color: rgb(83, 111, 0); color: color(display-p3 0.34322 0.43428 0.05029); color: var(--accent-dark); -webkit-text-decoration: none; text-decoration: none; }

/* ---- Hero ---- */

.hero {
  padding: max(4rem, min(9vw, 7rem)) max(1rem, min(4vw, 2rem)) max(3rem, min(6vw, 5rem));
  background: linear-gradient(135deg, #fbfaf5 55%, rgb(224, 238, 202) 100%);
  background: linear-gradient(135deg, var(--bg) 55%, var(--accent-light) 100%);
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgb(224, 238, 202);
  background: var(--accent-light);
  color: rgb(83, 111, 0);
  color: color(display-p3 0.34322 0.43428 0.05029);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: max(1.8rem, min(4.5vw, 3rem));
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 68%, rgb(197, 224, 151) 68%);
}

.hero-sub {
  font-size: 1.05rem;
  color: #5f6153;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: rgb(83, 111, 0);
  background: color(display-p3 0.34322 0.43428 0.05029);
  background: var(--accent-dark);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  border-radius: var(--radius);
  -webkit-text-decoration: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: #1a1d13;
  color: var(--text);
  padding: 0.9rem 2rem;
  border-radius: 6px;
  border-radius: var(--radius);
  -webkit-text-decoration: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid #e2e0d4;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s;
}

.btn-outline:hover { border-color: rgb(122, 158, 35); border-color: var(--accent); }

/* hero stats */

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e0d4;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgb(83, 111, 0);
  color: color(display-p3 0.34322 0.43428 0.05029);
  color: var(--accent-dark);
}

.hero-stat .unit { font-size: 0.85rem; color: #5f6153; color: var(--gray); }

/* ---- Section ---- */

.section {
  padding: max(3rem, min(6vw, 5rem)) max(1rem, min(4vw, 2rem));
}

.section.alt { background: #ffffff; background: var(--white); }

.section-inner { max-width: 1140px; margin: 0 auto; }

.section-head { margin-bottom: 2.5rem; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(83, 111, 0);
  color: color(display-p3 0.34322 0.43428 0.05029);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title { font-size: max(1.4rem, min(3vw, 2rem)); }

.section-desc { color: #5f6153; color: var(--gray); margin-top: 0.75rem; font-size: 0.95rem; max-width: 560px; }

.section-head.center { text-align: center; }

.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ---- Card Grid ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.card {
  background: #fbfaf5;
  background: var(--bg);
  border: 1px solid #e2e0d4;
  border: 1px solid var(--border);
  border-radius: 6px;
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.card-icon {
  width: 48px; height: 48px;
  background: rgb(224, 238, 202);
  background: var(--accent-light);
  border-radius: 6px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.card p { font-size: 0.875rem; color: #5f6153; color: var(--gray); }

/* ---- Before/After ---- */

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.ba-card {
  border-radius: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e2e0d4;
  border: 1px solid var(--border);
  background: #ffffff;
  background: var(--white);
}

.ba-images { display: grid; grid-template-columns: 1fr 1fr; }

.ba-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.ba-img .ph {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #d8d6c8, #d8d6c8 3px, #eceadc 3px, #eceadc 18px);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0.5rem;
}

.ba-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #1a1d13;
  background: var(--text);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
}

.ba-badge.after { background: rgb(83, 111, 0); background: color(display-p3 0.34322 0.43428 0.05029); background: var(--accent-dark); }

.ba-info { padding: 1rem 1.25rem; }

.ba-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }

.ba-meta { font-size: 0.8rem; color: #5f6153; color: var(--gray); }

/* ---- Price Table ---- */

.price-block { margin-bottom: 3rem; }

.price-block-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid rgb(122, 158, 35);
  border-left: 3px solid var(--accent);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th {
  background: rgb(224, 238, 202);
  background: var(--accent-light);
  color: #1a1d13;
  color: var(--text);
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgb(122, 158, 35);
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}

.price-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e2e0d4;
  border-bottom: 1px solid var(--border);
}

.price-table tr:last-child td { border-bottom: none; }

.price-table .price-val {
  font-weight: 700;
  color: rgb(83, 111, 0);
  color: color(display-p3 0.34322 0.43428 0.05029);
  color: var(--accent-dark);
  white-space: nowrap;
}

.price-note {
  font-size: 0.82rem;
  color: #5f6153;
  color: var(--gray);
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ---- Works Filter ---- */

.filter-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: #ffffff;
  background: var(--white);
  border: 1px solid #e2e0d4;
  border: 1px solid var(--border);
  color: #1a1d13;
  color: var(--text);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn.active, .filter-btn:hover {
  background: rgb(83, 111, 0);
  background: color(display-p3 0.34322 0.43428 0.05029);
  background: var(--accent-dark);
  color: #fff;
  border-color: rgb(83, 111, 0);
  border-color: color(display-p3 0.34322 0.43428 0.05029);
  border-color: var(--accent-dark);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.work-item {
  border-radius: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e2e0d4;
  border: 1px solid var(--border);
  background: #ffffff;
  background: var(--white);
}

.work-thumb {
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(45deg, #d8d6c8, #d8d6c8 3px, #eceadc 3px, #eceadc 18px);
  display: flex; align-items: center; justify-content: center;
}

.work-ph-label { font-size: 0.8rem; color: #5f6153; color: var(--gray); }

.work-body { padding: 1rem 1.25rem; }

.work-cat {
  display: inline-block;
  background: rgb(224, 238, 202);
  background: var(--accent-light);
  color: rgb(83, 111, 0);
  color: color(display-p3 0.34322 0.43428 0.05029);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.4rem;
}

.work-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }

.work-sub { font-size: 0.82rem; color: #5f6153; color: var(--gray); }

/* ---- Contact ---- */

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-box {
  background: #ffffff;
  background: var(--white);
  border: 1px solid #e2e0d4;
  border: 1px solid var(--border);
  border-radius: 6px;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.contact-box .c-icon { font-size: 2.25rem; margin-bottom: 1rem; }

.contact-box h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.contact-box p { font-size: 0.85rem; color: #5f6153; color: var(--gray); margin-bottom: 1.25rem; line-height: 1.7; }

.c-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border-radius: var(--radius);
  -webkit-text-decoration: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.c-btn.line { background: #06c755; color: #fff; }

.c-btn.mail { background: rgb(83, 111, 0); background: color(display-p3 0.34322 0.43428 0.05029); background: var(--accent-dark); color: #fff; }

.c-btn.tel { background: #1a1d13; background: var(--text); color: #fff; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
  gap: 2rem;
  margin-bottom: 2rem;
}

.info-box {
  background: #ffffff;
  background: var(--white);
  border: 1px solid #e2e0d4;
  border: 1px solid var(--border);
  border-radius: 6px;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-box h3 { font-size: 1rem; margin-bottom: 1rem; }

.info-row {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e0d4;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.info-row:last-child { border-bottom: none; }

.info-label { color: #5f6153; color: var(--gray); min-width: 80px; flex-shrink: 0; }

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.area-tag {
  background: rgb(224, 238, 202);
  background: var(--accent-light);
  color: rgb(83, 111, 0);
  color: color(display-p3 0.34322 0.43428 0.05029);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.map-ph {
  width: 100%;
  height: 280px;
  background: repeating-linear-gradient(45deg, #d8d6c8, #d8d6c8 3px, #eceadc 3px, #eceadc 18px);
  border-radius: 6px;
  border-radius: var(--radius);
  border: 1px solid #e2e0d4;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #5f6153;
  color: var(--gray);
  font-size: 0.9rem;
}

/* ---- CTA Section ---- */

.cta-section {
  background: #1a1d13;
  background: var(--text);
  color: #fff;
  padding: max(3rem, min(6vw, 5rem)) max(1rem, min(4vw, 2rem));
  text-align: center;
}

.cta-section h2 { font-size: max(1.4rem, min(3vw, 2rem)); color: #fff; margin-bottom: 0.75rem; }

.cta-section p { color: #9ca390; margin-bottom: 2rem; }

.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-btn-line {
  background: #06c755; color: #fff;
  padding: 1rem 2.5rem; border-radius: 6px; border-radius: var(--radius);
  -webkit-text-decoration: none;
  text-decoration: none; font-weight: 700; font-size: 1.05rem;
}

.cta-btn-tel {
  background: rgba(255,255,255,0.1); color: #fff;
  padding: 1rem 2.5rem; border-radius: 6px; border-radius: var(--radius);
  -webkit-text-decoration: none;
  text-decoration: none; font-weight: 700; font-size: 1.05rem;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ---- Footer ---- */

footer {
  background: #0d0f09;
  color: #7a7e6e;
  padding: 2.5rem max(1rem, min(4vw, 2rem));
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo { font-family: 'Noto Serif JP', serif; color: #f0f0e8; font-size: 1rem; }

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

.footer-links a { color: #7a7e6e; -webkit-text-decoration: none; text-decoration: none; }

.footer-links a:hover { color: rgb(122, 158, 35); color: var(--accent); }

.footer-copy { font-size: 0.78rem; color: #555; }

/* ---- Mobile Sticky Bar ---- */

.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sticky-bar a {
  padding: 1rem;
  text-align: center;
  -webkit-text-decoration: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.sticky-bar .sb-line { background: #06c755; color: #fff; }

.sticky-bar .sb-tel { background: rgb(83, 111, 0); background: color(display-p3 0.34322 0.43428 0.05029); background: var(--accent-dark); color: #fff; }

/* ---- Service Detail ---- */

.service-section {
  padding: max(2.5rem, min(5vw, 4rem)) max(1rem, min(4vw, 2rem));
  border-bottom: 1px solid #e2e0d4;
  border-bottom: 1px solid var(--border);
}

.service-section:last-child { border-bottom: none; }

.service-section-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 3rem;
  gap: 3rem;
  align-items: start;
}

.service-section.reverse .service-section-inner { direction: rtl; }

.service-section.reverse .service-section-inner > * { direction: ltr; }

.service-thumb {
  aspect-ratio: 4/3;
  border-radius: 6px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #d8d6c8, #d8d6c8 3px, #eceadc 3px, #eceadc 18px);
  display: flex; align-items: center; justify-content: center;
  color: #5f6153;
  color: var(--gray); font-size: 0.85rem;
}

.service-content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.service-content p { color: #5f6153; color: var(--gray); font-size: 0.95rem; line-height: 1.85; margin-bottom: 1rem; }

.service-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-points li {
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
  color: #5f6153;
  color: var(--gray);
}

.service-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: rgb(83, 111, 0);
  color: color(display-p3 0.34322 0.43428 0.05029);
  color: var(--accent-dark);
  font-weight: 700;
}

/* ---- Page Hero (inner pages) ---- */

.page-hero {
  background: linear-gradient(135deg, #fbfaf5 60%, rgb(224, 238, 202) 100%);
  background: linear-gradient(135deg, var(--bg) 60%, var(--accent-light) 100%);
  padding: max(3rem, min(6vw, 5rem)) max(1rem, min(4vw, 2rem));
  border-bottom: 1px solid #e2e0d4;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner { max-width: 1140px; margin: 0 auto; }

.page-hero h1 { font-size: max(1.6rem, min(3.5vw, 2.5rem)); margin-bottom: 0.75rem; }

.page-hero p { color: #5f6153; color: var(--gray); font-size: 1rem; }

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .pc-nav, .header-actions { display: none; }
  .hamburger { display: flex; }
  body { padding-bottom: 60px; }
  .sticky-bar { display: grid; }
  .info-grid { grid-template-columns: 1fr; }
  .service-section-inner { grid-template-columns: 1fr; }
  .service-section.reverse .service-section-inner { direction: ltr; }
}

.container {
  max-width: 1280px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(20px, min(5vw, 80px));
  padding-right: max(20px, min(5vw, 80px));
  padding-left: max(20px, min(5vw, 80px));
  padding-left: var(--container-padding);
  padding-right: max(20px, min(5vw, 80px));
  padding-right: var(--container-padding);
}

.container-fullbleed {
  max-width: 1600px;
  max-width: var(--container-fullbleed-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(20px, min(5vw, 80px));
  padding-right: max(20px, min(5vw, 80px));
  padding-left: max(20px, min(5vw, 80px));
  padding-left: var(--container-padding);
  padding-right: max(20px, min(5vw, 80px));
  padding-right: var(--container-padding);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 24px;
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-12 { gap: 16px; }
}

section { padding-top: 160px; padding-bottom: 160px; padding-top: var(--space-20); padding-bottom: var(--space-20); }

@media (max-width: 768px) {
  section { padding-top: 96px; padding-bottom: 96px; padding-top: var(--space-12); padding-bottom: var(--space-12); }
}

/* Button - Primary */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  border-radius: var(--radius-md);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 200ms ease-out, background 200ms ease-out;
  transition: transform var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary { background: #2b3a1f; background: var(--color-moss); color: #f5f3ec; color: var(--color-paper); }

.btn-primary:hover { background: #1a2412; background: var(--color-moss-deep); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #0e120a;
  color: var(--color-ink);
  border: 1.5px solid #0e120a;
  border: 1.5px solid var(--color-ink);
}

.btn-outline:hover { background: #0e120a; background: var(--color-ink); color: #f5f3ec; color: var(--color-paper); }

/* Card */

.card {
  background: #ffffff;
  background: var(--color-paper-elevated);
  border-radius: 16px;
  border-radius: var(--radius-lg);
  padding: 32px;
  padding: var(--space-4);
  transition: transform 400ms ease-out, box-shadow 400ms ease-out;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(14, 18, 10, 0.08);
  box-shadow: 0 8px 24px var(--color-shadow);
}

/* Price table */

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th, .price-table td {
  padding: 24px 16px;
  padding: var(--space-3) var(--space-2);
  text-align: left;
  border-bottom: 1px solid #d8d5c8;
  border-bottom: 1px solid var(--color-line);
}

.price-table .price-val { font-family: "JetBrains Mono", "Courier New", monospace; font-family: var(--font-mono); font-weight: 500; text-align: right; }

/* Custom cursor */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background: #f5f3ec;
  background: var(--color-paper);
  border-radius: 50%;
}

.cursor-ring {
  position: absolute;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid #f5f3ec;
  border: 1px solid var(--color-paper);
  border-radius: 50%;
  transition: width 200ms ease-out, height 200ms ease-out, margin 200ms ease-out;
}

.cursor-link .cursor-ring {
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
}

.cursor-view .cursor-ring {
  width: 80px; height: 80px; margin: -40px 0 0 -40px;
}

.cursor-label {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  color: #f5f3ec;
  color: var(--color-paper);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Preloader */

.preloader {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: #0e120a;
  background: var(--color-ink);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-inner { text-align: center; }

.preloader-text {
  font-family: "Zen Old Mincho", serif;
  font-family: var(--font-display);
  font-size: max(2rem, min(6vw, 4rem));
  color: #f5f3ec;
  color: var(--color-paper);
  font-weight: 700;
}

.preloader-text span { display: inline-block; }

.preloader-underline {
  width: 80%;
  height: 2px;
  background: #c8e85c;
  background: var(--color-lime);
  margin: 16px auto 0;
  margin: var(--space-2) auto 0;
}

/* Nav / Header / Overlay */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform 300ms ease-in-out, background 200ms ease-out; }

.site-header.header-hidden { transform: translateY(-100%); }

.site-header.scrolled { backdrop-filter: blur(20px); background: rgba(245, 243, 236, 0.85); }

/* PC navigation list (HTML: nav.pc-nav > ul > li > a) — legacy.css の .pc-nav 自体には display:flex がかかるが、子の ul には効かないため独立指定 */

.pc-nav > ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.overlay-nav {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: #0e120a;
  background: var(--color-ink);
  z-index: 200;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  transform: translateY(-100%);
  transition: transform 400ms ease-in-out;
}

.overlay-nav.open { transform: translateY(0); }

.overlay-nav nav ul { list-style: none; padding: 0; margin: 0; }

.overlay-nav nav ul li { margin-top: 24px; margin-bottom: 24px; margin-top: var(--space-3); margin-bottom: var(--space-3); }

.overlay-nav nav ul li a {
  font-family: "Zen Old Mincho", serif;
  font-family: var(--font-display);
  font-size: max(1.5rem, min(6vw, 3rem));
  color: #f5f3ec;
  color: var(--color-paper);
}

.overlay-close {
  position: absolute; top: 24px; top: var(--space-3); right: 24px; right: var(--space-3);
  background: none; border: none;
  color: #f5f3ec;
  color: var(--color-paper);
  font-size: 2rem; cursor: pointer;
}

.hamburger { /* モバイル時のみ表示・アイコン省略 */ }

@media (min-width: 769px) {
  .hamburger { display: none; }
}

/* Page transition overlay */

.page-transition-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #0e120a;
  background: var(--color-ink);
  z-index: 9998;
  transform: translateY(100%);
  pointer-events: none;
}

/* ============================================================
   Site Footer (HTML 構造に対応する CSS が R1 以降未定義だった)
   legacy.css の旧 .footer-links 系は現状の HTML クラスと不一致
   ============================================================ */

.site-footer {
  position: relative;
  background: #0d0f09;
  color: #f5f3ec;
  color: var(--color-paper);
  padding: 80px max(20px, min(5vw, 80px)) 48px;
  padding: var(--space-10) var(--container-padding) var(--space-6);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 48px;
  grid-gap: var(--space-6);
  gap: 48px;
  gap: var(--space-6);
  max-width: 1280px;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: left;
}

.footer-col h4 {
  font-size: 0.875rem;
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
  color: #f5f3ec;
  color: var(--color-paper);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-top: 16px;
  margin-bottom: 16px;
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.footer-col ul li a,
.footer-col address a {
  color: #878471;
  color: var(--color-ink-subtle);
  -webkit-text-decoration: none;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover,
.footer-col address a:hover {
  color: #f5f3ec;
  color: var(--color-paper);
}

.footer-col address {
  font-style: normal;
  line-height: 1.7;
  color: #878471;
  color: var(--color-ink-subtle);
  font-size: 0.875rem;
}

.footer-logo {
  font-family: "Zen Old Mincho", serif;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: #f5f3ec;
  color: var(--color-paper);
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

.footer-statement {
  color: #878471;
  color: var(--color-ink-subtle);
  font-size: 0.875rem;
}

.footer-bottom {
  max-width: 1280px;
  max-width: var(--container-max);
  margin: 48px auto 0;
  margin: var(--space-6) auto 0;
  padding-top: 32px;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(245, 243, 236, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #878471;
  color: var(--color-ink-subtle);
}

.footer-bottom a {
  color: #878471;
  color: var(--color-ink-subtle);
  -webkit-text-decoration: none;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #f5f3ec;
  color: var(--color-paper);
}

.back-to-top {
  position: absolute;
  right: max(20px, min(5vw, 80px));
  right: var(--container-padding);
  bottom: 32px;
  bottom: var(--space-4);
  color: #878471;
  color: var(--color-ink-subtle);
  -webkit-text-decoration: none;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.back-to-top:hover {
  color: #f5f3ec;
  color: var(--color-paper);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    gap: var(--space-4);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    gap: var(--space-2);
    text-align: center;
  }
  .back-to-top {
    position: static;
    display: block;
    text-align: center;
    margin-top: 24px;
    margin-top: var(--space-3);
  }
}

/* ============================================================
   Top page (index)
   ============================================================ */

/* ----- Hero ----- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f5f3ec;
  color: var(--color-paper);
}

.hero-slides { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; }

.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a2412;
  background-color: var(--color-moss-deep); /* 画像未配置時のフォールバック */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slides::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(14, 18, 10, 0.3) 0%, rgba(14, 18, 10, 0.7) 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-tag {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
}

.hero-title em {
  font-style: normal;
  /* color はあえて指定せず、.hero の color: var(--color-paper) を継承させる。
     legacy.css の .hero h1 em の linear-gradient（下 32% lime 蛍光ペン背景）と
     白文字の組み合わせで強調表示する設計。
     旧 `color: var(--color-lime)` だと文字色も lime で背景帯と同化していた。 */
}

.hero-sub {
  font-size: 1.125rem;
  max-width: 540px;
  margin-top: 32px;
  margin-bottom: 32px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.hero-cta {
  display: flex;
  gap: 16px;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero-cta .btn-outline {
  /* hero は暗背景のため、components.css の .btn-outline (color: var(--color-ink)) を上書きして白系に */
  color: #f5f3ec;
  color: var(--color-paper);
  border-color: #f5f3ec;
  border-color: var(--color-paper);
}

.hero-cta .btn-outline:hover {
  background: #f5f3ec;
  background: var(--color-paper);
  color: #0e120a;
  color: var(--color-ink);
}

/* ----- Intro title ----- */

.intro-title { padding-top: 192px; padding-bottom: 192px; padding-top: var(--space-24); padding-bottom: var(--space-24); }

.intro-h2 {
  font-size: max(2rem, min(6vw, 5rem));
  line-height: 1.15;
  max-width: 1000px;
}

.intro-meta {
  color: #878471;
  color: var(--color-ink-subtle);
  margin-top: 24px;
  margin-top: var(--space-3);
}

/* ----- Story (pinned 2-column) ----- */

.story {
  min-height: 200vh;
  padding-top: 160px;
  padding-bottom: 160px;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 64px;
  grid-gap: var(--space-8);
  gap: 64px;
  gap: var(--space-8);
  align-items: start;
  max-width: 1280px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: max(20px, min(5vw, 80px));
  padding-right: max(20px, min(5vw, 80px));
  padding-left: max(20px, min(5vw, 80px));
  padding-left: var(--container-padding);
  padding-right: max(20px, min(5vw, 80px));
  padding-right: var(--container-padding);
}

.story-text {
  position: sticky;
  top: 100px;
}

.story-label {
  color: #2b3a1f;
  color: var(--color-moss);
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
}

.story-h2 { margin-bottom: 40px; margin-bottom: var(--space-5); }

.story-body p { margin-bottom: 32px; margin-bottom: var(--space-4); }

.story-images {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: #e8e6dc;
  background-color: var(--color-paper-recessed); /* 画像未配置時のフォールバック */
  border-radius: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.story-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.story-img.active { opacity: 1; }

@media (max-width: 768px) {
  .story { min-height: auto; }
  .story-inner { grid-template-columns: 1fr; }
  .story-text { position: static; }
}

/* ----- Section head shared (Top 内で使用) ----- */

.section-head { margin-bottom: 64px; margin-bottom: var(--space-8); }

.section-head.center { text-align: center; }

.section-label {
  color: #2b3a1f;
  color: var(--color-moss);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

.section-title { font-size: max(1.75rem, min(4vw, 3rem)); }

/* ----- Services overview ----- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 24px;
  grid-gap: var(--space-3);
  gap: 24px;
  gap: var(--space-3);
}

@media (min-width: 769px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  position: relative;
  padding: 40px;
  padding: var(--space-5);
  background: #ffffff;
  background: var(--color-paper-elevated);
  border-radius: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: color 400ms ease-out;
  isolation: isolate;
}

.service-card h3 {
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
  font-size: 1.25rem;
}

.service-card p {
  margin: 0;
  color: #4a4d3f;
  color: var(--color-ink-muted);
  transition: color 400ms ease-out;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: var(--hover-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 400ms ease-out;
  z-index: -2;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(14, 18, 10, 0.5) 0%, rgba(14, 18, 10, 0.8) 100%);
  opacity: 0;
  transition: opacity 400ms ease-out;
  z-index: -1;
}

.service-card:hover {
  color: #f5f3ec;
  color: var(--color-paper);
}

.service-card:hover p { color: #f5f3ec; color: var(--color-paper); }

.service-card:hover::before,
.service-card:hover::after {
  opacity: 1;
}

/* ----- Works preview ----- */

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 40px;
  grid-gap: var(--space-5);
  gap: 40px;
  gap: var(--space-5);
}

@media (min-width: 769px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

.work-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 4px;
  gap: 4px;
  aspect-ratio: 2 / 1;
}

.work-images img,
.work-img-placeholder {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  border-radius: var(--radius-md);
}

.work-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e6dc;
  background: var(--color-paper-recessed);
  color: #878471;
  color: var(--color-ink-subtle);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.work-title {
  margin-top: 16px;
  margin-top: var(--space-2);
  font-size: 1.125rem;
}

.work-meta {
  color: #878471;
  color: var(--color-ink-subtle);
  font-size: 0.875rem;
}

.cta-center {
  text-align: center;
  margin-top: 64px;
  margin-top: var(--space-8);
}

/* ----- Reasons (Why Us) ----- */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 40px;
  grid-gap: var(--space-5);
  gap: 40px;
  gap: var(--space-5);
  margin-top: 64px;
  margin-top: var(--space-8);
}

@media (max-width: 768px) {
  .reasons-grid { grid-template-columns: 1fr; }
}

.reason { text-align: center; }

.reason-num {
  font-size: max(3rem, min(8vw, 6rem));
  color: #2b3a1f;
  color: var(--color-moss);
  line-height: 1;
}

.reason-unit {
  color: #878471;
  color: var(--color-ink-subtle);
  margin-top: 16px;
  margin-top: var(--space-2);
}

/* ----- CTA banner ----- */

.cta-banner {
  background: #2b3a1f;
  background: var(--color-moss);
  color: #f5f3ec;
  color: var(--color-paper);
  text-align: center;
}

.cta-banner h2 {
  color: #f5f3ec;
  color: var(--color-paper);
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
}

.cta-banner p {
  margin-bottom: 40px;
  margin-bottom: var(--space-5);
  opacity: 0.8;
}

/* ============================================================
   Service page
   ============================================================ */

/* ----- ページ共通：page-hero / page-lead は他ページでも再利用想定 ----- */

.page-hero {
  padding-top: 128px;
  padding-bottom: 64px;
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  text-align: left;
}

.page-hero h1 {
  font-size: max(2.5rem, min(7vw, 5.5rem));
  margin-bottom: 32px;
  margin-bottom: var(--space-4);
}

.page-lead {
  font-size: 1.125rem;
  max-width: 720px;
  color: #4a4d3f;
  color: var(--color-ink-muted);
}

/* ----- Process（水平スクロール変換） ----- */

.process {
  padding-top: 160px;
  padding-bottom: 160px;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  overflow: hidden;
}

.process-track {
  display: flex;
  gap: 48px;
  gap: var(--space-6);
  padding-left: max(20px, min(5vw, 80px));
  padding-right: max(20px, min(5vw, 80px));
  padding-left: max(20px, min(5vw, 80px));
  padding-left: var(--container-padding);
  padding-right: max(20px, min(5vw, 80px));
  padding-right: var(--container-padding);
  width: -moz-max-content;
  width: max-content;
}

.process-step {
  flex: 0 0 360px;
  padding: 40px;
  padding: var(--space-5);
  background: #ffffff;
  background: var(--color-paper-elevated);
  border-radius: 16px;
  border-radius: var(--radius-lg);
  border-top: 4px solid #c8e85c;
  border-top: 4px solid var(--color-lime);
}

.step-num {
  font-size: 2.5rem;
  color: #2b3a1f;
  color: var(--color-moss);
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.process-step h3 {
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

/* モバイル：水平スクロール変換せず、横スクロール許容 */

@media (max-width: 768px) {
  .process-track {
    overflow-x: auto;
    width: 100%;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    padding-bottom: var(--space-3);
  }
  .process-step {
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }
}

/* ----- Service detail（4種） ----- */

.service-detail {
  padding-top: 80px;
  padding-bottom: 80px;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

/* `:nth-of-type(even)` は親内の全 <section> 要素を対象にカウントするため、
   前後の section（process / cta-banner 等）の増減で意図と逆転するリスクがある。
   `:nth-child(2n of .service-detail)` で .service-detail 要素のみをカウント対象にし、
   構造変更に対して堅牢にする（CSS Selectors Level 4、Chrome 111+/Firefox 113+/Safari 9+）。 */

.service-detail:nth-child(2n of .service-detail) {
  background: #e8e6dc;
  background: var(--color-paper-recessed);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 64px;
  grid-gap: var(--space-8);
  gap: 64px;
  gap: var(--space-8);
  align-items: center;
}

/* reverse は左右の見た目を入れ替え（direction trick は a11y/翻訳で問題を起こすため CSS Grid 順序で実装） */

.service-detail-grid.reverse .service-detail-image {
  order: 2;
}

.service-detail-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 16px;
  border-radius: var(--radius-lg);
  background-color: #e8e6dc;
  background-color: var(--color-paper-recessed); /* 画像未配置時のフォールバック */
}

.service-detail-content h2 {
  margin-top: 16px;
  margin-bottom: 24px;
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.service-points {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  margin-top: var(--space-3);
}

.service-points li {
  padding-left: 24px;
  padding-left: var(--space-3);
  position: relative;
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

.service-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2b3a1f;
  color: var(--color-moss);
  font-weight: 700;
}

@media (max-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-detail-grid.reverse .service-detail-image {
    order: 0; /* モバイルでは reverse 無効化（画像→テキストの順） */
  }
}

/* ----- Other services（2x2 グリッド） ----- */

.other-services {
  padding-top: 160px;
  padding-bottom: 160px;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.other-services-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 769px) {
  .other-services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.other-service-card {
  padding: 40px;
  padding: var(--space-5);
  background: #ffffff;
  background: var(--color-paper-elevated);
  border-radius: 16px;
  border-radius: var(--radius-lg);
}

.other-service-card h3 {
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

.other-service-card p {
  margin: 0;
  color: #4a4d3f;
  color: var(--color-ink-muted);
}

/* ============================================================
   Price page（軽量モード）
   ============================================================ */

/* ----- 見積もりコラム ----- */

.price-column {
  max-width: 800px;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.price-column h2 {
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
}

.price-column p {
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
  line-height: 1.85;
}

/* ----- Price section（料金表をまとめるブロック） ----- */

.price-section {
  padding-top: 64px;
  padding-bottom: 64px;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  border-top: 1px solid #d8d5c8;
  border-top: 1px solid var(--color-line);
}

.price-section:first-of-type {
  border-top: none;
}

.price-section h2 {
  margin-bottom: 32px;
  margin-bottom: var(--space-4);
}

.price-note {
  margin-top: 24px;
  margin-top: var(--space-3);
  color: #4a4d3f;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.price-note strong {
  color: #0e120a;
  color: var(--color-ink);
}

/* price-table 自体は components.css で定義済 */

/* ----- 注意事項リスト ----- */

.price-notes {
  padding-top: 80px;
  padding-bottom: 80px;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.price-notes h2 {
  margin-bottom: 40px;
  margin-bottom: var(--space-5);
}

.notes-list {
  list-style: none;
  padding: 0;
}

.notes-list li {
  padding: 24px;
  padding: var(--space-3);
  background: #ffffff;
  background: var(--color-paper-elevated);
  border-radius: 8px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
  border-left: 4px solid #2b3a1f;
  border-left: 4px solid var(--color-moss);
}

.notes-list li strong {
  display: inline-block;
  margin-right: 8px;
  margin-right: var(--space-1);
}

/* ============================================================
   Works page
   ============================================================ */

/* ----- フィルター ----- */

.works-filter {
  display: flex;
  gap: 16px;
  gap: var(--space-2);
  margin-top: 64px;
  margin-bottom: 48px;
  margin-top: var(--space-8);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 16px 24px;
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid #b3b0a3;
  border: 1.5px solid var(--color-line-strong);
  background: transparent;
  color: #4a4d3f;
  color: var(--color-ink-muted);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 200ms ease-out, background 200ms ease-out, border-color 200ms ease-out;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.filter-btn:hover {
  color: #0e120a;
  color: var(--color-ink);
  border-color: #0e120a;
  border-color: var(--color-ink);
}

.filter-btn.active {
  background: #2b3a1f;
  background: var(--color-moss);
  color: #f5f3ec;
  color: var(--color-paper);
  border-color: #2b3a1f;
  border-color: var(--color-moss);
}

/* ----- Works page grid（Top の works-grid を上書き：3列固定 + より広いギャップ） ----- */

.works-page-grid {
  grid-template-columns: 1fr;
  gap: 48px;
  gap: var(--space-6);
  padding-top: 24px;
  padding-bottom: 80px;
  padding-top: var(--space-3);
  padding-bottom: var(--space-10);
}

@media (min-width: 769px) {
  .works-page-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* work-item は work-card と同じスタイル（Top の index.css 定義を流用） */

.work-item .work-images,
.work-item .work-title,
.work-item .work-meta {
  /* index.css の .work-* スタイルを継承 */
}

/* ----- Instagram CTA ----- */

.instagram-cta {
  background: #0e120a;
  background: var(--color-ink);
  color: #f5f3ec;
  color: var(--color-paper);
  text-align: center;
}

.instagram-cta h2 {
  color: #f5f3ec;
  color: var(--color-paper);
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
}

.instagram-cta p {
  margin-bottom: 40px;
  margin-bottom: var(--space-5);
  opacity: 0.8;
}

/* ============================================================
   Contact page（軽量モード）
   ============================================================ */

/* ----- 3 コンタクトカード ----- */

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  grid-gap: var(--space-3);
  gap: 24px;
  gap: var(--space-3);
  padding-top: 40px;
  padding-bottom: 80px;
  padding-top: var(--space-5);
  padding-bottom: var(--space-10);
}

@media (min-width: 769px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  display: block;
  padding: 40px;
  padding: var(--space-5);
  background: #ffffff;
  background: var(--color-paper-elevated);
  border-radius: 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid #d8d5c8;
  border: 1.5px solid var(--color-line);
  transition: transform 400ms ease-out, border-color 400ms ease-out, box-shadow 400ms ease-out;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  color: #0e120a;
  color: var(--color-ink);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: #2b3a1f;
  border-color: var(--color-moss);
  box-shadow: 0 8px 24px rgba(14, 18, 10, 0.08);
  box-shadow: 0 8px 24px var(--color-shadow);
}

.contact-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

.contact-card h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

.contact-card p {
  color: #4a4d3f;
  color: var(--color-ink-muted);
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

.contact-tel-number,
.contact-mail-address {
  font-size: 1.125rem;
  color: #0e120a;
  color: var(--color-ink);
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

.contact-card-cta {
  display: inline-block;
  margin-top: 16px;
  margin-top: var(--space-2);
  color: #2b3a1f;
  color: var(--color-moss);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ----- 店舗情報 ----- */

.shop-info {
  padding-top: 80px;
  padding-bottom: 80px;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  border-top: 1px solid #d8d5c8;
  border-top: 1px solid var(--color-line);
}

.shop-info h2 {
  margin-bottom: 40px;
  margin-bottom: var(--space-5);
}

.shop-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 40px;
  grid-gap: var(--space-5);
  gap: 40px;
  gap: var(--space-5);
}

@media (min-width: 769px) {
  .shop-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shop-info-block h3 {
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
  color: #2b3a1f;
  color: var(--color-moss);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.shop-info-block p,
.shop-info-block address {
  font-style: normal;
  margin: 0;
  line-height: 1.85;
}

.shop-info-note {
  margin-top: 16px;
  margin-top: var(--space-2);
  color: #4a4d3f;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

/* ----- アクセスマップ ----- */

.shop-map {
  padding-top: 80px;
  padding-bottom: 80px;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  border-top: 1px solid #d8d5c8;
  border-top: 1px solid var(--color-line);
}

.shop-map h2 {
  margin-bottom: 40px;
  margin-bottom: var(--space-5);
}

.shop-map-frame {
  border-radius: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #e8e6dc;
  background-color: var(--color-paper-recessed);
}

.shop-map-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.shop-map-note {
  margin-top: 24px;
  margin-top: var(--space-3);
  color: #4a4d3f;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

/* ============================================================
   Privacy page（軽量モード）
   ============================================================ */

.privacy {
  max-width: 800px;
  padding-top: 40px;
  padding-bottom: 128px;
  padding-top: var(--space-5);
  padding-bottom: var(--space-16);
}

.privacy h2 {
  margin-top: 64px;
  margin-top: var(--space-8);
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
}

.privacy h2:first-of-type {
  margin-top: 40px;
  margin-top: var(--space-5);
}

.privacy p {
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
  line-height: 1.85;
}

.privacy ul {
  padding-left: 32px;
  padding-left: var(--space-4);
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
}

.privacy ul li {
  margin-bottom: 8px;
  margin-bottom: var(--space-1);
  line-height: 1.75;
}

.privacy address {
  font-style: normal;
  padding: 24px;
  padding: var(--space-3);
  background: #ffffff;
  background: var(--color-paper-elevated);
  border-radius: 8px;
  border-radius: var(--radius-md);
  border-left: 4px solid #2b3a1f;
  border-left: 4px solid var(--color-moss);
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
  line-height: 1.85;
}

.privacy-meta {
  margin-top: 80px;
  margin-top: var(--space-10);
  color: #878471;
  color: var(--color-ink-subtle);
  font-size: 0.9375rem;
  text-align: right;
}

/* ============================================================
   404 page（軽量モード）
   ============================================================ */

.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 128px;
  padding-bottom: 128px;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.error-inner {
  text-align: center;
  max-width: 600px;
}

.error-code {
  font-size: max(5rem, min(16vw, 10rem));
  line-height: 1;
  color: #2b3a1f;
  color: var(--color-moss);
  margin-bottom: 24px;
  margin-bottom: var(--space-3);
}

.error-404 h1 {
  font-size: max(1.75rem, min(4vw, 2.5rem));
  margin-bottom: 32px;
  margin-bottom: var(--space-4);
}

.error-404 p {
  color: #4a4d3f;
  color: var(--color-ink-muted);
  margin-bottom: 16px;
  margin-bottom: var(--space-2);
}

.error-links {
  display: flex;
  gap: 16px;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-top: var(--space-5);
}
