/* ==========================================================================
   日本アスベスト分析調査 — サイト共通スタイル（WordPressテーマ）
   配色はロゴの青いリボン・紺の「D」・オレンジの球から取っています。
   オレンジは「行動してほしい場所」（問い合わせ導線）と、ヒーローの球だけに使います。
   ========================================================================== */
:root {
  --blue: #264B91;
  --blue-deep: #1D3C78;
  --cyan: #6F95D6;
  --navy: #0E2F6B;
  --ink: #1B2A45;
  --muted: #56647C;
  --orange: #FF8A1F;
  --orange-deep: #F26A00;
  --mist: #EEF4FF;
  --line: #D5E1F5;
  --white: #FFFFFF;

  --font: "M PLUS 1", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
/* オレンジ地には紺の文字（白文字よりコントラストが高い） */
.btn-cta {
  background: var(--orange);
  color: var(--navy);
}
.btn-cta:hover { background: #FF9C40; }
.btn-line {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--blue);
}
.btn-line:hover { background: var(--mist); }
.btn-large { min-height: 64px; padding: 12px 30px; font-size: 1rem; }
.btn-sub { font-size: 0.78rem; font-weight: 500; }
.btn-main { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.03em; }
.btn-full { width: 100%; min-height: 56px; font-size: 1.05rem; }

.text-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.text-link:hover { color: var(--navy); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { width: 92px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-weight: 800; font-size: 1.1rem; color: var(--navy); letter-spacing: 0.02em; }
.brand-sub { font-size: 0.72rem; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  line-height: 1.25;
}
.header-tel-number { font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: 0.02em; }
.header-tel-hours { font-size: 0.72rem; color: var(--muted); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
  padding: 56px 0 88px;
}

/* ロゴのリボンを引き伸ばした帯。ページで唯一の大きな装飾 */
.hero-ribbon {
  position: absolute;
  left: 0;
  bottom: 96px;
  width: 100%;
  height: 72%;
  pointer-events: none;
  animation: ribbon-draw 1.1s cubic-bezier(.6, 0, .2, 1) both;
}
@keyframes ribbon-draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(1.55rem, 3.9vw, 3.1rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero-lead {
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 34em;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 接眼レンズ：顕微鏡の視野を丸く切り取り、ロゴと同じ青のリングで囲む */
.eyepiece {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}
.eyepiece-ring {
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  background: conic-gradient(from 200deg, var(--blue-deep), var(--blue), var(--cyan), var(--blue), var(--blue-deep));
  box-shadow: 0 30px 60px -28px rgba(14, 47, 107, 0.55);
}
.eyepiece-ring img,
.eyepiece-ring video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--white);
  display: block;
  background: #1B2A45;
}
.eyepiece-video { object-position: 40% 60%; }
.eyepiece-dot {
  position: absolute;
  left: 2%;
  bottom: 13%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #FFE7A3 0%, #FFB23D 28%, var(--orange) 58%, var(--orange-deep) 100%);
  box-shadow: 0 10px 18px -8px rgba(242, 106, 0, 0.6);
  animation: dot-settle .5s cubic-bezier(.3, 1.5, .5, 1) 1s both;
}
@keyframes dot-settle {
  from { transform: translateY(-40px) scale(.8); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.eyepiece figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- セクション共通 ---------- */
.block { padding: 104px 0; }
.block-mist { background: var(--mist); }
.block-tight { padding: 72px 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow { max-width: 860px; }

.block h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.block-lead {
  margin-top: 16px;
  max-width: 40em;
  color: var(--muted);
}

/* ---------- 2通りの依頼方法 ---------- */
.routes {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--navy);
}
.route { padding: 36px 40px 8px 0; }
.route + .route { padding: 36px 0 8px 40px; border-left: 1px solid var(--line); }
.route-area {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-deep);
  background: var(--mist);
  padding: 4px 12px;
  border-radius: 999px;
}
.route h3 {
  margin-top: 14px;
  font-size: 1.35rem;
  font-weight: 800;
}
.route p:not(.route-area) { margin-top: 12px; max-width: 30em; }

/* ---------- 5つの工程（1本の線でつなぐ） ---------- */
.track {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.track::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 60%, var(--cyan));
}
.track li { position: relative; }
.track-num {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--blue);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.2rem;
}
.track h3 { margin-top: 18px; font-size: 1.15rem; font-weight: 800; }
.track p { margin-top: 8px; font-size: 0.92rem; color: var(--ink); }

/* ---------- 根拠（資格・設備・報告書） ---------- */
.evidence {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
}
.evidence h3,
.report h3 { font-size: 1.2rem; font-weight: 800; }

.cred-list { margin-top: 16px; border-top: 1px solid var(--line); }
.cred-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cred-list dt { font-weight: 500; }
.cred-list dd { flex-shrink: 0; font-weight: 700; color: var(--blue-deep); font-size: 0.92rem; }

.equip-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.equip-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}
.equip-grid figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.equip-grid figcaption strong { display: block; color: var(--navy); font-size: 0.95rem; }
.note { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

.report {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}
.report-media img {
  border-radius: 12px;
  border: 1px solid var(--line);
}
.report-text p { margin-top: 14px; }

.stats {
  margin-top: 72px;
  padding: 36px 40px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--white);
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stats-list > div { padding: 0 24px; }
.stats-list > div:first-child { padding-left: 0; }
.stats-list > div + div { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.stats-list dt { font-size: 0.9rem; color: #C9D8F5; }
.stats-list dd {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.stats-list small { font-size: 1rem; font-weight: 700; margin-left: 4px; }
.stats-note { margin-top: 20px; font-size: 0.8rem; color: #C9D8F5; }

/* ---------- ご依頼の流れ（8ステップ） ---------- */
.flow {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.flow li { background: var(--white); padding: 24px 22px 26px; }
.flow-num {
  display: block;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue);
  line-height: 1;
}
.flow h3 { margin-top: 12px; font-size: 1.05rem; font-weight: 800; }
.flow p { margin-top: 6px; font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ---------- 業種 ---------- */
.clients {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 48px;
}
.clients h2 { font-size: 1.3rem; }
.client-list { display: flex; flex-wrap: wrap; gap: 10px; }
.client-list li {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 10px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 60px 20px 24px;
  font-weight: 700;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 24px 22px; }

/* ---------- お問い合わせ ---------- */
.contact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: start;
}
.contact-tel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 36px 32px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--blue-deep), var(--blue) 70%, #3A63AE);
  color: var(--white);
}
.contact-tel h2 { color: var(--white); font-size: 1.05rem; }
.contact-tel-number {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.3;
}
.contact-tel-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
}
.contact-tel :focus-visible,
.contact-tel a:focus-visible { outline-color: var(--white); }

.contact-form {
  padding: 36px 36px 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.contact-form h2 { font-size: 1.15rem; margin-bottom: 20px; }

.form-banner { display: none; margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; }
.form-banner.is-visible { display: block; }
.form-banner.is-error { background: #FFF1E6; color: #9A3A00; border: 1px solid #FFC999; }

.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.form-row label,
.form-group-label {
  display: block;
  padding: 0;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}
.req {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: 2px;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #B9C8E2;
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus { outline: 3px solid rgba(38, 75, 145, 0.35); outline-offset: 0; border-color: var(--blue); }
.form-row input[type="file"] { font: inherit; font-size: 0.88rem; }
.form-hint { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }

.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-item {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 8px 14px;
  border: 1.5px solid #B9C8E2;
  border-radius: 999px;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  color: var(--ink) !important;
  cursor: pointer;
}
.checkbox-item:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.checkbox-item input { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #DCE6F8; font-size: 0.9rem; }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand p + p { margin-top: 4px; }
.footer-name {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}
.footer-mark { background: var(--white); border-radius: 10px; padding: 6px 10px; }
.footer-mark img { width: 72px; }
.footer-brand a { color: var(--white); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--white); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px var(--gutter);
  text-align: center;
  font-size: 0.78rem;
  color: #AFC2E6;
}

/* ---------- スマホ用の固定ボタン ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(14, 47, 107, 0.15);
}
.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mobile-cta-tel { background: var(--orange); color: var(--navy); }
.mobile-cta-tel svg { fill: currentColor; stroke: none; }
.mobile-cta-form { background: var(--navy); color: var(--white); }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1480px) {
  .header-tel { display: none; }
  .main-nav ul { gap: 22px; }
}

@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-header.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header-actions .header-cta,
  .header-actions .header-line { display: none; }

  .hero { padding-top: 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .eyepiece { width: min(78%, 360px); }
  .hero-ribbon { height: 45%; bottom: 150px; }

  .block { padding: 72px 0; }
  .routes { grid-template-columns: 1fr; }
  .route, .route + .route { padding: 28px 0; border-left: 0; }
  .route + .route { border-top: 1px solid var(--line); }

  .track { grid-template-columns: 1fr; gap: 28px; }
  .track::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--blue-deep), var(--blue) 60%, var(--cyan)); }
  .track li { padding-left: 72px; min-height: 50px; }
  .track-num { position: absolute; left: 0; top: 0; }
  .track h3 { margin-top: 8px; }

  .evidence, .report, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-tel { position: static; }
  .flow { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: 1fr; gap: 20px; }

  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 58px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .brand-mark { width: 68px; }
  .brand-name { font-size: 0.98rem; }
  .brand-sub { display: none; }
  .hero-cta .btn { width: 100%; }
  .hero-ribbon { width: 260%; left: -150%; height: 34%; bottom: 330px; }
  .equip-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stats { padding: 28px 24px; }
  .stats-list { grid-template-columns: 1fr; }
  .stats-list > div, .stats-list > div:first-child { padding: 14px 0; }
  .stats-list > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
  .form-row-group { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 20px; }
  .cred-list > div { flex-direction: column; gap: 2px; }
}


/* ==========================================================================
   下層ページ・WordPress用コンポーネント
   ========================================================================== */

/* ---------- セクション見出し＋右側リンク ---------- */
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.block-head .text-link { margin-top: 0; }
.h-sub { font-size: 1.2rem !important; }

/* ---------- タグ ---------- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
}
.tag-area { background: var(--white); border: 1px solid var(--line); color: var(--navy); }

/* ---------- トピックス ---------- */
.topics-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.topics-head .text-link { margin-top: 12px; }
.topic-list { border-top: 1px solid var(--line); }
.topic-item { border-bottom: 1px solid var(--line); }
.topic-link {
  display: grid;
  grid-template-columns: 6.2em 5.5em 1fr;
  align-items: baseline;
  gap: 8px 16px;
  padding: 18px 4px;
  text-decoration: none;
}
.topic-link time { font-size: 0.88rem; color: var(--muted); font-feature-settings: "tnum"; }
.topic-link .tag { justify-self: start; }
.topic-title { font-weight: 500; }
.topic-link:hover .topic-title { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 絞り込み ---------- */
.filter-group { display: grid; gap: 12px; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.filter-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-right: 4px; min-width: 3.5em; }
.filter a {
  padding: 6px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}
.filter a:hover { border-color: var(--blue); }
.filter a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- ページ送り ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.empty { margin-top: 24px; color: var(--muted); }

/* ---------- 下層ページの見出し ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 88px;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
}
.page-hero-ribbon {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  margin-top: 28px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.page-hero-lead { margin-top: 14px; max-width: 40em; color: var(--ink); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.8rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #A9B8D3; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- 共通の相談導線 ---------- */
.cta-band {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 65%, #3A63AE);
  color: var(--white);
}
.cta-band :focus-visible { outline-color: var(--white); }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}
.cta-copy h2 { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; }
.cta-copy p { margin-top: 12px; max-width: 36em; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-tel { display: flex; flex-direction: column; text-decoration: none; line-height: 1.3; }
.cta-tel-label { font-size: 0.82rem; }
.cta-tel-number { font-size: 2rem; font-weight: 800; letter-spacing: 0.02em; }

/* ---------- 料金・プラン ---------- */
.route-price { margin-top: 10px; color: var(--navy); }
.route-price strong { font-size: 1.35rem; font-weight: 800; }
.route-price small { font-size: 0.82rem; color: var(--muted); margin-left: 4px; }
.route .text-link + .text-link { margin-left: 20px; }

.plans {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--navy);
}
.plan { padding: 32px 36px 36px 0; border-bottom: 1px solid var(--line); }
.plan:nth-child(even) { padding: 32px 0 36px 36px; border-left: 1px solid var(--line); }
.plan h3 { margin-top: 12px; font-size: 1.3rem; font-weight: 800; }
.plan p:last-child { margin-top: 12px; }
.plans + .text-link { margin-top: 28px; }

.table-scroll { margin-top: 36px; overflow-x: auto; }
.price-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}
.price-table th,
.price-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}
.price-table thead th:first-child { border-radius: 12px 0 0 0; }
.price-table thead th:last-child { border-radius: 0 12px 0 0; }
.price-table tbody th { font-weight: 800; color: var(--navy); white-space: nowrap; }
.price-table td strong { display: block; color: var(--navy); }
.price-table td span { display: block; font-size: 0.85rem; color: var(--muted); }
.price-table .num { font-size: 1.2rem; font-weight: 800; color: var(--navy); white-space: nowrap; font-feature-settings: "tnum"; }

.steps { margin-top: 16px; counter-reset: step; }
.steps li {
  position: relative;
  padding: 10px 0 10px 44px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
}

.ship-box {
  margin-top: 56px;
  padding: 32px 36px;
  border: 2px solid var(--blue);
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px 40px;
}
.ship-box h3 { grid-column: 1 / -1; font-size: 1.2rem; font-weight: 800; }
.ship-address { font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.8; }
.ship-notes li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 0.92rem; }
.ship-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- 選ばれる理由 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}
.eyepiece-small { width: min(100%, 380px); }
.reason-list { margin-top: 28px; }
.reason-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.reason-list li:last-child { border-bottom: 1px solid var(--line); }
.reason-list h3 { font-size: 1.1rem; font-weight: 800; }
.reason-list p { margin-top: 4px; }

.area-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.area-box { padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; }
.area-box h3 { font-size: 1.2rem; font-weight: 800; }
.area-note { margin: 4px 0 16px; color: var(--blue-deep); font-weight: 700; font-size: 0.9rem; }

/* ---------- 会社概要 ---------- */
.wrap > .evidence:first-child { margin-top: 0; }
.info-table { margin-top: 28px; border-top: 2px solid var(--navy); }
.info-table > div {
  display: grid;
  grid-template-columns: 13em 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.info-table dt { font-weight: 700; color: var(--navy); }
.info-table a { color: var(--blue-deep); }

.group { margin-top: 36px; border-top-color: var(--line); }
.group-role { margin-top: 4px; color: var(--blue-deep); font-weight: 700; font-size: 0.92rem; }
.plain-list { margin-top: 12px; }
.plain-list li { font-size: 0.92rem; padding: 3px 0; }
.link-list { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.link-list a { color: var(--blue-deep); font-weight: 700; text-underline-offset: 4px; }

.equip-grid-wide { margin-top: 36px; gap: 32px; }
.equip-grid-wide figcaption { font-size: 0.92rem; }

.map {
  margin-top: 24px;
  aspect-ratio: 16 / 7;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 記事ページ（トピックス・実績） ---------- */
.article-head { padding: 40px 0 32px; background: linear-gradient(180deg, var(--white), var(--mist)); }
.article-meta { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.article-head h1 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.5;
}
.article > .wrap { padding-top: 40px; padding-bottom: 88px; }
.article-thumb { margin: 0 0 32px; }
.article-thumb img { border-radius: 16px; }
.work-info { margin: 0 0 36px; }

.entry-content { font-size: 1.02rem; line-height: 1.95; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  margin-top: 2.4em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  font-size: 1.4rem;
  font-weight: 800;
}
.entry-content h3 { margin-top: 2em; font-size: 1.18rem; font-weight: 800; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content a { color: var(--blue-deep); text-underline-offset: 4px; }
.entry-content img { border-radius: 12px; }
.entry-content figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th,
.entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--mist); color: var(--navy); }
.entry-content blockquote { margin: 0; padding: 16px 24px; border-left: 4px solid var(--blue); background: var(--mist); border-radius: 0 12px 12px 0; }

.post-nav {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.9rem;
}
.post-nav a { color: var(--navy); text-underline-offset: 4px; }
.post-nav-next { text-align: right; }
.back-link { margin-top: 24px; }
.form-privacy { margin: 4px 0 16px; font-size: 0.85rem; color: var(--muted); }
.form-privacy a { color: var(--blue-deep); }

@media (max-width: 960px) {
  .topics-wrap { grid-template-columns: 1fr; gap: 20px; }
  .topics-head { display: flex; justify-content: space-between; align-items: baseline; }
  .topics-head .text-link { margin-top: 0; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan:nth-child(even) { padding: 28px 0; border-left: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .area-grid { grid-template-columns: 1fr; }
  .ship-box { grid-template-columns: 1fr; padding: 28px 24px; }
  .info-table > div { grid-template-columns: 1fr; gap: 4px; }
  .map { aspect-ratio: 4 / 3; }
  .page-hero { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  .work-list { grid-template-columns: 1fr; }
  .page-hero { padding-bottom: 76px; }
  .page-hero-ribbon { height: 64px; }
  .topic-link { grid-template-columns: 6.2em 1fr; }
  .topic-title { grid-column: 1 / -1; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .cta-tel-number { font-size: 1.7rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .route .text-link + .text-link { margin-left: 0; }
}

/* ==========================================================================
   第2版：LINE・分析依頼ボタン・画像つき一覧・記事・コース
   ========================================================================== */
:root { --line-green: #00873C; } /* LINEの緑を、白文字が読める濃さ（コントラスト4.6:1）に調整 */

/* ---------- ヘッダーのLINEボタン ---------- */
.header-actions { gap: 12px; }
.header-tel { margin-right: 6px; white-space: nowrap; }
.header-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--line-green);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-line:hover { background: #007433; }
.header-cta { min-height: 44px; padding: 8px 18px; font-size: 0.88rem; white-space: nowrap; }
.line-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.main-nav a { white-space: nowrap; }

/* スマホ下部の3ボタン */
.mobile-cta-bar a { font-size: 0.9rem; gap: 6px; white-space: nowrap; }
.mobile-cta-line { background: var(--line-green); color: var(--white); }
.mobile-cta-line .line-icon { width: 20px; height: 20px; }

/* ---------- 分析依頼の2ボタン ---------- */
.request-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .request-buttons { margin-top: 36px; }
.req-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 260px;
  min-height: 72px;
  padding: 12px 56px 12px 24px;
  border-radius: 16px;
  text-decoration: none;
  line-height: 1.35;
  transition: background-color .15s, border-color .15s;
}
.req-btn-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.req-btn-main { font-size: 1.1rem; font-weight: 800; }
.req-btn-sub { font-size: 0.8rem; font-weight: 500; }
.req-btn-form { background: var(--orange); color: var(--navy); }
.req-btn-form:hover { background: #FF9C40; }
.req-btn-excel { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.req-btn-excel:hover { background: var(--mist); }
.request-buttons-center { justify-content: center; margin: 36px 0 8px; }
.request-buttons-stack { flex-direction: column; }
.request-buttons-stack .req-btn { min-width: 0; min-height: 64px; padding: 10px 44px 10px 18px; }
.request-buttons-stack .req-btn-main { font-size: 0.95rem; white-space: nowrap; }
.request-buttons-stack .req-btn-icon { right: 16px; width: 20px; height: 20px; }

/* ---------- ラボ（トップ） ---------- */
.lab {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lab img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.lab figure:last-child img { object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.lab figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.lab figcaption strong { display: block; color: var(--navy); font-size: 1rem; }
#trust .stats { margin-top: 56px; }

/* ---------- 流れ（トップは見出しだけ） ---------- */
.flow-compact li { padding: 20px 20px 22px; }
.flow-compact h3 { margin-top: 8px; font-size: 1rem; }

/* ---------- 画像つきの実績カード ---------- */
.work-list {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.work-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .15s;
}
.work-link:hover { border-color: var(--blue); }
.work-link:hover .work-title { text-decoration: underline; text-underline-offset: 4px; }
.work-thumb { position: relative; aspect-ratio: 3 / 2; background: var(--mist); overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-area {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}
.work-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.work-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.work-title { margin-top: 8px; font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.6; }
.work-spec { margin-top: auto; padding-top: 12px; font-size: 0.85rem; color: var(--muted); }
.work-samples { margin-left: 8px; font-weight: 700; color: var(--blue-deep); }

/* アイキャッチが無いとき */
.thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--mist), #DCE8FF);
}
.thumb-fallback img { width: 44% !important; height: auto !important; object-fit: contain !important; opacity: 0.55; mix-blend-mode: multiply; }

/* ---------- 実績の詳細 ---------- */
.article-work .article-head .wrap,
.article-topic .article-head .wrap { max-width: var(--wrap); }
.work-hero {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.work-hero-media { aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; background: var(--mist); }
.work-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.work-summary {
  padding: 28px;
  border-radius: 20px;
  background: var(--mist);
}
.work-summary h2 { font-size: 1.1rem; font-weight: 800; }
.work-summary dl { margin: 16px 0 24px; }
.work-summary dl > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.work-summary dt { color: var(--muted); }
.work-summary dd { font-weight: 700; color: var(--navy); }
.article-body { margin: 48px auto 0; padding: 0; }
.article-work > .wrap { padding-bottom: 72px; }

/* ---------- トピックス記事 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.article-topic > .article-layout { padding-top: 40px; padding-bottom: 88px; }
.article-thumb { margin: 0 0 32px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.article-lead {
  margin-bottom: 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--orange);
  background: #FFF7EE;
  border-radius: 0 12px 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
}
.article-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.side-box { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.side-box h2 { font-size: 1rem; font-weight: 800; padding-bottom: 12px; border-bottom: 2px solid var(--blue); }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; text-decoration: none; align-items: center; }
.side-thumb { width: 72px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--mist); display: block; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-text { display: flex; flex-direction: column; font-size: 0.85rem; line-height: 1.5; }
.side-text time { color: var(--muted); font-size: 0.75rem; }
.side-list a:hover .side-text span { color: var(--blue-deep); text-decoration: underline; }
.side-box .text-link { margin-top: 14px; font-size: 0.9rem; }
.side-contact { background: var(--mist); border-color: var(--mist); }
.side-contact p { margin: 12px 0 16px; font-size: 0.88rem; }
.side-tel { display: block; margin-top: 16px; font-size: 1.4rem; font-weight: 800; color: var(--navy); text-decoration: none; text-align: center; }
.side-hours { margin: 0 !important; text-align: center; font-size: 0.78rem !important; color: var(--muted); }

/* 本文のブロック（画像と文章） */
.entry-content .wp-block-image,
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content .wp-block-image img { width: 100%; height: auto; }
.entry-content .wp-block-media-text {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  background: var(--mist);
}
.entry-content .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 44%; }
.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.entry-content .wp-block-media-text__media { margin: 0; }
.entry-content .wp-block-media-text__media img { border-radius: 12px; width: 100%; height: auto; }
.entry-content .wp-block-media-text__content { padding: 0; }
.entry-content .wp-block-media-text__content > * + * { margin-top: 0.8em; }
.entry-content .wp-block-media-text__content h3 { margin-top: 0; }
.entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 0; }
.entry-content .wp-block-gallery figure { margin: 0; }
.entry-content .wp-block-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .is-style-point,
.entry-content .wp-block-group.has-background { padding: 24px 28px; border-radius: 16px; }
.entry-content h2 + * { margin-top: 1em; }

/* トピックス一覧（画像つき） */
.topic-cards { display: grid; gap: 16px; }
.topic-card-link {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  background: var(--white);
  transition: border-color .15s;
}
.topic-card-link:hover { border-color: var(--blue); }
.topic-card-thumb { display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--mist); }
.topic-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.topic-card-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.topic-card-meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--muted); }
.topic-card-title { font-size: 1.08rem; font-weight: 700; color: var(--navy); line-height: 1.55; }
.topic-card-link:hover .topic-card-title { text-decoration: underline; text-underline-offset: 4px; }
.topic-card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ---------- 代表挨拶 ---------- */
.greeting-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
}
.greeting-values { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.greeting-values li {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.greeting-values li:nth-child(2) { margin-left: 56px; }
.greeting-values li:nth-child(3) { border-color: var(--orange); }
.greeting-body { max-width: 44em; }
.greeting-body p + p { margin-top: 1.2em; }
.greeting-lead { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; color: var(--navy); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; margin-bottom: 1.4em; }
.greeting-sign { margin-top: 2em !important; text-align: right; font-weight: 700; color: var(--navy); line-height: 1.8; }
.greeting-sign span { font-weight: 500; font-size: 0.88rem; color: var(--muted); margin-right: 8px; }

/* ---------- 料金カード ---------- */
.price-cards { margin-top: 32px; display: grid; gap: 14px; }
.price-card {
  display: grid;
  grid-template-columns: 13em 1fr auto;
  align-items: center;
  gap: 8px 24px;
  padding: 20px 28px;
  border: 2px solid var(--navy);
  border-radius: 16px;
}
.price-card h3 { font-size: 1.2rem; font-weight: 800; }
.price-card h3 span { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.price-card-term { font-size: 0.9rem; }
.price-card-price { text-align: right; line-height: 1.2; }
.price-card-price span { display: block; font-size: 0.75rem; color: var(--muted); }
.price-card-price strong { font-size: 1.8rem; font-weight: 800; color: var(--navy); font-feature-settings: "tnum"; }
.price-card.is-express { border-color: var(--orange); background: #FFF7EE; }
.price-card.is-express h3 span { color: var(--orange-deep); }

/* ---------- コースのタブ ---------- */
.course-tabs { display: none; }
.js .course-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-bottom: 3px solid var(--navy);
  margin-bottom: 48px;
}
.course-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 12px;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: #D5DDEB;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.course-tab-sub { font-size: 0.82rem; font-weight: 700; }
.course-tab-main { font-size: 1.3rem; font-weight: 800; }
.course-tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.course-tab:focus-visible { outline-offset: -6px; outline-color: var(--orange); }
.course-panel + .course-panel { margin-top: 72px; }
.course-panel:focus:not(:focus-visible) { outline: none; }
.course-panel:target { outline: none; }
.js .course-panel + .course-panel { margin-top: 0; }
.course-panel > h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; }

.apply-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.apply-box { padding: 24px; border-radius: 20px; background: var(--white); border-top: 4px solid var(--blue); }
.apply-box h3 { font-size: 1.05rem; font-weight: 800; }
.apply-box .steps li { font-size: 0.92rem; }

.info-cards { margin-top: 40px; display: grid; gap: 16px; }
.info-card { padding: 28px 32px; border-radius: 20px; background: var(--white); }
.info-card h3 { font-size: 1.1rem; font-weight: 800; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.info-card p + p { margin-top: 10px; }
.info-card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.info-card-accent { border: 2px solid var(--blue); }
.dot-list li,
.note-list li { position: relative; padding-left: 18px; font-size: 0.92rem; }
.dot-list li + li,
.note-list li + li { margin-top: 8px; }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.note-list { margin-top: 16px; }
.note-list li { color: #9A3A00; font-size: 0.85rem; }
.note-list li::before { content: "※"; position: absolute; left: 0; }
.amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amount { padding: 16px 20px; border-radius: 12px; background: var(--mist); }
.amount-kind { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.amount-size { margin-top: 4px; font-weight: 800; color: var(--blue-deep); }
.em { color: #C2410C; }
.hint-box { margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: #FFF7D6; font-size: 0.88rem; }
.ship-contact { font-size: 0.92rem; }
.ship-contact a { color: var(--blue-deep); }
.pay-term { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.note { font-size: 0.85rem; color: var(--muted); }
.report-sample img { border-radius: 12px; border: 1px solid var(--line); }

.survey-steps { margin-top: 32px; display: grid; gap: 16px; counter-reset: none; }
.survey-step {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--white);
}
.survey-step + .survey-step::before {
  content: "";
  position: absolute;
  left: 71px;
  top: -16px;
  width: 4px;
  height: 16px;
  background: var(--blue);
}
.survey-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--mist);
  border: 3px solid var(--blue);
  color: var(--blue-deep);
}
.survey-icon svg { width: 40px; height: 40px; fill: currentColor; }
.survey-step h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; }
.survey-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-size: 0.9rem;
}
.survey-step p { margin-top: 6px; font-size: 0.95rem; }
.center-link { margin-top: 40px; text-align: center; }

@media (max-width: 1120px) {
  .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .lab { grid-template-columns: 1fr 1fr; }
  .work-hero { grid-template-columns: 1fr; }
  .greeting-inner { grid-template-columns: 1fr; gap: 32px; }
  .greeting-values { flex-direction: row; }
  .greeting-values li { width: 88px; height: 88px; font-size: 1.3rem; }
  .greeting-values li:nth-child(2) { margin-left: 0; }
  .apply-grid, .info-card-split, .amount-grid { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr auto; }
  .price-card-term { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 600px) {
  .request-buttons { flex-direction: column; }
  .req-btn { min-width: 0; width: 100%; padding-right: 52px; }
  .req-btn-main { font-size: 1rem; word-break: keep-all; overflow-wrap: anywhere; }
  .brand-name { font-size: 0.9rem; }
  .brand-mark { width: 60px; }
  .lab { grid-template-columns: 1fr; }
  .work-list { grid-template-columns: 1fr; }
  .article-side { grid-template-columns: 1fr; }
  .topic-card-link { grid-template-columns: 1fr; gap: 14px; }
  .entry-content .wp-block-media-text,
  .entry-content .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr; padding: 18px; }
  .entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 0; }
  .course-tab-main { font-size: 1.05rem; }
  .course-tab-sub { font-size: 0.72rem; }
  .info-card { padding: 22px 20px; }
  .survey-step { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }
  .survey-icon { width: 64px; height: 64px; }
  .survey-icon svg { width: 30px; height: 30px; }
  .survey-step + .survey-step::before { left: 50px; }
  .price-card { padding: 18px 20px; }
  .price-card-price strong { font-size: 1.5rem; }
}

/* ==========================================================================
   第3版：青いヒーロー・JIS印・コースカード・代表写真・拠点
   ========================================================================== */

/* ---------- ヒーロー（青地で強く見せる） ---------- */
.hero {
  padding: 64px 0 112px;
  background: linear-gradient(118deg, #183566 0%, var(--blue-deep) 32%, var(--blue) 68%, #3A63AE 100%);
  color: var(--white);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  margin-top: 20px;
}
.hero-lead { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; }
.hero :focus-visible { outline-color: var(--white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hero-badge::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #FFE7A3 0%, var(--orange) 60%, var(--orange-deep) 100%);
}
.hero .req-btn-excel { background: var(--white); border-color: var(--white); }
.hero .req-btn-excel:hover { background: var(--mist); }
.hero .req-btn { box-shadow: 0 14px 30px -16px rgba(5, 20, 70, 0.7); }

.hero .eyepiece { width: min(100%, 470px); }
.hero .eyepiece-ring {
  padding: 12px;
  background: conic-gradient(from 210deg, #FFFFFF, #C9D8F2, #FFFFFF, #DCE6F8, #FFFFFF);
  box-shadow: 0 40px 80px -30px rgba(3, 18, 70, 0.8);
}

/* JIS規格の印（ロゴのオレンジの球をモチーフに） */
.jis-seal {
  position: absolute;
  left: -6%;
  bottom: 2%;
  width: 40%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFE3A0 0%, #FFB23D 30%, var(--orange) 60%, var(--orange-deep) 100%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.95), 0 18px 30px -12px rgba(3, 18, 70, 0.6);
  color: var(--navy);
  line-height: 1.25;
  animation: dot-settle .5s cubic-bezier(.3, 1.5, .5, 1) 1s both;
}
.jis-seal span { font-size: clamp(0.8rem, 1.4vw, 1rem); font-weight: 800; }
.jis-seal strong { font-size: clamp(0.95rem, 1.9vw, 1.35rem); font-weight: 800; letter-spacing: 0.01em; }

/* ---------- 2つのコース（青とオレンジのカード） ---------- */
.course-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.course-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 36px 40px 36px;
  border-radius: 28px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.course-card:hover { transform: translateY(-4px); }
.course-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -100px;
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 32px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.course-card-blue {
  background: linear-gradient(135deg, #183566, var(--blue) 60%, #3A63AE);
  color: var(--white);
  box-shadow: 0 24px 40px -24px rgba(38, 75, 145, 0.8);
}
.course-card-orange {
  background: linear-gradient(135deg, #FFB04D, var(--orange) 55%, #FF7A00);
  color: var(--navy);
  box-shadow: 0 24px 40px -24px rgba(242, 106, 0, 0.8);
}
.course-card-orange::after { border-color: rgba(255, 255, 255, 0.3); }
.course-card-tag {
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.course-card-blue .course-card-tag { background: rgba(255, 255, 255, 0.2); }
.course-card-orange .course-card-tag { background: var(--navy); color: var(--white); }
.course-card-kicker { margin-top: 22px; font-size: 1rem; font-weight: 700; }
.course-card-title { font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 800; line-height: 1.3; }
.course-card-price { margin-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.course-card-price strong { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; font-feature-settings: "tnum"; }
.course-card-price small { font-size: 0.95rem; font-weight: 700; }
.course-card-points { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.course-card-points span { position: relative; padding-left: 26px; }
.course-card-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 9px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}
.course-card-link {
  align-self: flex-start;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
}
.course-card-link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
}
.course-card-blue .course-card-link { background: var(--white); color: var(--blue-deep); }
.course-card-orange .course-card-link { background: var(--navy); color: var(--white); }

/* ---------- 代表挨拶（写真つき） ---------- */
.greeting-inner { grid-template-columns: 320px minmax(0, 1fr); }
.greeting-photo { position: relative; margin: 28px 20px 0 0; }
.greeting-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 24px;
  box-shadow: 16px 16px 0 var(--blue);
}
.greeting-photo .eyepiece-dot { left: auto; right: -12px; top: -20px; bottom: auto; width: 64px; animation: none; }
.greeting-values { margin: 0 0 28px; flex-direction: row; }
.greeting-values li { width: 76px; height: 76px; font-size: 1.15rem; border-width: 3px; }
.greeting-values li:nth-child(2) { margin-left: 0; }

/* ---------- 拠点 ---------- */
.offices { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.office h3 { font-size: 1.15rem; font-weight: 800; }
.office p { margin-top: 6px; color: var(--muted); }
.office .map { margin-top: 16px; aspect-ratio: 4 / 3; }

@media (max-width: 960px) {
  .hero { padding: 40px 0 88px; }
  /* 狭い画面でも見出しの行が「、」だけにならない大きさ */
  .hero h1 { font-size: clamp(1.2rem, 6.9vw, 2.6rem); }
  .hero .eyepiece { width: min(86%, 400px); }
  .course-cards { grid-template-columns: 1fr; }
  .greeting-inner { grid-template-columns: 1fr; }
  .greeting-photo { max-width: 320px; }
  .offices { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-badge { font-size: 0.88rem; }
  .jis-seal { left: -4%; width: 42%; }
  .course-card { padding: 28px 24px; border-radius: 22px; }
}

/* ==========================================================================
   第4版：青空と街並みのヒーロー・Build the Next
   ========================================================================== */
.hero {
  padding: 64px 0 150px;
  background: #EAF2FC url("../img/hero/city-sky.jpg") center bottom / cover no-repeat;
  color: var(--navy);
}
/* 左側の文字が読めるよう、白く霞ませる */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0) 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.85) 100%);
  pointer-events: none;
}
.hero-ribbon { display: none; }
.hero h1 { color: var(--navy); }
.hero-lead { color: var(--ink); }
.hero :focus-visible { outline-color: var(--blue); }
.hero-badge { background: var(--blue); color: var(--white); }
.hero .req-btn-excel { background: var(--white); border-color: var(--blue); }
.hero .req-btn { box-shadow: 0 14px 30px -18px rgba(14, 47, 107, 0.55); }
.hero .eyepiece-ring {
  background: conic-gradient(from 210deg, var(--blue), #6F95D6, #FFFFFF, #6F95D6, var(--blue));
  box-shadow: 0 40px 80px -34px rgba(14, 47, 107, 0.6);
}

.hero-motto {
  position: absolute;
  right: max(4vw, 24px);
  bottom: 22px;
  z-index: 1;
  margin: 0;
  transform: rotate(-7deg);
  color: #3A6FC4;
  font-family: "Mr Dafoe", "Segoe Script", cursive;
  word-spacing: 0.18em;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.hero-motto span { display: block; padding: 0 0.2em; }
.hero-motto svg {
  display: block;
  width: 88%;
  height: 0.4em;
  margin: -0.05em 0 0 12%;
}
.hero-motto path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }

@media (max-width: 960px) {
  .hero { padding: 40px 0 120px; background-position: 70% bottom; }
  .hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.8) 100%);
  }
  .hero-motto { font-size: clamp(2.2rem, 10vw, 3.4rem); bottom: 16px; }
}

/* ==========================================================================
   第5版：ヒーローの価格・ファイル添付・同意チェック
   ========================================================================== */
/* ヒーロー：価格をいちばん大きく、見出しは控えめに */
.hero-price {
  margin-top: 22px;
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 4px 12px;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}
.hero-price-label {
  padding-bottom: 0.9em;
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  font-weight: 800;
  line-height: 1.35;
}
.hero-price strong {
  font-size: clamp(3.2rem, 7.4vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #D95300; /* 白地で読めるよう濃いめのオレンジ */
  font-feature-settings: "tnum";
}
.hero-price-unit {
  padding-bottom: 0.45em;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 800;
}
.hero-price-unit small { display: block; margin-top: 6px; font-size: 0.45em; font-weight: 700; color: var(--muted); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.5;
}
.hero-lead { margin-top: 12px; font-size: 0.98rem; }
.hero .request-buttons { margin-top: 28px; }

/* お問い合わせ：希望サービス（4つを大きめのボタン風に） */
.form-row .checkbox-grid { gap: 10px; }
.form-row .checkbox-item {
  padding: 12px 20px 12px 16px;
  font-size: 1rem !important;
  border-width: 2px;
  background: var(--white);
}
.form-row .checkbox-item input { width: 20px; height: 20px; }

/* お問い合わせ：ファイル添付 */
.file-drop {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 32px 20px;
  border: 2.5px dashed #9FB3D9;
  border-radius: 16px;
  background: var(--mist);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.file-drop:hover,
.file-drop.is-dragover { border-color: var(--blue); background: #E3ECFA; }
.file-drop:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.file-drop.has-files { border-style: solid; border-color: var(--blue); }
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop-icon { width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file-drop-main {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}
.file-drop-sub { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.file-list { margin-top: 10px; }
.file-list li {
  position: relative;
  padding: 8px 12px 8px 34px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.file-list li + li { margin-top: 6px; }
.file-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 15px;
  transform: translateY(-50%);
  border: 2px solid var(--blue);
  border-radius: 2px;
}
.file-list li.is-over { border-color: #E8A07A; color: #9A3A00; }

/* お問い合わせ：プライバシーポリシーへの同意 */
.privacy-agree {
  margin: 8px 0 20px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--mist);
  font-size: 0.9rem;
}
.privacy-agree a { color: var(--blue-deep); font-weight: 700; }
.agree-check {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0 !important;
  padding: 12px 18px;
  border: 2px solid var(--blue);
  border-radius: 12px;
  background: var(--white);
  font-size: 1rem !important;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.agree-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.agree-check:has(input:checked) { background: #E3ECFA; }

@media (max-width: 600px) {
  .hero-price { margin-top: 16px; }
  .file-drop { padding: 24px 16px; }
  .agree-check { display: flex !important; }
}

/* ==========================================================================
   第6版：大きなレンズ・同意ボタン中央
   ========================================================================== */
/* レンズを大きく。映像が読み込めない環境でもポスター画像が必ず見えるようにする */
.hero .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.hero .eyepiece { width: min(100%, 580px); justify-self: end; }
.hero .eyepiece-ring { padding: 14px; }
.hero .eyepiece-video { background: #1B2A45 url("../img/hero/mv-poster.jpg") center / cover no-repeat; }
.hero .jis-seal { width: 32%; left: -1%; bottom: -4%; }

/* 同意チェックは中央に */
.privacy-agree { text-align: center; }
.agree-check { justify-content: center; }

@media (max-width: 960px) {
  .hero .hero-inner { grid-template-columns: 1fr; }
  .hero .eyepiece { width: min(92%, 480px); justify-self: center; }
  .hero .jis-seal { width: 36%; left: -6%; bottom: -4%; }
}

@media (max-width: 600px) {
  .agree-check { display: inline-flex !important; }
}

/* ==========================================================================
   第7版：採取・分析の3プラン・梱包見本
   ========================================================================== */
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans-3 .plan,
.plans-3 .plan:nth-child(even) { padding: 32px 28px 36px; border-left: 0; }
.plans-3 .plan:first-child { padding-left: 0; }
.plans-3 .plan + .plan { border-left: 1px solid var(--line); }
.plans-heading { margin-top: 72px; }

.packing { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
.packing p + p { margin-top: 10px; }
.packing-photo img { width: 100%; border-radius: 12px; }
.packing-photo figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); text-align: center; }

@media (max-width: 960px) {
  .plans-3 { grid-template-columns: 1fr; }
  .plans-3 .plan,
  .plans-3 .plan:nth-child(even),
  .plans-3 .plan:first-child { padding: 28px 0; border-left: 0; }
  .plans-3 .plan + .plan { border-left: 0; }
  .packing { grid-template-columns: 1fr; }
}

/* ==========================================================================
   第8版：トピックスのスライダー・プランカード・納期表・グループサイト
   ========================================================================== */

/* ---------- トピックス（横スライド） ---------- */
.slider-controls { display: flex; align-items: center; gap: 10px; }
.slider-controls .text-link { margin: 0 0 0 10px; }
.slider-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}
.slider-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid var(--blue);
  border-right: 2.5px solid var(--blue);
}
.slider-prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.slider-next::after { transform: translate(-70%, -50%) rotate(45deg); }
.slider-btn:hover:not(:disabled) { background: var(--blue); }
.slider-btn:hover:not(:disabled)::after { border-color: var(--white); }
.slider-btn:disabled { opacity: 0.35; cursor: default; }

.topic-slider {
  margin-top: 32px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--line);
}
.topic-slider:focus-visible { outline-offset: 6px; }
.topic-slide { scroll-snap-align: start; }
.topic-slide a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .15s;
}
.topic-slide a:hover { border-color: var(--blue); }
.topic-slide a:hover .topic-slide-title { text-decoration: underline; text-underline-offset: 4px; }
.topic-slide-thumb { display: block; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.topic-slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.topic-slide-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.topic-slide-body .topic-card-meta { font-size: 0.76rem; gap: 8px; }
.topic-slide-title { font-size: 0.92rem; font-weight: 700; color: var(--navy); line-height: 1.55; }
.topic-slide a { border-radius: 16px; }
/* 自動スライドの停止・再開ボタン */
.slider-pause::after {
  width: 10px;
  height: 12px;
  border: 0;
  background:
    linear-gradient(var(--blue), var(--blue)) left / 3px 100% no-repeat,
    linear-gradient(var(--blue), var(--blue)) right / 3px 100% no-repeat;
  transform: translate(-50%, -50%);
}
.slider-pause[aria-pressed="true"]::after {
  width: 11px;
  background: var(--blue);
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
  transform: translate(-40%, -50%);
}
.slider-pause:hover::after {
  background:
    linear-gradient(var(--white), var(--white)) left / 3px 100% no-repeat,
    linear-gradient(var(--white), var(--white)) right / 3px 100% no-repeat;
}
.slider-pause[aria-pressed="true"]:hover::after { background: var(--white); }
.slider-pause:hover { background: var(--blue); }

/* ---------- 採取・分析のプラン（カード） ---------- */
.plan-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 40px -30px rgba(14, 47, 107, 0.45);
}
.plan-card-head {
  position: relative;
  overflow: hidden;
  padding: 26px 28px 24px;
  color: var(--white);
}
.plan-card-head::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, 0.14);
}
.plan-card-blue .plan-card-head { background: linear-gradient(135deg, #183566, var(--blue) 70%, #3A63AE); }
.plan-card-orange .plan-card-head { background: linear-gradient(135deg, #FFB04D, var(--orange) 60%, #FF7A00); color: var(--navy); }
.plan-card-sky .plan-card-head { background: linear-gradient(135deg, #3A63AE, #5B82C8 70%, #7FA0DA); }
.plan-card-area { font-size: 0.78rem; font-weight: 700; opacity: 0.9; }
.plan-card-head h3 { margin-top: 8px; color: inherit; font-size: 1.5rem; font-weight: 800; }
.plan-card-price { margin-top: 6px; font-size: 1.05rem; font-weight: 800; }
.plan-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 28px 28px; }
.plan-card-lead { font-size: 0.92rem; min-height: 3.4em; }
.plan-card-days {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--mist);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0 12px;
}
.plan-card-days span { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.plan-card-days strong { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.plan-card-days small { grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted); }
.plan-card-orange .plan-card-days { background: #FFF3E6; }
.plan-card-items { margin-top: 18px; display: grid; gap: 8px; }
.plan-card-items li { position: relative; padding-left: 30px; font-size: 0.92rem; font-weight: 500; }
.plan-card-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.plan-card-items li.is-yes::before { background: var(--blue); }
.plan-card-items li.is-yes::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.45em;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}
.plan-card-items li.is-no { color: #A3AEC2; text-decoration: line-through; }
.plan-card-items li.is-no::before { background: #E3E8F1; }
.plan-card-items li.is-no::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.2em + 9px);
  width: 10px;
  height: 2px;
  background: #A3AEC2;
}

.other-plans { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.other-plan {
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
}
.other-plan + .other-plan { border-left-color: var(--orange); }
.other-plan h3 { margin-top: 10px; font-size: 1.3rem; font-weight: 800; }
.other-plan p:last-child { margin-top: 10px; }

/* ---------- 納期表 ---------- */
.delivery { margin-top: 32px; }
.delivery .table-scroll { margin-top: 0; border-radius: 20px; border: 1px solid var(--line); background: var(--white); }
.delivery-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: center; }
.delivery-table th,
.delivery-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); }
.delivery-table thead th {
  background: var(--blue);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
}
.delivery-table thead th:first-child { background: var(--navy); }
.delivery-table thead th:nth-child(4) { background: var(--orange); color: var(--navy); }
.delivery-table thead th span,
.delivery-table tbody th span { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 500; opacity: 0.9; }
.delivery-table tbody th { background: var(--mist); color: var(--navy); font-weight: 800; white-space: nowrap; }
.delivery-table tbody tr:last-child > * { border-bottom: 0; }
.delivery-table td strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.delivery-table td .plus { display: block; font-size: 0.82rem; color: var(--blue-deep); font-weight: 700; }
.delivery-table tbody tr:last-child td strong { color: #D95300; }
.delivery-notes { margin-top: 14px; }
.delivery + .text-link { margin-top: 24px; }

/* ---------- グループのホームページ ---------- */
.group-sites-title { margin-top: 48px; font-size: 1.15rem; font-weight: 800; }
.group-sites { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.group-site {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .15s, transform .2s;
}
.group-site:hover { border-color: var(--blue); transform: translateY(-3px); }
.group-site-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.group-site-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.group-site-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 18px 20px 20px; }
.group-site-name { font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.group-site-desc { font-size: 0.88rem; color: var(--muted); }
.group-site-link {
  margin-top: auto;
  padding-top: 12px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--blue-deep);
}
.group-site-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 1120px) {
  .topic-slider { grid-auto-columns: calc((100% - 40px) / 3); }
}

@media (max-width: 960px) {
  .plan-cards { grid-template-columns: 1fr; }
  .plan-card-lead { min-height: 0; }
  .other-plans { grid-template-columns: 1fr; }
  .group-sites { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topic-slider { grid-auto-columns: 62%; gap: 14px; }
  .slider-controls .slider-btn { width: 40px; height: 40px; }
  .other-plan { padding: 24px 22px; }
}

/* ==========================================================================
   第9版：5つの工程（画像つきカード）
   ========================================================================== */
.step-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  counter-reset: none;
}
.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}
/* 工程の間の矢印 */
.step-card + .step-card::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 64px;
  width: 16px;
  height: 16px;
  border-top: 4px solid var(--orange);
  border-right: 4px solid var(--orange);
  transform: rotate(45deg);
}
.step-card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: var(--mist);
}
.step-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.step-card:nth-child(5) .step-card-visual img { object-fit: contain; background: var(--white); }
.step-card-num {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 0 3px var(--white);
}
.step-card-body { padding: 16px 18px 20px; }
.step-card-body h3 { font-size: 1.1rem; font-weight: 800; }
.step-card-body p { margin-top: 6px; font-size: 0.88rem; line-height: 1.7; }

@media (max-width: 1120px) {
  .step-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-card:nth-child(4)::before { display: none; }
}

@media (max-width: 760px) {
  .step-cards { grid-template-columns: 1fr; gap: 26px; }
  .step-card { flex-direction: row; }
  .step-card-visual { width: 40%; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: 20px 0 0 20px; }
  .step-card-body { align-self: center; padding: 14px 16px; }
  .step-card + .step-card::before,
  .step-card:nth-child(4)::before {
    display: block;
    left: 50%;
    top: -22px;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(135deg);
  }
}

/* ==========================================================================
   第10版：サービスページ「分析のみ」を主役に
   ========================================================================== */
.featured-plan {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  padding: 44px 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, #183566, var(--blue) 60%, #3A63AE);
  color: var(--white);
  box-shadow: 0 30px 50px -30px rgba(14, 47, 107, 0.8);
}
.featured-plan::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.featured-plan :focus-visible { outline-color: var(--white); }
.featured-plan-main,
.featured-plan-speeds { position: relative; z-index: 1; }
.featured-plan-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 700;
}
.featured-plan h3 { margin-top: 16px; color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.featured-plan-price { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.featured-plan-price strong { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; color: #FFB04D; font-feature-settings: "tnum"; }
.featured-plan-price small { font-size: 1rem; font-weight: 700; }
.featured-plan-text { margin-top: 14px; max-width: 34em; color: rgba(255, 255, 255, 0.92); }
.featured-plan .request-buttons { margin-top: 26px; }
.request-buttons-light .req-btn-excel { background: var(--white); border-color: var(--white); }

.featured-plan-speeds {
  align-self: center;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
}
.featured-plan-speeds-title { font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.featured-plan-speeds ul { margin-top: 12px; }
.featured-plan-speeds li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.featured-plan-speeds li:last-child { border-bottom: 0; }
.speed-name { font-weight: 700; color: var(--navy); }
.speed-days { font-size: 0.88rem; color: var(--muted); }
.speed-price { font-size: 1.4rem; font-weight: 800; color: var(--navy); font-feature-settings: "tnum"; }
.featured-plan-speeds li.is-express .speed-name,
.featured-plan-speeds li.is-express .speed-price { color: #D95300; }
.featured-plan-note { margin-top: 10px; font-size: 0.78rem; color: var(--muted); line-height: 1.6; }

.other-plans:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 560px; }

@media (max-width: 960px) {
  .featured-plan { grid-template-columns: 1fr; padding: 32px 26px; gap: 28px; border-radius: 26px; }
}

/* ==========================================================================
   第11版：サービスの強み（有資格者・厚労省書式）・除去工事
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}
.feature-reverse { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.feature-reverse .feature-media { order: 2; }
.feature-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 50px -30px rgba(14, 47, 107, 0.55);
}
.feature-cert { max-width: 380px; justify-self: center; position: relative; }
.feature-cert::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: 24px;
  background: var(--mist);
  z-index: -1;
}
.feature-cert img { border-radius: 8px; }
.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 0.95rem;
}
.feature-kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #FFE7A3 0%, var(--orange) 60%, var(--orange-deep) 100%);
}
.feature-text h2 { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
.feature-text > p:not(.feature-kicker) { margin-top: 16px; }

.qual-list { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qual-list li {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--mist);
  border-left: 4px solid var(--blue);
}
.qual-list strong { display: block; color: var(--navy); font-weight: 800; line-height: 1.5; }
.qual-list span { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.qual-list li:first-child { grid-column: 1 / -1; border-left-color: var(--orange); background: #FFF3E6; }

.check-list { margin-top: 20px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 700; color: var(--navy); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.45em;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--white);
  border-bottom: 2.5px solid var(--white);
  transform: rotate(-45deg);
}

/* 除去工事：全幅の帯でアピール */
.removal {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(120deg, #0E2F6B 0%, var(--blue) 55%, #3A63AE 100%);
  color: var(--white);
}
.removal::before {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -220px;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 60px solid rgba(255, 138, 31, 0.22);
}
.removal :focus-visible { outline-color: var(--white); }
.removal-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.removal .feature-kicker { color: #FFB04D; }
.removal h2 { margin-top: 10px; color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; }
.removal-text > p:not(.feature-kicker):not(.removal-meta) { margin-top: 16px; color: rgba(255, 255, 255, 0.92); }
.removal-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.removal-meta span { padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.85rem; font-weight: 700; }
.removal .btn { margin-top: 28px; }
.removal-chain { display: grid; gap: 14px; }
.removal-chain li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--white);
  color: var(--navy);
}
.removal-chain li + li::before {
  content: "";
  position: absolute;
  left: 46px;
  top: -14px;
  width: 4px;
  height: 14px;
  background: var(--orange);
}
.removal-chain li:nth-child(2) { background: #FFF3E6; box-shadow: 0 0 0 3px var(--orange); }
.chain-num {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
}
.removal-chain li:nth-child(2) .chain-num { background: var(--orange); color: var(--navy); }
.removal-chain strong { font-size: 1.15rem; font-weight: 800; }
.removal-chain small { font-size: 0.82rem; color: var(--muted); }

.area-region { margin: 14px 0 8px; font-weight: 800; color: var(--navy); font-size: 0.92rem; }
.area-note + .area-region { margin-top: 0; }

@media (max-width: 960px) {
  .feature, .feature-reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-reverse .feature-media { order: 0; }
  .feature-cert { max-width: 300px; }
  .qual-list { grid-template-columns: 1fr; }
  .removal { padding: 72px 0; }
  .removal-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   第12版：選ばれる5つの理由（タイル）・郵送イラスト
   ========================================================================== */
.reason-tiles {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.reason-tile {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 30px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 40px -32px rgba(14, 47, 107, 0.5);
  transition: transform .25s, box-shadow .25s;
}
.reason-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 44px -28px rgba(14, 47, 107, 0.55); }
.reason-tile-blue,
.reason-tile-orange { grid-column: span 3; padding: 36px 36px 38px; border: 0; }
.reason-tile-blue { background: linear-gradient(135deg, #183566, var(--blue) 65%, #3A63AE); color: var(--white); }
.reason-tile-orange { background: linear-gradient(135deg, #FFB04D, var(--orange) 60%, #FF7A00); color: var(--navy); }
.reason-tile-blue::after,
.reason-tile-orange::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.14);
}
.reason-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--mist);
  color: var(--blue);
}
.reason-icon svg { width: 30px; height: 30px; }
.reason-tile-blue .reason-icon { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.reason-tile-orange .reason-icon { background: rgba(255, 255, 255, 0.35); color: var(--navy); }
.reason-key {
  margin-top: 18px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue);
}
.reason-tile-blue .reason-key { color: #FFB04D; font-size: clamp(2.2rem, 3.6vw, 3rem); }
.reason-tile-orange .reason-key { color: var(--navy); font-size: clamp(2.2rem, 3.6vw, 3rem); }
.reason-tile h3 { margin-top: 8px; color: inherit; font-size: 1.1rem; font-weight: 800; }
.reason-tile:not(.reason-tile-blue):not(.reason-tile-orange) h3 { color: var(--navy); }
.reason-text { margin-top: 8px; font-size: 0.92rem; line-height: 1.75; }
.reason-tile-blue .reason-text { color: rgba(255, 255, 255, 0.9); }

/* 画面に入ったら下から順に表示 */
.reason-tiles.is-waiting .reason-tile { opacity: 0; transform: translateY(28px); }
.reason-tiles.is-in .reason-tile {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease var(--delay, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms), box-shadow .25s;
}
.reason-tiles.is-in .reason-tile:hover { transform: translateY(-4px); transition: transform .25s, box-shadow .25s; }

/* 対応エリア：郵送のイラスト */
.area-box { display: flex; flex-direction: column; }
.area-illust { margin-top: 18px; }
.area-illust img { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.area-mail-note { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.area-box .text-link { margin-top: 12px; align-self: flex-start; }

@media (max-width: 960px) {
  .reason-tiles { grid-template-columns: 1fr 1fr; }
  .reason-tile,
  .reason-tile-blue,
  .reason-tile-orange { grid-column: span 1; }
  .reason-tile-blue { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .reason-tiles { grid-template-columns: 1fr; }
  .reason-tile, .reason-tile-blue, .reason-tile-orange { grid-column: auto; padding: 26px 24px; }
}

/* 第13版の地図の配置は第18版で置き換え */
.map-credit { margin-top: 20px; font-size: 0.72rem; color: var(--muted); }
.map-credit a { color: inherit; }

/* ==========================================================================
   第14版：ご依頼の流れ（トップ・紺の帯と道のり）
   ========================================================================== */
.flow-band {
  position: relative;
  overflow: hidden;
  padding: 100px 0 96px;
  background: linear-gradient(160deg, #0E2F6B 0%, var(--blue) 70%, #2F5AA6 100%);
  color: var(--white);
}
.flow-band::before {
  content: "";
  position: absolute;
  left: -140px;
  top: -180px;
  width: 460px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 50px solid rgba(255, 255, 255, 0.05);
}
.flow-band :focus-visible { outline-color: var(--white); }
.flow-band .wrap { position: relative; }
.flow-band h2 { color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 800; }
.flow-band .text-link { color: var(--white); }
.flow-band-lead { margin-top: 12px; color: rgba(255, 255, 255, 0.85); }

.flow-road {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 4fr 2fr 2fr;
  gap: 16px;
}
.flow-phase-label {
  position: relative;
  padding: 0 0 14px;
  margin-bottom: 26px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #FFB04D;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}
.flow-phase-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 44px;
  height: 2px;
  background: var(--orange);
}
.flow-phase-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
  gap: 8px;
}
/* 丸と丸をつなぐオレンジの線（段階をまたいでつながる） */
.flow-phase-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: -16px;
  top: 44px;
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 22px);
}
.flow-phase-1 .flow-phase-steps::before { left: calc(50% / var(--steps)); }
.flow-phase-3 .flow-phase-steps::before { right: calc(50% / var(--steps)); }
.flow-stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow-stop-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 16px 30px -14px rgba(0, 0, 0, 0.5);
  transition: transform .2s;
}
.flow-stop-icon svg { width: 38px; height: 38px; }
.flow-stop:hover .flow-stop-icon { transform: scale(1.06); }
.flow-phase-3 .flow-stop:last-child .flow-stop-icon { background: var(--orange); color: var(--navy); }
.flow-stop-num {
  margin-top: 14px;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  font-feature-settings: "tnum";
}
.flow-stop-name { margin-top: 6px; font-weight: 800; font-size: 0.98rem; line-height: 1.45; }

@media (max-width: 1120px) {
  .flow-stop-icon { width: 76px; height: 76px; }
  .flow-stop-icon svg { width: 32px; height: 32px; }
  .flow-phase-steps::before { top: 36px; }
  .flow-stop-name { font-size: 0.88rem; }
}

@media (max-width: 760px) {
  .flow-band { padding: 72px 0; }
  .flow-road { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .flow-phase-label { margin-bottom: 16px; }
  .flow-phase-steps { grid-template-columns: 1fr; gap: 14px; }
  .flow-phase-steps::before,
  .flow-phase-1 .flow-phase-steps::before,
  .flow-phase-3 .flow-phase-steps::before {
    left: 29px;
    right: auto;
    top: 0;
    bottom: -28px;
    width: 4px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--orange) 0 10px, transparent 10px 16px);
  }
  .flow-phase-1 .flow-phase-steps::before { top: 31px; }
  .flow-phase-3 .flow-phase-steps::before { bottom: 30px; }
  .flow-stop { flex-direction: row; gap: 14px; text-align: left; }
  .flow-stop-icon { width: 62px; height: 62px; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); }
  .flow-stop-icon svg { width: 26px; height: 26px; }
  .flow-stop-num { margin: 0; font-size: 1.3rem; width: 2em; }
  .flow-stop-name { margin: 0; font-size: 1rem; }
}

/* ==========================================================================
   第15版：スマホのファーストビューをコンパクトに（PCはそのまま）
   ========================================================================== */
@media (max-width: 600px) {
  .hero { padding: 22px 0 64px; }
  .hero .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "badge lens"
      "price lens"
      "title title"
      "lead lead"
      "btns btns";
    column-gap: 10px;
    row-gap: 0;
    align-items: center;
  }
  .hero .hero-copy { display: contents; }
  .hero-badge { grid-area: badge; justify-self: start; font-size: 0.72rem; padding: 5px 12px 5px 9px; gap: 6px; letter-spacing: 0; }
  .hero-badge::before { width: 10px; height: 10px; }

  .hero-price {
    grid-area: price;
    align-self: start;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 0 4px;
  }
  .hero-price-label { flex-basis: 100%; padding: 0 0 2px; font-size: 0.78rem; }
  .hero-price-label br { display: none; }
  .hero-price { flex-wrap: wrap; }
  .hero-price-label { flex-basis: 100%; }
  .hero-price strong + .hero-price-unit { white-space: nowrap; }
  .hero-price strong { font-size: clamp(2.2rem, 11.5vw, 3.1rem); }
  .hero-price-unit { padding-bottom: 0.3em; font-size: 1.05rem; }
  .hero-price-unit small { font-size: 0.62em; margin-top: 2px; }

  .hero .eyepiece {
    grid-area: lens;
    width: clamp(104px, 30vw, 150px);
    justify-self: end;
    align-self: start;
    margin: 0 0 18px;
  }
  .hero .eyepiece-ring { padding: 6px; }
  .hero .eyepiece-ring img,
  .hero .eyepiece-ring video { border-width: 3px; }
  /* JISの印は小さなバッジにしてレンズの下に重ねる */
  .hero .jis-seal {
    left: 50%;
    bottom: -14px;
    width: auto;
    min-width: 108%;
    aspect-ratio: auto;
    padding: 5px 8px;
    border-radius: 12px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 8px 14px -8px rgba(3, 18, 70, 0.5);
    animation: none;
  }
  .hero .jis-seal span { font-size: 0.62rem; }
  .hero .jis-seal strong { font-size: 0.78rem; white-space: nowrap; }

  .hero h1 { grid-area: title; margin-top: 18px; font-size: clamp(1.15rem, 5.4vw, 1.4rem); line-height: 1.5; }
  .hero-lead { grid-area: lead; margin-top: 8px; font-size: 0.86rem; line-height: 1.7; }

  .hero .request-buttons {
    grid-area: btns;
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero .req-btn { min-height: 60px; padding: 10px 12px; border-radius: 12px; }
  .hero .req-btn-main { font-size: 0.86rem; white-space: nowrap; word-break: normal; }
  .hero .req-btn-sub { font-size: 0.68rem; }
  .hero .req-btn-icon { display: none; }

  .hero-motto { right: 14px; bottom: 10px; font-size: 2rem; }
}

@media (max-width: 360px) {
  .hero .req-btn-main { font-size: 0.78rem; }
}

/* ==========================================================================
   第16版：トピックス記事（画像を大きく見せる）
   ========================================================================== */
.topic-hero { padding: 36px 0 56px; background: linear-gradient(180deg, var(--white), var(--mist)); }
.topic-hero-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.topic-hero .article-meta { margin-top: 0; }
.topic-hero h1 { margin-top: 14px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.45; }
.topic-hero-lead {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 4px solid var(--orange);
  font-size: 1.02rem;
  color: var(--ink);
}
.topic-hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  background: var(--mist);
  box-shadow: 0 30px 50px -30px rgba(14, 47, 107, 0.6);
}
.topic-hero-media::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #FFE7A3 0%, var(--orange) 60%, var(--orange-deep) 100%);
  box-shadow: 0 0 0 6px var(--white);
}
.topic-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.article-topic > .article-layout { padding-top: 48px; }

/* 本文：読みやすく、画像と文章が映えるように */
.article-topic .entry-content > p:first-child { font-size: 1.08rem; font-weight: 500; color: var(--navy); }
.article-topic .entry-content h2 {
  padding: 12px 18px;
  border: 0;
  border-left: 6px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: var(--mist);
  font-size: 1.3rem;
}
.article-topic .entry-content h3 { padding-left: 14px; border-left: 4px solid var(--blue); }
.article-topic .entry-content .wp-block-image img { border-radius: 16px; }
.article-topic .entry-content .wp-block-list li::marker { color: var(--blue); }
.thumb-default { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
  .topic-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .topic-hero-media { order: -1; }
  .topic-hero-media::after { width: 52px; height: 52px; right: 14px; bottom: -14px; }
}

/* ==========================================================================
   第17版：ご依頼の流れ（トップで1つに統合）・ヒアリング・対応エリアの配置
   ========================================================================== */
.flow-phase-row { margin-top: 44px; }
.flow-phase-row .flow-phase-label { margin-bottom: 20px; }

/* ご相談・ご契約：横一列のコンパクトな4ステップ */
.consult-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.consult-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.consult-steps li + li::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  transform: translate(-50%, -50%) rotate(45deg);
}
.consult-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
}
.consult-icon svg { width: 22px; height: 22px; }
.consult-num { font-size: 1.2rem; font-weight: 800; color: rgba(255, 255, 255, 0.45); font-feature-settings: "tnum"; }
.consult-name { font-weight: 800; }

/* 事前調査〜報告：紺の帯の上に白いカード */
.flow-band .step-cards { margin-top: 0; }
.flow-band .step-card { border: 0; color: var(--ink); }
.flow-band .step-card + .step-card::before { border-color: #FFB04D; }
.flow-band .step-card-num { width: auto; min-width: 42px; padding: 0 8px; border-radius: 999px; font-size: 1rem; }
.flow-band .step-card:last-child .step-card-num { background: var(--orange); color: var(--navy); }

.flow-actions {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-flow { min-height: 56px; padding: 12px 28px; font-size: 1rem; flex-direction: row; gap: 10px; }
.btn-flow::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
}
.btn-flow-white { background: var(--white); color: var(--blue-deep); }
.btn-flow-white:hover { background: var(--mist); }

/* 料金ページ：ヒアリングでお伺いすること */
.hearing {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--mist);
}
.hearing-title { font-weight: 800; color: var(--navy); font-size: 0.92rem; }
.hearing-list { margin-top: 8px; display: grid; gap: 6px; }
.hearing-list li { position: relative; padding-left: 26px; font-size: 0.92rem; line-height: 1.6; }
.hearing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--blue);
  background: var(--white);
}
.hearing-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.45em;
  width: 8px;
  height: 4px;
  border-left: 2.5px solid var(--orange-deep);
  border-bottom: 2.5px solid var(--orange-deep);
  transform: rotate(-45deg);
}
.hearing-list strong { color: var(--navy); }
.hearing-list span { display: block; font-size: 0.82rem; color: var(--muted); }

@media (max-width: 960px) {
  .consult-steps { grid-template-columns: 1fr 1fr; gap: 12px 22px; }
  .consult-steps li:nth-child(3)::before { display: none; }
}

@media (max-width: 760px) {
  .flow-band .step-card { flex-direction: row; }
  .flow-actions { justify-content: stretch; }
  .flow-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .consult-steps { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .consult-steps li { padding: 8px 10px; gap: 8px; border-radius: 16px; }
  .consult-icon { width: 34px; height: 34px; }
  .consult-icon svg { width: 18px; height: 18px; }
  .consult-num { font-size: 0.95rem; }
  .consult-name { font-size: 0.88rem; }
}

/* ==========================================================================
   第18版：対応エリア（2×2の配置・地図・オリジナルレターパック）
   ========================================================================== */
.area-layout {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.area-layout .area-box { background: var(--white); }
.area-map {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 8px 12px;
}
.area-map img { width: 100%; max-width: 440px; height: auto; }

.letterpack {
  position: relative;
  border: 2px dashed #FFB04D;
  background: #FFFBF5 !important;
}
.letterpack-tag {
  align-self: flex-start;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
}
.letterpack h3 { margin-top: 12px; }
.letterpack-illust { margin: 16px 0 14px; }
.letterpack-illust img { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.letterpack p:last-child { font-size: 0.92rem; }

@media (max-width: 960px) {
  .area-layout { grid-template-columns: 1fr; gap: 16px; }
  /* スマホでは地図を小さくして、見出しのすぐ下に */
  .area-map { order: -1; padding: 0; }
  .area-map img { max-width: 300px; }
  .area-box-survey { order: 0; }
}

/* ==========================================================================
   第19版：トピックスを自動で流す（ボタンなし）
   ========================================================================== */
.topic-slider {
  scroll-snap-type: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 6px;
  cursor: grab;
}
.topic-slider::-webkit-scrollbar { display: none; }
#topics .block-head .text-link { margin: 0; }

/* ==========================================================================
   第20版：よくあるご質問（チャット形式）
   ========================================================================== */
.faq-lead { margin-top: 10px; }
.faq-chat {
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -34px rgba(14, 47, 107, 0.55);
}
.faq-chat[hidden], .faq-list[hidden] { display: none; }
.faq-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: linear-gradient(120deg, #183566, var(--blue));
  color: var(--white);
}
.faq-chat-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}
.faq-chat-avatar img { width: 34px; }
.faq-chat-title { display: flex; flex-direction: column; font-weight: 800; line-height: 1.4; }
.faq-chat-title small { font-size: 0.78rem; font-weight: 500; opacity: 0.85; }

.faq-chat-log {
  min-height: 120px;
  max-height: 400px;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F5F8FE;
  scroll-behavior: smooth;
}
.chat-msg { display: flex; max-width: 86%; animation: chat-in .25s ease both; }
.chat-msg p {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.chat-bot { align-self: flex-start; }
.chat-bot p { background: var(--white); border: 1px solid var(--line); border-top-left-radius: 6px; color: var(--ink); }
.chat-user { align-self: flex-end; }
.chat-user p { background: var(--blue); color: var(--white); border-top-right-radius: 6px; font-weight: 700; }
.chat-bot.is-typing p { display: flex; gap: 5px; padding: 16px 18px; }
.chat-bot.is-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9FB3D9;
  animation: chat-dot 1s infinite ease-in-out;
}
.chat-bot.is-typing span:nth-child(2) { animation-delay: .15s; }
.chat-bot.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes chat-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

.faq-chat-choices { padding: 18px 22px 8px; border-top: 1px solid var(--line); }
.faq-chat-choices-title { font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.faq-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-chip {
  padding: 9px 16px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.faq-chip:hover { background: var(--blue); color: var(--white); }
.faq-chip.is-asked { border-color: var(--line); color: var(--muted); background: var(--mist); }

.faq-chat-foot { padding: 14px 22px 20px; }
.faq-chat-foot p { font-size: 0.88rem; color: var(--muted); }
.faq-chat-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.faq-line,
.faq-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}
.faq-line { background: var(--line-green); color: var(--white); }
.faq-contact { background: var(--orange); color: var(--navy); }

/* スマホ：質問を押すと答えが開くスレッド形式 */
.faq-thread { display: none; }
@media (max-width: 600px) {
  .faq-chat { border-radius: 20px; }
  .faq-chat-head { padding: 14px 16px; }
  .faq-chat-log,
  .faq-chat-choices { display: none; }
  .faq-thread { display: grid; gap: 10px; padding: 16px 12px; background: #F5F8FE; }
  .thread-q {
    width: 100%;
    display: grid;
    grid-template-columns: 30px 1fr 16px;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.55;
    text-align: left;
    cursor: pointer;
  }
  .thread-q::after {
    content: "";
    width: 9px;
    height: 9px;
    justify-self: center;
    border-right: 2.5px solid var(--blue);
    border-bottom: 2.5px solid var(--blue);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s;
  }
  .thread-q[aria-expanded="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
  .thread-q[aria-expanded="true"]::after { border-color: var(--white); transform: rotate(-135deg) translateY(-3px); }
  .thread-q-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--navy);
    font-weight: 800;
  }
  .thread-a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 8px;
    align-items: start;
    margin: 8px 0 6px;
    animation: chat-in .25s ease both;
  }
  .thread-a[hidden] { display: none; }
  .thread-a-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white) url("../img/logo/logo-mark-ad.png") center / 26px auto no-repeat;
    border: 1px solid var(--line);
  }
  .thread-a p {
    padding: 12px 14px;
    border-radius: 6px 16px 16px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 0.92rem;
    line-height: 1.8;
  }
  .thread-a.is-typing p { color: transparent; position: relative; min-height: 44px; overflow: hidden; }
  .thread-a.is-typing p::after {
    content: "・・・";
    position: absolute;
    left: 16px;
    top: 10px;
    color: #9FB3D9;
    font-weight: 800;
    letter-spacing: 2px;
  }
  .faq-chat-foot { padding: 14px 16px 18px; }
  .faq-chat-actions a { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   第21版：会社概要（代表挨拶・資格と加盟団体）
   ========================================================================== */
/* ---------- 代表挨拶 ---------- */
.greet-hero {
  position: relative;
  overflow-x: clip; /* 写真は下にはみ出させ、飾りの円だけ横で切る */
  overflow-y: visible;
  padding: 80px 0 0;
  background: linear-gradient(135deg, #0E2F6B 0%, var(--blue) 70%, #3A63AE 100%);
  color: var(--white);
}
.greet-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -200px;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 56px solid rgba(255, 138, 31, 0.2);
}
.greet-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: end;
}
.greet-photo { position: relative; margin: 0 0 -60px; }
.greet-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 28px 28px 28px 0;
  box-shadow: 0 40px 60px -36px rgba(0, 0, 0, 0.6);
}
.greet-photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 14px 24px;
  border-radius: 0 20px 0 0;
  background: var(--orange);
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}
.greet-photo figcaption span { display: block; font-size: 0.78rem; font-weight: 700; }
.greet-hero-text { padding-bottom: 80px; }
.greet-kicker { font-weight: 800; color: #FFB04D; letter-spacing: 0.08em; }
.greet-catch {
  position: relative;
  margin-top: 18px;
  padding-left: 0.2em;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.greet-catch::before {
  content: "“";
  position: absolute;
  left: -0.5em;
  top: -0.35em;
  font-size: 3.4em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
  font-family: Georgia, serif;
}
.greet-values { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 540px; }
.greet-values li {
  padding: 16px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}
.greet-values strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: 0.1em; }
.greet-values li:nth-child(3) strong { color: #FFB04D; }
.greet-values span { display: block; margin-top: 2px; font-size: 0.78rem; opacity: 0.85; }

.greet { position: relative; z-index: 1; }
.greet-letter { padding-top: 110px; padding-bottom: 96px; max-width: 900px; }
.greet-letter-body p { font-size: 1.02rem; line-height: 2; }
.greet-letter-body p + p { margin-top: 1.1em; }
.greet-voices { margin: 40px 0; }
.greet-voices-title { font-weight: 800; color: var(--navy); }
.greet-voices ul { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.greet-voices li {
  position: relative;
  padding: 18px 20px;
  border-radius: 18px 18px 18px 4px;
  background: var(--mist);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.7;
}
.greet-voices li::before {
  content: "“";
  display: block;
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 0.6;
  color: var(--orange);
}
.greet-promise {
  padding: 22px 26px;
  border-left: 5px solid var(--orange);
  border-radius: 0 18px 18px 0;
  background: #FFF7EE;
  font-weight: 700;
  color: var(--navy);
}
.greet-sign { margin-top: 32px !important; display: flex; flex-direction: column; align-items: flex-end; }
.greet-sign-company { font-size: 0.9rem; color: var(--muted); }
.greet-sign-name { font-size: 1.8rem; font-weight: 800; color: var(--navy); letter-spacing: 0.2em; }

/* ---------- 資格と加盟団体 ---------- */
.cert-feature {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 32px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, #FFF7EE, #FFFFFF 60%);
  border: 2px solid #FFD1A3;
}
.cert-feature-img img { width: 100%; border-radius: 6px; box-shadow: 0 20px 30px -18px rgba(14, 47, 107, 0.5); }
.cert-ribbon {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}
.cert-feature h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; }
.cert-feature-text > p:not(.cert-ribbon):not(.cert-no) { margin-top: 12px; }
.cert-feature strong { color: var(--navy); }
.cert-no { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

.qual-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.qual-card {
  position: relative;
  padding: 24px 22px 26px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 34px -30px rgba(14, 47, 107, 0.5);
}
.qual-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--mist);
}
.qual-icon svg { width: 28px; height: 28px; }
.qual-state {
  position: absolute;
  right: 18px;
  top: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
}
.qual-card h3 { margin-top: 18px; font-size: 1.05rem; font-weight: 800; line-height: 1.5; }
.qual-role { margin-top: 4px; font-size: 0.85rem; color: var(--muted); }

.member-title { margin-top: 56px; font-size: 1.2rem; font-weight: 800; }
.member-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.member-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--mist);
}
.member-mark {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--white);
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 2px solid var(--blue);
}
.member-mark-icon svg { width: 36px; height: 36px; }
.member-name { font-weight: 800; color: var(--navy); line-height: 1.5; font-size: 0.92rem; }
.member-no { margin-top: 6px; font-size: 0.8rem; font-weight: 700; color: var(--orange-deep); }
.member-no span { margin-left: 8px; color: var(--muted); font-weight: 500; }

@media (max-width: 960px) {
  .greet-hero { padding-top: 48px; }
  .greet-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .greet-photo { max-width: 340px; margin: 0 auto -60px; order: 2; }
  .greet-hero-text { padding-bottom: 0; }
  .greet-voices ul { grid-template-columns: 1fr; }
  .cert-feature { grid-template-columns: 1fr; padding: 28px 24px; }
  .cert-feature-img { max-width: 200px; }
  .qual-cards { grid-template-columns: 1fr 1fr; }
  .member-cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .greet-values strong { font-size: 1.3rem; }
  .greet-values span { font-size: 0.68rem; }
  .greet-letter { padding-top: 96px; padding-bottom: 72px; }
  .qual-cards { grid-template-columns: 1fr; }
  .qual-card { display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; align-items: center; }
  .qual-card .qual-icon { grid-row: 1 / 3; }
  .qual-card h3 { margin-top: 0; }
  .qual-state { top: 12px; right: 12px; }
}

/* ==========================================================================
   第22版：トピックス一覧（最新を大きく・3列のタイル）
   ========================================================================== */
.topics-page { background: linear-gradient(180deg, var(--white) 0, var(--mist) 420px, var(--mist) 100%); }
.topic-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-filter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}
.topic-filter a span {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue-deep);
  font-size: 0.75rem;
}
.topic-filter a:hover { border-color: var(--blue); }
.topic-filter a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.topic-filter a[aria-current="page"] span { background: rgba(255, 255, 255, 0.2); color: var(--white); }

.topic-feature { margin-top: 32px; }
.topic-feature a {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 34px 60px -40px rgba(14, 47, 107, 0.6);
  transition: transform .25s;
}
.topic-feature a:hover { transform: translateY(-4px); }
.topic-feature-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.topic-feature-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.topic-feature a:hover .topic-feature-thumb img { transform: scale(1.04); }
.topic-feature-new {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
}
.topic-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 36px 40px; }
.topic-feature-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; color: var(--navy); line-height: 1.5; }
.topic-feature-excerpt { color: var(--muted); line-height: 1.8; }
.topic-feature-more {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}
.topic-feature-more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
}

