/*
Theme Name: Sagawa Quiet Heritage
Theme URI: http://localhost:8088
Author: Local prototype
Description: 株式会社佐川リニューアル検証用テーマ。カスタム投稿タイプとTOPデザイン再現を確認するためのローカル版。
Version: 0.5.0
Text Domain: sagawa-quiet
*/

:root {
  /* Readable text floor; keep larger type and border-drawn icons unchanged. */
  --font-min: max(15px, .9375rem);
  --ink: #11140f;
  --muted: #62645f;
  --line: #dad8d0;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --green: #073d2b;
  --green-2: #0f5a3f;
  --red: #b64a33;
  --footer: var(--green);
  --content: 1280px;
  --side: clamp(28px, 5.5vw, 78px);
  --gutter: max(var(--side), calc((100vw - var(--content)) / 2));
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.85;
  letter-spacing: .02em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.site-shell {
  width: 100%;
  margin: 0;
  background: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 74px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(17,20,15,.08);
  background: rgba(255,253,248,.92);
  backdrop-filter: blur(12px);
}
.site-brand {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
}
.site-logo {
  width: clamp(150px, 14vw, 206px);
  height: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.7vw, 28px);
  font-family: var(--serif);
  font-size: var(--font-min);
}
.site-nav a { padding: 6px 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-parent-link { white-space: nowrap; }
.nav-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 28px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.nav-submenu-toggle span[aria-hidden="true"] {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-size: 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.nav-submenu-toggle[aria-expanded="true"] span[aria-hidden="true"] { transform: translateY(2px) rotate(-135deg); }
.nav-submenu {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 20;
  display: grid;
  width: max-content;
  min-width: 236px;
  max-width: min(340px, calc(100vw - 40px));
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(15, 38, 30, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.nav-submenu a { padding: 8px 0; font-family: var(--sans); font-size: var(--font-min); line-height: 1.5; }
.nav-submenu__overview { margin-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.nav-submenu--services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(560px, calc(100vw - 40px));
  max-width: min(560px, calc(100vw - 40px));
  gap: 0 30px;
}
.nav-submenu--services .nav-submenu__overview { grid-column: 1 / -1; }
.nav-submenu__group-title {
  grid-column: 1 / -1;
  padding: 6px 0 7px 14px !important;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans) !important;
  font-size: var(--font-min) !important;
  font-weight: 700;
  letter-spacing: .08em;
}
.nav-submenu--services a::after {
  content: "→";
  margin-left: auto;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1;
}
.nav-submenu__group { display: grid; align-content: start; padding-left: 14px; }
.nav-submenu__group p { margin: 0; padding: 6px 0 7px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; letter-spacing: .08em; }
.nav-submenu__group a { padding-left: 14px; border-bottom: 1px solid rgba(220, 216, 207, .65); }
.nav-item--has-children:hover .nav-submenu,
.nav-item--has-children:focus-within .nav-submenu,
.nav-item--has-children.is-open .nav-submenu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-toggle {
  display: none;
  width: 46px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { position: absolute; left: 0; content: ""; }
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }
.nav-contact {
  padding: 12px 22px !important;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}
.hamburger { display: none; }

.section {
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  border-top: 1px solid var(--line);
}
.section:first-child { border-top: 0; }
.section--tinted { background: var(--paper); }
.section--soft-wash {
  background: linear-gradient(135deg, rgba(7,61,43,.045), rgba(182,74,51,.025) 52%, rgba(255,253,248,.92));
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.35;
}
.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--red);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}
.button-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
}
.btn.primary {
  background: var(--green);
  color: #fff;
}
.btn .arrow { font-size: 18px; line-height: 1; }
.btn,
.text-link,
.component-card,
.gallery-card,
.filter-chip,
.pagination-link,
.site-nav a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover,
.btn:focus-visible { background: var(--green); color: #fff; }
.btn.primary:hover,
.btn.primary:focus-visible { background: var(--green-2); }
.component-card:hover,
.component-card:focus-visible,
.gallery-card:hover,
.gallery-card:focus-visible { border-color: var(--green); transform: translateY(-3px); }
.text-link:hover,
.text-link:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--green-2); }
.btn:focus-visible,
.text-link:focus-visible,
.component-card:focus-visible,
.gallery-card:focus-visible,
.filter-chip:focus-visible,
.pagination-link:focus-visible,
.site-nav a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 69vw, 720px);
  overflow: hidden;
  background: var(--white);
}
.hero--composite { background: #fbf7ed; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(68vw, 1420px);
  background: url("assets/images/optimized/top-hero-sougyouchi-osaka.png.webp") right center / cover no-repeat;
  opacity: .76;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 11%, rgba(0,0,0,.82) 30%, #000 46%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 11%, rgba(0,0,0,.82) 30%, #000 46%);
}
.hero::after {
  content: "";
  position: absolute;
  right: clamp(430px, 34vw, 620px);
  bottom: -6px;
  z-index: 1;
  width: clamp(260px, 20vw, 380px);
  aspect-ratio: 2 / 3;
  background: url("assets/images/optimized/top-hero-cabinet.png.webp") center bottom / contain no-repeat;
}
@media (min-width: 801px) {
  .hero--composite::before {
    inset: 0;
    width: 100%;
    background: url("assets/images/optimized/top-hero-composite-wide-white-fade.png.webp") right center / auto 94% no-repeat;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero--composite::after { display: none; }
  .hero--composite .hero-lead {
    max-width: none;
    white-space: nowrap;
  }
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(52vw, 740px);
  max-width: none;
  padding: clamp(70px, 8vw, 132px) clamp(24px, 3vw, 56px) clamp(70px, 8vw, 132px) clamp(54px, 10vw, 320px);
}
.hero--composite .hero-copy {
  width: min(48vw, 720px);
}
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: .04em;
}
.hero-title span { white-space: nowrap; }
.hero--composite .hero-title { letter-spacing: 0; }
.hero-subtitle {
  max-width: none;
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
}
.hero-subtitle + .hero-lead { margin-top: 10px; }
.hero-lead {
  max-width: 520px;
  margin: 30px 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.95;
}
.hero .button-row {
  flex-wrap: nowrap;
}
.hero .btn {
  white-space: nowrap;
}
.hero-seal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: var(--font-min);
}
.seal-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: var(--font-min);
  line-height: 1.1;
}
.hero-visual {
  display: none;
}
.hero-vertical {
  position: absolute;
  top: 118px;
  right: clamp(44px, 7vw, 92px);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.85;
  letter-spacing: .16em;
}
.hero-caption {
  position: absolute;
  right: 38px;
  bottom: 28px;
  color: var(--muted);
  font-size: var(--font-min);
}

