:root {
  color-scheme: light;
  --navy: #0B1420;
  --ink: #1A2A3A;
  --muted: #52606A;
  --ivory: #FAF7F0;
  --paper: #FFFFFF;
  --sand: #F3EFE7;
  --rule: #D8D0C2;
  --gold: #856028;
  --gold-light: #F2C879;
  --teal: #22D3C5;
  --side: clamp(16px, 4vw, 40px);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
body { min-width: 0; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid #28696C; outline-offset: 5px; }
h1, h2, h3 { font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; }
h1, h2, h3, p, li, a, figure, nav, div { min-width: 0; }
section, [id] { scroll-margin-top: 120px; }
.container { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: var(--side); }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 100; padding: 12px 20px; background: white; color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--navy); color: var(--ivory); border-bottom: 1px solid #3E3D36; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin-inline: auto; padding: 8px var(--side); }
.brand { flex-shrink: 0; display: block; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
.desktop-navigation { display: none; }
.mobile-navigation { position: static; }
.mobile-navigation summary { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding-inline: 12px; cursor: pointer; font-size: 14px; list-style: none; }
.mobile-navigation summary::-webkit-details-marker { display: none; }
.mobile-navigation[open] summary > span { transform: rotate(45deg); }
.mobile-navigation nav { position: absolute; top: 100%; left: 0; right: 0; max-height: 70vh; max-height: 70dvh; overflow-y: auto; padding: 12px var(--side) 24px; background: var(--navy); border-bottom: 1px solid #68717A; }
.mobile-navigation nav a { display: flex; align-items: center; min-height: 52px; padding: 12px 8px; border-bottom: 1px solid #35414C; font-size: 15px; text-decoration: none; }
.mobile-navigation nav a[aria-current="page"] { color: var(--gold-light); }
.mobile-navigation nav .header-line { margin-top: 16px; justify-content: center; background: var(--teal); color: var(--navy); border: 0; font-weight: 600; }
.site-header a:focus-visible, .site-header summary:focus-visible, .site-footer a:focus-visible, .support a:focus-visible { outline-color: var(--gold-light); }
.guide-title { padding: 28px 0 0; background: var(--ivory); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: underline; text-decoration-thickness: 1px; }
.back-link:hover { text-decoration: underline; }
.eyebrow { margin-top: 44px; color: var(--gold); font: 500 11px/1.6 Georgia, serif; letter-spacing: .22em; }
h1 { margin-top: 20px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.65; letter-spacing: .025em; }
.guide-lead { max-width: 45em; margin-top: 28px; font-size: 16px; line-height: 2; }
.guide-lead p + p { margin-top: 18px; }
.page-index { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; padding-block: 0; border-top: 1px solid var(--rule); }
.page-index a { display: flex; align-items: center; min-height: 48px; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 500; line-height: 1.7; text-decoration: underline; text-decoration-thickness: 1px; }
.page-index a:hover { text-decoration: underline; }
.page-index span { flex: 0 0 2em; color: var(--gold); font-family: Georgia, serif; font-size: 12px; font-weight: 400; }
.guide-section { padding-block: clamp(56px, 8vw, 100px); }
.section-heading { margin-bottom: 30px; }
.section-number { color: var(--gold); font: 500 20px/1.5 Georgia, serif; }
.section-number span { display: inline-block; margin-left: 12px; font-size: 10px; letter-spacing: .16em; vertical-align: middle; }
h2 { margin-top: 14px; font-size: clamp(27px, 3.5vw, 36px); line-height: 1.65; letter-spacing: .03em; }
.section-description { max-width: 40em; margin-top: 18px; color: var(--muted); font-size: 16px; }
.client-figure { margin-inline: auto; }
.services-figure { max-width: 960px; }
.image-link { display: block; }
.image-link img { width: 100%; height: auto; object-fit: contain; }
.image-link:hover { outline: 1px solid var(--gold); outline-offset: 5px; }
figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.image-original { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 13px; font-weight: 500; }
figcaption > .image-original { display: flex; width: fit-content; max-width: 100%; }
.services { background: white; }
.introduction { background: var(--ivory); border-top: 1px solid var(--rule); }
.introduction-figure { max-width: 740px; }
.delivery { background: white; }
.delivery-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
.delivery .section-heading { margin-bottom: 18px; }
.delivery-figure { width: 100%; max-width: 405px; }
.material-pending { margin-top: 28px; padding: 18px 0 18px 20px; border-left: 2px solid var(--gold); color: var(--muted); font-size: 14px; line-height: 1.85; }
.material-pending p + p { margin-top: 10px; }
.pending-label { color: var(--gold); font-size: 13px; font-weight: 600; }
.support { padding-bottom: 0; background: var(--navy); color: #D9E0E5; }
.light-number { color: var(--gold-light); }
.after-support-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "visual" "copy"; gap: 28px; margin-top: 14px; align-items: start; }
.after-support-heading { grid-area: heading; margin: 0; color: var(--ivory); }
.after-support-visual { grid-area: visual; width: 100%; max-width: 420px; margin-inline: auto; }
.after-support-visual figcaption { color: #B7C2CB; }
.after-support-copy { grid-area: copy; }
.support-lead { margin-bottom: 26px; font-size: 17px; }
.support-check-list { list-style: none; padding: 0; }
.support-check-list li { padding-block: 16px; border-bottom: 1px solid #35414C; font-size: 16px; }
.support-check-list li:first-child { border-top: 1px solid #35414C; }
.support-conditions { margin-top: 24px; font-size: 14px; line-height: 1.95; }
.repair-intro { margin-top: 32px; padding-top: 28px; border-top: 1px solid #48535E; }
.repair-intro h3 { color: var(--ivory); font-size: 25px; line-height: 1.7; }
.repair-intro > p { margin-top: 18px; font-size: 15px; line-height: 1.95; }
.repair-intro .repair-subtitle { color: var(--gold-light); font-size: 16px; }
.repair-intro .support-detail-note { font-size: 14px; color: #B7C2CB; }
.support-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 18px; font-size: 15px; }
.support-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; margin-top: 40px; padding-block: 20px; border-top: 1px solid #48535E; color: var(--gold-light); font-size: 15px; text-decoration: none; }
.repair-flow { background: var(--sand); border-top: 3px solid #B9AA91; }
.repair-figure { max-width: 760px; }
.line-consultation { background: var(--ivory); border-top: 1px solid var(--rule); }
.consultation-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.consultation-copy > p:not(.section-number) { max-width: 37em; margin-top: 22px; font-size: 16px; }
.consultation-copy .consultation-note { color: var(--muted); font-size: 14px; }
.line-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: fit-content; max-width: 100%; min-height: 60px; margin-top: 28px; padding: 14px 22px; background: var(--teal); color: var(--navy); font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 999px; }
.line-button img { flex-shrink: 0; width: 28px; height: auto; object-fit: contain; }
.line-button:hover, .header-line:hover { background: #6FE3D6; }
.line-qr { width: 160px; margin-inline: auto; }
.line-qr a { display: block; }
.site-footer { padding-block: 32px 24px; background: var(--navy); color: var(--ivory); }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 60px; height: 60px; object-fit: contain; }
.footer-brand p { font: 400 18px/1.5 Georgia, serif; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding-block: 8px; border-bottom: 1px solid #606970; font-size: 14px; text-decoration: none; }
.footer-copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid #35414C; font-size: 11px; color: #B7C2CB; }
@media (min-width: 768px) {
  .guide-title { padding-top: 36px; }
  .eyebrow { margin-top: 64px; }
  .guide-lead { font-size: 17px; }
  .page-index { display: flex; flex-wrap: wrap; margin-top: 64px; column-gap: 30px; padding-block: 24px; }
  .page-index a { display: inline-flex; padding-block: 0; border-bottom: 0; }
  .page-index span { flex-basis: auto; }
  .section-heading { margin-bottom: 40px; }
  .delivery-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 405px); gap: clamp(32px, 5vw, 72px); }
  .delivery-copy { padding-top: 20px; }
  .consultation-layout { grid-template-columns: minmax(0, 1fr) 180px; gap: 48px; }
  .line-qr { width: 180px; }
}
@media (min-width: 1000px) {
  .after-support-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: auto 1fr; grid-template-areas: "heading visual" "copy visual"; gap: 28px 56px; }
  .after-support-visual { max-width: 420px; }
  .support-next { margin-top: 56px; }
}
@media (min-width: 1100px) {
  .mobile-navigation { display: none; }
  .desktop-navigation { display: flex; align-items: center; gap: 22px; }
  .desktop-navigation a { display: inline-flex; align-items: center; min-height: 48px; font-size: 13px; text-decoration: none; }
  .desktop-navigation a[aria-current="page"] { color: var(--gold-light); border-bottom: 1px solid var(--gold-light); }
  .desktop-navigation .header-line { padding-inline: 18px; background: var(--teal); color: var(--navy); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; }
}
@media print {
  .site-header { position: static; }
  .mobile-navigation { display: none; }
  .guide-section, .guide-title { break-inside: auto; }
  .image-original { display: none; }
}

/* v3 guide only: retain the v2 design; give the supplied delivery image a readable column. */
.image-reading-note { max-width: 48em; padding-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.delivery-copy { padding-top: 0; }
.delivery-copy .section-description { margin-top: 18px; }
.delivery .material-pending { max-width: 44em; margin-bottom: 36px; }
.delivery-figure { max-width: 680px; }
.image-link { touch-action: manipulation; }

@media (min-width: 768px) {
  @supports (grid-template-rows: subgrid) {
    #line-consultation .consultation-layout {
      grid-template-rows: auto auto auto auto [cta-end] auto;
      row-gap: 0;
    }

    /* Share rows for the label, heading, description, CTA, and note. */
    #line-consultation .consultation-copy {
      display: grid;
      grid-column: 1;
      grid-row: 1 / -1;
      grid-template-rows: subgrid;
      grid-template-columns: fit-content(100%) minmax(0, 1fr);
      align-self: stretch;
    }

    #line-consultation .consultation-copy > .section-number,
    #line-consultation .consultation-copy > h2 {
      grid-column: 1 / -1;
    }

    #line-consultation .consultation-copy > p:not(.section-number),
    #line-consultation .consultation-copy > .guide-fv-line-cta {
      grid-column: 1;
    }

    #line-consultation .line-qr {
      grid-column: 2;
      grid-row: 1 / cta-end;
      translate: 0 20%;
      align-self: end;
    }
  }
}

@media (width < 768px) {
  #line-consultation .line-qr {
    display: none;
  }
}