.topic-tiles { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.topic-tile a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 20px 36px -30px rgba(14, 47, 107, 0.55);
  transition: transform .25s, box-shadow .25s;
}
.topic-tile a:hover { transform: translateY(-4px); box-shadow: 0 28px 44px -30px rgba(14, 47, 107, 0.6); }
.topic-tile-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.topic-tile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.topic-tile a:hover .topic-tile-thumb img { transform: scale(1.05); }
.topic-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.topic-tile-title { font-weight: 800; color: var(--navy); line-height: 1.55; }
.topic-tile-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

@media (max-width: 960px) {
  .topic-feature a { grid-template-columns: 1fr; }
  .topic-feature-body { padding: 24px 24px 28px; }
  .topic-tiles { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  .topic-tiles { grid-template-columns: 1fr; }
  .topic-tile a { flex-direction: row; border-radius: 18px; }
  .topic-tile-thumb { width: 38%; flex-shrink: 0; aspect-ratio: auto; }
  .topic-tile-body { padding: 14px 16px; gap: 4px; }
  .topic-tile-title { font-size: 0.92rem; }
  .topic-tile-excerpt { display: none; }
}

/* ==========================================================================
   第23版：法令の注意喚起（トップ）
   ========================================================================== */
.law-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  grid-template-areas:
    "head penalty"
    "risks risks"
    "foot foot";
  gap: 32px 48px;
  padding: 52px 56px 44px;
  border-radius: 32px;
  background: var(--white);
  border: 3px solid var(--orange);
  box-shadow: 0 40px 70px -48px rgba(242, 106, 0, 0.55);
}
.law-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 18px, var(--navy) 18px 36px);
}
.law-head { grid-area: head; }
.law-date { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.law-date span {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
}
.law-title {
  margin-top: 16px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.5;
}
.law-title em {
  font-style: normal;
  color: #D95300;
  background: linear-gradient(transparent 62%, #FFE0B8 62%);
}
.law-text { margin-top: 16px; }

.law-penalty {
  grid-area: penalty;
  align-self: center;
  display: grid;
  gap: 10px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0E2F6B, var(--blue));
  color: var(--white);
  text-align: center;
}
.law-penalty > div:not(.law-or) { padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); }
.law-penalty dt { font-size: 0.88rem; font-weight: 700; opacity: 0.9; }
.law-penalty dd { font-size: 1.1rem; font-weight: 800; line-height: 1.1; }
.law-penalty strong { font-size: clamp(2.8rem, 5vw, 3.8rem); color: #FFB04D; margin-right: 4px; font-feature-settings: "tnum"; }
.law-or { font-size: 0.85rem; font-weight: 700; opacity: 0.8; }

.law-risks { grid-area: risks; padding-top: 28px; border-top: 2px dashed #FFD1A3; }
.law-risks-title { font-weight: 800; color: var(--navy); text-align: center; }
.law-risks ul { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.law-risks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--orange);
  color: var(--navy);
}
.law-risk-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white);
  color: #D95300;
}
.law-risk-icon svg { width: 24px; height: 24px; }
.law-risks strong { font-size: 1.05rem; font-weight: 800; line-height: 1.45; }
.law-risks-text { margin-top: 16px; text-align: center; font-weight: 700; color: var(--navy); }

