/* ===========================================================
   株式会社アズマヤ — Corporate Site Stylesheet
   建設業向け：信頼感・地域密着・現場対応力
   =========================================================== */

:root {
  /* === Color tokens (tweakable via data-attr on <html>) === */
  --navy: #0E2A47;
  --navy-deep: #081B30;
  --navy-soft: #1A3A5C;
  --line-navy: rgba(14, 42, 71, 0.08);

  --bg-base: #F6F3EC;      /* warm off-white */
  --bg-alt: #FFFFFF;
  --bg-sand: #EFE9DC;
  --bg-card: #FFFFFF;

  --text: #181818;
  --text-mid: #4F4F4F;
  --text-light: #8A8A8A;
  --text-on-dark: rgba(255,255,255,0.92);
  --text-on-dark-mid: rgba(255,255,255,0.62);
  --text-on-dark-low: rgba(255,255,255,0.38);

  --border: #E2DDD0;
  --border-strong: #CFC8B7;
  --border-on-dark: rgba(255,255,255,0.12);

  --accent: #B8542E;       /* rust / 朱 */
  --accent-deep: #9A4222;
  --accent-soft: rgba(184, 84, 46, 0.08);

  /* === Type === */
  --font-jp: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --font-en: 'DM Sans', 'Noto Sans JP', sans-serif;

  /* === Layout === */
  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-section: clamp(72px, 10vw, 128px);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 71, 0.04), 0 2px 8px rgba(14, 42, 71, 0.04);
  --shadow: 0 4px 16px rgba(14, 42, 71, 0.06), 0 12px 32px rgba(14, 42, 71, 0.06);
  --shadow-lg: 0 24px 64px rgba(14, 42, 71, 0.12);

  --header-h: 76px;
}