.capability {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #cfd8cf;
  border-radius: 999px;
  background: #fbfaf5;
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
}
.wide-photo {
  overflow: hidden;
  border: 1px solid var(--line);
}
.wide-photo img {
  width: 100%;
  height: clamp(260px, 30vw, 350px);
  object-fit: cover;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.product-card,
.case-card,
.feature-card,
.process-step,
.template-card,
.article-card {
  background: #fffdfa;
  border: 1px solid var(--line);
}
.product-card { min-height: 316px; display: flex; flex-direction: column; }
.product-card img { width: 100%; aspect-ratio: 1 / .82; object-fit: cover; }
.card-body { padding: 20px 18px 18px; }
.card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}
.card-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--font-min);
  line-height: 1.8;
}
.card-arrow {
  display: block;
  margin-top: 14px;
  color: var(--green);
  text-align: right;
  font-size: 20px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.process-step { min-height: 150px; padding: 24px 20px; position: relative; }
.process-no {
  display: block;
  color: var(--green);
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 16px;
}
.process-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 22px;
  z-index: 1;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.case-card img { width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; }

.faq-list {
  border: 1px solid var(--line);
  background: #fffdfa;
}
.faq-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}
.faq-item:first-child { border-top: 0; }
.faq-item b { font-family: var(--serif); font-size: 18px; }
.faq-plus { color: var(--green); font-size: 24px; }

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .55fr);
  gap: 44px;
  align-items: center;
  background: linear-gradient(90deg, #fffdf8, #f2eee4);
}
.cta-title {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 500;
  line-height: 1.35;
}
.cta-actions {
  display: grid;
  gap: 14px;
}
.cta-actions .btn { width: 100%; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(230px, .82fr) minmax(145px, .52fr) minmax(260px, .94fr) minmax(125px, .44fr) minmax(175px, .65fr) minmax(190px, .7fr);
  column-gap: clamp(22px, 2.4vw, 34px);
  row-gap: 28px;
  padding: 52px var(--gutter) 38px;
  background: var(--footer);
  color: #f3f1eb;
}
.footer-logo {
  width: 178px;
  height: auto;
  margin-bottom: 22px;
}
.footer-text,
.footer-col a,
.footer-copy {
  color: rgba(243,241,235,.76);
  font-family: var(--sans);
  font-size: var(--font-min);
  line-height: 1.9;
}
.site-footer--light { border-top: 1px solid var(--line); background: #f7f3e9; color: var(--ink); }
.site-footer--light .footer-text,
.site-footer--light .footer-col a,
.site-footer--light .footer-copy,
.site-footer--light .footer-certifications > span:first-child { color: var(--muted); }
.site-footer--light .footer-col h3 { color: var(--green); }
.footer-col h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}
.footer-col a { display: block; margin: 7px 0; }
.footer-certifications { display: inline-grid; gap: 9px; margin-top: 20px; }
.footer-certifications--footer { grid-column: 1; margin-top: 0; }
.footer-certifications > span:first-child { color: rgba(243,241,235,.72); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mobile-contact-bar { display: none; }
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: var(--back-to-top-offset, 24px);
  z-index: 19;
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: rgba(255,253,248,.94);
  box-shadow: 0 8px 20px rgba(17,20,15,.16);
  color: var(--green);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, bottom .2s ease, background-color .2s ease, color .2s ease;
}
.back-to-top__icon {
  position: absolute;
  top: 17px;
  left: 20px;
  width: 14px;
  height: 20px;
}
.back-to-top__icon::before,
.back-to-top__icon::after {
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}
.back-to-top__icon::before,
.back-to-top__icon::after { content: ""; left: 1px; }
.back-to-top__icon::before { top: 1px; }
.back-to-top__icon::after { top: 9px; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover,
.back-to-top:focus-visible { background: var(--green); color: #fff; }
.back-to-top:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.footer-certifications__logos { display: flex; gap: 6px; align-items: center; }
.footer-certifications__logos img { width: auto; height: 38px; padding: 4px; background: #fff; object-fit: contain; }
.footer-links {
  display: grid;
  align-content: start;
  gap: 3px;
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  transition: opacity .2s ease, transform .2s ease;
}
.footer-links a:hover {
  opacity: .82;
  transform: translateY(-1px);
}
.footer-links img {
  width: 100%;
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
}
.footer-copy {
  grid-column: 1 / -1;
  margin-top: 18px;
  text-align: center;
  letter-spacing: .08em;
}

.sub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding: clamp(70px, 8vw, 118px) var(--gutter);
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}
.sub-hero--visual { grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); }
.sub-hero__copy { min-width: 0; }
.sub-hero__image {
  width: 100%;
  height: clamp(360px, 34vw, 520px);
  object-fit: cover;
  border: 1px solid var(--line);
}
.sub-hero-slider {
  position: relative;
  min-width: 0;
}
.sub-hero-slider__viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.sub-hero-slider__track {
  display: flex;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.sub-hero-slider__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}
.sub-hero-slider__slide .sub-hero__image { border: 0; }
.sub-hero-slider__link { position: relative; display: block; color: #fff; }
.sub-hero-slider__zoom { position: relative; display: block; cursor: zoom-in; }
.sub-hero-slider__zoom:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.sub-hero-slider__zoom-label { position: absolute; top: 12px; right: 12px; padding: 6px 10px; background: rgba(0,0,0,.65); color: #fff; font-size: var(--font-min); }
.case-image-modal { position: fixed; inset: 0; box-sizing: border-box; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 64px 20px 20px; border: 0; background: rgba(0,0,0,.88); }
.case-image-modal[open] { display: flex; justify-content: center; align-items: center; }
.case-image-modal::backdrop { background: rgba(0,0,0,.5); }
.case-image-modal__image { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.case-image-modal__close { position: absolute; top: 12px; right: 16px; min-height: 44px; padding: 8px 16px; border: 1px solid #fff; background: #fff; color: #111; cursor: pointer; }
.case-image-modal__close:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.sub-hero-slider__case-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 64px 24px 22px;
  background: linear-gradient(transparent, rgba(15,31,24,.9));
}
.sub-hero-slider__case-copy strong { max-width: 75%; font-size: clamp(18px, 2vw, 28px); font-weight: 500; line-height: 1.45; }
.sub-hero-slider__case-copy span { flex: 0 0 auto; font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.sub-hero__scroll {
  position: absolute;
  bottom: 18px;
  left: var(--gutter);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
  letter-spacing: .18em;
}
.sub-hero__scroll i { font-size: 18px; font-style: normal; animation: sagawa-scroll-hint 1.7s ease-in-out infinite; }
.sub-hero__scroll--below-hero {
  position: static;
  display: flex;
  width: fit-content;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--green);
  background: var(--white);
  box-shadow: 0 6px 16px rgba(15, 31, 24, .08);
  font-size: var(--font-min);
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.sub-hero__scroll--below-hero small {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 700;
  letter-spacing: .14em;
}
.sub-hero__scroll--below-hero:hover,
.sub-hero__scroll--below-hero:focus-visible { background: var(--green); color: #fff; transform: translateY(2px); }
.sub-hero__scroll--below-hero:hover small,
.sub-hero__scroll--below-hero:focus-visible small { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.78); }
.sub-hero-scroll-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: -78px;
  padding: 0 var(--gutter) 36px;
  background: transparent;
}
.sub-hero--with-scroll { border-bottom: 0; }
.sub-hero-scroll-wrap + .section { border-top: 0; }
@keyframes sagawa-scroll-hint { 50% { transform: translateY(5px); } }
.sub-hero-slider__slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 20px 14px;
  background: linear-gradient(transparent, rgba(15, 31, 24, .78));
  color: #fff;
  font-family: var(--sans);
  font-size: var(--font-min);
}
.sub-hero-slider__controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.sub-hero-slider__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(15, 31, 24, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px rgba(15, 31, 24, .18);
  color: var(--green);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  place-items: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.sub-hero-slider__arrow--prev { left: 16px; }
.sub-hero-slider__arrow--next { right: 16px; }
.sub-hero-slider__arrow:hover,
.sub-hero-slider__arrow:focus-visible {
  background: var(--green);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.sub-hero-slider__arrow:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.sub-hero-slider__counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 31, 24, .78);
  color: #fff;
  font-family: var(--sans);
  font-size: var(--font-min);
  text-align: center;
}
.sub-hero-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 16px;
}
.sub-hero-slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.sub-hero-slider__dots button[aria-current="true"] { width: 26px; background: var(--green); }
.sub-hero-slider__dots button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .sub-hero-slider__track { transition: none; }
}
.sub-hero--recruit {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
}
.sub-hero--recruit .sub-hero__image {
  height: clamp(300px, 28vw, 430px);
  object-position: 72% center;
}
.sub-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.25;
}
.sub-hero p {
  max-width: 760px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 16px;
}
.sub-hero .button-row { margin-top: 34px; }
.sub-hero .component-breadcrumb { margin-top: 38px; }
.content-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature-card,
.template-card,
.article-card { padding: 26px; }
.template-card code {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 8px;
  background: #f0eee7;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--font-min);
}
.entry-content {
  max-width: 880px;
  margin: 0 auto 0 var(--gutter);
  padding: 72px 0;
}
.entry-content h2 { font-size: 34px; font-weight: 500; }
.entry-content p,
.entry-content li {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2.05;
}
.entry-meta-line {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
}
.entry-main-image,
.entry-image-placeholder,
.content-placeholder {
  margin: 0 0 42px;
  border: 1px solid var(--line);
  background: #fffdfa;
}
.entry-main-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.entry-image-placeholder,
.content-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: var(--muted);
  text-align: center;
}
.entry-image-placeholder span,
.content-placeholder span {
  display: block;
  color: var(--green);
  font-family: var(--serif);
  font-size: 28px;
}
.entry-image-placeholder small,
.content-placeholder small {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: var(--font-min);
}
.entry-date {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
}
.company-section,
.company-message,
.company-outline { border-top: 1px solid var(--line); }
.company-lead {
  max-width: 840px;
  margin-bottom: 44px;
}
.company-lead h2,
.company-message h2,
.company-outline h2 {
  margin: 8px 0 18px;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 500;
}
.company-lead p,
.company-message p,
.company-outline dd {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2;
}
.company-message {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}
.message-photo {
  min-height: 420px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,253,248,.82), rgba(255,253,248,.24)),
    url("assets/images/optimized/sagawa-office-reception.jpg.webp") center / cover no-repeat;
}
.company-outline dl {
  max-width: 980px;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}