.law-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.law-note { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 960px) {
  .law-card {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "penalty" "risks" "foot";
    padding: 40px 24px 32px;
    border-radius: 24px;
  }
  .law-penalty { grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px; }
  .law-risks ul { grid-template-columns: 1fr; }
  .law-foot .btn { width: 100%; }
}

/* 合格認定証はスマホで中央に */
@media (max-width: 960px) {
  .cert-feature { justify-items: center; text-align: center; }
  .cert-feature-img { margin: 0 auto; }
  .cert-feature-text { justify-self: stretch; }
  .feature-cert { justify-self: center; margin-left: auto; margin-right: auto; }
  .feature-cert::before { inset: 16px -16px -16px 16px; }
}

.topic-slider.is-dragging { cursor: grabbing; user-select: none; }
.topic-slider.is-dragging a { pointer-events: none; }
.topic-slider img { -webkit-user-drag: none; user-select: none; }

/* ==========================================================================
   第24版：実績の「採取の様子」と写真の拡大表示
   ========================================================================== */
.work-photos { margin-top: 48px; }
.work-photos-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.work-photos-head h2 {
  padding-left: 14px;
  border-left: 6px solid var(--orange);
  font-size: 1.4rem;
  font-weight: 800;
}
.work-photos-head p { font-weight: 800; color: var(--blue-deep); }
.work-photos-head p span { margin-left: 10px; font-weight: 500; font-size: 0.82rem; color: var(--muted); }
.work-photo-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
/* 1枚目は横いっぱいに大きく、残りは3列（10枚なら 1＋3×3 でそろう） */
.work-photo-grid li:first-child { grid-column: 1 / -1; }
.work-photo {
  position: relative;
  display: block;
  height: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mist);
}
.work-photo-grid li:first-child .work-photo { aspect-ratio: 16 / 9; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-photo:hover img { transform: scale(1.05); }
.work-photo::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23264B91' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 15px no-repeat;
  opacity: 0;
  transition: opacity .2s;
}
.work-photo:hover::after, .work-photo:focus-visible::after { opacity: 1; }
.work-photo-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 8px;
  background: linear-gradient(transparent, rgba(14, 47, 107, 0.8));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.lightbox {
  width: min(94vw, 1100px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #0B1A38;
  color: var(--white);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(6, 16, 40, 0.86); }
.lightbox-inner { padding: 16px 16px 14px; text-align: center; }
.lightbox-img { max-width: 100%; max-height: 76vh; margin: 0 auto; border-radius: 12px; object-fit: contain; }
.lightbox-cap { margin-top: 10px; font-weight: 700; min-height: 1.4em; }
.lightbox-count { margin-top: 2px; font-size: 0.82rem; opacity: 0.75; }
.lightbox-btn,
.lightbox-close {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}
.lightbox-btn { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: -26px; }
.lightbox-next { right: -26px; }
.lightbox-btn::after {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--blue);
  border-right: 3px solid var(--blue);
}
.lightbox-prev::after { transform: translateX(2px) rotate(-135deg); }
.lightbox-next::after { transform: translateX(-2px) rotate(45deg); }
.lightbox-close { right: -14px; top: -14px; width: 44px; height: 44px; background: var(--orange); }
.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transform: rotate(45deg);
}
.lightbox-close::after { transform: rotate(-45deg); }