/* === Accent palette switches (tweakable) === */
:root[data-accent="rust"] { --accent: #B8542E; --accent-deep: #9A4222; --accent-soft: rgba(184,84,46,0.08); }
:root[data-accent="steel"] { --accent: #1F5FB8; --accent-deep: #16447F; --accent-soft: rgba(31,95,184,0.08); }
:root[data-accent="bronze"] { --accent: #8C6B2F; --accent-deep: #6E5223; --accent-soft: rgba(140,107,47,0.08); }
:root[data-accent="forest"] { --accent: #356B4E; --accent-deep: #224432; --accent-soft: rgba(53,107,78,0.08); }

:root[data-bg="warm"] { --bg-base: #F6F3EC; --bg-sand: #EFE9DC; --border: #E2DDD0; --border-strong: #CFC8B7; }
:root[data-bg="white"] { --bg-base: #FFFFFF; --bg-sand: #F4F4F2; --border: #E6E6E6; --border-strong: #D2D2D2; }
:root[data-bg="sand"] { --bg-base: #EFE9DC; --bg-sand: #E5DDCB; --border: #D6CEB8; --border-strong: #BDB294; }

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* === Container === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad-x); }

/* === Section base === */
section { position: relative; }
.section { padding: var(--pad-section) 0; }
.section-dark { background: var(--navy); color: var(--text-on-dark); }
.section-sand { background: var(--bg-sand); }

/* === Eyebrow / Section heading === */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}
.section-dark .eyebrow { color: #E8A887; }

.h-section {
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  color: var(--text);
}
.section-dark .h-section { color: #fff; }

.section-lede {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 0 56px;
}
.section-dark .section-lede { color: var(--text-on-dark-mid); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }

/* ===========================================================
   HEADER
   =========================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-navy);
  z-index: 80;
  display: flex; align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.header-inner {
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 800;
  font-size: 14px; letter-spacing: 0.02em;
  border-radius: 4px;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-en {
  font-family: var(--font-en); font-weight: 700;
  letter-spacing: 0.16em; font-size: 15px; color: var(--navy);
}
.brand-jp {
  font-size: 11px; color: var(--text-mid); margin-top: 4px;
  letter-spacing: 0.05em;
}
.nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--text);
  padding: 8px 14px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-tel {
  display: flex; align-items: center; gap: 8px;
  color: var(--navy); font-weight: 700;
}
.header-tel .tel-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.header-tel .tel-num {
  font-family: var(--font-en); font-size: 17px;
  letter-spacing: 0.02em; line-height: 1;
}
.header-tel .tel-meta {
  font-size: 10px; color: var(--text-mid); line-height: 1; margin-top: 3px;
  letter-spacing: 0.04em;
}
.btn-header-contact {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: background 0.25s, transform 0.25s;
  border: 1px solid var(--navy);
}
.btn-header-contact:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.hamburger {
  display: none;
  background: transparent; border: 1px solid var(--border-strong);
  width: 42px; height: 42px; border-radius: 50%;
  align-items: center; justify-content: center;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text); position: relative;
}
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--text); transition: 0.3s;
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { top: 0; transform: rotate(45deg); }
.hamburger.open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 70;
  padding: 32px var(--pad-x) 120px;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  font-size: 16px; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a::after {
  content: "→"; color: var(--accent); opacity: 0.5;
}
.mobile-menu-cta {
  margin-top: 28px; display: grid; gap: 12px;
}
.mobile-menu-cta a { border: none !important; padding: 16px; border-radius: 8px; justify-content: center; }
.mobile-menu-cta a::after { content: ""; }
.mobile-menu-cta .mm-tel {
  background: var(--accent); color: #fff;
}
.mobile-menu-cta .mm-form {
  background: var(--navy); color: #fff;
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-size: 14px; font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn-navy {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--text); color: #fff; border-color: var(--text); }
.btn-outline-white {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  padding: 4px 0;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.25s;
}
.btn-text:hover { gap: 14px; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(60px, 8vw, 120px);
  overflow: hidden;
  background: var(--bg-base);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,42,71,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,42,71,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-weight: 600;
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
  color: var(--navy);
}
.hero-title .em {
  color: var(--accent);
  position: relative;
}
.hero-title .em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 4px; background: var(--accent);
  opacity: 0.18;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-mid);
  line-height: 2;
  margin: 0 0 36px;
  max-width: 540px;
}
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 36px;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  color: var(--navy);
}
.hero-chip svg { width: 12px; height: 12px; color: var(--accent); }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex; align-items: center; gap: 18px;
  font-size: 13px; color: var(--text-mid);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; }
.hero-meta-item svg { width: 16px; height: 16px; color: var(--accent); }
.hero-meta-item strong { color: var(--text); font-weight: 600; }

/* Hero visual right panel */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.hero-visual-ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(14,42,71,0.55), rgba(14,42,71,0.85)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px);
  background-color: var(--navy-deep);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px;
  color: #fff;
}
.hv-top {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.hv-top-label {
  font-family: var(--font-en); font-size: 11px;
  letter-spacing: 0.24em; color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.hv-top-mark {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  color: #fff;
}
.hv-mid {
  text-align: center; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px 0;
}
.hv-mid-glyph {
  width: clamp(90px, 16vw, 140px); height: clamp(90px, 16vw, 140px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.65);
}
.hv-mid-glyph svg { width: 50%; height: 50%; }
.hv-mid-cap {
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-en);
}
.hv-bottom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.hv-bottom > div {
  background: rgba(8,27,48,0.6);
  padding: 14px 16px;
}
.hv-b-label {
  font-family: var(--font-en); font-size: 10px;
  letter-spacing: 0.18em; color: rgba(255,255,255,0.4);
  text-transform: uppercase; margin-bottom: 4px;
}
.hv-b-val { font-size: 13px; font-weight: 500; color: #fff; letter-spacing: 0.02em; }

/* Hero floating badge */
.hero-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.hero-badge-ico {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-badge-ico svg { width: 18px; height: 18px; }
.hero-badge-label { font-size: 10px; color: var(--text-mid); letter-spacing: 0.06em; }
.hero-badge-val { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; }

/* ===========================================================
   STRENGTH STRIP (under hero)
   =========================================================== */
.strip {
  background: var(--navy);
  color: #fff;
  border-top: 1px solid var(--border-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.strip-item {
  display: flex; align-items: center; gap: 18px;
  padding: 32px clamp(20px, 3vw, 40px);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.strip-item:last-child { border-right: none; }
.strip-num {
  font-family: var(--font-en);
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}
.strip-body {}
.strip-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.4; }
.strip-desc { font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ===========================================================
   ABOUT
   =========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-left { position: sticky; top: calc(var(--header-h) + 40px); }
.about-body p {
  font-size: 16px; line-height: 2;
  color: var(--text-mid);
  margin: 0 0 24px;
}
.about-body p strong { color: var(--text); font-weight: 700; }
.about-quote {
  margin-top: 40px; padding: 28px;
  background: var(--bg-sand);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 15px; line-height: 1.9;
  color: var(--text);
}
.about-quote::before {
  content: "「";
  font-size: 28px; font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.about-quote::after {
  content: "」";
  font-size: 28px; font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.about-info {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.about-info-item {
  background: #fff;
  padding: 20px 22px;
}
.about-info-label {
  font-family: var(--font-en); font-size: 10px;
  letter-spacing: 0.2em; color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.about-info-val {
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.5;
}
.about-info-val small { display: block; font-size: 12px; color: var(--text-mid); font-weight: 400; margin-top: 4px; }

/* ===========================================================
   SERVICES (対応工事)
   =========================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.svc-card {
  background: #fff;
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: background 0.3s;
}
.svc-card:hover { background: var(--bg-base); }
.svc-num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-en); font-size: 12px;
  font-weight: 600; letter-spacing: 0.1em;
  color: var(--text-light);
}
.svc-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 24px;
  transition: background 0.3s, color 0.3s;
}
.svc-card:hover .svc-icon { background: var(--accent); color: #fff; }
.svc-icon svg { width: 26px; height: 26px; }
.svc-name {
  font-size: 19px; font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}
.svc-desc {
  font-size: 14px; line-height: 1.85;
  color: var(--text-mid);
  margin: 0 0 18px;
}
.svc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.svc-tag {
  font-size: 11.5px; color: var(--text-mid);
  padding: 4px 10px; background: var(--bg-base);
  border-radius: 999px;
}

/* ===========================================================
   REASONS (選ばれる理由)
   =========================================================== */
.reason-list {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.reason-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.3fr 56px;
  gap: 32px; align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.reason-row:hover { background: rgba(255,255,255,0.02); }
.reason-num {
  font-family: var(--font-en); font-size: 14px; font-weight: 600;
  color: rgba(232,168,135,0.7);
  letter-spacing: 0.16em;
}
.reason-num::before { content: "/ "; opacity: 0.5; }
.reason-title {
  font-size: clamp(18px, 2vw, 24px); font-weight: 700;
  color: #fff; line-height: 1.45;
  letter-spacing: 0.01em;
}
.reason-desc {
  font-size: 14.5px; color: rgba(255,255,255,0.65);
  line-height: 1.95;
}
.reason-arrow {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
  color: #E8A887;
  transition: background 0.3s, transform 0.3s;
}
.reason-row:hover .reason-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(4px); }
.reason-arrow svg { width: 18px; height: 18px; }

/* ===========================================================
   WORK IMAGES (no real photos — illustrated cards)
   =========================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.work-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: default;
}
.work-card-ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(14,42,71,0.85)),
    repeating-linear-gradient(135deg, rgba(14,42,71,0.06) 0 8px, transparent 8px 16px);
  background-color: var(--bg-sand);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px;
  color: #fff;
  transition: transform 0.5s ease;
}
.work-card:hover .work-card-ph { transform: scale(1.03); }
.work-card-tag {
  align-self: flex-start;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: 0.04em;
}
.work-card-info {}
.work-card-title { font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.work-card-meta { font-size: 11.5px; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }

.work-card-glyph {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px;
  color: var(--navy);
  opacity: 0.25;
}

/* ===========================================================
   COMPANY OUTLINE (会社概要)
   =========================================================== */
.company-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.company-table {
  border-top: 1px solid var(--border);
}
.company-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
}
.company-row dt {
  font-size: 13px; font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.company-row dd {
  font-size: 14.5px; color: var(--text-mid);
  margin: 0; line-height: 1.9;
}
.company-row dd .note { font-size: 12px; color: var(--text-light); }

.company-map {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-sand);
  aspect-ratio: 4/3;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.company-map-ph {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,42,71,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,42,71,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.company-map-pin {
  position: relative; z-index: 1;
  text-align: center;
}
.company-map-pin-mark {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(184,84,46,0.3);
}
.company-map-pin-mark svg { transform: rotate(45deg); width: 22px; height: 22px; }
.company-map-pin-label { font-size: 14px; font-weight: 700; color: var(--text); }
.company-map-pin-sub { font-size: 12px; color: var(--text-mid); margin-top: 4px; }

/* ===========================================================
   CONTACT CTA SECTION
   =========================================================== */
.contact-cta {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.contact-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.contact-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}
.contact-card-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-en); font-size: 11px;
  letter-spacing: 0.18em; color: #E8A887;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-card-tag::before {
  content: ""; width: 16px; height: 1px; background: currentColor;
}
.contact-card-title {
  font-size: 18px; font-weight: 700;
  color: #fff; margin-bottom: 14px;
  line-height: 1.4;
}
.contact-card-val {
  font-family: var(--font-en); font-size: 26px;
  font-weight: 700; color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  line-height: 1;
}
.contact-card-desc {
  font-size: 13px; color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}
.contact-card-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #E8A887;
}
.contact-card-cta svg { width: 14px; height: 14px; transition: transform 0.25s; }
.contact-card:hover .contact-card-cta svg { transform: translateX(4px); }

.contact-note {
  text-align: center; margin-top: 36px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
  font-size: 13.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand .brand-en { color: #fff; }
.footer-brand .brand-jp { color: rgba(255,255,255,0.5); }
.footer-info {
  margin-top: 24px; line-height: 1.9;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.footer-col-title {
  font-family: var(--font-en); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.footer-bottom small { font-family: var(--font-en); letter-spacing: 0.06em; }

/* ===========================================================
   MOBILE STICKY BOTTOM CTA BAR
   =========================================================== */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 60;
  padding: 8px;
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(14,42,71,0.08);
}
.mobile-bar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 6px;
  font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.04em;
}
.mobile-bar .mb-tel {
  background: var(--accent); color: #fff;
}
.mobile-bar .mb-form {
  background: var(--navy); color: #fff;
}
.mobile-bar svg { width: 16px; height: 16px; }

/* ===========================================================
   ANIMATIONS — fade up on scroll
   =========================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.d1 { transition-delay: 0.08s; }
.fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; }
.fade-up.d4 { transition-delay: 0.32s; }
.fade-up.d5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ===========================================================
   STYLISH ANIMATION LAYER (v2)
   =========================================================== */

/* — Hero title line-by-line mask reveal — */
.reveal-line {
  display: block;
  overflow: hidden;
  line-height: 1.3;
}
.reveal-line-inner {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 0.8s ease;
  will-change: transform, opacity;
}
.reveal-line.in .reveal-line-inner {
  transform: translateY(0);
  opacity: 1;
}
.reveal-line.r1.in .reveal-line-inner { transition-delay: 0.1s, 0.1s; }
.reveal-line.r2.in .reveal-line-inner { transition-delay: 0.28s, 0.28s; }
.reveal-line.r3.in .reveal-line-inner { transition-delay: 0.46s, 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-line-inner { transform: none; opacity: 1; transition: none; }
}

/* — Hero backdrop number — */
.hero-backdrop {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: clamp(140px, 28vw, 360px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  opacity: 0.025;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
:root[data-bg="warm"] .hero-backdrop { color: var(--navy); opacity: 0.04; }

/* — Section index badge — */
.section-index {
  position: absolute;
  top: clamp(40px, 6vw, 96px);
  right: var(--pad-x);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-light);
  text-transform: uppercase;
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
}
.section-dark .section-index { color: rgba(255,255,255,0.5); }
.section-index::before {
  content: "";
  width: 32px; height: 1px;
  background: currentColor; opacity: 0.4;
}

/* — Marquee strip — */
.marquee {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 22px 0;
  white-space: nowrap;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--navy), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--navy), transparent); }
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  animation: marqueeMove 48s linear infinite;
  padding-right: 56px;
  will-change: transform;
}
.marquee-word {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.marquee-word .accent { color: var(--accent); }
.marquee-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* — Cursor spotlight (dark sections) — */
.spotlight {
  position: relative;
  isolation: isolate;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 480px at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,0.06),
              rgba(255,255,255,0.02) 40%,
              transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.spotlight.live::after { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* — Service card: corner panel slide & icon line draw — */
.svc-card {
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: "";
  position: absolute;
  top: -120%; right: -60%;
  width: 220%; height: 220%;
  background: linear-gradient(135deg, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}
.svc-card:hover::after {
  opacity: 0.06;
  transform: translate(-4%, 4%);
}
.svc-card > * { position: relative; z-index: 1; }

.svc-icon svg path,
.svc-icon svg rect,
.svc-icon svg circle,
.svc-icon svg polyline,
.svc-icon svg line {
  fill: none;
  stroke: currentColor;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}
.svc-card.in .svc-icon svg path,
.svc-card.in .svc-icon svg rect,
.svc-card.in .svc-icon svg circle,
.svc-card.in .svc-icon svg polyline,
.svc-card.in .svc-icon svg line {
  stroke-dashoffset: 0;
}

/* — Magnetic CTA — */
.btn-magnetic {
  position: relative;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* — Process flow with animated progress line — */
.process-section { background: var(--bg-base); }
.process-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.process-side {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.process-steps {
  position: relative;
  padding-left: 56px;
}
.process-rail {
  position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.process-rail-fill {
  position: absolute;
  left: 0; top: 0; right: 0;
  height: var(--progress, 0%);
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  transition: height 0.15s linear;
}
.process-step {
  position: relative;
  padding: 0 0 56px 0;
}
.process-step:last-child { padding-bottom: 0; }
.process-marker {
  position: absolute;
  left: -56px; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-light);
  font-family: var(--font-en);
  font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
  transition: background 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
  z-index: 1;
}
.process-step.active .process-marker {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(184, 84, 46, 0.3);
}
.process-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 8px;
  letter-spacing: 0.02em;
}
.process-desc {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-mid);
  margin: 0;
  max-width: 560px;
}

/* — Reveal-on-scroll: scale variant — */
.reveal-scale {
  opacity: 0;
  transform: scale(0.97) translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-scale.in {
  opacity: 1;
  transform: scale(1) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-scale { opacity: 1; transform: none; transition: none; }
}

/* — Hero visual subtle float — */
.hero-visual {
  animation: floatHero 9s ease-in-out infinite alternate;
}
@keyframes floatHero {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual { animation: none; }
}

/* — Reason row: gradient bar on hover — */
.reason-row { position: relative; overflow: hidden; }
.reason-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(232,168,135,0.08), transparent 80%);
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.reason-row:hover::before { width: 60%; }
.reason-num, .reason-title, .reason-desc, .reason-arrow {
  position: relative; z-index: 1;
}

/* — Asbestos pill highlight — */
.svc-card.is-flag .svc-icon {
  background: rgba(220, 38, 38, 0.08);
  color: #B12020;
}
.svc-card.is-flag .svc-name { color: #B12020; }
.svc-card.is-flag:hover .svc-icon { background: #B12020; color: #fff; }
.svc-card.is-flag::after {
  background: linear-gradient(135deg, transparent 45%, #B12020 45%, #B12020 55%, transparent 55%);
}

/* — Quick-info tile (replaces fake stats) — */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 56px;
}
.fact {
  background: #fff;
  padding: 28px 24px;
  position: relative;
}
.fact-num {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1;
}
.fact-num small { font-size: 14px; font-weight: 600; color: var(--accent); }
.fact-label {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.08em;
  font-family: var(--font-en);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.fact-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 8px;
}
@media (max-width: 1024px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-side { position: static; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .strip-item:last-child { border-bottom: none; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-left { position: static; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-row { grid-template-columns: 64px 1fr 56px; }
  .reason-row > .reason-desc { display: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 76px; } /* offset for sticky CTA */
  .mobile-bar { display: flex; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 12px; }
  .brand-mark { width: 32px; height: 32px; font-size: 13px; }
  .brand-en { font-size: 13px; }
  .brand-jp { font-size: 10px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-visual { aspect-ratio: 1/1; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 28px 24px; }
  .reason-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .reason-row > .reason-arrow { display: none; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .company-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 4px; }
  .company-row dt { font-size: 12px; color: var(--text-light); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .hero-badge-ico { width: 30px; height: 30px; }
  .hero-badge-label { font-size: 9px; }
  .hero-badge-val { font-size: 11.5px; }
}

/* ===========================================================
   v3 — Independent identity overrides
   - Full-bleed video hero
   - Vertical-writing 解体 accent
   - Huge outline section numerals
   - Diagonal cleave between hero and content
   =========================================================== */

/* — Hero with full-bleed video — */
.hero.hero--video {
  min-height: clamp(620px, 92vh, 880px);
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero.hero--video::before { display: none; }
.hero--video .hero-grid {
  grid-template-columns: 1fr;
  display: block;
  position: relative;
  z-index: 2;
}
.hero--video .hero-text { max-width: 760px; }

.hero-video-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(0.78) brightness(0.95);
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,27,48,0.42) 0%, rgba(8,27,48,0.72) 60%, rgba(8,27,48,0.96) 100%),
    linear-gradient(90deg, rgba(8,27,48,0.55) 0%, rgba(8,27,48,0.15) 55%, rgba(8,27,48,0.05) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 4px);
}

/* — Hero text restyle for dark bg — */
.hero--video .hero-eyebrow { color: #E8A887; }
.hero--video .hero-title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero--video .hero-title .em { color: var(--accent); }
.hero--video .hero-title .em::after { background: var(--accent); opacity: 0.5; }
.hero--video .hero-sub {
  color: rgba(255,255,255,0.82);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero--video .hero-chip {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}
.hero--video .hero-chip svg { color: #E8A887; }
.hero--video .hero-meta {
  border-top-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.72);
}
.hero--video .hero-meta-item strong { color: #fff; }
.hero--video .hero-meta-item svg { color: var(--accent); }

/* Ghost-light button used in hero on dark video */
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-1px);
}

/* — Vertical-writing 解体 accent — */
.hero-tategaki {
  position: absolute;
  top: calc(var(--header-h) + clamp(24px, 5vw, 64px));
  right: clamp(20px, 4vw, 64px);
  z-index: 1;
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 152px);
  line-height: 1.05;
  letter-spacing: 0.16em;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(255,255,255,0.22);
  user-select: none;
  pointer-events: none;
}
.hero-tategaki > span { display: block; }

/* — Hero corner specs (technical-blueprint feel) — */
.hero-corner {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
}
.hc-tl, .hc-tr, .hc-bl, .hc-br { position: absolute; }
.hc-tl { top: calc(var(--header-h) + 22px); left: var(--pad-x); }
.hc-tr { top: calc(var(--header-h) + 22px); right: var(--pad-x); }
.hc-bl { bottom: 28px; left: var(--pad-x); }
.hc-br { bottom: 28px; right: var(--pad-x); animation: scrollHint 2.4s ease-in-out infinite; }
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.42; }
  50% { transform: translateY(4px); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-br { animation: none; }
}

/* — Diagonal cleave at hero bottom — */
.hero-cleave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(56px, 9vw, 112px);
  z-index: 3;
  background: var(--bg-sand);
  clip-path: polygon(0 62%, 100% 0%, 100% 100%, 0 100%);
}

/* — Huge outline section numerals — */
.section-index {
  position: absolute;
  top: clamp(8px, 2vw, 32px);
  right: clamp(-12px, 0vw, 8px);
  font-family: var(--font-en);
  font-size: clamp(140px, 19vw, 280px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(14, 42, 71, 0.08);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  display: block;
  text-transform: none;
}
.section-index::before { display: none; }
.section-index::after {
  content: attr(data-label);
  position: absolute;
  bottom: 14%;
  right: 18px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  -webkit-text-stroke: 0;
  color: var(--text-light);
  text-transform: uppercase;
  white-space: nowrap;
}
.section-dark .section-index { -webkit-text-stroke: 1.5px rgba(255,255,255,0.1); }
.section-dark .section-index::after { color: rgba(255,255,255,0.45); }
.section-sand .section-index { -webkit-text-stroke: 1.5px rgba(14, 42, 71, 0.07); }

/* Tame the existing hero-grid 2col override that might creep in */
.hero--video.hero { padding-top: 0; padding-bottom: 0; }
.hero--video .container.hero-grid {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(96px, 14vw, 160px);
}

/* Restore body padding under sticky mobile bar (already handled in v1 responsive) */

/* — Responsive tweaks for new elements — */
@media (max-width: 1024px) {
  .hero-tategaki { font-size: clamp(56px, 12vw, 100px); }
  .section-index { font-size: clamp(120px, 22vw, 200px); }
}
@media (max-width: 640px) {
  .hero-tategaki { display: none; }
  .hero-corner .hc-tl, .hero-corner .hc-tr { font-size: 9.5px; letter-spacing: 0.16em; }
  .hero-corner .hc-bl, .hero-corner .hc-br { display: none; }
  .section-index { font-size: clamp(96px, 28vw, 150px); top: 4px; right: -6px; }
  .section-index::after { font-size: 10px; right: 12px; bottom: 18%; }
  .hero-cleave { height: clamp(40px, 12vw, 72px); clip-path: polygon(0 70%, 100% 0%, 100% 100%, 0 100%); }
}

/* ===========================================================
   v3.1 — Stylish dark header
   =========================================================== */
.header {
  background: rgba(8, 27, 48, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.brand-mark {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 4px 12px rgba(184,84,46,0.32);
}
.brand-en { color: #fff; }
.brand-jp { color: rgba(255, 255, 255, 0.55); }

.nav a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }
.nav a::after { background: var(--accent); }

.header-tel { color: #fff; }
.header-tel .tel-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #E8A887;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.header-tel .tel-num { color: #fff; }
.header-tel .tel-meta { color: rgba(255, 255, 255, 0.55); }

.btn-header-contact {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.btn-header-contact:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hamburger { border-color: rgba(255, 255, 255, 0.32); }
.hamburger span,
.hamburger span::before,
.hamburger span::after { background: #fff; }
.hamburger.open span { background: transparent; }

/* ===========================================================
   v3.2 — Page hero (for subpages)
   =========================================================== */
.page-hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
.page-hero > .container { position: relative; z-index: 2; }

.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }
.breadcrumb .current { color: #E8A887; }

.page-hero .eyebrow { color: #E8A887; margin-bottom: 14px; }
.page-hero-title {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 20px;
}
.page-hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255,255,255,0.74);
  max-width: 680px;
  line-height: 1.95;
  margin: 0;
}
.page-hero-en {
  position: absolute;
  right: clamp(-12px, 0vw, 8px);
  bottom: -10px;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(96px, 14vw, 200px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.1);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.page-hero-cleave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(36px, 5vw, 64px);
  z-index: 3;
  background: #fff;
  clip-path: polygon(0 70%, 100% 0%, 100% 100%, 0 100%);
}

/* Bottom contact strip (used on subpages) */
.cta-strip {
  background: var(--navy);
  color: #fff;
  padding: clamp(48px, 7vw, 88px) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.cta-strip-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-strip h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.4;
}
.cta-strip p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.66);
  margin: 0;
  line-height: 1.9;
}
.cta-strip-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .cta-strip-inner { grid-template-columns: 1fr; }
  .cta-strip-actions { justify-content: flex-start; }
}

/* Subpage prose-style content */
.prose {
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--text-mid);
}
.prose h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 16px;
  letter-spacing: 0.02em;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.prose p { margin: 0 0 20px; }
.prose p strong { color: var(--text); font-weight: 700; }
.prose ul { margin: 0 0 20px; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 10px; height: 1px;
  background: var(--accent);
}

/* FAQ accordion */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  gap: 24px;
  font-family: inherit;
}
.faq-q-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.02em;
  flex: 1;
}
.faq-q-text::before {
  content: "Q.";
  color: var(--accent);
  font-family: var(--font-en);
  font-weight: 700;
  margin-right: 12px;
  font-size: 18px;
}
.faq-q-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.faq-q-toggle::before, .faq-q-toggle::after {
  content: "";
  background: var(--text);
  position: absolute;
}
.faq-q-toggle::before { width: 12px; height: 1.5px; }
.faq-q-toggle::after { width: 1.5px; height: 12px; transition: opacity 0.25s; }
.faq-item.open .faq-q-toggle {
  background: var(--accent);
  border-color: var(--accent);
}
.faq-item.open .faq-q-toggle::before,
.faq-item.open .faq-q-toggle::after { background: #fff; }
.faq-item.open .faq-q-toggle::after { opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 480px; }
.faq-a-inner {
  padding: 0 50px 24px 36px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-mid);
}
.faq-a-inner::before {
  content: "A. ";
  color: var(--accent);
  font-family: var(--font-en);
  font-weight: 700;
  margin-right: 6px;
}

/* ===========================================================
   v3.3 — Header compaction & brand mark refinement
   =========================================================== */

/* Brand mark: revert to a clean white plaque with navy "A" so it pops on the
   dark glass header without the heavy rust glow */
.brand-mark {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}
.brand-en { letter-spacing: 0.18em; }

/* Prevent header text from wrapping into 2 lines per item */
.nav a,
.header-tel,
.header-tel .tel-num,
.header-tel .tel-meta,
.btn-header-contact {
  white-space: nowrap;
}

/* Tighter header layout so 6 nav items + tel + CTA all fit in one row */
.header-inner { gap: 24px; }
.nav { gap: 0; }
.nav a {
  padding: 8px 11px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.nav a::after { left: 11px; right: 11px; }

.header-cta { gap: 14px; }
.header-tel { gap: 8px; }
.header-tel .tel-icon {
  width: 30px; height: 30px;
}
.header-tel .tel-num { font-size: 15.5px; }
.header-tel .tel-meta { font-size: 10px; }

.btn-header-contact {
  padding: 10px 18px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* Push the hamburger breakpoint earlier — below ~1180px the desktop header
   becomes too cramped for 6 JP nav items + tel + CTA. Hand off to the mobile
   menu sooner. */
@media (max-width: 1180px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: inline-flex; }
}

/* ===========================================================
   v3.4 — Early-summer fresh-blue palette + organic motifs
   ----
   Inspired by the 12-office / syo-ei / reel-re references — airy
   whitespace, vivid sky-blue, warm coral pop, wave-shaped section
   transitions, soft round glow accents.
   =========================================================== */

/* Brighter sky-blue primary, replacing the heavy navy */
:root {
  --navy:      #0EA5E9;   /* sky-500 — vivid summer-sky blue */
  --navy-deep: #075985;   /* sky-800 — deep ocean for dark sections */
  --navy-soft: #38BDF8;   /* sky-400 — bright accent */
  --line-navy: rgba(14, 165, 233, 0.12);

  --text:       #0F1F33;
  --text-mid:   #4A5B73;
  --text-light: #8696AC;

  /* Sky-tinted shadows (warmer than neutral gray) */
  --shadow-sm: 0 1px 2px rgba(14, 165, 233, 0.06), 0 2px 8px rgba(14, 165, 233, 0.05);
  --shadow:    0 4px 16px rgba(14, 165, 233, 0.10), 0 12px 32px rgba(14, 165, 233, 0.06);
  --shadow-lg: 0 24px 64px rgba(14, 165, 233, 0.16);
}

/* Sky-tinted off-white for the "sand" sections */
:root[data-bg="white"] {
  --bg-base: #FFFFFF;
  --bg-sand: #F0F9FF;          /* sky-50 — barely-there blue */
  --border:        #E0F2FE;     /* sky-100 */
  --border-strong: #BAE6FD;     /* sky-200 */
}

/* Warm summer-coral accent instead of rust orange */
:root[data-accent="rust"] {
  --accent:      #FB923C;       /* orange-400 — fresh coral/peach */
  --accent-deep: #EA580C;       /* orange-600 — hover */
  --accent-soft: rgba(251, 146, 60, 0.10);
}

/* ---- Header in sky-tinted glass ---- */
.header {
  background: rgba(7, 89, 133, 0.78);          /* sky-800 translucent */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-mark {
  background: #fff;
  color: var(--navy);                          /* sky-500 A on white */
  box-shadow: none;
}

/* ---- Hero ---- */
/* Lighter video overlay so the sky-blue mood comes through */
.hero--video .hero-video {
  filter: contrast(1.02) saturate(0.95) brightness(1.0);
}
.hero--video .hero-video-overlay {
  background:
    linear-gradient(180deg,  rgba(7, 89, 133, 0.34) 0%, rgba(7, 89, 133, 0.62) 60%, rgba(7, 89, 133, 0.90) 100%),
    linear-gradient(90deg,   rgba(7, 89, 133, 0.46) 0%, rgba(7, 89, 133, 0.10) 55%, rgba(7, 89, 133, 0.04) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px);
}
.hero--video .hero-eyebrow { color: #FED7AA; }      /* warm coral on dark blue */
.hero-tategaki { -webkit-text-stroke-color: rgba(255,255,255,0.24); }
.hero--video .hero-chip svg,
.hero--video .hero-meta-item svg { color: #FCD34D; } /* sunny yellow icons */

/* ---- Wave-shaped section transitions (instead of angular diagonal) ---- */
.hero-cleave,
.page-hero-cleave {
  background: none;
  clip-path: none;
}
.hero-cleave {
  height: clamp(60px, 9vw, 120px);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,72 C240,4 480,128 720,56 C960,-4 1200,116 1440,48 L1440,120 L0,120 Z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,72 C240,4 480,128 720,56 C960,-4 1200,116 1440,48 L1440,120 L0,120 Z'/></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  background-color: #F0F9FF;                   /* matches facts/sand section */
}
.page-hero-cleave {
  height: clamp(48px, 6vw, 88px);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path d='M0,56 C360,108 1080,4 1440,52 L1440,100 L0,100 Z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path d='M0,56 C360,108 1080,4 1440,52 L1440,100 L0,100 Z'/></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  background-color: #FFFFFF;
}

/* ---- Soft circular glow blobs in sand sections (original motif) ---- */
.section-sand {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-sand::before {
  content: "";
  position: absolute;
  top: -160px; right: -160px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.section-sand::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.section-sand > .container { position: relative; z-index: 1; }

/* ---- Floating sun-like circle behind hero text (original motif) ---- */
.hero.hero--video::after {
  content: "";
  position: absolute;
  top: clamp(80px, 16vh, 200px);
  left: clamp(-40px, 4vw, 80px);
  width: clamp(160px, 24vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.20), rgba(252, 211, 77, 0.06) 50%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: heroSun 12s ease-in-out infinite alternate;
}
@keyframes heroSun {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -16px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero.hero--video::after { animation: none; }
}

/* ---- Section index numerals — sky-tinted outline ---- */
.section-index {
  -webkit-text-stroke: 1.5px rgba(14, 165, 233, 0.12);
}
.section-sand .section-index {
  -webkit-text-stroke: 1.5px rgba(14, 165, 233, 0.16);
}
.section-dark .section-index {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.14);
}

/* ---- Eyebrow lines slightly thicker & gradient-ish for character ---- */
.eyebrow::before {
  background: linear-gradient(90deg, var(--accent), rgba(251, 146, 60, 0));
  width: 36px;
  height: 1.5px;
}

/* ---- Reasons / Contact dark sections: bluer, less inky ---- */
.section-dark,
.contact-cta,
.cta-strip {
  background: linear-gradient(160deg, #075985 0%, #0C4A6E 100%);
}

/* ---- Process rail fill: blue→coral gradient (a small distinctive moment) ---- */
.process-rail-fill {
  background: linear-gradient(180deg, var(--navy) 0%, var(--accent) 100%);
}
.process-step.active .process-marker {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.32);
}

/* ---- Service card hover: switch icon to sky-blue (not warm) ---- */
.svc-card:hover .svc-icon {
  background: var(--navy);
  color: #fff;
}
.svc-card:hover .svc-icon { box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28); }

/* ---- Buttons: soft round corners, warm gradient on primary ---- */
.btn { border-radius: 999px; }
.btn-primary {
  background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(251, 146, 60, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  box-shadow: 0 8px 22px rgba(251, 146, 60, 0.34);
}
.btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.22);
}
.btn-navy:hover {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0C4A6E 100%);
}

/* Header CTA pill picks up the warm accent on hover */
.btn-header-contact:hover {
  background: linear-gradient(135deg, #FB923C, #F97316);
  border-color: transparent;
}

/* ---- Page hero a touch lighter (sky gradient instead of pure dark) ---- */
.page-hero {
  background: linear-gradient(150deg, #0C4A6E 0%, #075985 55%, #0EA5E9 130%);
}
.page-hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* ---- Marquee + facts numerals reflect the blue theme ---- */
.fact-num { color: var(--navy-deep); }
.fact-num small { color: var(--accent); }

/* ---- Footer: deeper sky gradient ---- */
.footer { background: linear-gradient(180deg, #0C4A6E 0%, #082F49 100%); }
.footer-brand .brand-mark { background: #fff; color: var(--navy); }

/* ---- Mobile sticky bar primary action uses warm accent ---- */
.mobile-bar .mb-tel {
  background: linear-gradient(135deg, #FB923C, #F97316);
}
.mobile-bar .mb-form {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}

/* ===========================================================
   v3.5 — Accessibility, back-to-top, mobile-menu groups,
   hero poster fallback, wave motif, numeric typography, print
   =========================================================== */

/* ---- Skip-to-content (visually hidden until focused) ---- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.25s ease;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.32);
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

/* ---- Global :focus-visible — visible keyboard focus ---- */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.btn-header-contact:focus-visible {
  outline-color: #FCD34D;
  outline-offset: 4px;
}
.nav a:focus-visible { outline-offset: 0; outline: 2px solid #FCD34D; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-offset: 0;
  outline-width: 2px;
}

/* Make the main anchor visually invisible but keyboard-targetable */
[id="main"][tabindex="-1"] {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---- Back-to-top floating button ---- */
.back-to-top {
  position: fixed;
  right: 20px; bottom: 96px;
  z-index: 50;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.22), 0 0 0 1px rgba(2, 132, 199, 0.12);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}
@media (min-width: 1024px) {
  .back-to-top { bottom: 28px; right: 28px; width: 52px; height: 52px; }
}

/* ---- Mobile-menu groups (replace flat list) ---- */
.mm-group {
  margin-bottom: 18px;
}
.mm-group-title {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 4px;
  margin-bottom: 2px;
}
.mm-group-title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.65;
}
.mm-group a {
  padding: 14px 4px;
  font-size: 15.5px;
}

/* ---- Hero video poster fallback (CSS-only) ----
   Sky-gradient background under the video so the first frame doesn't flash white,
   and acts as a graceful fallback when the video errors / is disabled */
.hero-video-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(56, 189, 248, 0.45), transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(251, 146, 60, 0.20), transparent 50%),
    linear-gradient(135deg, #075985 0%, #0EA5E9 60%, #38BDF8 100%);
  z-index: 0;
}
.hero-video { position: relative; z-index: 1; }
.hero-video-overlay { z-index: 2; }

/* ---- Recurring wave-line decorative motif ----
   A small wavy underline below select major H2 / section heads — reinforces
   the wave divider theme without overloading every section */
.h-section.wave-under::after {
  content: "";
  display: block;
  width: 64px;
  height: 8px;
  margin-top: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 8'><path d='M0,4 Q8,0 16,4 T32,4 T48,4 T64,4' stroke='%23FB923C' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") no-repeat center;
  background-size: 64px 8px;
}
.section-head--center .h-section.wave-under::after { margin-left: auto; margin-right: auto; }

/* Decorative wave strip just above the footer */
.footer::before {
  content: "";
  display: block;
  height: 24px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'><path d='M0,12 Q120,0 240,12 T480,12 T720,12 T960,12 T1200,12 T1440,12' stroke='rgba(56,189,248,0.5)' stroke-width='1.5' fill='none'/></svg>") repeat-x center;
  background-size: 1440px 24px;
}

/* ---- Unify numeric typography ---- */
.tel-num,
.fact-num,
.process-marker,
.svc-num,
.reason-num,
.contact-card-val,
.brand-en {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-feature-settings: "tnum" 1;          /* tabular numerals for alignment */
}
.fact-num,
.process-marker,
.tel-num { font-weight: 700; }
.svc-num, .reason-num { font-weight: 600; }

/* ---- Print stylesheet ---- */
/* ===========================================================
   v3.6 — New components: Voice, Numbers, Timeline, Kansai map,
   process step icons
   =========================================================== */

/* ---- Voice (customer testimonials) ---- */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.voice-card {
  background: #fff;
  padding: 32px 28px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.voice-card::before {
  content: "\201C";
  position: absolute;
  top: 8px; right: 22px;
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 1;
  color: rgba(14, 165, 233, 0.08);
  font-weight: 700;
}
.voice-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.voice-icon svg { width: 22px; height: 22px; }
.voice-quote {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-mid);
  margin: 0 0 22px;
  position: relative;
  z-index: 1;
}
.voice-attr {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.voice-attr-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 8px;
}
.voice-attr-meta {
  font-size: 12.5px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
@media (max-width: 1024px) {
  .voice-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .voice-grid { grid-template-columns: 1fr; }
}

/* ---- Numbers tiles (honest indicators) ---- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.num-tile {
  background: #fff;
  padding: 32px 24px 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}
.num-tile:hover { transform: translateY(-3px); }
.num-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
}
.num-tile-val {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.num-tile-val small {
  font-size: 0.4em;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.num-tile-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin: 10px 0 6px;
  letter-spacing: 0.02em;
}
.num-tile-desc {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 1024px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
}

/* ---- Timeline (company history) ---- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  max-width: 820px;
  position: relative;
  z-index: 1;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 90px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, var(--navy), var(--accent));
  border-radius: 2px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  padding: 14px 0 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 81px;
  top: 22px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.32);
  z-index: 1;
}
.timeline-year {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 18px;
  text-align: right;
  padding-right: 8px;
}
.timeline-head {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 8px;
  letter-spacing: 0.02em;
}
.timeline-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
  margin: 0;
}
@media (max-width: 640px) {
  .timeline::before { left: 22px; }
  .timeline-item { grid-template-columns: 60px 1fr; gap: 16px; }
  .timeline-item::before { left: 13px; width: 18px; height: 18px; }
  .timeline-year { padding-top: 14px; padding-right: 0; font-size: 11px; text-align: left; }
}

/* ---- Kansai map ---- */
.kansai-map-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kansai-map {
  width: 100%;
  height: auto;
  display: block;
  max-width: 720px;
  margin: 0 auto;
}
.km-region {
  transition: filter 0.3s ease;
}
.km-region:hover { filter: brightness(0.96); }
.km-region-home rect {
  filter: drop-shadow(0 6px 16px rgba(251, 146, 60, 0.32));
}
@media (prefers-reduced-motion: reduce) {
  .km-pin circle:first-child { animation: none; }
}

/* ---- Process-name icons ---- */
.process-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.process-name-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}
.process-name-icon svg {
  width: 100%; height: 100%;
}
.process-step.active .process-name-icon { color: var(--navy); }

/* ---- Contact form: live validation states ---- */
.contact-cta input:not(:placeholder-shown):invalid,
.contact-cta textarea:not(:placeholder-shown):invalid {
  border-color: #FB7185 !important;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
}
.contact-cta input:not(:placeholder-shown):valid,
.contact-cta textarea:not(:placeholder-shown):valid {
  border-color: rgba(56, 189, 248, 0.55) !important;
}
.contact-cta input:focus:invalid,
.contact-cta textarea:focus:invalid {
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: none;
}
.contact-cta form:has(:invalid) button[type="submit"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.contact-cta form:has(:invalid) button[type="submit"]:hover {
  transform: none;
  box-shadow: 0 6px 18px rgba(251, 146, 60, 0.28);
}
.form-row .field-error {
  color: #FCA5A5;
  font-size: 11.5px;
  margin-top: 4px;
  display: none;
}
.form-row.touched input:invalid + .field-error,
.form-row.touched textarea:invalid + .field-error { display: block; }

/* ---- 404 page ---- */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0 120px;
  position: relative;
}
.notfound-code {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(140px, 22vw, 280px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(14, 165, 233, 0.22);
  margin: 0 0 12px;
}
.notfound h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 18px;
}
.notfound p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  margin: 0 0 36px;
  max-width: 520px;
}
.notfound-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}

/* ===========================================================
   v3.8 — Philosophy / Mission / Vision / Values (official MVV)
   =========================================================== */

/* ---- Philosophy poster (formal management statement) ---- */
.philosophy-poster {
  max-width: 820px;
  margin: 56px auto 0;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.philosophy-poster::before {
  content: "\201C";
  position: absolute;
  top: -20px; left: 24px;
  font-family: Georgia, serif;
  font-size: 200px;
  line-height: 1;
  color: rgba(14, 165, 233, 0.10);
  font-weight: 700;
  pointer-events: none;
}
.philosophy-poster::after {
  content: "\201D";
  position: absolute;
  bottom: -110px; right: 24px;
  font-family: Georgia, serif;
  font-size: 200px;
  line-height: 1;
  color: rgba(251, 146, 60, 0.10);
  font-weight: 700;
  pointer-events: none;
}
.philosophy-statement {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.philosophy-body {
  max-width: 640px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}
.philosophy-body p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-mid);
  margin: 0 0 16px;
}
.philosophy-body p strong {
  color: var(--text);
  font-weight: 700;
}
.philosophy-signature {
  text-align: right;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  position: relative;
  z-index: 1;
}
.philosophy-signature-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.philosophy-signature-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ---- Mission statement (dark, centered, large) ---- */
.mission-statement {
  max-width: 820px;
  margin: 48px auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.mission-headline {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 32px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.32);
}
.mission-body {
  font-size: 15.5px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.84);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Vision (4-item grid) ---- */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}
.vision-item {
  background: #fff;
  padding: 32px 24px 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.vision-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.vision-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  border-radius: 14px 14px 0 0;
}
.vision-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.vision-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.vision-icon svg { width: 22px; height: 22px; }
.vision-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.vision-desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-mid);
  margin: 0;
}
@media (max-width: 1024px) {
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .vision-grid { grid-template-columns: 1fr; }
}

/* ---- Values (5-card grid) ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}
.value-card {
  background: #fff;
  padding: 32px 22px 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.value-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom: 14px;
}
.value-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
  width: 100%;
}
.value-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.06em;
}
.value-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.value-desc {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-mid);
  margin: 0;
  text-align: left;
}
@media (max-width: 1180px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ---- Philosophy pull-quote (used on index About) ---- */
.philosophy-pull {
  margin: 32px 0 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(251, 146, 60, 0.04));
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.85;
  color: var(--navy-deep);
  letter-spacing: 0.04em;
  position: relative;
}
.philosophy-pull cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-light);
}
.philosophy-pull a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.25s;
}
.philosophy-pull a:hover { gap: 12px; }

/* ===========================================================
   v3.7 — Real case-study cards (Before / After photos)
   =========================================================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.case-grid--featured {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}
.case-images--single {
  grid-template-columns: 1fr;
}
.case-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-sand);
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-card:hover .case-img img { transform: scale(1.04); }
.case-img-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  background: rgba(255,255,255,0.94);
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 4px;
  color: var(--navy);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.case-img-after .case-img-label {
  background: var(--accent);
  color: #fff;
}
.case-meta {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-meta-loc {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.case-meta-loc::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  background: currentColor;
}
.case-meta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.case-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.case-tag {
  font-size: 11.5px;
  color: var(--text-mid);
  padding: 3px 11px;
  background: var(--bg-sand);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
@media (max-width: 1024px) {
  .case-grid--featured { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .case-grid,
  .case-grid--featured { grid-template-columns: 1fr; }
  .case-meta { padding: 16px 18px 18px; }
}

/* ---- Footer license info block ---- */
.footer-licenses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  padding: 18px 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.footer-license-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-license-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  position: relative;
  padding-left: 18px;
}
.footer-license-label::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.footer-license-val {
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.02em;
  padding-left: 18px;
}
@media (max-width: 640px) {
  .footer-licenses { grid-template-columns: 1fr; gap: 12px; }
}

@media print {
  /* Reset to clean print-ready layout */
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  /* Hide screen-only chrome */
  .header,
  .mobile-menu,
  .mobile-bar,
  .back-to-top,
  .hero-video-bg,
  .hero-corner,
  .hero-tategaki,
  .hero-cleave,
  .page-hero-cleave,
  .hero.hero--video::after,
  .marquee,
  .skip-link,
  .btn,
  .btn-header-contact,
  .header-cta,
  .hero-ctas,
  .cta-strip,
  .contact-cta,
  .section-index,
  .mobile-menu-cta,
  .breadcrumb,
  .reveal-line-inner { transform: none !important; animation: none !important; }

  .header,
  .mobile-menu,
  .mobile-bar,
  .back-to-top,
  .marquee,
  .skip-link,
  .btn,
  .btn-header-contact,
  .hamburger,
  .cta-strip,
  .hero-video-bg,
  .hero-corner,
  .hero-tategaki,
  .hero-cleave,
  .page-hero-cleave { display: none !important; }

  body { padding: 0 !important; font-size: 11pt; line-height: 1.7; }
  .page-hero, .hero {
    background: #fff !important;
    padding: 8mm 0 !important;
    min-height: 0 !important;
  }
  .page-hero-title, .hero-title { font-size: 24pt; }
  .h-section { font-size: 16pt; page-break-after: avoid; }
  .svc-card, .reason-row, .fact, .work-card, .process-step { page-break-inside: avoid; }
  .footer { border-top: 1px solid #999; padding: 4mm 0; }
  .footer::before { display: none; }
  /* Show full URLs after links */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555 !important; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ===========================================================
   v3.9 — Japanese line-break refinement
   ----
   Prevent single-character orphans on the last line (the classic
   "ぞ。" / "応。" / "さ。" dropping to its own line problem).
   - text-wrap: balance — balances line lengths in headings so the
     last line isn't dramatically shorter than the others
   - text-wrap: pretty  — better wrapping for paragraphs/prose
   - word-break: auto-phrase — Japanese-aware phrase boundary breaks
   - line-break: strict — apply strict Japanese line-breaking rules
   Older browsers gracefully ignore the unknown values.
   =========================================================== */

/* Headings & short titles — balance lines */
h1, h2, h3, h4, h5, h6,
.h-section,
.hero-title,
.page-hero-title,
.philosophy-statement,
.mission-headline,
.reason-title,
.contact-card-title,
.svc-name,
.case-meta-title,
.process-name,
.timeline-head,
.value-name,
.vision-name,
.num-tile-label,
.work-card-title,
.cta-strip h2,
.faq-q-text {
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
}

/* Paragraphs and body text — pretty wrapping */
p,
.section-lede,
.hero-sub,
.page-hero-sub,
.svc-desc,
.reason-desc,
.contact-card-desc,
.voice-quote,
.process-desc,
.timeline-desc,
.value-desc,
.vision-desc,
.num-tile-desc,
.mission-body,
.about-quote,
.notfound p,
.faq-a-inner,
.timeline-desc,
.case-meta-meta {
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

/* ===========================================================
   v3.10 — Hero video visibility tune (Option A)
   ----
   Brighten the hero so the demolition footage is visible while
   keeping the headline legible via stronger text-shadow.
   - Lighter top→bottom overlay   (0.34/0.62/0.90 → 0.10/0.30/0.65)
   - Lighter left→right overlay   (0.46/0.10/0.04 → 0.30/0.06/0.02)
   - Reduce scanline texture       (0.04 → 0.02)
   - Restore video colour          (brightness 0.95→1.0,
                                    saturate 0.78→0.92)
   - Strengthen text-shadow on H1 and lede so they stay readable
   =========================================================== */
.hero--video .hero-video {
  /* SVG sharpen + perceptual contrast/saturation boost.
     Order matters: sharpen first (pixel-level), then color tone. */
  filter: url(#videoSharpen) contrast(1.10) saturate(1.04) brightness(1.02);
  /* GPU-accelerated rendering for smoother scaling on large screens */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  /* High-quality scaling hint (Chromium 126+ uses better algo; older browsers ignore) */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
/* Fallback if filter:url() not supported (older Safari) — keep mild boost */
@supports not (filter: url(#x)) {
  .hero--video .hero-video {
    filter: contrast(1.12) saturate(1.06) brightness(1.02);
  }
}
.hero--video .hero-video-overlay {
  background:
    linear-gradient(180deg,  rgba(7, 89, 133, 0.10) 0%,  rgba(7, 89, 133, 0.30) 60%, rgba(7, 89, 133, 0.65) 100%),
    linear-gradient(90deg,   rgba(7, 89, 133, 0.30) 0%,  rgba(7, 89, 133, 0.06) 55%, rgba(7, 89, 133, 0.02) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px);
}
.hero--video .hero-title {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 3px 12px rgba(0, 0, 0, 0.55),
    0 6px 32px rgba(0, 0, 0, 0.40);
}
.hero--video .hero-sub {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.30),
    0 2px 14px rgba(0, 0, 0, 0.55);
}
.hero--video .hero-eyebrow,
.hero--video .hero-meta {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* ===========================================================
   v3.11 — Consent checkbox / submit spinner / related pages
   =========================================================== */

/* ---- Consent row (under the form, above submit) ---- */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.consent-row:has(.consent-checkbox:checked) {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.30);
}
.consent-row:hover { background: rgba(255, 255, 255, 0.06); }
.consent-checkbox {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.consent-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.consent-text a {
  color: #E8A887;
  border-bottom: 1px dotted rgba(232, 168, 135, 0.5);
  transition: color 0.2s, border-color 0.2s;
}
.consent-text a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---- Form submit spinner (toggled via .is-submitting on the form) ---- */
.form-submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}
.is-submitting .form-submit-spinner { display: inline-block; }
.is-submitting .form-submit-label::before { content: "送信中…"; }
.is-submitting .form-submit-label { font-size: 0; }
.is-submitting .form-submit-label::before { font-size: 14px; }
.is-submitting .form-submit-arrow { display: none; }
@media (prefers-reduced-motion: reduce) {
  .form-submit-spinner { animation: none; }
}

/* ---- Related pages section (at the bottom of subpages) ---- */
.related-section {
  background: var(--bg-sand);
  position: relative;
  overflow: hidden;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.related-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.related-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--navy), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.related-card:hover::before { transform: scaleY(1); }
.related-card-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  grid-column: 1 / -1;
}
.related-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.related-card-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--navy);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.related-card-arrow svg { width: 14px; height: 14px; }
.related-card:hover .related-card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(3px);
}
@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
}