.company-outline dl div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.company-outline dt {
  color: var(--green);
  font-family: var(--sans);
  font-weight: 700;
}
.company-outline dd { margin: 0; }

/* Shared design components */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
  white-space: nowrap;
}
.section-heading-copy { max-width: 820px; }
.tax-case_category .section-heading-copy { max-width: none; }
.tax-case_category .section-title { font-size: clamp(28px, 2.5vw, 48px); }
.section-head--compact { margin-bottom: 24px; }
.tag-row--compact { gap: 8px; margin-top: 18px; }
.tag-row--compact .tag { min-height: 28px; padding: 0 12px; font-size: var(--font-min); }

/* Give the official philosophy its own quiet, prominent statement. */
#company-philosophy {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
  background: var(--green);
  color: var(--white);
}
#company-philosophy .prose-block {
  display: grid;
  grid-template-columns: minmax(160px, .65fr) minmax(0, 2fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 96px);
  max-width: none;
}
#company-philosophy .eyebrow { grid-column: 1; color: #e6b9a7; }
#company-philosophy .eyebrow::before { background: currentColor; }
#company-philosophy h2 {
  grid-column: 1;
  margin: 16px 0 0;
  font-size: clamp(25px, 2.6vw, 36px);
}
#company-philosophy .prose-block__body {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  padding-left: clamp(24px, 4vw, 56px);
  border-left: 1px solid rgba(255,255,255,.3);
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(23px, 2.5vw, 36px);
  line-height: 2;
  letter-spacing: .04em;
  line-break: strict;
}
#company-philosophy .prose-block__body p { margin: 0; text-wrap: balance; }
@media (max-width: 760px) {
  #company-philosophy .prose-block { display: block; }
  #company-philosophy .prose-block__body {
    margin-top: 32px;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.3);
  }
}
.prose-block { max-width: 820px; }
.prose-block h2,
.component-split h2,
.component-cta h2,
.component-article h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.45;
}
.prose-block__body,
.component-split__copy > p,
.component-cta p,
.component-article p,
.component-article li {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
}
.case-detail-rich-text .prose-block__body,
.case-detail-rich-text .prose-block__body p,
.case-detail-rich-text .prose-block__body li {
  color: var(--ink);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 2.05;
}
.case-detail-rich-text .prose-block__body h1,
.case-detail-rich-text .prose-block__body h2,
.case-detail-rich-text .prose-block__body h3,
.case-detail-rich-text .prose-block__body h4 {
  margin: 28px 0 12px;
  color: var(--green);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.55;
}
.case-detail-rich-text .prose-block__body h1 { font-size: clamp(28px, 2.5vw, 38px); }
.case-detail-rich-text .prose-block__body h2 { font-size: clamp(24px, 2.2vw, 32px); }
.case-detail-rich-text .prose-block__body h3 { font-size: clamp(21px, 1.8vw, 26px); }
.case-detail-rich-text .prose-block__body h4 { font-size: clamp(18px, 1.4vw, 22px); }
.case-detail-rich-text .prose-block__body ul,
.case-detail-rich-text .prose-block__body ol {
  padding-left: 1.5em;
}

.component-cards {
  display: grid;
  grid-template-columns: repeat(var(--card-columns, 3), minmax(0, 1fr));
  gap: 22px;
}
.component-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fffdfa;
}
.component-card__image {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}
.component-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.component-card h3,
.gallery-card h3,
.flow-step h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
}
.component-card p,
.gallery-card p,
.flow-step p {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--font-min);
  line-height: 1.85;
}
.component-card__meta {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
  letter-spacing: .08em;
}
.component-card__arrow {
  display: block;
  margin-top: auto;
  padding-top: 22px;
  color: var(--green);
  text-align: right;
  font-size: 20px;
}
.component-cards--numbered .component-card { border-top: 3px solid var(--green); }
.component-cards--numbered .component-card__meta { font-family: var(--serif); font-size: 28px; font-weight: 500; }

.component-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.component-split--reverse .component-split__copy { order: 2; }
.component-split__copy .btn { margin-top: 30px; }
.component-split__visual { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.component-split__visual img { width: 100%; min-height: 390px; max-height: 540px; object-fit: cover; }
#new-product .component-split__visual {
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 56px);
  border: 0;
  background: transparent;
}
#new-product .component-split__visual img {
  width: min(100%, 420px);
  min-height: 0;
  max-height: none;
  object-fit: contain;
}
.component-split__panel {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: end;
  padding: clamp(28px, 5vw, 64px);
  background: var(--green);
  color: #fff;
}
.component-split__panel span { font-size: clamp(34px, 5vw, 72px); line-height: 1; }
.component-split__panel small { margin-top: 18px; font-family: var(--sans); font-size: var(--font-min); }

.component-line-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.component-line-contact.component-line-contact--link-only { grid-template-columns: minmax(0, 760px); }
.component-line-contact__copy { max-width: 760px; }
.component-line-contact h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.45;
}
.component-line-contact__copy > p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
}
.component-line-contact__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.component-line-contact__items li {
  min-height: 32px;
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
}
.component-line-contact__button { margin-top: 30px; }
.component-line-contact__note {
  display: block;
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--font-min);
  line-height: 1.8;
}
.component-line-contact__qr {
  margin: 0;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--line);
  background: #fff;
}
.component-line-contact__qr img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.component-line-contact__qr figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--font-min);
  line-height: 1.7;
  text-align: center;
}