@media (max-width: 600px) {
  .work-photo-grid { gap: 6px; }
  .work-photo { border-radius: 10px; }
  .work-photo-grid li:not(:first-child) .work-photo-cap { display: none; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-btn { width: 42px; height: 42px; background: rgba(255, 255, 255, 0.85); }
  .lightbox-close { right: 6px; top: -52px; }
}

.law-scope { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.law-scope li { padding: 10px 12px; border-radius: 12px; background: var(--mist); font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.law-scope strong { display: block; color: var(--navy); font-size: 0.88rem; }
.law-qual { margin-top: 14px; font-size: 0.88rem; padding-left: 12px; border-left: 3px solid var(--blue); }
@media (max-width: 600px) { .law-scope { grid-template-columns: 1fr; } }

/* ==========================================================================
   第25版：はじめての方へ（建材の見分け方・見つかった場合の流れ）
   ========================================================================== */
.guide-checks { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-checks li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 24px 22px;
  border-radius: 22px;
  background: var(--mist);
}
.guide-check-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
}
.guide-checks h3 { font-size: 1.05rem; font-weight: 800; }
.guide-checks p { margin-top: 6px; font-size: 0.92rem; }
.guide-checks strong { color: var(--navy); }

.guide-house {
  margin: 36px auto 0;
  max-width: 900px;
  padding: 20px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 50px -40px rgba(14, 47, 107, 0.6);
}
.guide-house svg { width: 100%; height: auto; display: block; }
.guide-house .pins circle { fill: var(--orange); stroke: #FFFFFF; stroke-width: 4; }
.guide-house .pins text { fill: #0E2F6B; }

.material-cards { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.material-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 22px;
  border-radius: 22px;
  background: var(--white);
  border-top: 5px solid var(--lv, var(--blue));
  box-shadow: 0 20px 34px -30px rgba(14, 47, 107, 0.55);
}
.material-level-1 { --lv: #D9352B; }
.material-level-2 { --lv: var(--orange); }
.material-level-3 { --lv: var(--blue); }
.material-top { display: flex; align-items: center; gap: 10px; }
.material-no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
}
.material-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--blue);
}
.material-icon svg { width: 26px; height: 26px; }
.material-level {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lv, var(--blue));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.material-level-2 .material-level { color: var(--navy); }
.material-card h3 { margin-top: 14px; font-size: 1.05rem; font-weight: 800; line-height: 1.5; }
.material-card dl { margin-top: 10px; display: grid; gap: 8px; }
.material-card dt { font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.material-card dd { font-size: 0.88rem; line-height: 1.6; }
.material-tip {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--navy);
  border-top: 1px dashed var(--line);
}
.material-card dl + .material-tip { margin-top: 12px; }

.level-legend { margin-top: 28px; padding: 20px 24px; border-radius: 18px; background: var(--white); }
.level-legend-title { font-weight: 800; color: var(--navy); }
.level-legend ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.level-legend li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; }
.level-legend .material-level { margin: 0; }
.level-legend .note { margin-top: 10px; }

.after-steps {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  counter-reset: none;
}
.after-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 14px 22px;
  border-radius: 22px;
  background: var(--mist);
}
.after-step + .after-step::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 58px;
  width: 10px;
  height: 10px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  transform: rotate(45deg);
}
.after-num { font-size: 0.8rem; font-weight: 800; color: var(--orange-deep); }
.after-icon {
  margin-top: 6px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 0 0 5px rgba(38, 75, 145, 0.08);
}
.after-icon svg { width: 30px; height: 30px; }
.after-step:nth-child(5) .after-icon { background: var(--blue); color: var(--white); }
.after-step h3 { margin-top: 14px; font-size: 1rem; font-weight: 800; }
.after-step p { margin-top: 6px; font-size: 0.82rem; line-height: 1.7; }

