:root {
      color-scheme: light;
      --bg: #f8f8f6;
      --panel: rgba(255, 255, 255, .92);
      --panel-strong: #ffffff;
      --line: rgba(17, 19, 23, .14);
      --line-cool: rgba(17, 19, 23, .16);
      --text: #101113;
      --muted: rgba(16, 17, 19, .64);
      --dim: rgba(16, 17, 19, .44);
      --gold: #101113;
      --cyan: #5d6874;
      --black: #101113;
      --amazon: #ff9900;
      --radius: 6px;
      --shadow: 0 24px 70px rgba(16, 17, 19, .11);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      font-family: "Meiryo UI", Meiryo, "Yu Gothic", sans-serif;
      background: linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #ffffff 100%);
      letter-spacing: 0;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(rgba(16,17,19,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,17,19,.04) 1px, transparent 1px);
      background-size: 84px 84px, 84px 84px;
      mask-image: linear-gradient(180deg, #000 0 68%, transparent 100%);
      opacity: .42;
      z-index: -2;
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, transparent, rgba(255,255,255,.58));
      z-index: -1;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }

    .nav {
      position: fixed;
      inset: 16px 20px auto;
      z-index: 50;
      display: grid;
      grid-template-columns: auto 1fr auto auto;
      align-items: center;
      gap: 18px;
      padding: 12px 14px 12px 18px;
      border: 1px solid rgba(16,17,19,.16);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .9);
      box-shadow: 0 18px 48px rgba(16, 17, 19, .08);
      backdrop-filter: blur(22px);
    }

    .brand {
      width: clamp(150px, 14vw, 198px);
      flex: 0 0 clamp(150px, 14vw, 198px);
      display: grid;
      justify-items: start;
      gap: 2px;
      min-width: 0;
      font-weight: 800;
      white-space: nowrap;
    }

    .brand img {
      width: clamp(150px, 14vw, 198px);
      height: clamp(42px, 4vw, 56px);
      object-fit: contain;
      object-position: left center;
    }

    .brand-text {
      display: block;
      margin-left: 6px;
      color: #101113;
      font-family: "Meiryo UI", Meiryo, "Yu Gothic", sans-serif;
      font-size: 10px;
      font-weight: 850;
      letter-spacing: .18em;
      line-height: 1;
    }

    .nav-links {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      justify-content: center;
      gap: 4px;
      min-width: 0;
    }

    .nav-links a {
      position: relative;
      padding: 10px 12px;
      border-radius: 6px;
      white-space: nowrap;
      text-transform: uppercase;
      font-family: "Meiryo UI", Meiryo, "Yu Gothic", sans-serif;
      font-size: 13px;
      font-weight: 850;
      letter-spacing: 0;
    }

    .nav-links a:hover,
    .nav-links a.active {
      color: var(--text);
      background: rgba(20,24,32,.055);
    }

    .nav-links a.active::after {
      content: "";
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 5px;
      height: 1px;
      background: currentColor;
    }

    .button.amazon {
      grid-column: 3;
      justify-self: end;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 18px;
      border-radius: 7px;
      border: 1px solid rgba(20,24,32,.2);
      color: var(--text);
      background: rgba(255,255,255,.88);
      font-size: 14px;
      font-weight: 850;
      transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
      white-space: nowrap;
    }

    .button:hover {
      transform: translateY(-1px);
      border-color: rgba(84,217,255,.55);
      box-shadow: 0 16px 36px rgba(84,217,255,.12);
    }

    .button.amazon {
      color: #171006;
      border-color: var(--amazon);
      background: linear-gradient(135deg, #ffb33f, var(--amazon));
    }

    .button.gold {
      color: #fff;
      border-color: #101113;
      background: #101113;
    }

    section.page {
      display: none;
      min-height: 100vh;
      padding: 126px 0 70px;
    }

    section.page.active { display: block; }

    #home {
      position: relative;
      isolation: isolate;
      overflow: hidden;
    }

    .hero-photo-panel {
      position: relative;
      width: min(1280px, calc(100% - 32px));
      margin: 0 auto 48px;
      border: 1px solid rgba(16,17,19,.14);
      border-radius: var(--radius);
      overflow: hidden;
      background: #fff;
      box-shadow: var(--shadow);
      transition: opacity .12s linear;
      will-change: opacity;
    }

    .hero-photo-panel::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.2));
    }

    .hero-photo-panel img,
    .hero-photo-panel video {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      object-position: center center;
      background: #0f1012;
    }

    .hero-video-caption {
      position: absolute;
      left: clamp(18px, 3vw, 40px);
      right: clamp(18px, 3vw, 40px);
      bottom: clamp(18px, 3vw, 36px);
      z-index: 2;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      color: #fff;
      font-family: "Meiryo UI", Meiryo, "Yu Gothic", sans-serif;
      font-size: clamp(11px, 1.2vw, 14px);
      font-weight: 850;
      text-transform: uppercase;
    }

    .wrap {
      width: min(1180px, calc(100% - 44px));
      margin: 0 auto;
    }

    .home-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
      gap: clamp(34px, 6vw, 84px);
      align-items: start;
      min-height: auto;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 20px;
      color: var(--gold);
      font-family: "Meiryo UI", Meiryo, "Yu Gothic", sans-serif;
      font-size: 12px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .12em;
    }

    .eyebrow::before {
      content: "";
      width: 32px;
      height: 1px;
      background: linear-gradient(90deg, var(--cyan), var(--gold));
    }

    h1, h2, h3, p { margin-top: 0; }

    h1 {
      margin-bottom: 22px;
      max-width: 920px;
      font-size: clamp(42px, 7.2vw, 104px);
      line-height: .88;
      font-weight: 860;
      letter-spacing: 0;
      white-space: normal;
    }

    .lead {
      max-width: 620px;
      margin-bottom: 0;
      color: var(--muted);
      font-size: clamp(17px, 2vw, 21px);
      line-height: 1.8;
      font-weight: 550;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 34px;
    }

    .route-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 44px;
      max-width: 660px;
    }

    .route-card {
      position: relative;
      min-height: 132px;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255,255,255,.72);
      overflow: hidden;
    }

    .route-card::after {
      content: "";
      position: absolute;
      right: 18px;
      bottom: 18px;
      width: 42px;
      height: 1px;
      background: linear-gradient(90deg, var(--cyan), var(--gold));
    }

    .route-card strong {
      display: block;
      margin-bottom: 9px;
      font-size: 21px;
      line-height: 1.15;
      text-transform: uppercase;
    }

    .route-card span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
      font-weight: 650;
    }

    .home-news {
      margin-top: clamp(40px, 6vw, 72px);
    }

    .home-news-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 20px;
      margin-bottom: 16px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }

    .home-news-head h2 {
      margin-bottom: 0;
      font-size: clamp(28px, 4vw, 48px);
      line-height: 1.05;
    }

    .home-news-head p {
      max-width: 460px;
      margin-bottom: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
      font-weight: 650;
    }

    .home-news-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .home-news-card {
      min-height: 260px;
      display: grid;
      align-content: start;
    }

    .home-news-card .chips {
      margin-bottom: 0;
    }

    .home-news-actions {
      display: flex;
      justify-content: flex-end;
      margin-top: 18px;
    }

    .tech-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 34px;
      max-width: 720px;
    }

    .tech-card {
      padding: 18px;
      border: 1px solid var(--line-cool);
      border-radius: var(--radius);
      background: rgba(255,255,255,.76);
    }

    .tech-card strong {
      display: block;
      margin-bottom: 8px;
      color: var(--text);
      font-size: 16px;
    }

    .tech-card span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.65;
      font-weight: 650;
    }

    .device-stage {
      position: relative;
      min-height: 560px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background:
        linear-gradient(180deg, #fff, #f1f2f2);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .device-stage::before {
      content: "01 / PRODUCT";
      position: absolute;
      top: 24px;
      right: 24px;
      color: rgba(247,242,231,.28);
      font-family: "Meiryo UI", Meiryo, "Yu Gothic", sans-serif;
      font-size: 11px;
      font-weight: 850;
      letter-spacing: .16em;
    }

    .device-stage::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
      background-size: 46px 46px;
      mask-image: linear-gradient(180deg, #000, transparent 88%);
      pointer-events: none;
    }

    .device-main {
      position: absolute;
      left: clamp(22px, 5vw, 54px);
      right: clamp(22px, 5vw, 54px);
      top: 96px;
      padding: 18px;
      border: 1px solid rgba(84,217,255,.32);
      border-radius: var(--radius);
      background: rgba(5,6,8,.64);
      box-shadow: 0 34px 70px rgba(0,0,0,.5);
      z-index: 2;
    }

    .device-main img {
      width: 100%;
      aspect-ratio: 1.2 / 1;
      object-fit: contain;
      border-radius: 6px;
      background: #fff;
    }

    .floating-spec {
      position: absolute;
      z-index: 4;
      left: 28px;
      bottom: 26px;
      display: grid;
      grid-template-columns: repeat(3, auto);
      gap: 1px;
      border: 1px solid rgba(247,242,231,.14);
      border-radius: var(--radius);
      overflow: hidden;
      background: rgba(0,0,0,.38);
      backdrop-filter: blur(14px);
    }

    .floating-spec span {
      padding: 15px 18px;
      background: rgba(255,255,255,.06);
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
      letter-spacing: .08em;
    }

    .page-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 36px;
      align-items: end;
      margin-bottom: 34px;
      padding-bottom: 28px;
      border-bottom: 1px solid var(--line);
    }

    .page-head h1,
      .page-head h2 {
      margin-bottom: 0;
      font-size: clamp(30px, 4.6vw, 64px);
      line-height: .98;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .blur-title {
      display: inline-block;
      will-change: opacity, filter, transform;
    }

    .blur-title.animate {
      animation: blurTitleIn .72s cubic-bezier(.2, .8, .2, 1) both;
    }

    @keyframes blurTitleIn {
      0% {
        opacity: 0;
        filter: blur(14px);
        transform: translateY(18px) scale(.985);
      }
      55% {
        opacity: 1;
        filter: blur(3px);
      }
      100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .blur-title.animate {
        animation: none;
      }
    }

    .page-head p {
      margin-bottom: 0;
      color: var(--muted);
      line-height: 1.75;
      font-weight: 560;
    }

    .products-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .product-card,
    .info-card,
    .review-card,
    .company-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
      box-shadow: 0 18px 50px rgba(0,0,0,.22);
      overflow: hidden;
    }

    .info-card {
      display: block;
    }

    .product-media {
      position: relative;
      aspect-ratio: 1 / .86;
      background: #fff;
      overflow: hidden;
    }

    .product-media img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      padding: 8px;
    }

    .badge {
      position: absolute;
      top: 13px;
      left: 13px;
      padding: 7px 10px;
      border: 1px solid rgba(247,242,231,.18);
      border-radius: 999px;
      background: rgba(5,6,8,.66);
      color: var(--gold);
      font-size: 12px;
      font-weight: 850;
      backdrop-filter: blur(12px);
    }

    .product-body,
    .info-card,
    .review-card,
    .company-card { padding: 24px; }

    .product-body h3,
    .info-card h3,
    .review-card h3 {
      margin-bottom: 12px;
      font-size: 22px;
      line-height: 1.28;
    }

    .product-body p,
    .info-card p,
    .review-card p,
    .company-card p {
      color: var(--muted);
      line-height: 1.72;
      font-size: 14px;
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 18px 0 22px;
    }

    .chips span {
      padding: 7px 9px;
      border: 1px solid rgba(84,217,255,.22);
      border-radius: 999px;
      color: rgba(247,242,231,.78);
      font-size: 12px;
      font-weight: 800;
    }


    .model-code {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      margin-bottom: 12px;
      padding: 6px 10px;
      border: 1px solid rgba(84,217,255,.24);
      border-radius: 999px;
      color: var(--cyan);
      background: rgba(84,217,255,.08);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .lineup-card {
      display: grid;
      gap: 16px;
    }

    .lineup-table {
      display: grid;
      gap: 0;
      overflow: hidden;
      border: 1px solid rgba(247,242,231,.12);
      border-radius: 8px;
      background: rgba(255,255,255,.035);
    }

    .lineup-row {
      display: grid;
      grid-template-columns: 140px repeat(var(--lineup-cols, 3), minmax(0, 1fr));
      border-bottom: 1px solid rgba(247,242,231,.1);
    }

    .lineup-row:last-child {
      border-bottom: 0;
    }

    .lineup-row > span {
      padding: 12px 14px;
      border-right: 1px solid rgba(247,242,231,.1);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      font-weight: 700;
    }

    .lineup-row > span:last-child {
      border-right: 0;
    }

    .lineup-row .lineup-head {
      color: var(--text);
      background: rgba(255,255,255,.06);
      font-weight: 900;
    }

    .price-line {
      display: grid;
      gap: 10px;
      margin: 0 0 20px;
      padding: 12px 14px;
      border: 1px solid rgba(215,181,109,.28);
      border-radius: 7px;
      background: rgba(215,181,109,.08);
      line-height: 1.45;
    }

    .price-line .msrp {
      color: var(--dim);
      font-size: 16px;
      font-weight: 850;
      text-decoration: line-through;
      text-decoration-thickness: 1.5px;
      text-decoration-color: rgba(247,242,231,.78);
    }

    .price-line .off {
      width: fit-content;
      padding: 4px 8px;
      border-radius: 999px;
      color: #11100d;
      background: linear-gradient(135deg, #f3df9d, #cda156);
      font-size: 12px;
      font-weight: 950;
    }

    .price-line .sale {
      color: var(--gold);
      font-size: 18px;
      font-weight: 950;
    }

    .price-line small {
      color: var(--dim);
      font-size: 11px;
      font-weight: 800;
    }

    .product-review {
      margin-top: 16px;
      padding: 14px;
      border: 1px solid rgba(84,217,255,.2);
      border-radius: 7px;
      background: rgba(84,217,255,.055);
    }

    .product-review strong {
      display: block;
      margin-bottom: 8px;
      color: var(--gold);
      font-size: 13px;
      font-weight: 900;
    }

    .product-review p {
      margin: 0;
      font-size: 13px;
      line-height: 1.65;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 14px;
    }

    .news-layout {
      display: block;
    }

    .vehicle-inspection-sidebar {
      position: sticky;
      top: 104px;
      align-self: start;
    }

    .vehicle-inspection-feature {
      margin: 0;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }

    .feature-card {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
      box-shadow: var(--shadow);
    }

    .feature-card.wide { grid-column: 1 / -1; }

    .feature-card img {
      width: 100%;
      aspect-ratio: 1.72 / 1;
      object-fit: contain;
      background: #fff;
    }

    .feature-card.wide img {
      aspect-ratio: 1.95 / 1;
    }

    .feature-body {
      padding: 24px;
    }

    .feature-body h3 {
      margin-bottom: 12px;
      font-size: clamp(24px, 3vw, 38px);
      line-height: 1.15;
    }

    .feature-body p {
      color: var(--muted);
      line-height: 1.75;
      font-size: 14px;
    }

    .business-capability-grid {
      gap: 20px;
      margin: 30px 0 34px;
    }

    .business-capability-card {
      position: relative;
      display: grid;
      align-content: start;
      gap: 16px;
      min-height: 218px;
      padding: 24px;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9)),
        radial-gradient(circle at 100% 0, rgba(247,163,24,.13), transparent 34%);
    }

    .business-capability-card::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      background: linear-gradient(180deg, var(--amazon), #101113);
    }

    .business-capability-top {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .business-step {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: 999px;
      color: #fff;
      background: #101113;
      font-size: 13px;
      font-weight: 900;
      line-height: 1;
      flex: 0 0 auto;
    }

    .business-kicker {
      color: rgba(20,24,32,.56);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .14em;
    }

    .business-capability-card h3 {
      margin: 0;
      font-size: clamp(22px, 2.2vw, 30px);
      line-height: 1.22;
    }

    .business-capability-card p {
      margin: 0;
      color: rgba(20,24,32,.72);
      font-size: 14px;
      line-height: 1.85;
      font-weight: 560;
    }

    .business-card-tag {
      align-self: end;
      justify-self: start;
      padding: 7px 11px;
      border: 1px solid rgba(20,24,32,.12);
      border-radius: 999px;
      color: rgba(20,24,32,.72);
      background: rgba(255,255,255,.74);
      font-size: 12px;
      font-weight: 850;
    }

    .video-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }

    .video-card {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
      box-shadow: var(--shadow);
    }

    .video-frame {
      position: relative;
      aspect-ratio: 16 / 9;
      background: #000;
    }

    .video-frame iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .diy-product {
      overflow: hidden;
      padding: 0;
    }

    .diy-product img {
      width: 100%;
      aspect-ratio: 1.35 / 1;
      object-fit: contain;
      background: #fff;
    }

    .diy-product .info-body {
      padding: 22px;
    }

    .product-sections {
      display: grid;
      gap: 22px;
    }

    .product-category {
      padding: 18px;
      border: 1px solid rgba(247,242,231,.12);
      border-radius: var(--radius);
      background: rgba(255,255,255,.035);
    }

    .category-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 20px;
      margin-bottom: 16px;
    }

    .category-head h3 {
      margin: 0;
      font-size: clamp(24px, 3vw, 38px);
      line-height: 1.1;
    }

    .category-head p {
      max-width: 520px;
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
      font-size: 14px;
    }

    .info-card {
      position: relative;
      min-height: 230px;
    }

    .info-card .num {
      display: inline-flex;
      margin-bottom: 36px;
      color: var(--cyan);
      font-family: "Meiryo UI", Meiryo, "Yu Gothic", sans-serif;
      font-size: 13px;
      font-weight: 900;
    }

    .coming {
      display: inline-flex;
      margin-top: 16px;
      padding: 7px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--gold);
      font-size: 12px;
      font-weight: 850;
    }

    .review-layout {
      display: grid;
      grid-template-columns: .72fr 1.28fr;
      gap: 18px;
      align-items: stretch;
    }

    .score {
      padding: clamp(28px, 5vw, 52px);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background:
        radial-gradient(circle at 20% 18%, rgba(215,181,109,.22), transparent 38%),
        rgba(255,255,255,.07);
    }

    .score strong {
      display: block;
      font-size: clamp(84px, 12vw, 150px);
      line-height: .86;
      letter-spacing: 0;
    }

    .score span {
      display: block;
      color: var(--muted);
      line-height: 1.7;
      font-weight: 700;
    }

    .review-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .stars {
      margin-bottom: 18px;
      color: #f6c86d;
      letter-spacing: .12em;
      font-size: 14px;
    }

    .review-card a {
      display: inline-flex;
      margin-top: 14px;
      color: var(--gold);
      font-weight: 850;
      font-size: 13px;
    }

    .company-layout {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 18px;
      align-items: stretch;
    }

    .policy-layout {
      display: grid;
      gap: 16px;
    }

    .policy-card {
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
    }

    .policy-card h3 {
      margin-bottom: 12px;
      color: var(--text);
      font-size: 20px;
      line-height: 1.35;
    }

    .policy-card p,
    .policy-card li {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.85;
    }

    .policy-card ul {
      display: grid;
      gap: 8px;
      margin: 0;
      padding-left: 1.2em;
    }

    .policy-title {
      font-size: clamp(28px, 4vw, 58px);
    }

    .logo-panel {
      display: grid;
      place-items: center;
      min-height: 390px;
      padding: 42px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
      box-shadow: var(--shadow);
    }

    .logo-panel img {
      width: min(420px, 92%);
    }

    .company-vision-panel {
      padding: 0;
      min-height: 420px;
      overflow: hidden;
    }

    .company-vision-panel img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .business-photo-panel img {
      object-position: center center;
      filter: saturate(.92) contrast(1.04);
    }

    .nowrap-title {
      white-space: nowrap;
      font-size: clamp(34px, 5vw, 72px);
    }

    .contact-list {
      display: grid;
      gap: 16px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .contact-list li {
      padding-bottom: 16px;
      border-bottom: 1px solid rgba(247,242,231,.13);
      color: var(--muted);
      line-height: 1.65;
      overflow-wrap: anywhere;
    }

    .contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
    .contact-list strong {
      display: block;
      margin-bottom: 5px;
      color: var(--text);
      font-size: 13px;
    }

    .contact-form {
      display: grid;
      gap: 14px;
      margin-top: 24px;
      padding-top: 22px;
      border-top: 1px solid rgba(247,242,231,.13);
    }

    .field {
      display: grid;
      gap: 8px;
    }

    .field label {
      color: var(--text);
      font-size: 13px;
      font-weight: 850;
    }

    .field input,
    .field textarea {
      width: 100%;
      border: 1px solid rgba(247,242,231,.18);
      border-radius: 7px;
      background: rgba(255,255,255,.07);
      color: var(--text);
      font: inherit;
      font-size: 15px;
      padding: 13px 14px;
      outline: none;
    }

    .field textarea {
      min-height: 140px;
      resize: vertical;
    }

    .field input:focus,
    .field textarea:focus {
      border-color: rgba(84,217,255,.58);
      box-shadow: 0 0 0 3px rgba(84,217,255,.12);
    }

    .form-note {
      margin: 0;
      color: var(--dim);
      font-size: 12px;
      line-height: 1.6;
    }

    .order-note {
      margin: 0;
      padding: 12px 14px;
      border: 1px solid rgba(215,181,109,.38);
      border-radius: 7px;
      color: rgba(247,242,231,.86);
      background: rgba(215,181,109,.08);
      font-size: 13px;
      line-height: 1.7;
      font-weight: 750;
    }

    .complete-panel {
      width: min(760px, 100%);
      padding: clamp(28px, 6vw, 56px);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background:
        radial-gradient(circle at 18% 12%, rgba(84,217,255,.16), transparent 38%),
        linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
      box-shadow: var(--shadow);
    }

    .complete-panel h2 {
      margin-bottom: 18px;
      font-size: clamp(42px, 7vw, 84px);
      line-height: .98;
    }

    .complete-panel p {
      color: var(--muted);
      line-height: 1.8;
      font-weight: 600;
    }

    footer {
      width: min(1180px, calc(100% - 44px));
      margin: 0 auto;
      padding: 24px 0 40px;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      border-top: 1px solid rgba(247,242,231,.12);
      color: var(--dim);
      font-size: 12px;
    }

    footer a {
      color: var(--gold);
      font-weight: 800;
    }

    .route-card,
    .tech-card,
    .product-card,
    .info-card,
    .review-card,
    .company-card,
    .feature-card,
    .video-card,
    .product-category,
    .complete-panel,
    .logo-panel {
      background: rgba(255,255,255,.94);
      border-color: rgba(20,24,32,.14);
      box-shadow: var(--shadow);
    }

    .device-stage {
      background:
        radial-gradient(circle at 50% 38%, rgba(22,127,160,.12), transparent 42%),
        linear-gradient(135deg, #ffffff, #eef4f7);
      border-color: rgba(20,24,32,.12);
    }

    .device-stage::before {
      color: rgba(20,24,32,.16);
    }

    .device-stage::after {
      background:
        linear-gradient(rgba(20,24,32,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20,24,32,.045) 1px, transparent 1px);
    }

    .device-main,
    .floating-spec span {
      background: rgba(255,255,255,.84);
      border-color: rgba(20,24,32,.16);
      color: var(--text);
    }

    .badge {
      background: rgba(255,255,255,.82);
      border-color: rgba(20,24,32,.18);
      color: var(--text);
    }

    .chips span {
      border-color: rgba(20,24,32,.16);
      color: rgba(20,24,32,.78);
      background: rgba(255,255,255,.72);
    }

    .price-line {
      background: rgba(215,181,109,.08);
      border-color: rgba(215,181,109,.32);
    }

    .field input,
    .field textarea {
      background: #fff;
      color: var(--text);
      border-color: rgba(20,24,32,.18);
    }

    .order-note {
      color: rgba(20,24,32,.84);
      background: rgba(215,181,109,.12);
      border-color: rgba(215,181,109,.38);
    }

    footer {
      border-top-color: rgba(20,24,32,.12);
    }

    .vehicle-inspection-floating {
      position: fixed;
      left: 22px;
      bottom: 22px;
      z-index: 75;
      width:min(220px, calc(100vw - 44px));
      padding:11px 13px;
      border: 1px solid rgba(16,17,19,.16);
      border-radius: 8px;
      color: #fff;
      background: rgba(16,17,19,.96);
      box-shadow: 0 18px 48px rgba(16,17,19,.22);
      text-decoration: none;
    }

    .vehicle-inspection-floating strong,
    .vehicle-inspection-floating span {
      display: block;
    }

    .vehicle-inspection-floating strong { font-size: .9rem; }
    .vehicle-inspection-floating span { margin-top: 2px; color: #d5e9f5; font-size: .8rem; }
    .vehicle-inspection-floating em { display: inline-block; margin-top: 4px; color: #8fc6ea; font-size: .8rem; font-style: normal; font-weight: 800; }
    .vehicle-inspection-floating [hidden] { display: none; }
    .lineup-table[hidden] { display: none; }
    [data-lofily-lang][hidden] { display: none !important; }

    .home-featured .products-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .lineup-image-card img {
      display: block;
      width: 100%;
      height: auto;
      margin-top: 12px;
      border-radius: var(--radius);
    }
    .vehicle-inspection-floating:hover { transform: translateY(-2px); }
    .business-floating-cta {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 76;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 50px;
      padding: 0 20px;
      border: 1px solid rgba(255,255,255,.38);
      border-radius: 999px;
      color: #fff;
      background: #101113;
      box-shadow: 0 18px 48px rgba(16,17,19,.22);
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 0;
      white-space: nowrap;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }

    .business-floating-cta::after {
      content: "→";
      margin-left: 9px;
      font-weight: 900;
    }

    .business-floating-cta:hover,
    .business-floating-cta.active {
      transform: translateY(-2px);
      background: #f7a318;
      color: #15100a;
      box-shadow: 0 22px 52px rgba(247,163,24,.25);
    }


    .floating-tool-dock {
      position: fixed;
      right: 16px;
      bottom: 16px;
      z-index: 77;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .floating-tool-trigger {
      position: relative;
      width: 44px;
      height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: 1px solid rgba(20,24,32,.14);
      border-radius: 50%;
      color: #15100a;
      background: #fff;
      box-shadow: 0 10px 28px rgba(16,17,19,.18);
      cursor: pointer;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    }

    .floating-tool-trigger svg {
      width: 18px;
      height: 18px;
    }

    .floating-tool-trigger:focus-visible {
      outline: 2px solid #f7a318;
      outline-offset: 2px;
    }

    .floating-tool-trigger:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 32px rgba(16,17,19,.25);
    }

    .ai-chat-trigger.active {
      background: #101113;
      color: #fff;
      box-shadow: 0 14px 32px rgba(16,17,19,.25);
    }

    .feature-survey-trigger {
      border-color: #101113;
      color: #101113;
      background: #f7a318;
    }

    .feature-survey-trigger[aria-expanded="true"] {
      transform: translateY(-2px);
      box-shadow: 0 14px 32px rgba(16,17,19,.25);
    }

    @media (hover: hover) {
      .floating-tool-trigger::after {
        content: attr(data-tooltip);
        position: absolute;
        right: calc(100% + 10px);
        top: 50%;
        transform: translateY(-50%);
        padding: 4px 10px;
        border-radius: 4px;
        color: #fff;
        background: #101113;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease;
      }

      .floating-tool-trigger:hover::after,
      .floating-tool-trigger:focus-visible::after {
        opacity: 1;
      }
    }

    .ai-chat-panel {
      position: fixed;
      right: 22px;
      bottom: 72px;
      z-index: 78;
      display: grid;
      grid-template-rows: auto 1fr auto;
      width: min(420px, calc(100vw - 32px));
      max-height: min(620px, calc(100vh - 176px));
      overflow: hidden;
      border: 1px solid rgba(20,24,32,.14);
      border-radius: 8px;
      background: rgba(255,255,255,.98);
      box-shadow: 0 28px 72px rgba(16,17,19,.22);
      opacity: 0;
      transform: translateY(18px) scale(.98);
      pointer-events: none;
      transition: opacity .2s ease, transform .2s ease;
    }

    .ai-chat-panel.open {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .ai-chat-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 18px 18px 14px;
      border-bottom: 1px solid rgba(20,24,32,.1);
      background: #f7f4ef;
    }

    .ai-chat-title {
      margin: 0 0 5px;
      color: var(--text);
      font-size: 17px;
      line-height: 1.35;
      font-weight: 900;
    }

    .ai-chat-note {
      margin: 0;
      color: rgba(20,24,32,.72);
      font-size: 12px;
      line-height: 1.55;
    }

    .ai-chat-close {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border: 1px solid rgba(20,24,32,.12);
      border-radius: 999px;
      color: var(--text);
      background: #fff;
      font-size: 18px;
      font-weight: 900;
      cursor: pointer;
    }

    .ai-chat-body {
      min-height: 0;
      overflow: auto;
      padding: 16px 16px 12px;
      background: #fff;
    }

    .ai-chat-messages {
      display: grid;
      gap: 10px;
    }

    .ai-chat-message {
      max-width: 92%;
      padding: 12px 13px;
      border-radius: 8px;
      color: var(--text);
      font-size: 13px;
      line-height: 1.65;
      white-space: pre-wrap;
    }

    .ai-chat-message.bot {
      justify-self: start;
      background: #f3f5f7;
      border: 1px solid rgba(20,24,32,.08);
    }

    .ai-chat-message.user {
      justify-self: end;
      background: #101113;
      color: #fff;
    }

    .ai-chat-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .ai-chat-links a {
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      padding: 0 11px;
      border: 1px solid rgba(20,24,32,.14);
      border-radius: 999px;
      color: var(--text);
      background: #fff;
      font-size: 12px;
      font-weight: 900;
    }

    .ai-chat-quick {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }

    .ai-chat-quick button {
      min-height: 34px;
      padding: 0 11px;
      border: 1px solid rgba(20,24,32,.12);
      border-radius: 999px;
      color: var(--text);
      background: #fff;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .ai-chat-form {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      padding: 12px;
      border-top: 1px solid rgba(20,24,32,.1);
      background: #f7f4ef;
    }

    .ai-chat-form input {
      min-width: 0;
      min-height: 42px;
      padding: 0 12px;
      border: 1px solid rgba(20,24,32,.16);
      border-radius: 8px;
      color: var(--text);
      background: #fff;
      font: inherit;
      font-size: 13px;
    }

    .ai-chat-send {
      min-height: 42px;
      padding: 0 15px;
      border: 0;
      border-radius: 8px;
      color: #15100a;
      background: #f7a318;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }








    @media (max-width: 900px) {
      .news-layout {
        grid-template-columns: 1fr;
      }

      .vehicle-inspection-sidebar {
        position: static;
      }
    }

    @media (max-width: 980px) {
      .nav {
        grid-template-columns: auto auto auto;
      }

      .button.amazon {
        grid-column: auto;
      }


      .nav-links {
        position: static;
        transform: none;
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
      }

      .home-grid,
      .page-head,
      .products-grid,
      .tech-grid,
      .home-news-grid,
      .info-grid,
      .review-layout,
      .review-grid,
      .company-layout {
        grid-template-columns: 1fr;
      }

      .home-grid { min-height: auto; }
      .home-news-head {
        align-items: start;
        flex-direction: column;
      }
      .device-stage { min-height: 480px; }
      .products-grid { gap: 14px; }
    }

    @media (max-width: 640px) {
      .brand,
      .brand img {
        width: clamp(112px, 30vw, 132px);
      }

      .brand {
        flex-basis: clamp(112px, 30vw, 132px);
      }

      .nav-links {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }

      .page-head h1,
.page-head h2,
      h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
      }

      :root {
        --mobile-floating-edge: 14px;
        --mobile-floating-gap: 7px;
        --mobile-floating-action-width: calc((100vw - 42px) / 3);
      }

      .vehicle-inspection-floating,
      .business-floating-cta {
        bottom: var(--mobile-floating-edge);
        width: var(--mobile-floating-action-width);
        height: 48px;
        min-width: 0;
        min-height: 48px;
        padding: 0 6px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
      }

      .floating-tool-dock {
        right: var(--mobile-floating-edge);
        bottom: var(--mobile-floating-edge);
      }

      .floating-tool-trigger {
        width: 40px;
        height: 40px;
      }

      .floating-tool-trigger svg {
        width: 17px;
        height: 17px;
      }

      .vehicle-inspection-floating {
        left: var(--mobile-floating-edge);
        right: auto;
      }

      .business-floating-cta {
        left: auto;
        right: var(--mobile-floating-edge);
      }

      .vehicle-inspection-floating strong {
        font-size: 12px;
        line-height: 1.2;
      }

      .vehicle-inspection-floating em,
      .business-floating-cta::after {
        display: none;
      }



      .nav {
        inset: 10px 10px auto;
        padding: 10px;
        gap: 10px;
      }
      .nav > .button { min-height: 38px; padding: 0 12px; font-size: 12px; }
      .nav-links a { padding: 9px 10px; font-size: 13px; }
      section.page { padding-top: 138px; }
      .wrap { width: min(100% - 28px, 1180px); }
      .hero-photo-panel { width: min(100% - 20px, 1280px); margin-bottom: 30px; }
      .hero-video-caption { flex-direction: column; gap: 5px; }
      h1 { font-size: clamp(30px, 8.2vw, 46px); }
      .page-head h1,
      .page-head h2 { font-size: clamp(26px, 7vw, 40px); }
      .policy-title { font-size: clamp(22px, 6.4vw, 34px); }
      .category-head {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 10px;
      }
      .category-head h3 {
        white-space: nowrap;
        font-size: clamp(30px, 9vw, 42px);
      }
      .category-head p { max-width: none; }
      .route-grid { grid-template-columns: 1fr; }
      .feature-grid { grid-template-columns: 1fr; }
      .video-grid { grid-template-columns: 1fr; }
      .feature-card.wide { grid-column: auto; }
      .device-stage { min-height: 390px; }
      .device-main { top: 76px; left: 18px; right: 18px; }
      .floating-spec { left: 18px; right: 18px; grid-template-columns: repeat(3, 1fr); }
      .floating-spec span { padding: 12px 8px; text-align: center; }
      .page-head { margin-bottom: 24px; }

      .lineup-table {
        border: 1px solid rgba(247,242,231,.12);
        background: rgba(255,255,255,.035);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
      }

      .lineup-row {
        grid-template-columns: 140px repeat(var(--lineup-cols, 3), minmax(150px, 1fr));
        min-width: calc(140px + var(--lineup-cols, 3) * 150px);
        border-bottom: 1px solid rgba(247,242,231,.1);
        border-radius: 0;
        background: transparent;
      }

      .lineup-row:last-child {
        border-bottom: 0;
      }

      .lineup-row > span {
        display: block;
        border-right: 1px solid rgba(247,242,231,.1);
        border-bottom: 0;
      }

      .lineup-row > span:last-child {
        border-right: 0;
      }

      .lineup-row > span:first-child {
        color: var(--text);
        background: rgba(255,255,255,.06);
        font-weight: 900;
      }

      .product-body, .info-card, .review-card, .company-card { padding: 20px; }
      .logo-panel { min-height: 260px; }
      .nowrap-title { font-size: clamp(30px, 9vw, 48px); }
      footer { width: min(100% - 28px, 1180px); display: block; line-height: 1.8; }
    }

/* =========================================================================
   Lofily デザインシステム改訂（v3）
   site.css の【末尾】に追記する想定。既存行は変更しない。
   ========================================================================= */

/* ---- 1. デザイントークン ------------------------------------------------ */
:root {
  /* 文字・線 */
  --ink: #101113;
  --ink-80: rgba(16, 17, 19, .80);
  --ink-62: rgba(16, 17, 19, .62);
  --ink-45: rgba(16, 17, 19, .45);
  --line: rgba(16, 17, 19, .13);
  --line-strong: rgba(16, 17, 19, .26);

  /* アクセントは1色だけ。ブロンズ。12pxでもWCAG AAを満たす濃さ */
  --accent: #8a6a2a;
  --accent-tint: rgba(138, 106, 42, .075);
  --accent-line: rgba(138, 106, 42, .30);

  /* 旧変数の実態化（--gold は黒だった／--cyan はグレーだった） */
  --gold: #8a6a2a;
  --cyan: #8a6a2a;

  --shadow: 0 18px 48px rgba(16, 17, 19, .07);
  --shadow-lift: 0 26px 64px rgba(16, 17, 19, .13);

  --font-sans: "Inter", "Noto Sans JP", "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* ---- 2. タイポグラフィ -------------------------------------------------- */
body,
.nav,
.brand,
.eyebrow,
.button,
.chips span,
input, textarea, select, button {
  font-family: var(--font-sans);
}

body {
  font-feature-settings: "palt" 1;   /* 日本語の詰め。これが効くと一気に締まる */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
}

/* 見出しの行間を日本語向けに開ける（元は .88 / .98 で漢字が接触していた） */
h1 {
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.16;
  letter-spacing: -.012em;
}

.page-head h1,
.page-head h2,
h2 {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.page-head h1,
      .page-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  white-space: normal;      /* 641〜900px で横スクロールしていた既存バグの解消 */
  overflow-wrap: anywhere;
}

h3 { font-weight: 700; line-height: 1.38; letter-spacing: -.005em; }

p { line-height: 1.85; }

/* 小ラベル（LINEUP / NEWS / 品番 など）はブロンズ＋トラッキング */
.eyebrow,
.info-card .num,
.product-card .num,
.feature-card .num {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ウェイトの正規化。元は 550/560/600/650/700/750/800/850/860/900/950 の11段階で、
   Meiryo は 400/700 しか持たないため大半が偽ボールドだった。
   400 / 500 / 700 / 900 の4段階に集約する。 */
.lead,
.feature-body p,
.tech-card span,
.route-card span,
.product-body p,
.info-card p { font-weight: 400; }

.chips span,
.badge,
.model-code,
.button { font-weight: 700; }

/* ---- 3. 旧ダークテーマ残骸の除去 ---------------------------------------- */
/* site.css には旧ダークテーマの色（クリーム #f7f2e7 系 / シアン #54d9ff 系）が
   28箇所残っている。白背景では「見えない罫線」か「浮いた水色」になる。 */

/* 3-1. 見えなくなっている罫線を復活させる */
.lineup-table,
.product-category,
.floating-spec { border-color: var(--line); }
.lineup-row { border-bottom-color: var(--line); }
.lineup-row > span { border-right-color: var(--line); }
.contact-list li { border-bottom-color: var(--line); }
.contact-form { border-top-color: var(--line); }
footer { border-top-color: var(--line); }
.price-line .msrp { text-decoration-color: var(--ink-45); }

/* 3-2. 浮いている水色をモノクロ／ブロンズへ */
.button:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(16, 17, 19, .10);
}

.model-code {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-tint);
}

.product-review {
  border-color: var(--line);
  background: rgba(16, 17, 19, .028);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
  outline: none;
}

/* ---- 4. カード共通の質感を1つに揃える ----------------------------------- */
.info-card,
.product-card,
.feature-card,
.route-card,
.tech-card,
.video-card,
.company-card,
.review-card,
.product-category {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 17, 19, .04);
}

.feature-card,
.product-card { box-shadow: var(--shadow); }

/* 画像は元の縦横比のまま。正方形の説明図でも白帯が出ない */
.feature-card img.tech-card-image,
.feature-card img.l6-figure,
.feature-card.wide img.l6-figure {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.technology-cards { align-items: start; }
.technology-cards + .technology-cards { margin-top: 18px; }

/* ---- 5. セクション見出し ------------------------------------------------ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: clamp(56px, 7vw, 96px) 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
}

.section-head .eyebrow { margin: 0 0 8px; }
.section-head-link {
  flex: none;
  color: var(--ink-62);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.section-head-link:hover { color: var(--ink); }

/* ---- 6. 3本柱（旧 tech-grid の置き換え） -------------------------------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.pillar {
  padding: clamp(22px, 2.6vw, 32px);
  background: #fff;
}

.pillar-no {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.pillar strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.45;
}

.pillar span {
  display: block;
  color: var(--ink-62);
  font-size: 14px;
  line-height: 1.85;
}

/* ---- 7. ラインナップ（トップページ用の軽い商品カード） ------------------- */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lineup-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.lineup-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.lineup-card.is-featured { border-color: var(--accent-line); }

.lineup-media {
  position: relative;
  padding: 14px 14px 0;
  background: #fff;
}

.lineup-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.lineup-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.lineup-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 18px 20px;
}

.lineup-model {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.lineup-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.lineup-card p {
  margin: 0;
  color: var(--ink-62);
  font-size: 13px;
  line-height: 1.8;
}

.lineup-spec {
  display: grid;
  gap: 5px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-62);
  font-size: 12px;
  line-height: 1.7;
}

.lineup-spec b {
  color: var(--ink);
  font-weight: 700;
}

.lineup-card .button {
  margin-top: auto;
  width: 100%;
}

/* ---- 8. L-6CH01 訴求バナー ---------------------------------------------- */
.l6-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(26px, 3.2vw, 44px);
  border-radius: var(--radius);
  background: linear-gradient(118deg, #0d0e10 0%, #191c21 56%, #262b33 100%);
  color: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.l6-promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.l6-promo .eyebrow { margin-bottom: 16px; color: #d9b56a; }

.l6-promo h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.15;
}

.l6-promo p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.85;
}

.l6-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  margin-top: 24px;
  padding: 0 28px;
  border-radius: 7px;
  background: #fff;
  color: #101113;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.l6-promo-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

/* ---- 9. お知らせ詳細ページ（固定ヘッダーに潜る問題の修正） -------------- */
article.page { padding: 126px 0 70px; }

.news-layout .page-head h1 {
  max-width: 100%;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.24;
  white-space: normal;
  overflow-wrap: anywhere;
}

.news-cta-top { margin-top: 26px; }

.button.button-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

/* ---- 10. レスポンシブ --------------------------------------------------- */
@media (max-width: 1080px) {
  .lineup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .l6-promo { grid-template-columns: 1fr; }
  .l6-promo-media { order: -1; }
}

@media (max-width: 640px) {
  article.page { padding-top: 138px; }
  .news-layout .page-head h1 { font-size: clamp(24px, 6.4vw, 34px); }
  .lineup-grid { grid-template-columns: 1fr; }
  .l6-promo h2 { font-size: clamp(24px, 7vw, 34px); }
  .l6-promo-cta,
  .button.button-lg { width: 100%; justify-content: center; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---- 11. ファーストビューの調整 ---------------------------------------- */
/* 元はヒーロー動画だけで1画面を使い切り、見出しがスクロールしないと出なかった。
   高さを抑えて、見出しとCTAをファーストビューに入れる。 */
.hero-photo-panel {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.hero-photo-panel .hero-video,
.hero-photo-panel > img {
  width: 100%;
  max-height: min(62vh, 600px);
  /* Keep the complete film and its logo visible within the capped hero height. */
  object-fit: contain;
}

@media (max-width: 640px) {
  .hero-photo-panel .hero-video,
  .hero-photo-panel > img { max-height: 46vh; }

  /* 4モデルは並べて比べるものなので、スマホでも2列を維持する */
  .lineup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lineup-media { padding: 10px 10px 0; }
  .lineup-body { padding: 12px 12px 16px; gap: 6px; }
  .lineup-card h3 { font-size: 15px; }
  .lineup-card p { font-size: 12px; }
  .lineup-spec { font-size: 11px; }
  .lineup-card .button { min-height: 40px; padding: 0 10px; font-size: 13px; }
}

/* ---- 12. トップページのレイアウト補助 ----------------------------------- */
.home-intro { max-width: 780px; }

.home-intro .lead {
  max-width: 640px;
  color: var(--ink-62);
  font-size: 16px;
}

.home-promo-wrap { margin-top: clamp(40px, 5vw, 64px); }

/* 旧トップページの2カラム（.home-grid）と route-grid は v3 で未使用。
   他ページでも使っていないため、将来 site.css 本体から削除して構わない。 */

/* ---- 13. ラインナップ画像の縦長バグ修正（2026-08-25） -------------------- */
/* wp_get_attachment_image が出力する height 属性（正方形画像の高さ）が
   aspect-ratio より優先され、画像ボックスが縦長になって上下に大きな余白が
   出ていた。height: auto で属性を打ち消し、4:3 の枠を効かせる。 */
.lineup-media img { height: auto; }

/* ---- 14. 品質バナー画像（2026-08-25） ----------------------------------- */
/* ワイドカード内のバナー画像は 1.95:1 に揃えず、画像自体の比率（2211:470）で表示する */
.feature-card.wide img.qc-banner { aspect-ratio: 2211 / 470; height: auto; }

/* ---- 15. feature-card 画像の縦長余白修正（2026-08-25） ------------------ */
/* 画像の height 属性が aspect-ratio を上書きし、正方形画像でカードが
   縦長になり大きな余白が出ていた（テクノロジー下3枚・L-6CH01 LP など）。
   height: auto で aspect-ratio（標準 1.72:1 / wide 1.95:1）を効かせる。 */
.feature-card img { height: auto; }

/* ---- 16. 主な仕様の視野角図を適正サイズに（2026-08-25） ----------------- */
/* 正方形の図がカード幅いっぱい（1600px級）に表示されていたのを抑える */
.info-card img.spec-figure {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto;
}

/* お知らせ「終了しました」バッジ（Phase 4） */
.news-ended-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent, #8a6d2f);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 4px;
}

/* Feature survey: independent modal panel (separated from the AI chat) */
.ai-chat-panel [hidden] {
  display: none !important;
}

.feature-survey-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(16,17,19,.5);
}

.feature-survey-panel[hidden] {
  display: none;
}

.feature-survey-dialog {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(16,17,19,.3);
}

.feature-survey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-survey-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.feature-survey-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(20,24,32,.12);
  border-radius: 999px;
  color: var(--text, #101113);
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.feature-survey-intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
}

.feature-survey-panel .forminator-ui {
  margin: 0 !important;
}

.feature-survey-none-fill {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.feature-survey-limit-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #b3261e;
}

@media (max-width: 768px) {
  .feature-survey-panel {
    padding: 0;
  }

  .feature-survey-dialog {
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}


/* 2026-08-31: accessible model comparison and installation notes. */
.model-comparison { margin: 0 0 32px; min-width: 0; scroll-margin-top: 100px; }
.comparison-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #d9d9d9; border-radius: 12px; background: #fff; color: #17191d; }
.comparison-scroll:focus-visible { outline: 3px solid #977435; outline-offset: 3px; }
.comparison-scroll table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.comparison-scroll caption { text-align: left; font-size: 18px; font-weight: 700; padding: 16px; }
.comparison-scroll th, .comparison-scroll td { padding: 12px 14px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.comparison-scroll thead th { background: #ede9df; color: #17191d; }
.comparison-scroll tbody th { white-space: nowrap; background: #f5f5f3; }
.comparison-scroll tbody tr:last-child > * { border-bottom: 0; }
.comparison-scroll-note, .comparison-trust { font-size: 13px; line-height: 1.7; }
.comparison-scroll-note { display: none; }
.installation-note { font-size: 14px; line-height: 1.8; color: #51565d; }
.installation-steps { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-left: 20px; font-size: 14px; }
.l6-key-specs { font-size: 15px; line-height: 1.8; }
@media (max-width: 900px) { .comparison-scroll-note { display: block; } }

/* 2026-09-08: consumer-page improvements only.
   header.php deliberately omits lofily-consumer on business/partners pages. */
body.lofily-consumer .mobile-contact-link { display: none; }
body.lofily-consumer .home-hero-grid {
  display: grid; grid-template-columns: 1fr 1.06fr; gap: 40px; align-items: start;
}
body.lofily-consumer .home-intro h1 {
  margin: 12px 0 22px; font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.45; letter-spacing: .01em; max-width: 100%;
}
body.lofily-consumer .home-intro .lead { font-size: 16px; line-height: 1.9; color: #43484e; }
body.lofily-consumer .hero-safety-note { font-size: 13px; line-height: 1.8; color: #51565d; margin-top: 20px; }
body.lofily-consumer .home-hero-grid .hero-photo-panel { width: 100%; margin: 24px 0 0; opacity: 1 !important; }
body.lofily-consumer .home-hero-grid .hero-photo-panel::after { content: none; }
body.lofily-consumer .home-hero-grid .hero-video { width: 100%; height: auto; max-height: 340px; aspect-ratio: 16 / 9; object-fit: contain; }
body.lofily-consumer .home-hero-grid .hero-video-caption { position: static; padding: 14px 16px; color: #43484e; background: #fff; font-size: 12px; font-weight: 500; }
body.lofily-consumer .home-promo-wrap { margin-top: 44px; }
body.lofily-consumer .l6-promo-status { margin-top: 16px; font-size: 18px; color: #fff; }
body.lofily-consumer .l6-promo-availability { margin: 8px 0; }
body.lofily-consumer .button { white-space: normal; text-align: center; min-height: 48px; padding: 10px 18px; }
body.lofily-consumer .button:hover { border-color: #8a6d2f; box-shadow: 0 6px 18px rgba(16,17,19,.08); }
body.lofily-consumer :is(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid #8a6d2f; outline-offset: 4px; }
body.lofily-consumer :is(.feature-body p, .product-body p, .info-card p, .company-card p, .pillar > span:not(.pillar-no)) { font-size: 16px; line-height: 1.85; color: #43484e; }
body.lofily-consumer .page-head .lead { font-weight: 400; color: #43484e; }
body.lofily-consumer :is(.lineup-card p, .lineup-spec, .product-body small, .form-note) { font-size: 14px; line-height: 1.8; color: #43484e; }
body.lofily-consumer .lineup-card .lineup-price { color: #17191d; font-size: 16px; margin: 8px 0; }
body.lofily-consumer .lineup-details-link { font-size: 14px; text-align: center; padding: 6px; text-decoration: underline; text-underline-offset: 3px; }
body.lofily-consumer :is(.pillar a, .form-note a, .contact-list a) { text-decoration: underline; text-underline-offset: 3px; }
body.lofily-consumer .model-comparison { scroll-margin-top: 128px; }
body.lofily-consumer .comparison-scroll table { font-size: 15px; }
body.lofily-consumer .comparison-scroll tbody th { max-width: 190px; white-space: normal; }
body.lofily-consumer .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.lofily-consumer .product-card { display: flex; flex-direction: column; scroll-margin-top: 130px; }
body.lofily-consumer .product-media { aspect-ratio: 16 / 10; }
body.lofily-consumer .product-body { display: flex; flex-direction: column; flex: 1; gap: 10px; }
body.lofily-consumer .product-body :is(p, h3) { margin-top: 0; margin-bottom: 0; }
body.lofily-consumer .price-line .price { font-size: 19px; color: #17191d; }
body.lofily-consumer .product-body .chips { margin: 6px 0; }
body.lofily-consumer :is(.product-details, .lineup-image-details) { padding: 14px 0; border-top: 1px solid #deded8; }
body.lofily-consumer summary { cursor: pointer; font-size: 16px; line-height: 1.6; padding: 8px 0; font-weight: 700; }
body.lofily-consumer .product-details .product-review { margin-top: 12px; }
body.lofily-consumer .product-details[open] { padding-bottom: 0; }
body.lofily-consumer .lineup-image-card { min-height: 0; padding: 12px 24px; }
body.lofily-consumer .model-applicability { display: inline-block; padding: 7px 12px; border-radius: 6px; background: #ede9df; color: #343028; font-weight: 700; font-size: 14px; }
body.lofily-consumer :is(.feature-model-link, .price-line a) { text-decoration: underline; text-underline-offset: 3px; }
body.lofily-consumer .product-actions { margin-top: 14px; }
body.lofily-consumer #technology .feature-card > img { aspect-ratio: 16 / 10; object-fit: contain; background: #f5f5f2; padding: 16px; }
body.lofily-consumer #technology .feature-body h3 { line-height: 1.6; }
body.lofily-consumer #l6ch01 :is(.page-head, .info-card) { margin-bottom: 28px; }
body.lofily-consumer #l6ch01 .page-head h1 { display: block; margin-top: 12px; }
body.lofily-consumer #l6ch01 .l6-key-specs { color: #17191d; font-size: 16px; }
body.lofily-consumer .page-quicknav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #deded8; }
body.lofily-consumer .page-quicknav a { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 4px; text-decoration: underline; text-underline-offset: 4px; }
body.lofily-consumer #l6ch01 [id] { scroll-margin-top: 186px; }
body.lofily-consumer .recording-note { font-size: 14px; line-height: 1.8; color: #43484e; }
body.lofily-consumer #support-form { scroll-margin-top: 128px; margin-top: 28px; margin-bottom: 28px; }
body.lofily-consumer #contact .company-installation-panel { min-height: 0; padding: 18px; background: #fff; }
body.lofily-consumer #contact .company-installation-panel img { width: 100%; height: auto; object-fit: contain; }
body.lofily-consumer #contact .forminator-ui .forminator-button-submit { background: #101113 !important; color: #fff !important; border-radius: 7px !important; min-height: 48px; padding: 12px 28px; }
body.lofily-consumer #contact .forminator-ui :is(input, textarea) { font-size: 16px !important; }
body.lofily-consumer :is(.diy-compatibility-guide, .news-support-links) { margin: 0 0 28px; }
body.lofily-consumer .vehicle-inspection-page > .info-card[role="note"] { min-height: 0; height: auto; margin: 0 0 28px; padding: 20px 24px; font-size: 15px; line-height: 1.85; }
@media (max-width: 1100px) {
  body.lofily-consumer .home-hero-grid { gap: 26px; }
  body.lofily-consumer .lineup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.lofily-consumer .nav { grid-template-columns: 1fr auto; gap: 10px; padding: 12px; }
  body.lofily-consumer .nav .brand { grid-column: 1; grid-row: 1; width: 126px; }
  body.lofily-consumer .nav .brand img { width: 126px; height: 40px; }
  body.lofily-consumer .mobile-contact-link { display: inline-flex; grid-column: 2; grid-row: 1; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border-radius: 6px; color: #fff; background: #101113; font-size: 14px; font-weight: 700; }
  body.lofily-consumer .nav-links { position: static; left: auto; transform: none; grid-column: 1 / -1; width: 100%; justify-content: flex-start; overflow-x: auto; }
  body.lofily-consumer .nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; }
  body.lofily-consumer .home-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  body.lofily-consumer .home-hero-grid .hero-photo-panel { max-width: 680px; margin: 0; }
  body.lofily-consumer .page { padding-top: 170px; }
  body.lofily-consumer :is(#model-comparison, #support-form, .product-card) { scroll-margin-top: 170px; }
}
@media (max-width: 640px) {
  body.lofily-consumer .nav { inset: 10px 10px auto; }
  body.lofily-consumer.admin-bar .nav { top: 50px; }
  body.lofily-consumer.admin-bar .page { padding-top: 182px; }
  body.lofily-consumer .home-intro h1 { font-size: 30px; line-height: 1.5; }
  body.lofily-consumer .home-hero-grid .hero-video { max-height: 260px; }
  body.lofily-consumer .home-intro .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  body.lofily-consumer .lineup-grid, body.lofily-consumer .products-grid { grid-template-columns: 1fr; gap: 20px; }
  body.lofily-consumer .lineup-media img { max-height: 230px; }
  body.lofily-consumer .lineup-body { padding: 20px; gap: 10px; }
  body.lofily-consumer .lineup-card h3 { font-size: 20px; }
  body.lofily-consumer .lineup-card p { font-size: 15px; }
  body.lofily-consumer .lineup-spec { font-size: 14px; }
  body.lofily-consumer .lineup-card .button { min-height: 48px; font-size: 15px; }
  body.lofily-consumer #contact .nowrap-title { font-size: 28px; white-space: normal; line-height: 1.5; }
  body.lofily-consumer #support-form { scroll-margin-top: 186px; }
  body.lofily-consumer .vehicle-inspection-page h1 { white-space: normal; }
  body.lofily-consumer .vehicle-inspection-floating { position: static; display: flex; width: fit-content; min-height: 44px; margin: 0 16px 80px; padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.lofily-consumer * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