.component-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gallery-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); background: #fffdfa; }
.gallery-card > img,
.gallery-card__fallback { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; }
#cases .gallery-card > img { aspect-ratio: 1.55 / 1; object-position: center 18%; }
.gallery-card__fallback { display: grid; place-items: center; background: var(--paper); color: var(--muted); font-family: var(--sans); }
.gallery-card__body { padding: 22px; }
.gallery-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
}
.component-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-step { position: relative; min-height: 190px; padding: 24px 22px; border: 1px solid var(--line); background: #fffdfa; }
.flow-step__number { display: block; margin-bottom: 18px; color: var(--green); font-family: var(--serif); font-size: 28px; }

.component-faq { border: 1px solid var(--line); background: #fffdfa; }
.faq-disclosure { border-top: 1px solid var(--line); }
.faq-disclosure:first-child { border-top: 0; }
.faq-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
}
.faq-disclosure summary::-webkit-details-marker { display: none; }
.faq-disclosure summary b { margin-right: 8px; color: var(--green); }
.faq-disclosure__state { color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; white-space: nowrap; }
.faq-disclosure__answer { padding: 0 64px 26px 58px; color: var(--muted); font-family: var(--sans); font-size: 15px; }
.faq-disclosure__answer p { margin: 0; }

.component-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .7fr);
  gap: 48px;
  align-items: center;
  padding: clamp(44px, 6vw, 76px);
  border: 1px solid var(--line);
  background: #f2eee4;
}
.component-cta__actions { display: grid; gap: 14px; }
.component-cta__actions .btn { width: 100%; gap: 12px; padding-inline: 20px; white-space: nowrap; }

.component-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.component-table { width: 100%; border-collapse: collapse; background: #fffdfa; }
.component-table th,
.component-table td { padding: 20px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.component-table th { width: 230px; color: var(--green); font-family: var(--sans); font-size: var(--font-min); }
.component-table td { color: var(--muted); font-family: var(--sans); font-size: 15px; }
.component-table thead th { width: auto; background: var(--green); color: #fff; }

.component-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 30px;
  max-width: 1040px;
}
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 10px; }
.form-field--wide { grid-column: 1 / -1; }
.form-field--notice { margin-bottom: -16px; }
.form-field label { color: var(--ink); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.form-required { display: inline-block; margin-left: 10px; padding: 2px 7px; background: var(--red); color: #fff; font-size: var(--font-min); }
.form-contact-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; color: var(--muted); font-family: var(--sans); font-size: var(--font-min); line-height: 1.7; }
.form-contact-notice strong { display: inline-flex; align-items: center; color: var(--ink); font-size: var(--font-min); }
.form-contact-notice .form-required { margin-left: 8px; padding: 0; background: transparent; color: var(--red); font-size: var(--font-min); }
.form-field input,
.form-field textarea,
.form-field select { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--sans); font-size: 15px; }
.form-field textarea { resize: vertical; }
.form-field small { color: var(--muted); font-family: var(--sans); font-size: var(--font-min); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--green); outline: 2px solid rgba(7,61,43,.18); outline-offset: 1px; }
.form-submit { align-items: flex-start; margin-top: 8px; }
.form-field input[type="file"] { min-height: 62px; padding: 12px; background: #fffdfa; }
.form-field--checkbox { gap: 0; }
.form-field[hidden] { display: none; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-server-status { margin: 0; padding: 16px 18px; border-left: 3px solid var(--green); background: rgba(7,61,43,.07); color: var(--green); font-family: var(--sans); font-size: var(--font-min); line-height: 1.8; }
.form-check { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); background: #fffdfa; cursor: pointer; }
.form-status { margin: 16px 0 0; padding: 14px 16px; border-left: 3px solid var(--green); background: rgba(7,61,43,.07); color: var(--green); font-family: var(--sans); font-size: var(--font-min); line-height: 1.8; }
.form-confirmation { grid-column: 1 / -1; max-width: 820px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--green); background: #fffdfa; }
.form-confirmation[hidden] { display: none; }
.form-confirmation h3 { margin: 0 0 22px; color: var(--green); font-size: clamp(22px, 3vw, 30px); font-weight: 500; }
.form-confirmation__list { display: grid; grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr); margin: 0 0 22px; border-top: 1px solid var(--line); }
.form-confirmation__list dt,
.form-confirmation__list dd { margin: 0; padding: 13px 14px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: var(--font-min); line-height: 1.75; overflow-wrap: anywhere; }
.form-confirmation__list dt { color: var(--green); font-weight: 700; }
.form-confirmation__list dd { color: var(--ink); white-space: pre-wrap; }
.form-confirmation > p { color: var(--muted); font-family: var(--sans); font-size: var(--font-min); line-height: 1.8; }
.form-check input[type="checkbox"] { flex: 0 0 auto; width: 20px; min-height: 20px; margin: 3px 0 0; accent-color: var(--green); }
.form-check > span { color: var(--ink); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }

.component-article { max-width: 820px; }
.component-article__meta { color: var(--green) !important; font-size: var(--font-min) !important; font-weight: 700; }
.component-article h3 { margin: 44px 0 12px; font-size: 26px; font-weight: 500; }

.component-breadcrumb { margin-top: 28px; }
.component-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-family: var(--sans); font-size: var(--font-min); }
.component-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #aaa89f; }
.component-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); background: #fffdfa; color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.filter-chip.is-active { border-color: var(--green); background: var(--green); color: #fff; }
.component-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination-link { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: #fffdfa; color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.pagination-link.is-active { border-color: var(--green); background: var(--green); color: #fff; }

/* Editorial and evidence-led components */
.component-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 0;
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--line);
}
.stat-item {
  min-width: 0;
  padding: 28px clamp(18px, 2.4vw, 34px);
  border-left: 1px solid var(--line);
}
.stat-item:first-child { border-left: 0; }
.stat-item dt {
  color: var(--green);
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.2;
}
.stat-item dd {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
}
.stat-item__body {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--font-min);
  line-height: 1.7;
}

.component-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(34px, 6vw, 88px);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--green);
  list-style: none;
}
.component-checklist li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 126px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.checklist-mark {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border: 1px solid var(--green);
  border-radius: 50%;
}
.checklist-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 7px;
  width: 8px;
  height: 4px;
  border-bottom: 1px solid var(--green);
  border-left: 1px solid var(--green);
  transform: rotate(-45deg);
}
.component-checklist h3 { margin: 0; font-size: 19px; line-height: 1.55; }
.component-checklist p { margin: 8px 0 0; color: var(--muted); font-family: var(--sans); font-size: var(--font-min); line-height: 1.8; }

.component-timeline {
  position: relative;
  max-width: 1080px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.component-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46px;
  width: 1px;
  background: var(--green);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 30px;
  min-height: 126px;
  padding: 0 0 34px;
}
.timeline-item__number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 94px;
  height: 54px;
  border: 1px solid var(--green);
  background: var(--white);
  color: var(--green);
  font-size: 22px;
}
.section--tinted .timeline-item__number { background: var(--paper); }
.timeline-item__copy { padding: 6px 0 30px; border-bottom: 1px solid var(--line); }
.timeline-item h3 { margin: 0; font-size: 22px; line-height: 1.5; }
.timeline-item p { max-width: 760px; margin: 9px 0 0; color: var(--muted); font-family: var(--sans); font-size: var(--font-min); line-height: 1.9; }