.after-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(120deg, #0E2F6B, var(--blue));
  color: var(--white);
}
.after-cta :focus-visible { outline-color: var(--white); }
.after-cta-title { font-size: 1.2rem; font-weight: 800; }
.after-cta p + p { margin-top: 4px; opacity: 0.9; }
.after-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-flow-line { background: transparent; color: var(--white); border-color: var(--white); }
.btn-flow-line:hover { background: rgba(255, 255, 255, 0.12); }
.guide-source { margin-top: 18px; font-size: 0.75rem; color: var(--muted); }

@media (max-width: 1120px) {
  .material-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .after-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .after-step:nth-child(4)::before { display: none; }
}

@media (max-width: 760px) {
  .guide-checks { grid-template-columns: 1fr; }
  .guide-house { padding: 8px; border-radius: 18px; }
  .guide-house .pins circle { r: 22px; }
  .guide-house .pins text { font-size: 22px; }
  .material-cards { grid-template-columns: 1fr; }
  .after-steps { grid-template-columns: 1fr; gap: 12px; }
  .after-step { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; text-align: left; align-items: center; padding: 16px 18px; }
  .after-step .after-num { display: none; }
  .after-icon { grid-row: 1 / 3; width: 56px; height: 56px; margin: 0; }
  .after-step h3 { margin: 0; }
  .after-step p { margin-top: 2px; }
  .after-step + .after-step::before,
  .after-step:nth-child(4)::before { display: block; left: 40px; top: -10px; transform: rotate(135deg); }
  .after-cta { padding: 24px 20px; }
  .after-cta-actions .btn { flex: 1 1 100%; }
}

.law-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.law-actions .text-link { margin: 0; }

/* ---------- お客様の声 ---------- */
.voice-list { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.voice {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 24px;
  border-radius: 24px 24px 24px 6px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 40px -34px rgba(14, 47, 107, 0.55);
}
.voice::before {
  content: "“";
  position: absolute;
  right: 20px;
  top: -8px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.35;
}
.voice-title { font-size: 1.05rem; font-weight: 800; color: var(--navy); line-height: 1.55; }
.voice-text { margin-top: 10px; font-size: 0.92rem; line-height: 1.85; flex: 1; }
.voice-who { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 12px; }
.voice-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); color: var(--blue); }
.voice-avatar svg { width: 22px; height: 22px; }
.voice-who strong { display: block; font-size: 0.9rem; color: var(--navy); }
.voice-who small { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 960px) { .voice-list { grid-template-columns: 1fr; } }

/* ---------- フッター：ファーストビューと同じ街並みを敷く ---------- */
.site-footer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(14, 47, 107, 0.97) 0%, rgba(14, 47, 107, 0.88) 42%, rgba(14, 47, 107, 0.38) 100%),
    #0E2F6B url("../img/hero/city-sky.jpg") center 70% / cover no-repeat;
}
.site-footer .footer-inner { padding-bottom: 150px; }
.footer-bottom { position: relative; background: rgba(9, 30, 70, 0.55); border-top-color: rgba(255, 255, 255, 0.2); color: #DCE6F8; }
@media (max-width: 600px) {
  .site-footer { background-position: 65% bottom; }
  .site-footer .footer-inner { padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 第N版：建材カードのイラスト */
.material-card .material-illust { margin: 10px 0 0; display: flex; justify-content: center; }
.material-card .material-illust img { display: block; width: auto; height: 150px; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 600px) { .material-card .material-illust img { height: 130px; } }

/* ===================================================================
   第N版：代表挨拶（手紙のように読める2カラム）・お客様の声（口コミ風）・会社情報表
   =================================================================== */

/* ---------- 代表挨拶 ---------- */
.greet { position: relative; padding: 96px 0 104px; background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); overflow: clip; }
.greet::before {
  content: "";
  position: absolute;
  left: -120px;
  top: 120px;
  width: 44%;
  height: 72%;
  border-radius: 0 48px 48px 0;
  background: var(--blue);
}
.greet-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.greet-side { position: sticky; top: calc(var(--header-h) + 32px); }
.greet-photo { position: relative; margin: 0; }
.greet-photo::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 0 0 28px 0;
  border-right: 10px solid var(--orange);
  border-bottom: 10px solid var(--orange);
}
.greet-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 28px;
  box-shadow: 0 40px 60px -36px rgba(14, 47, 107, 0.7);
}
.greet-photo figcaption { display: none; }
.greet-nameplate {
  position: relative;
  margin: -44px 0 0 -12px;
  display: inline-flex;
  flex-direction: column;
  padding: 16px 26px 18px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 40px -26px rgba(14, 47, 107, 0.6);
}
.greet-nameplate span { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.greet-nameplate strong { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: 0.18em; line-height: 1.35; }

.greet-main { padding-top: 8px; }
.greet-heading { font-size: 1rem; font-weight: 800; color: var(--orange-deep); letter-spacing: 0.12em; }
.greet-heading::after { content: none; }
.greet .greet-catch {
  margin-top: 14px;
  padding: 0 0 0 22px;
  border-left: 6px solid var(--orange);
  font-size: clamp(1.6rem, 3.1vw, 2.5rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.greet .greet-catch::before { content: none; }
.greet-main .greet-letter-body { margin-top: 36px; }
.greet-main .greet-letter-body p { font-size: 1.02rem; line-height: 2.05; }
.greet-main .greet-letter-body p + p { margin-top: 1.1em; }

.greet .greet-voices { margin: 36px 0 0; padding: 26px 28px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.greet .greet-voices-title { font-weight: 800; color: var(--navy); }
.greet .greet-voices ul { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 0; }
.greet .greet-voices li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-radius: 0;
  background: none;
  border-top: 1px dashed var(--line);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.7;
}
.greet .greet-voices li:first-child { border-top: 0; }
.greet .greet-voices li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230E2F6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.greet .greet-promise {
  margin-top: 40px;
  padding: 30px 30px 28px;
  border: 0;
  border-radius: 24px;
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
}
.greet .greet-values { margin: 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.greet .greet-values li { padding: 0 8px; border: 0; border-radius: 0; background: none; text-align: center; }
.greet .greet-values li + li { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.greet .greet-values strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: 0.14em; color: var(--white); line-height: 1.3; }
.greet .greet-values li:nth-child(2) strong { color: #9FC0FF; }
.greet .greet-values li:nth-child(3) strong { color: #FFB04D; }
.greet .greet-values span { display: block; margin-top: 4px; font-size: 0.8rem; opacity: 0.85; }
.greet .greet-promise p { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.22); line-height: 1.95; }

.greet .greet-sign { margin-top: 32px !important; display: flex; flex-direction: column; align-items: flex-end; }
.greet .greet-sign-name { font-size: 1.9rem; letter-spacing: 0.22em; }

@media (max-width: 960px) {
  .greet { padding: 64px 0 72px; }
  .greet::before { top: 40px; width: 70%; height: 420px; }
  .greet-grid { grid-template-columns: 1fr; gap: 48px; }
  .greet-side { position: static; max-width: 360px; }
}
@media (max-width: 600px) {
  .greet-side { max-width: 300px; }
  .greet-nameplate strong { font-size: 1.35rem; }
  .greet .greet-voices { padding: 20px 18px; }
  .greet .greet-promise { padding: 24px 16px 22px; }
  .greet .greet-values strong { font-size: 1.45rem; letter-spacing: 0.08em; }
  .greet .greet-values span { font-size: 0.68rem; }
  .greet .greet-sign-name { font-size: 1.5rem; }
}

/* ---------- 会社情報の表：長い項目名を1行で ---------- */
.info-table > div { grid-template-columns: 16em 1fr; }
@media (max-width: 960px) { .info-table > div { grid-template-columns: 1fr; } }

/* ---------- お客様の声（口コミ風） ---------- */
.voices-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.voices-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}
.voices-score strong { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.voices-score span:not(.voice-stars) { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
.voice-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.voice-stars svg { width: 18px; height: 18px; }
.voice-stars .on { color: #F5B400; }
.voice-stars .off { color: #D7DCE5; }
.voices-score .voice-stars svg { width: 20px; height: 20px; }

.voices .voice-list { margin-top: 28px; }
.voices .voice {
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -20px rgba(14, 47, 107, 0.5);
}
.voices .voice::before { content: none; }
.voices .voice-who { margin: 0; padding: 0; border: 0; display: flex; align-items: center; gap: 12px; }
.voices .voice-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tint, var(--blue));
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
}
.voice-name { min-width: 0; line-height: 1.4; }
.voice-name strong { display: block; font-size: 0.95rem; color: var(--ink); }
.voice-name small { display: block; font-size: 0.76rem; color: var(--muted); }
.voice-rate { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.voice-rate time { font-size: 0.78rem; color: var(--muted); }
.voices .voice-title { margin-top: 8px; font-size: 1rem; font-weight: 800; color: var(--navy); line-height: 1.55; }
.voices .voice-text { margin-top: 6px; font-size: 0.92rem; line-height: 1.85; }
.voice-reply {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mist);
  font-size: 0.84rem;
  line-height: 1.75;
}
.voice-reply span { display: block; font-size: 0.76rem; font-weight: 800; color: var(--blue); }

/* 長い感想は3行で折りたたみ、「続きを読む」で開く */
.voices .voice-text.is-clamped { flex: none; max-height: calc(0.92rem * 1.85 * 3); overflow: hidden; position: relative; }
.voices .voice-text.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; background: linear-gradient(rgba(255, 255, 255, 0), var(--white)); }
.voice-toggle { margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.voices .voice .voice-toggle { align-self: flex-start; }
details.voice-reply { padding: 0; background: none; }
details.voice-reply summary { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 800; color: var(--blue); cursor: pointer; list-style: none; }
details.voice-reply summary::-webkit-details-marker { display: none; }
details.voice-reply summary::after { content: "＋"; font-weight: 700; }
details.voice-reply[open] summary::after { content: "－"; }
details.voice-reply p { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--mist); }
.voices-more-wrap { margin-top: 20px; text-align: center; }
.voices-more { padding: 10px 26px; border-radius: 999px; border: 1px solid var(--blue); background: var(--white); font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--blue); cursor: pointer; }
.voices-more:hover { background: var(--mist); }
@media (min-width: 961px) {
  .voices:not(.is-all) .voice.is-extra { display: none; }
  .voices.is-all .voices-more-wrap { display: none; }
}
@media (max-width: 960px) {
  .voices .voice-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; align-items: start; }
  .voices .voice { scroll-snap-align: start; }
  .voices-more-wrap { display: none; }
}
.greet::before { height: 560px; }
.greet .greet-catch { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
@media (max-width: 960px) { .greet::before { height: 420px; } }

/* 法令ボックス：罰則の代わりに「報告の期限」と「記録の保存」を表示 */
.law-keypoints strong { font-size: clamp(2rem, 3.6vw, 2.8rem); }
@media (max-width: 960px) { .law-penalty.law-keypoints { grid-template-columns: 1fr 1fr; } }

/* ===================================================================
   第N版：代表挨拶（上：言葉と写真／中：ご相談とお応え／下：約束と署名）
   =================================================================== */
.msg { position: relative; padding-bottom: 96px; background: var(--white); }
.msg-top {
  position: relative;
  padding: 80px 0 0;
  background: linear-gradient(180deg, #F4F8FF 0%, #E3EDFF 100%);
  overflow: clip;
}
.msg-top::before {
  content: "";
  position: absolute;
  right: 8%;
  top: 40px;
  width: 460px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 44px solid rgba(255, 138, 31, 0.16);
}
.msg-top-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 64px;
  align-items: end;
}
.msg-intro { padding-bottom: 72px; }
.msg-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange-deep);
  letter-spacing: 0.12em;
}
.msg-label::before { content: ""; width: 36px; height: 3px; border-radius: 2px; background: var(--orange); }
.msg-label::after { content: none; }
.msg-catch {
  margin-top: 18px;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.msg-lead { margin-top: 28px; max-width: 36em; }
.msg-lead p { line-height: 2; }
.msg-lead p + p { margin-top: 0.9em; }

.msg-photo { position: relative; margin: 0; }
.msg-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 999px 999px 0 0;
}
.msg-photo figcaption {
  position: absolute;
  left: -28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  padding: 14px 24px 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 24px 40px -24px rgba(14, 47, 107, 0.55);
  border-left: 5px solid var(--orange);
}
.msg-photo figcaption span { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.msg-photo figcaption strong { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: 0.18em; line-height: 1.35; }

/* ご相談 → お応え */
.msg-dialog {
  position: relative;
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.msg-dialog::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%230E2F6B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 12px 24px -12px rgba(242, 106, 0, 0.8);
}
.msg-sub { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.msg-worries ul { margin-top: 16px; display: grid; gap: 12px; }
.msg-worries li {
  position: relative;
  margin-left: 14px;
  padding: 14px 18px;
  border-radius: 4px 18px 18px 18px;
  background: #F1F3F7;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.7;
}
.msg-worries li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  border-top: 14px solid #F1F3F7;
  border-left: 14px solid transparent;
}
.msg-worries li:nth-child(even) { margin-left: 40px; }

.msg-answer {
  padding: 30px 30px 28px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  box-shadow: 0 30px 50px -40px rgba(14, 47, 107, 0.6);
}
.msg-answer > p:not(.msg-sub) { margin-top: 12px; line-height: 2; }
.msg-values { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.msg-values li { display: grid; justify-items: center; gap: 2px; padding: 16px 6px 14px; border-radius: 16px; background: var(--mist); text-align: center; }
.msg-value-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); }
.msg-values li:nth-child(3) .msg-value-icon { background: var(--orange); color: var(--navy); }
.msg-value-icon svg { width: 24px; height: 24px; }
.msg-values strong { margin-top: 6px; font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: 0.14em; line-height: 1.3; }
.msg-values span:not(.msg-value-icon) { font-size: 0.76rem; color: var(--muted); }

/* 約束と署名 */
.msg-close { margin-top: 72px; max-width: 860px; }
.msg-promise {
  position: relative;
  padding: 8px 0 0 64px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 2;
  color: var(--navy);
}
.msg-promise::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -12px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--orange);
}
.msg-sign { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-end; }
.msg-sign span { font-size: 0.88rem; color: var(--muted); }
.msg-sign strong { font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: 0.22em; line-height: 1.4; }