.history-lead-image {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  background: #e9e6de;
}
.history-lead-image img {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 460px);
  object-fit: cover;
  object-position: center 30%;
  filter: sepia(.06) contrast(1.03);
}
.history-lead-image figcaption {
  padding: 11px 16px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--font-min);
  line-height: 1.65;
}
.component-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}
.history-era {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  background: rgba(255,253,248,.72);
}
.history-era__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.history-era__header h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 500;
  line-height: 1.45;
}
.history-era__period {
  flex: 0 0 auto;
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
  letter-spacing: .08em;
}
.history-era__events {
  margin: 0;
  padding: 0 26px;
  list-style: none;
}
.history-era__events li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.history-era__events li:last-child { border-bottom: 0; }
.history-era__events time {
  display: grid;
  gap: 3px;
  color: var(--green);
}
.history-era__events time strong {
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}
.history-era__events time span {
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
}
.history-event__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 190px);
  gap: 18px;
  align-items: start;
}
.history-event__body:not(:has(.history-event__media)) {
  display: block;
}
.history-era__events p {
  margin: -3px 0 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--font-min);
  line-height: 1.85;
}
.history-event__media {
  display: grid;
  grid-template-columns: repeat(var(--history-media-columns, 1), minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  overflow: hidden;
  background: transparent;
}
.history-event__media--2 { --history-media-columns: 2; }
.history-event__media--3 { --history-media-columns: 3; }
.history-event__figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
}
.history-event__figure img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: center;
  filter: sepia(.06) contrast(1.03);
}
.history-event__figure--contain img {
  object-fit: contain;
  filter: none;
}

@media (min-width: 761px) and (max-width: 1500px) {
  .hero--composite::before {
    background-position: calc(100% + 72px) center;
    background-size: auto 88%;
  }
  .hero--composite .hero-title {
    font-size: clamp(48px, 4.55vw, 64px);
    letter-spacing: 0;
  }
}

@media (min-width: 1281px) and (max-width: 1400px) {
  .hero--composite::before { background-position: calc(100% + 160px) center; }
}

@media (min-width: 801px) and (max-width: 1280px) {
  .hero--composite::before {
    background-position: calc(100% + 250px) center;
    background-size: auto 80%;
  }
}

/* TOP のヒーローだけは 800px 以下をモバイル表示にそろえる。 */
@media (max-width: 800px) {
  .hero--composite {
    min-height: 760px;
    align-items: flex-start;
  }
  .hero--composite::before {
    inset: 0;
    width: 100%;
    height: 100%;
    background: url("assets/images/optimized/top-hero-composite-mobile.png.webp") center bottom / cover no-repeat;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero--composite::after { display: none; }
  .hero--composite .hero-copy {
    width: auto;
    padding: 56px 22px 360px;
  }
  .hero--composite .button-row { flex-wrap: wrap; }
  .hero--composite .hero-title { font-size: 42px; }
  .hero--composite .hero-subtitle { white-space: normal; }
}
.history-event__figure figcaption {
  display: none;
}
.history-source-note {
  max-width: 980px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--font-min);
  line-height: 1.8;
}
.history-source-note a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.component-photo-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.photo-strip-item {
  position: relative;
  grid-column: span 4;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}
.photo-strip-item img {
  width: 100%;
  height: clamp(300px, 32vw, 470px);
  object-fit: cover;
  opacity: .88;
  transition: transform .5s ease, opacity .3s ease;
}
.photo-strip-item:hover img { transform: scale(1.025); opacity: 1; }
.photo-strip-item__status,
.media-feature__status,
.photo-status {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 10px;
  background: rgba(255,253,248,.92);
  color: var(--green);
  font-family: var(--sans);
  font-size: var(--font-min);
  font-weight: 700;
  letter-spacing: .06em;
}
.photo-strip-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 56px 22px 22px;
  background: linear-gradient(transparent, rgba(8,18,14,.88));
  color: #fff;
}
.photo-strip-item figcaption strong,
.photo-strip-item figcaption small { display: block; }
.photo-strip-item figcaption strong { font-size: 18px; }
.photo-strip-item figcaption small { margin-top: 4px; font-family: var(--sans); font-size: var(--font-min); opacity: .78; }

.component-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--line);
}
.comparison-item {
  min-width: 0;
  padding: 30px clamp(20px, 3vw, 38px) 34px;
  border-left: 1px solid var(--line);
}
.comparison-item:first-child { border-left: 0; }
.comparison-item__number { display: block; margin-bottom: 48px; color: var(--green); font-size: 22px; }
.comparison-item h3 { min-height: 66px; margin: 0; font-size: 21px; line-height: 1.55; }
.comparison-item p { margin: 12px 0 0; color: var(--muted); font-family: var(--sans); font-size: var(--font-min); line-height: 1.9; }
.comparison-item > strong { display: block; margin-top: 18px; color: var(--green); font-family: var(--sans); font-size: var(--font-min); }
.comparison-item--featured { background: var(--green); color: #fff; }
.comparison-item--featured p,
.comparison-item--featured .comparison-item__number { color: rgba(255,255,255,.78); }

.component-media-features { display: grid; gap: clamp(70px, 9vw, 130px); }
.media-feature {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(0, .9fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}
.media-feature--reverse .media-feature__visual { order: 2; }
.media-feature__visual { position: relative; min-width: 0; margin: 0; }
.media-feature__visual img { width: 100%; height: clamp(390px, 40vw, 590px); object-fit: cover; }
.media-feature__visual--contain { background: var(--white); }
.media-feature__visual--contain img { object-fit: contain; }
.media-feature__visual--zoom-out img { height: clamp(340px, 33vw, 490px); }
.media-feature__visual figcaption { margin-top: 10px; color: var(--muted); font-family: var(--sans); font-size: var(--font-min); }
.media-feature__number { display: block; margin-bottom: 26px; color: var(--green); font-size: clamp(30px, 4vw, 58px); line-height: 1; }
.media-feature__copy h3 { margin: 0; font-size: clamp(28px, 3.1vw, 42px); font-weight: 500; line-height: 1.48; text-wrap: balance; word-break: normal; }
.media-feature__copy > p { margin: 20px 0 0; color: var(--muted); font-family: var(--sans); font-size: 15px; line-height: 2; }
.media-feature__copy ul { margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.media-feature__copy li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.media-feature__link {
  margin-top: 34px;
}
.media-feature__link .btn {
  width: fit-content;
}

.section--statement { padding: 0; border-top: 0; background: var(--green); }
.component-statement {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
  padding: clamp(72px, 9vw, 132px) var(--gutter);
  background: var(--green);
  color: #fff;
}
.component-statement .eyebrow { color: #e6a896; }
.component-statement .eyebrow::before { background: #e6a896; }
.component-statement h2 { margin: 0; font-size: clamp(34px, 4.5vw, 64px); font-weight: 500; line-height: 1.45; }
.component-statement__copy > p { max-width: 820px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-family: var(--sans); font-size: 15px; line-height: 2; }
.component-statement > ul { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.32); list-style: none; }
.component-statement > ul li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.component-statement > ul strong { font-size: 19px; }
.component-statement > ul span { color: rgba(255,255,255,.66); font-family: var(--sans); font-size: var(--font-min); }

/* New product development landing page */
.new-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  column-gap: clamp(36px, 5vw, 88px);
  align-items: center;
  min-height: clamp(500px, 48vw, 580px);
  padding-right: var(--gutter);
  background: #fffdf8;
}
.new-product-hero__copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(68px, 8vw, 126px) clamp(34px, 5vw, 80px) clamp(68px, 8vw, 126px) var(--gutter); }
.new-product-hero__kicker { margin: 0 0 20px; color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; line-height: 1.8; }
.new-product-hero h1 { margin: 0; font-size: clamp(48px, 4.2vw, 72px); font-weight: 500; line-height: 1.28; letter-spacing: .02em; }
.new-product-hero h1 span { white-space: nowrap; }
.new-product-hero__lead { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-family: var(--sans); font-size: 16px; line-height: 2; }
.new-product-hero__note { max-width: 620px; margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--red); color: var(--muted); font-family: var(--sans); font-size: var(--font-min); }
.new-product-hero__visual { position: relative; min-width: 0; height: clamp(340px, 30vw, 430px); margin: 0; overflow: hidden; background: var(--ink); }
.new-product-hero__visual img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.new-product-hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7,61,43,.08), transparent 52%, rgba(7,61,43,.26)); pointer-events: none; }
.new-product-hero__visual figcaption { position: absolute; right: 24px; bottom: 24px; z-index: 2; color: rgba(255,255,255,.82); font-family: var(--sans); font-size: var(--font-min); }
.new-product-proof { padding: 0 var(--gutter) clamp(50px, 6vw, 78px); background: #fffdf8; }
.new-product-anchor {
  position: sticky;
  top: 74px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,248,.97);
  white-space: nowrap;
}
.new-product-anchor a { padding: 16px clamp(18px, 3vw, 38px); border-left: 1px solid var(--line); color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.new-product-anchor a:last-child { border-right: 1px solid var(--line); }
.new-product-intro,
.new-product-checks,
.new-product-continuity,
.new-product-service-paths,
.new-product-faq { scroll-margin-top: 136px; }
.service-path-list { border-top: 1px solid var(--green); }
.service-path-list a {
  display: grid;
  grid-template-columns: 70px minmax(260px, .8fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 96px;
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  transition: padding .2s ease, background-color .2s ease;
}
.service-path-list a:hover,
.service-path-list a:focus-visible { padding-right: 20px; padding-left: 20px; background: var(--paper); outline: 0; }
.service-path-list span,
.service-path-list b { color: var(--green); font-size: 20px; font-weight: 500; }
.service-path-list strong { font-size: 20px; }
.service-path-list small { color: var(--muted); font-family: var(--sans); font-size: var(--font-min); }

/* Archive and editorial templates */
.archive-toolbar { padding-top: clamp(44px, 5vw, 68px); padding-bottom: clamp(44px, 5vw, 68px); }
.archive-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.archive-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.archive-pagination .page-numbers.current { border-color: var(--green); background: var(--green); color: #fff; }

.news-list { border-top: 1px solid var(--line); }
.news-row {
  display: grid;
  grid-template-columns: 120px 150px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease, padding .2s ease;
}
.news-row:hover,
.news-row:focus-visible { padding-right: 14px; padding-left: 14px; background: var(--paper); outline: 0; }
.news-row time,
.news-row__category,
.news-row__copy small { color: var(--muted); font-family: var(--sans); font-size: var(--font-min); }
.news-row__category { color: var(--green); font-weight: 700; }
.news-row__copy { display: grid; gap: 6px; }
.news-row__copy strong { font-size: 18px; font-weight: 600; }
.news-row__copy small { line-height: 1.7; }
.news-row__arrow { color: var(--green); font-size: 20px; }

.component-certifications { border-top: 1px solid var(--green); }
.certification-item { display: grid; grid-template-columns: 150px minmax(220px, .55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 62px); align-items: start; padding: 30px 4px; border-bottom: 1px solid var(--line); }
.certification-item__logo { display: grid; min-height: 112px; place-items: center; padding: 14px; background: #fff; }
.certification-item__logo img { width: auto; max-width: 112px; max-height: 94px; }
.certification-item__heading { display: grid; gap: 9px; }
.certification-item__heading h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.45; }
.certification-item__detail > p { margin: 0 0 16px; color: var(--muted); font-family: var(--sans); font-size: var(--font-min); line-height: 1.9; }
.certification-item__detail dl { display: grid; gap: 0; margin: 0; }
.certification-item__detail dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-family: var(--sans); font-size: var(--font-min); line-height: 1.7; }
.certification-item__document { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.certification-item__detail dt { color: var(--green); font-weight: 700; }
.certification-item__detail dd { margin: 0; color: var(--muted); }
.certification-note { margin: 22px 0 0; color: var(--muted); font-family: var(--sans); font-size: var(--font-min); line-height: 1.8; }

.home-editorial-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(42px, 6vw, 88px); }
.home-editorial-panel { min-width: 0; }
.home-editorial-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.home-editorial-head h3 { margin: 6px 0 0; font-size: clamp(28px, 3vw, 38px); font-weight: 500; }
.home-editorial-link { flex: 0 0 auto; padding-bottom: 4px; color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.home-editorial-link span { margin-left: 6px; }
.news-list--home .news-row { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; padding: 22px 4px; }
.news-list--home .news-row__category { grid-column: 1; grid-row: 1; }
.news-list--home time { grid-column: 1; grid-row: 2; }
.news-list--home .news-row__copy { grid-column: 2; grid-row: 1 / 3; }
.news-list--home .news-row__arrow { grid-column: 3; grid-row: 1 / 3; }
.news-list--home .news-row__copy strong { font-size: 16px; line-height: 1.65; }
.home-column-list { border-top: 1px solid var(--line); }
.home-column-item { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); transition: background-color .2s ease, padding .2s ease; }
.home-column-item:hover,
.home-column-item:focus-visible { padding-right: 14px; padding-left: 14px; background: var(--paper); outline: 0; }
.home-column-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.home-column-item__copy { display: grid; gap: 7px; }
.home-column-item__copy strong { font-size: 17px; font-weight: 600; line-height: 1.55; }
.home-editorial-empty { padding: 24px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--sans); }

.article-section { background: #fffdf8; }
.article-layout { max-width: 940px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 34px; color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.article-body { max-width: 820px; }
.article-body > :first-child { margin-top: 0; }
.article-body p,
.article-body li { color: var(--muted); font-family: var(--sans); font-size: 16px; line-height: 2.1; }
.article-body h2 { margin: 58px 0 18px; font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1.5; }
.article-body h3 { margin: 42px 0 14px; font-size: 24px; font-weight: 600; }
.article-body h4 { margin: 32px 0 12px; font-size: 19px; font-weight: 600; }
.article-body figure { margin: 42px 0; }
.article-body figure img,
.article-body > img { display: block; width: 100%; max-height: 560px; margin: 0; border: 1px solid var(--line); object-fit: cover; }
.article-body figcaption { margin-top: 10px; color: var(--muted); font-family: var(--sans); font-size: var(--font-min); line-height: 1.7; text-align: center; }
.article-body ul,
.article-body ol { margin: 18px 0 32px; padding-left: 1.5em; }
.article-body li + li { margin-top: 8px; }
.article-body table { width: 100%; margin: 30px 0 42px; border-collapse: collapse; background: #fffdfa; font-family: var(--sans); font-size: var(--font-min); line-height: 1.7; }
.article-body th,
.article-body td { padding: 15px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body thead th { background: var(--green); color: #fff; font-weight: 700; }
.article-body tbody th { width: 22%; background: var(--paper); color: var(--green); font-weight: 700; }
.article-body blockquote { margin: 38px 0; padding: 24px 28px; border-left: 4px solid var(--green); background: var(--paper); }
.article-body blockquote p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.9; }
.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.post-navigation-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.post-navigation-grid > div > a,
.post-navigation-grid__index { display: flex; min-height: 108px; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid var(--line); background: #fffdfa; }
.post-navigation-grid > div:last-child > a { align-items: flex-end; text-align: right; }
.post-navigation-grid span { color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.post-navigation-grid strong { margin-top: 8px; font-size: 15px; font-weight: 600; }
.post-navigation-grid__index { align-items: center; color: var(--green); font-family: var(--sans); font-size: var(--font-min); font-weight: 700; }
.section--cta { background: #fffdf8; }

/* Internal component catalogue */
.design-parts-hero { padding-bottom: 70px; }
.parts-index {
  position: sticky;
  top: 74px;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,248,.96);
  font-family: var(--sans);
  font-size: var(--font-min);
  white-space: nowrap;
}
.parts-index a { padding: 7px 11px; border: 1px solid var(--line); }
.parts-section { scroll-margin-top: 140px; }
.parts-foundations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.parts-panel { min-width: 0; padding: 28px; border: 1px solid var(--line); background: #fffdfa; }
.parts-panel h3,
.parts-variant-title { margin: 0 0 24px; font-size: 20px; font-weight: 600; }
.parts-variant-title { margin-top: 48px; }
.color-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.color-swatch span { display: block; width: 100%; aspect-ratio: 1.5 / 1; margin-bottom: 10px; border: 1px solid var(--line); background: var(--swatch); }
.color-swatch b,
.color-swatch small { display: block; font-family: var(--sans); font-size: var(--font-min); }
.color-swatch small { color: var(--muted); }
.type-display { margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.35; }
.type-heading { margin: 24px 0 0; font-size: 25px; }
.type-body { color: var(--muted); font-family: var(--sans); font-size: var(--font-min); }
.hero--catalog { min-height: 620px; border: 1px solid var(--line); }
.hero--catalog .hero-title { font-size: clamp(42px, 5vw, 68px); }
.parts-sub-hero-sample { margin-top: 28px; padding: clamp(48px, 6vw, 82px); border: 1px solid var(--line); background: #fffdfa; }
.parts-sub-hero-sample h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); font-weight: 500; }
.parts-sub-hero-sample p { max-width: 700px; color: var(--muted); font-family: var(--sans); }
.parts-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px); }

@media (max-width: 1400px) {
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .site-nav { gap: 13px; font-size: var(--font-min); }
  .hero,
  .capability,
  .cta-band { grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-step::after { display: none; }
  .company-message { grid-template-columns: 1fr; }
  .component-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .component-split,
  .component-cta { grid-template-columns: 1fr; }
  .component-cta__actions .btn { white-space: normal; }
  .component-line-contact { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
  .sub-hero--visual { grid-template-columns: 1fr 1fr; }
  .component-split__visual { order: 2; }
  .component-split--reverse .component-split__copy { order: initial; }
  .parts-foundations { grid-template-columns: 1fr; }
  .media-feature,
  .component-statement,
  .new-product-hero { grid-template-columns: 1fr; }
  .new-product-hero { padding-right: 0; }
  .media-feature--reverse .media-feature__visual { order: initial; }
  .new-product-hero__visual { min-height: 360px; }
  .new-product-hero__visual img { min-height: 360px; }
  .new-product-anchor { justify-content: flex-start; }
  .home-editorial-grid { grid-template-columns: 1fr; }
  .certification-item { grid-template-columns: 130px minmax(200px, .55fr) minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; top: 100%; left: 0; display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 14px var(--side) 22px; border-bottom: 1px solid var(--line); background: var(--white); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .nav-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
  .nav-item > .nav-parent-link { grid-column: 1; }
  .nav-submenu-toggle { grid-column: 2; width: 44px; height: 44px; margin: 0; }
  .nav-submenu {
    position: static;
    grid-column: 1 / -1;
    display: none;
    width: auto;
    max-width: none;
    margin: 0 0 10px;
    padding: 4px 0 8px 18px;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-item--has-children:hover .nav-submenu,
  .nav-item--has-children:focus-within .nav-submenu { display: none; }
  .nav-item--has-children.is-open .nav-submenu { display: grid; }
  .nav-submenu a { padding: 8px 0; }
  .nav-submenu__group a { padding-left: 14px; }
  .nav-submenu--services { grid-template-columns: 1fr; width: auto; gap: 0; }
  .nav-submenu--services .nav-submenu__overview { grid-column: auto; }
  .nav-submenu__group-title { grid-column: auto; }
  .site-nav .nav-contact { margin-top: 8px; text-align: center; }
}

@media (max-width: 760px) {
  :root { --side: 22px; }
  .section-head { flex-wrap: wrap; gap: 16px; }
  .site-header { min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  .site-logo { width: 138px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; top: 100%; left: 0; display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 14px var(--side) 22px; border-bottom: 1px solid var(--line); background: var(--white); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .nav-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
  .nav-item > .nav-parent-link { grid-column: 1; }
  .nav-submenu-toggle { grid-column: 2; width: 44px; height: 44px; margin: 0; }
  .nav-submenu {
    position: static;
    grid-column: 1 / -1;
    display: none;
    width: auto;
    max-width: none;
    margin: 0 0 10px;
    padding: 4px 0 8px 18px;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-item--has-children:hover .nav-submenu,
  .nav-item--has-children:focus-within .nav-submenu { display: none; }
  .nav-item--has-children.is-open .nav-submenu { display: grid; }
  .nav-submenu a { padding: 8px 0; }
  .nav-submenu__group a { padding-left: 14px; }
  .nav-submenu--services { grid-template-columns: 1fr; width: auto; gap: 0; }
  .nav-submenu--services .nav-submenu__overview { grid-column: auto; }
  .nav-submenu__group-title { grid-column: auto; }
  .site-nav .nav-contact { margin-top: 8px; text-align: center; }
  .home-editorial-head { align-items: center; }
  .home-column-item { grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; }
  .hero {
    min-height: 760px;
    align-items: flex-start;
  }
  .hero::before {
    inset: auto 0 0 0;
    width: 100%;
    height: 520px;
    background-position: center bottom;
    background-size: cover;
    opacity: .66;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.22) 12%, #000 32%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.22) 12%, #000 32%);
  }
  .hero::after {
    right: 8vw;
    bottom: 0;
    width: min(38vw, 190px);
  }
  .hero--composite::before {
    inset: 0;
    width: 100%;
    height: 100%;
    background: url("assets/images/optimized/top-hero-composite-mobile.png.webp") center bottom / cover no-repeat;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero--composite::after { display: none; }
  .hero-copy {
    width: auto;
    padding: 56px var(--side) 360px;
  }
  .hero .button-row {
    flex-wrap: wrap;
  }
  .hero-title { font-size: 42px; }
  .hero-subtitle { white-space: normal; }
  .sub-hero,
  .sub-hero--visual { grid-template-columns: 1fr; }
  .sub-hero { padding-top: 52px; padding-bottom: 52px; }
  .sub-hero h1 { font-size: 38px; }
  .sub-hero__image { height: 280px; }
  .sub-hero--recruit .sub-hero__image { height: 240px; }
  .product-grid,
  .case-grid,
  .content-grid,
  .archive-grid,
  .component-cards,
  .component-gallery,
  .component-form,
  .parts-two-column { grid-template-columns: 1fr; }
  .form-field--wide { grid-column: auto; }
  .form-confirmation { grid-column: auto; }
  .form-confirmation__list { grid-template-columns: 1fr; }
  .form-confirmation__list dt { padding-bottom: 4px; border-bottom: 0; }
  .form-confirmation__list dd { padding-top: 4px; }
  .process-grid { grid-template-columns: 1fr; }
  .component-split { gap: 30px; }
  .component-split__visual img { min-height: 280px; }
  .component-line-contact { grid-template-columns: 1fr; gap: 32px; }
  .component-line-contact__qr { width: min(100%, 320px); }
  .component-cta { padding: 34px 24px; }
  .component-table th,
  .component-table td { min-width: 150px; padding: 16px; }
  .faq-disclosure summary { padding: 20px 18px; font-size: 16px; }
  .faq-disclosure__answer { padding: 0 48px 22px 44px; }
  .parts-index { top: 64px; }
  .parts-section { scroll-margin-top: 126px; }
  .parts-panel { padding: 22px; }
  .color-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero--catalog { min-height: 660px; }
  .company-outline dl div { grid-template-columns: 1fr; gap: 8px; }
  .site-footer { grid-template-columns: 1fr; }
  body { padding-bottom: 68px; }
  .mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 68px;
    border-top: 1px solid rgba(255,255,255,.16);
    background: var(--green);
    box-shadow: 0 -8px 24px rgba(17,20,15,.16);
  }
  .mobile-contact-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    font-family: var(--sans);
    font-size: var(--font-min);
    font-weight: 700;
  }
  .mobile-contact-bar a + a { border-left: 1px solid rgba(255,255,255,.24); }
  .news-row { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; }
  .news-row__category { grid-column: 1 / -1; grid-row: 1; }
  .news-row time { grid-column: 1; grid-row: 2; }
  .news-row__copy { grid-column: 2; grid-row: 2; }
  .news-row__copy small { display: none; }
  .news-row__arrow { grid-column: 3; grid-row: 2; }
  .post-navigation-grid { grid-template-columns: 1fr; }
  .post-navigation-grid > div:last-child > a { align-items: flex-start; text-align: left; }
  .article-body table { display: block; overflow-x: auto; white-space: normal; }
  .article-body th,
  .article-body td { min-width: 150px; padding: 13px 12px; }
  .article-body blockquote { padding: 20px; }
  .component-stats,
  .component-checklist,
  .component-comparison { grid-template-columns: 1fr; }
  .stat-item,
  .comparison-item { border-left: 0; border-top: 1px solid var(--line); }
  .comparison-item h3 { min-height: 0; }
  .stat-item:first-child,
  .comparison-item:first-child { border-top: 0; }
  .component-checklist { gap: 0; }
  .component-checklist li { min-height: 0; }
  .component-timeline::before { left: 27px; }
  .timeline-item { grid-template-columns: 54px minmax(0, 1fr); gap: 18px; }
  .timeline-item__number { width: 54px; height: 46px; font-size: 16px; }
  .timeline-item h3 { font-size: 19px; }
  .component-history { grid-template-columns: 1fr; }
  .history-lead-image { margin-bottom: 18px; }
  .history-lead-image img { height: clamp(220px, 62vw, 320px); }
  .history-era__header { display: grid; gap: 7px; padding: 20px; }
  .history-era__events { padding: 0 20px; }
  .history-era__events li { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .history-era__events time strong { font-size: 22px; }
  .history-event__body { display: block; }
  .history-event__media { max-width: 240px; margin-top: 12px; }
  .history-event__figure img { height: 124px; }
  .history-event__media--3 { --history-media-columns: 1; }
  .component-photo-strip { grid-template-columns: 1fr; }
  .certification-item { grid-template-columns: 94px minmax(0, 1fr); gap: 18px; }
  .certification-item__logo { min-height: 88px; padding: 8px; }
  .certification-item__logo img { max-width: 78px; max-height: 72px; }
  .certification-item__detail { grid-column: 1 / -1; }
  .certification-item__detail dl div { grid-template-columns: 78px minmax(0, 1fr); }
  .photo-strip-item,
  .photo-strip-item:nth-child(3n + 1),
  .photo-strip-item:nth-child(3n + 2),
  .photo-strip-item:nth-child(3n + 3) { grid-column: auto; }
  .photo-strip-item img { height: 360px; }
  .media-feature { grid-template-columns: 1fr; gap: 28px; }
  .media-feature__visual img { height: 330px; }
  .media-feature__visual--zoom-out img { height: 280px; }
  .component-statement { gap: 38px; padding-top: 66px; padding-bottom: 66px; }
  .component-statement h2 { font-size: 34px; }
  .new-product-hero { min-height: 0; }
  .new-product-hero__copy { padding: 54px var(--side) 52px; }
  .new-product-hero h1 { font-size: clamp(32px, 10vw, 40px); }
  .new-product-hero h1 span { white-space: normal; }
  .new-product-hero__visual,
  .new-product-hero__visual img { min-height: 280px; height: 280px; }
  .new-product-proof { padding-right: var(--side); padding-left: var(--side); }
  .new-product-anchor { top: 64px; }
  .new-product-anchor a { padding: 13px 18px; }
  .service-path-list a { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; }
  .service-path-list small { grid-column: 2; }
  .service-path-list b { grid-column: 3; grid-row: 1 / span 2; }
}

/* モバイル TOP：テキスト領域のコントラストを保ち、写真は右側に残す。 */
@media (max-width: 800px) {
  /* Keep the first-screen composition, but allow readable text to grow on narrow screens. */
  .hero--composite {
    height: auto;
    min-height: calc(100vh - 74px);
    min-height: calc(100svh - 74px);
  }
  .hero--composite .hero-copy {
    width: 100%;
    min-width: 0;
    padding: clamp(28px, 6svh, 44px) var(--side) clamp(150px, 24svh, 210px);
  }
  .hero--composite .hero-title {
    font-size: clamp(34px, 9.5vw, 42px);
    line-height: 1.2;
  }
  .hero--composite .hero-subtitle {
    margin-top: 10px;
    font-size: var(--font-min);
    line-height: 1.45;
  }
  .hero--composite .hero-lead {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.65;
  }
  .hero--composite .button-row {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }
  .hero--composite .btn {
    flex: 1 1 140px;
    min-width: 0;
    min-height: 46px;
    gap: 8px;
    padding: 10px;
    white-space: normal;
    font-size: var(--font-min);
  }
  .hero--composite .hero-seal { margin-top: 18px; }
  .hero--composite::before {
    background:
      linear-gradient(90deg, rgba(251, 247, 237, .5) 0%, rgba(251, 247, 237, .4) 48%, rgba(251, 247, 237, .19) 68%, rgba(251, 247, 237, .03) 88%, rgba(251, 247, 237, 0) 100%),
      url("assets/images/optimized/top-hero-composite-mobile.png.webp") center bottom / cover no-repeat;
  }
  .hero--composite .hero-seal {
    width: fit-content;
    padding: 8px 10px;
    background: rgba(255, 253, 248, .7);
    color: var(--ink);
  }
}