@media (max-width: 960px) {
  .msg-top { padding-top: 56px; }
  .msg-top::before { width: 300px; border-width: 30px; right: -60px; top: auto; bottom: 40px; }
  .msg-top-inner { grid-template-columns: 1fr; gap: 36px; }
  .msg-intro { padding-bottom: 0; }
  .msg-photo { max-width: 340px; margin: 0 auto; }
  .msg-photo figcaption { left: -12px; bottom: 20px; }
  .msg-dialog { grid-template-columns: 1fr; gap: 64px; margin-top: 56px; }
  .msg-dialog::before { transform: translate(-50%, -50%) rotate(90deg); }
}
@media (max-width: 600px) {
  .msg { padding-bottom: 72px; }
  .msg-worries li:nth-child(even) { margin-left: 14px; }
  .msg-answer { padding: 24px 18px 20px; }
  .msg-values strong { font-size: 1.1rem; letter-spacing: 0.06em; }
  .msg-values span:not(.msg-value-icon) { font-size: 0.66rem; }
  .msg-promise { padding-left: 44px; }
  .msg-promise::before { font-size: 3.6rem; }
  .msg-sign strong { font-size: 1.5rem; }
  /* スマホでは代表の名前を写真に重ねず、写真の下に出す */
  .msg-photo figcaption { position: static; width: fit-content; max-width: 100%; margin: 16px auto 0; align-items: center; text-align: center; }
  .msg-photo figcaption strong { font-size: 1.3rem; }
}
.msg-photo img { box-shadow: 0 0 0 1px rgba(38, 75, 145, 0.18), 0 40px 60px -40px rgba(14, 47, 107, 0.6); background: #DCE7FA; }

/* メニューがPC幅でも1行に収まるように詰める（1300px以下はハンバーガーメニュー） */
@media (min-width: 1301px) {
  .header-inner { gap: 18px; }
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 0.84rem; }
  .brand-mark { width: 72px; }
  .brand-name { font-size: 0.98rem; }
  .brand-sub { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .header-line, .header-actions .header-cta { padding-left: 14px; padding-right: 14px; font-size: 0.82rem; }
}

/* ---------- ファーストビュー：「Build What's Next」（ロゴ画像と同じ書体を画像で）・背景の街並みに東京タワー ---------- */
.hero-motto {
  right: max(3vw, 20px);
  bottom: 14px;
  width: clamp(240px, 30vw, 440px);
  transform: none;
  font-size: 0;
}
.hero-motto img { display: block; width: 100%; height: auto; }
.hero-motto svg { display: none; }
.hero-inner { position: relative; z-index: 1; }
@media (max-width: 960px) {
  .hero-motto { width: clamp(200px, 56vw, 320px); bottom: 10px; }
}
@media (max-width: 600px) {
  .hero { padding-bottom: 120px; }
  .hero-motto { width: 230px; right: 14px; bottom: 12px; }
}

/* 背景写真の街並みに東京タワーを紛れ込ませる（写真のかすみに合わせて薄く） */
.hero-tower {
  position: absolute;
  left: 47%;
  bottom: 40px;
  z-index: 0;
  width: auto;
  height: clamp(180px, 26vw, 300px);
  opacity: 0.55;
  filter: blur(0.5px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
@media (max-width: 960px) {
  .hero-tower { left: auto; right: 58%; bottom: 60px; height: 190px; opacity: 0.45; }
}
@media (min-width: 961px) {
  .hero-tower { left: 41%; bottom: 20px; height: clamp(170px, 17vw, 240px); opacity: 0.6; }
}

/* ===================================================================
   第N版：会社概要ページ「その他サービス」（グループの施工サービス）
   =================================================================== */
.others {
  position: relative;
  overflow: clip;
  background: linear-gradient(160deg, #0E2F6B 0%, var(--blue) 60%, #3A63AE 100%);
  color: var(--white);
}
.others::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -220px;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 60px solid rgba(255, 138, 31, 0.16);
}
.others .wrap { position: relative; }
.others h2 { color: var(--white); }
.others .block-lead { color: #DCE6F8; }

/* 工程のつながり */
.others-chain { margin-top: 32px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.others-chain li {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  line-height: 1.35;
}
.others-chain li + li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-1px, -50%) rotate(45deg);
  border-top: 2px solid #FFB04D;
  border-right: 2px solid #FFB04D;
}
.others-chain strong { font-size: 0.98rem; font-weight: 800; }
.others-chain small { font-size: 0.68rem; opacity: 0.85; }
.others-chain .is-here { background: var(--orange); border-color: var(--orange); color: var(--navy); }

/* サービスのカード（1枚目を大きく） */
.others-grid { margin-top: 28px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: auto; gap: 16px; }
.other-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 50px -40px rgba(0, 0, 0, 0.6);
}
.other-card.is-main { grid-row: span 2; background: linear-gradient(180deg, #FFF6EC 0%, var(--white) 55%); border-top: 6px solid var(--orange); }
.other-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mist); color: var(--blue); }
.other-card.is-main .other-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--orange); color: var(--navy); }
.other-icon svg { width: 28px; height: 28px; }
.other-card.is-main .other-icon svg { width: 34px; height: 34px; }
.other-card h3 { margin-top: 14px; font-size: 1.12rem; font-weight: 800; color: var(--navy); line-height: 1.45; }
.other-card.is-main h3 { font-size: 1.5rem; }
.other-card p { margin-top: 8px; font-size: 0.9rem; line-height: 1.8; }
.other-card.is-main p { font-size: 0.98rem; }
.other-items { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.other-items li { position: relative; padding-left: 18px; font-size: 0.84rem; font-weight: 700; color: var(--navy); line-height: 1.55; }
.other-items li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.other-card.is-main .other-items { margin-top: auto; padding-top: 16px; }

/* 強みと実績 */
.others-strengths { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: stretch; }
.others-strengths ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.others-strengths li { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
.others-strengths li strong { display: block; font-size: 1.02rem; font-weight: 800; color: #FFB04D; }
.others-strengths li span { display: block; margin-top: 4px; font-size: 0.82rem; line-height: 1.7; color: #DCE6F8; }
.others-record {
  display: grid;
  align-content: center;
  padding: 16px 26px;
  border-radius: 16px;
  background: var(--white);
  color: var(--navy);
  text-align: center;
}
.others-record span { font-size: 0.76rem; font-weight: 800; color: var(--orange-deep); }
.others-record strong { font-size: 1.3rem; font-weight: 800; line-height: 1.4; }
.others-record small { font-size: 0.8rem; color: var(--muted); }

.others-foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.others-foot p { font-size: 0.82rem; color: #DCE6F8; }

@media (max-width: 960px) {
  .others-chain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
  .others-chain li + li::before { left: -11px; }
  .others-chain li:nth-child(4)::before { display: none; }
  .others-grid { grid-template-columns: 1fr 1fr; }
  .other-card.is-main { grid-column: 1 / -1; grid-row: auto; }
  .others-strengths { grid-template-columns: 1fr; }
  .others-strengths ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .others-chain strong { font-size: 0.86rem; }
  .others-grid { grid-template-columns: 1fr; }
  .other-card.is-main h3 { font-size: 1.3rem; }
  .others-foot .btn { width: 100%; }
}
/* 1枚目（除去工事）は横長にして余白を出さない */
.others-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.other-card.is-main {
  grid-row: auto;
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr);
  column-gap: 22px;
  align-items: start;
}
.other-card.is-main .other-icon { grid-row: span 2; }
.other-card.is-main h3 { margin-top: 4px; grid-column: 2; }
.other-card.is-main p { grid-column: 2; }
.other-card.is-main .other-items { grid-column: 3; grid-row: 1 / span 2; margin-top: 4px; padding: 0 0 0 20px; border-top: 0; border-left: 1px dashed #F3C79B; align-self: stretch; align-content: center; }
@media (max-width: 960px) {
  .others-grid { grid-template-columns: 1fr 1fr; }
  .other-card.is-main { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); }
  .other-card.is-main .other-items { grid-column: 1 / -1; grid-row: auto; margin-top: 16px; padding: 14px 0 0; border-left: 0; border-top: 1px dashed #F3C79B; }
}
@media (max-width: 600px) {
  .others-grid { grid-template-columns: 1fr; }
  .other-card.is-main { grid-template-columns: 1fr; }
  .other-card.is-main .other-icon { grid-row: auto; }
  .other-card.is-main h3, .other-card.is-main p { grid-column: 1; margin-top: 12px; }
}
.other-card.is-main { grid-template-rows: auto 1fr; }
.other-card.is-main h3 { font-size: 1.6rem; }
.other-card.is-main { grid-template-rows: auto auto 1fr; }
.other-card.is-main .other-icon { grid-row: span 3; }
.other-card.is-main .other-items { grid-row: 1 / span 3; }
.other-cta { grid-column: 2; justify-self: start; align-self: end; margin-top: 18px; }
@media (max-width: 960px) { .other-card.is-main .other-icon { grid-row: span 2; } .other-card.is-main .other-items { grid-row: auto; } }
@media (max-width: 600px) { .other-cta { grid-column: 1; width: 100%; } .other-card.is-main .other-icon { grid-row: auto; } }
/* 東京タワー：線のくっきりしたSVGで、画像と同じ淡い青。根元は街並みのかすみに溶かす */
.hero-tower { opacity: 0.8; filter: none; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 96%); mask-image: linear-gradient(180deg, #000 60%, transparent 96%); }
@media (min-width: 961px) {
  .hero-tower { left: 42%; bottom: 0; height: clamp(220px, 23vw, 330px); opacity: 0.78; }
}
@media (max-width: 960px) { .hero-tower { height: 220px; bottom: 30px; opacity: 0.6; } }
@media (min-width: 961px) {
  .hero-tower { left: 46%; height: clamp(200px, 17.5vw, 260px); opacity: 0.62; }
}

/* ===================================================================
   第N版：お問い合わせの送信確認画面
   =================================================================== */
.form-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.form-steps li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}
.form-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--white); color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.form-steps li.is-current { background: var(--navy); color: var(--white); }
.form-steps li.is-current span { background: var(--orange); color: var(--navy); }
.form-steps.is-done { margin-bottom: 28px; }

.form-fields[hidden], .form-confirm[hidden] { display: none; }
.form-confirm-lead { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; background: #FFF7EE; border-left: 4px solid var(--orange); font-weight: 700; color: var(--navy); outline: none; }
.confirm-list { border-top: 2px solid var(--navy); }
.confirm-list > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.confirm-list dt { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.confirm-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.confirm-list dd.is-empty { color: var(--muted); }
.confirm-actions { margin-top: 26px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.confirm-actions .btn { min-height: 56px; }
#confirm-send[disabled] { opacity: 0.7; cursor: progress; }
.thanks-mail-note { padding: 14px 16px; border-radius: 12px; background: var(--mist); font-size: 0.92rem; }
@media (max-width: 600px) {
  .form-steps li { flex-direction: column; gap: 2px; padding: 8px 4px; border-radius: 14px; font-size: 0.78rem; }
  .confirm-list > div { grid-template-columns: 1fr; gap: 2px; }
  .confirm-actions { grid-template-columns: 1fr; }
  .confirm-actions #confirm-send { order: -1; }
}

/* ==========================================================================
   第20版：スマホのヒーロー背景（東京の街並み）・改行の整理・ヘッダーの「〜する」
   ========================================================================== */
/* 文の区切り（phrase）の途中では改行しない */
.phrase { display: inline-block; }

/* 「お急ぎの検体分析から〜」の見出し：2文目は小さめの補足にする */
.routes-title-sub { display: block; margin-top: 0.5em; font-size: 0.62em; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }

/* 「アスベスト事前調査専門機関」のバッジを大きく */
.hero .hero-badge { font-size: 1.2rem; padding: 10px 22px 10px 14px; gap: 12px; }
.hero .hero-badge::before { width: 16px; height: 16px; }
@media (max-width: 960px) { .hero .hero-badge { font-size: 1.05rem; } }
@media (max-width: 600px) {
  .hero .hero-badge { font-size: 0.86rem; padding: 6px 14px 6px 10px; gap: 7px; white-space: nowrap; }
  .hero .hero-badge::before { width: 11px; height: 11px; }
}

/* ヘッダーの「LINEで相談する」「お問い合わせする」
   電話番号も並ぶ 1481〜1639px と、メニューを畳む 1300px 以下では「する」を省いて1行に収める */
.header-actions .header-cta,
.header-actions .header-line { white-space: nowrap; }
.pc-only { display: none; }
@media (min-width: 1301px) and (max-width: 1480px) { .pc-only { display: inline; } }
@media (min-width: 1640px) { .pc-only { display: inline; } }

/* 東京の街並みの背景（PC・スマホ共通。画像はメディアライブラリの hero-tokyo-sp.jpg、元ファイルは assets/img/hero/）
   画像に Build What's Next と東京タワーが入っているので、文字画像とタワーのイラストは重ねない */
.hero { background: linear-gradient(180deg, #E2EEFC 0%, #F1F7FE 55%, #FFFFFF 100%); }
.hero .hero-inner { z-index: 1; }
.hero-motto,
.hero-tower { display: none; }

/* PC・タブレット：画像を横幅いっぱいに敷き、ビルと東京タワーを下に並べる。左側は文字が読めるよう白く霞ませる */
@media (min-width: 601px) {
  /* 画像の中の Build What's Next は大きく拡大されるので画面の下に外し、くっきりした文字画像（.hero-motto）を重ねる */
  .hero { background: #EAF3FD url("/wp-content/uploads/2026/10/hero-tokyo-sp.jpg") 50% 70% / cover no-repeat; }
  .hero-motto { display: block; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.62) 36%, rgba(255, 255, 255, 0) 62%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 30%);
  }
}

@media (max-width: 600px) {
  /* スマホ：画像を下に敷き、上端を背景色にぼかす。街並みはボタンの下に出す */
  .hero {
    padding-bottom: 56vw;
    background:
      linear-gradient(180deg, #EEF5FD 0, #EEF5FD calc(100% - 106vw), rgba(238, 245, 253, 0) calc(100% - 106vw + 160px)),
      url("/wp-content/uploads/2026/10/hero-tokyo-sp.jpg") center bottom / 100% auto no-repeat,
      #EEF5FD;
  }
  .hero::before { background: none; }
  /* 文字を減らす：補足の説明は下の「分析コース」「採取・分析コース」と同じ内容なので省く */
  .hero-lead { display: none; }

  .hero h1 { font-size: clamp(1.1rem, 5.2vw, 1.3rem); line-height: 1.55; }
  .hero h1 br { display: none; }
  .hero h1 .phrase { display: block; }

  .routes-title { font-size: clamp(1.15rem, 5.4vw, 1.35rem); line-height: 1.55; }
  .routes-title br { display: none; }
  .routes-title-sub { font-size: 0.68em; }
}

/* ==========================================================================
   第22版：トップのスライド（今のトップ画面 → LPバナー を6秒ごとに切り替え）
   ========================================================================== */
.hero-slider { position: relative; overflow: hidden; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; min-width: 0; transition: transform 0.8s cubic-bezier(0.6, 0, 0.2, 1); }
.hero-slide:not(.is-active):not(.is-leaving) { visibility: hidden; }
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #A9D6FA 0%, #EAF6FF 55%, #FFF5C4 100%);
}
.hero-banner picture { display: contents; }
/* バナーはトップ画面の高さに収める（トップ画面の高さは変えない。余白は背景のグラデーション） */
.hero-banner { position: absolute; inset: 0; }
.hero-banner img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px -8px rgba(14, 47, 107, 0.45);
  transform: translateX(-50%);
}
.hero-dot { width: 26px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #C3CFE3; cursor: pointer; transition: background 0.3s, width 0.3s; }
.hero-dot.is-active { width: 40px; background: var(--blue); }
.hero-dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hero-track { position: relative; }
@media (max-width: 767px) {
  .hero-dots { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
