@layer reset, base, components, sections, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure, blockquote { margin: 0; letter-spacing: .075em; }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; }
  address { font-style: normal; }
}

@layer base {
  :root {
    --navy-950:#031b37; --navy-900:#052b57; --navy-800:#073b7a; --navy-700:#0d4d95;
    --blue-50:#f4f9fd; --lime:#8ac926; --ink:#10233d; --muted:#617084; --line:#dce5ee;
    --white:#fff; --page:#f7f9fb; --container:1180px; --radius:18px; --header-h:76px;
    --shadow:0 20px 50px rgba(3,27,55,.08);
  }

  body {
    min-width:320px; color:var(--ink); background:#fff;
    font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;
    font-size:clamp(.98rem,.94rem + .16vw,1.08rem); line-height:1.85; letter-spacing:.025em;
    -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  }

  body.is-menu-open { overflow:hidden; }
  :focus-visible { outline:3px solid #ffbe0b; outline-offset:4px; }

  .container { width:min(calc(100% - 40px),var(--container)); margin-inline:auto; }
  .section { padding-block:clamp(80px,9vw,120px); }
  section[id], main[id] { scroll-margin-top:calc(var(--header-h) + 16px); }

  h1,h2,h3 { line-height:1.25; letter-spacing:-.035em; text-wrap:balance; }
  h2 { font-size:clamp(2rem,1rem + 2vw,3rem);overflow-wrap: anywhere; }
  h3 { font-size:clamp(1.15rem,1.05rem + .45vw,1.45rem); }
  p { text-wrap:pretty; }

  .skip-link { position:fixed; top:12px; left:12px; z-index:1000; padding:10px 14px; color:#fff; background:var(--navy-950); transform:translateY(-160%); }
  .skip-link:focus { transform:none; }

  .eyebrow { font-size: 1.1em;
    display: inline-block;
  font-weight: 700;
  padding-bottom: 5px;
  margin-bottom:15px;
  background: linear-gradient(
    transparent 88%,
    #009FE8 0
  );}
  .eyebrow--blue { color:var(--navy-700); }

  .section-heading { max-width:780px; margin-bottom:clamp(42px,5vw,50px); }
  .section-heading > p:last-child { margin-top:18px; color:var(--muted);  }

  .section-heading--split { display:grid; grid-template-columns:minmax(0,.8fr) minmax(280px,.6fr); gap:8vw; max-width:none; align-items:end; }
  .section-heading--split > p { margin:0; padding-bottom:.4rem; }
  .section-heading--light { color:#fff; }
  .section-heading--light > p:last-child { color:#fff; }
  .section-heading--center { margin-inline:auto; text-align:center; }
}

@layer components {
  .site-header { position:sticky; top:0; z-index:100; min-height:var(--header-h); background:rgba(255,255,255,.92); border-bottom:1px solid rgba(220,229,238,.7); backdrop-filter:blur(14px) saturate(160%); }
  .site-header__inner { width:min(calc(100% - 40px),1320px); min-height:var(--header-h); margin-inline:auto; display:flex; align-items:center; justify-content:space-between; gap:28px; }
  .brand { display:grid; line-height:1; }
  .brand__main { font-size:1.75rem; font-weight:900; color:var(--navy-950); }
  .brand__sub { margin-top:5px; font-size:.55rem; font-weight:700; letter-spacing:.08em; color:var(--muted); }

  .global-nav { display:flex; align-items:center; gap:clamp(14px,1.8vw,28px); font-size:.78rem; font-weight:700; }
  .global-nav > a {
  position: relative;
  transition: opacity .25s ease;
}

.global-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: right center;

  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.global-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
  .nav-cta { padding:10px 16px!important; border:1px solid var(--navy-800); border-radius:7px; }
  .menu-button { display:none; }

  .button { min-height:52px; padding:0 22px; display:inline-flex; align-items:center; justify-content:center; border:1px solid transparent; border-radius:7px; font-size:.9rem; font-weight:800; line-height:1.3; transition:transform .2s ease; }
  .button:hover { transform:translateY(-2px); }
  .button--primary { color:#fff; background:var(--navy-800); }
  .button--ghost { color:var(--navy-900); background:rgba(255,255,255,.88); border-color:rgba(7,59,122,.35); }
  .button--white { color:var(--navy-900); background:#fff; }
  .button--lime { color:#17320a; background:var(--lime); }
}

@layer sections {
  .hero { position:relative; min-height:min(760px,calc(100svh - var(--header-h))); display:grid; align-items:center; overflow:clip; isolation:isolate; background:#dfeefa; }
  .hero__media,.hero__overlay { position:absolute; inset:0; z-index:-2; }
  .hero__media img { width:100%; height:100%; object-fit:cover; object-position:58% 52%; }
  .hero__overlay { z-index:-1; background:linear-gradient(90deg,rgba(243,249,254,.98) 0%,rgba(243,249,254,.94) 32%,rgba(243,249,254,.52) 49%,rgba(243,249,254,.05) 70%,transparent 100%); }
  .hero__inner { padding-block:clamp(70px,8vw,120px); }
  .hero h1 {  font-size: clamp(2.3rem, 1.7rem + 2.5vw, 4.4rem);
  color: var(--navy-950); }
  .hero__lead { margin-top:24px; max-width:45ch; color:#284058; font-weight:600; }
  .hero__brand { margin-top:32px; font-size:clamp(2.2rem,4vw,4.4rem); font-weight:900; line-height:.95; letter-spacing:-.05em; color:var(--navy-950); }
  .hero__brand img { width:300px; height:auto; }
  .hero__brand span { display:block; margin-top:8px; font-size:.72rem; letter-spacing:.16em; color:var(--navy-700); }
  .hero__actions { margin-top:34px; display:flex; flex-wrap:wrap; gap:12px; }

  .keyfacts { background:var(--navy-950); color:#fff; }
  .keyfacts__grid { display:grid; grid-template-columns:repeat(4,1fr); }
  .keyfact { min-height:112px; padding:26px 20px; display:flex; align-items:center; gap:16px; border-left:1px solid rgba(255,255,255,.16); }
  .keyfact:last-child { border-right:1px solid rgba(255,255,255,.16); }
  .keyfact__icon { font-size:2rem; color:#b5dcff; }
  .keyfact div { display:grid; gap:3px; }
  .keyfact b { font-size:.7rem; letter-spacing:.09em; color:#9ccdf6; }
  .keyfact span:last-child { font-size:1rem; font-weight:700; }

  /* ===== RE/BIO comparison ===== */

  .difference__head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
    gap: clamp(48px, 7vw, 100px);
    align-items: end;
    margin-bottom: 60px;
  }

  .difference__title {
    min-width: 0;
  }

  .difference__title h2 {
    margin-top: 14px;
  }

  .difference__lead {
    max-width: 520px;
    margin: 0;
    padding-bottom: .35rem;
    color: var(--muted);
    font-size: .98rem;
    line-height: 2;
  }

  /* 3 cards */
  .compare {
    display: grid;
    grid-template-columns: 1.08fr .92fr .92fr;
    gap: 20px;
    align-items: stretch;
  }

  .compare-card {
    position: relative;
    min-width: 0;
    min-height: 620px;
    padding: 58px 30px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(3,27,55,.06);
  }

  .compare-card--rebio {
    padding: 57px 29px 29px;
    border: 2px solid #2f78c4;
  }

  .compare-card--portable {
    border-color: #bddc8d;
    background: #f7fced;
  }

  /* 01 / 02 / 03 */
  .compare-card__num {
    position: absolute;
    top: 0;
    left: 0;
    width: 86px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 21px 0 42px 0;
    color: #fff;
    background: linear-gradient(135deg,#165ca7,#2d7bca);
    font-size: 1.85rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    letter-spacing: -.04em;
  }

  .compare-card--portable .compare-card__num {
    background: linear-gradient(135deg,#55a900,#87c91c);
  }

  /* top label + icon */
  .compare-card__head {
    min-height: 60px;
    padding-left: 58px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  .compare-card__label {
    margin: 6px 0 0;
    color: var(--navy-700);
    font-size: .88rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: .08em;
  }

  .compare-card--portable .compare-card__label {
    color: #5da80e;
  }

  .compare-card__head-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf5ff;
  }

  .compare-card--portable .compare-card__head-icon {
    background: #eef7df;
  }

  .compare-card__head-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .compare-card h3 {
    margin-top: 28px;
    font-size: clamp(1.55rem, 1.2rem + .8vw, 2.05rem);
    line-height: 1.38;
    letter-spacing: -.035em;
  }

  /* flow */
  .compare-flow {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .compare-flow__item {
    min-width: 0;
    flex: 1 1 0;
    min-height: 126px;
    padding: 16px 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #d4e0eb;
    border-radius: 11px;
    background: #f6f9fc;
    color: var(--navy-950);
    text-align: center;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.35;
  }

  .compare-flow__item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .compare-flow__arrow {
    flex: 0 0 16px;
    color: #1870c7;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
  }

  /* 走行充電は4項目なので少しだけ詰める */
  .compare-card--rebio .compare-flow {
    gap: 6px;
  }

  .compare-card--rebio .compare-flow__item {
    padding-inline: 5px;
    font-size: .77rem;
  }

  .compare-card--rebio .compare-flow__arrow {
    flex-basis: 12px;
  }

  /* vehicle */
  .compare-card__vehicle {
    margin: 28px -29px 0;
    height: 165px;
    overflow: hidden;
    background: #edf6fd;
  }

  .compare-card__vehicle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  /* portable */
  .portable-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
  }

  .portable-item {
    min-width: 0;
    min-height: 220px;
    padding: 26px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe2a7;
    border-radius: 12px;
    background: #fff;
    text-align: center;
  }

  .portable-item img {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    object-fit: contain;
  }

  .portable-item strong {
    font-size: .98rem;
    line-height: 1.45;
  }

  .portable-item small {
    margin-top: 13px;
    color: #65aa15;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.5;
  }

  /* bottom text */
  .compare-card__text {
    margin-top: auto;
    padding-top: 30px;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.85;
  }


.section--navy { color:#fff; background:radial-gradient(circle at 80% 10%,rgba(27,94,156,.6),transparent 35%),var(--navy-950); }
  .tech-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
  .tech-card {
  min-height: 500px;
  padding: 28px 0 24px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
}

/* テキスト類だけ左右に余白 */
.tech-card__num,
.tech-card__en,
.tech-card h3,
.tech-card > p:last-child {
  margin-left: 24px;
  margin-right: 24px;
  letter-spacing: .05em;
}

.tech-card__num {
  font-size: 2.35rem;
  font-weight: 900;
  color: #9fd4ff;
  line-height: 1;
}

.tech-card__en {
  margin-top: 22px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: #9fd4ff;
}

.tech-card h3 {
  margin-top: 4px;
  min-height: 3em;
  margin-bottom: 10px;
}

/* 画像エリアはカードの横幅いっぱい */
.tech-card__visual {
  width: 100%;
  min-height: 150px;
  margin: 0;
  padding: 0;
  overflow: hidden;

  display: grid;
  place-items: center;

  background: linear-gradient(
    135deg,
    rgba(116,190,247,.18),
    rgba(255,255,255,.03)
  );
}

/* visual内にimgを入れる場合 */
.tech-card__visual img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* 水循環の図の場合 */
.tech-card__visual--water {
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: #b8ddf9;
}

.tech-card__visual--water strong {
  font-size: 2.2rem;
  color: #fff;
}

.tech-card > p:last-child {
  margin-top: auto;
  color: #fff;
  font-size: .96rem;
  line-height: 1.8;
}

  .case-layout { display:grid; grid-template-columns:.82fr 1.18fr; gap:clamp(50px,7vw,65px); align-items:center; }
  .case-copy__lead { margin-top:18px; color:var(--navy-700); font-weight:600; }
  .quote-grid { margin-top:42px; display:grid; gap:16px; }
  .quote-grid blockquote { padding:22px 0 22px 26px; border-left:3px solid var(--navy-700); }
  .quote-grid blockquote p { font-weight:700; line-height:1.65; }
  .quote-grid cite { display:block; margin-top:8px; color:var(--muted); font-size:.78rem; font-style:normal; }
  .case-gallery { display:grid; grid-template-columns:1.15fr .85fr; grid-template-rows:1fr 1fr; gap:12px; }
  .case-gallery figure { min-height:220px; overflow:clip; border-radius:10px; background:#e9eef3; }
  .case-gallery__main { grid-row:1 / -1; }
  .case-gallery img { width:100%; height:100%; object-fit:cover; }
.voice-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.voice-group {
  min-width: 0;
}

.voice-group__title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--navy-700);
  color: var(--navy-700);
  font-size: 1.2rem;
  font-weight: 900;
}
.voice-group__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--navy-700);
}

.voice-group__icon {
  width: 30px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.voice-group__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--navy-700);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.4;
}
.voice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.voice-list li {
  position: relative;
  padding-left: 20px;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.5;
}

.voice-list li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy-700);
}

@media (max-width: 640px) {
  .voice-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
  .section--water { background:linear-gradient(180deg,#eff8ff 0%,#fff 72%); }
  .water-layout { display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(50px,8vw,110px); align-items:center; }
  .water-layout > div:first-child > p:not(.eyebrow,.note) { margin-top:24px; color:var(--muted); }
  .water-number { margin-block:42px 18px; display:flex; align-items:baseline; gap:24px; color:var(--navy-800); }
  .water-number span { font-size:clamp(3.6rem,6vw,6.8rem); font-weight:900; line-height:.9; letter-spacing:-.06em; }
  .water-number small { margin-left:5px; font-size:.9rem; letter-spacing:0; }
  .water-number i { font-style:normal; font-size:2rem; color:var(--muted); }
  .note { color:var(--muted); font-size:.74rem; line-height:1.7; }
  .water-proof { padding:clamp(28px,4vw,48px); border-radius:var(--radius); background:#fff; box-shadow:var(--shadow); }
  .water-proof__label { color:var(--navy-700); font-size:.8rem; font-weight:800; }
  .water-proof h3 { margin-top:8px; font-size:clamp(1.5rem,1.25rem + 1.1vw,2.2rem); }
  .water-proof > p:nth-of-type(2) { margin-top:12px; color:var(--muted); }
  .water-proof__photos { margin-top:28px; display:grid; grid-template-columns:1fr; gap:10px; }
  .water-proof__photos img { width:100%; height:auto; object-fit:contain; border-radius:8px; }

  .scene-grid { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .scene-card { min-height:260px; padding:34px 28px; border-right:1px solid var(--line); }
  .scene-card:first-child { border-left:1px solid var(--line); }
  .scene-card > span { color:#93a5b8; font-size:.72rem; font-weight:900; letter-spacing:.12em; }
  .scene-card h3 { margin-top:44px; }
  .scene-card p { margin-top:16px; color:var(--muted); font-size:.88rem; }

  .faq { display:grid; grid-template-columns:.35fr .65fr; gap:clamp(40px,8vw,110px); }
  .faq__list { border-top:1px solid var(--line); }
  details { border-bottom:1px solid var(--line); }
  summary { position:relative; padding:28px 52px 28px 0; cursor:pointer; list-style:none; font-weight:800; line-height:1.6; }
  summary::-webkit-details-marker { display:none; }
  summary::after { content:"+"; position:absolute; right:6px; top:50%; translate:0 -50%; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--line); color:var(--navy-700); }
  details[open] summary::after { content:"−"; }
  details > div { padding:0 52px 28px 0; color:var(--muted); }

  .cta-section { color:#fff; background:var(--navy-800); }
  .cta-section__inner { min-height:360px; padding-block:clamp(64px,7vw,96px); display:grid; grid-template-columns:1fr auto; gap:50px; align-items:center; }
  .cta-section h2 { max-width:14ch; }
  .cta-section p:last-child { margin-top:18px; max-width:52ch; color:rgba(255,255,255,.75); }
  .cta-section__actions { display:grid; gap:12px; min-width:min(320px,100%); }

  .site-footer { padding-block:52px; background:#f4f6f8; }
  .site-footer__inner { display:grid; grid-template-columns:.7fr 1.3fr auto; gap:40px; align-items:end; color:var(--muted); font-size:.78rem; }
  .site-footer__brand { color:var(--navy-950); font-size:1.7rem; font-weight:900; line-height:1; }
  .site-footer__copy { white-space:nowrap; }
}
.hero__actions .button {
  position: relative;
  padding-right: 58px;
}

/* 横線 */
.hero__actions .button::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;

  width: 11px;
  height: 1.5px;

  background: currentColor;

  transition: transform 0.25s ease;
}

/* 矢印の先端 */
.hero__actions .button::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  right: 22px;

  width: 6px;
  height: 6px;

  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;

  transform: rotate(45deg);

  transition: transform 0.25s ease;
}

/* hover */
.hero__actions .button:hover::before {
  transform: translateX(4px);
}

.hero__actions .button:hover::after {
  transform: translateX(4px) rotate(45deg);
}

@layer utilities {
  @media (max-width:1080px) {
    .global-nav > a:not(.nav-cta) { display:none; }
    .compare { grid-template-columns:1fr 1fr; }
    .tech-grid { grid-template-columns:1fr 1fr; }
    .tech-card { min-height:420px; }
    .scene-grid { grid-template-columns:1fr 1fr; }
  }

  @media (max-width:760px) {
    :root { --header-h:66px; }
    .container { width:min(calc(100% - 32px),var(--container)); }
    .section { padding-block:76px; }
    .pc-only { display:none; }
    .site-header__inner { width:calc(100% - 30px); }

    .menu-button { width:48px; height:48px; padding:0; display:grid; place-content:center; gap:5px; border:0; background:transparent; color:var(--navy-950); cursor:pointer; }
    .menu-button__line { width:24px; height:2px; background:currentColor; }
    .menu-button__label { font-size:.52rem; font-weight:800; letter-spacing:.1em; }

    .global-nav { position:fixed; inset:var(--header-h) 0 0; padding:30px 24px 60px; display:grid; align-content:start; gap:0; overflow-y:auto; background:rgba(255,255,255,.98); transform:translateX(100%); transition:transform .28s ease; }
    .global-nav.is-open { transform:none; }
    .global-nav > a, .global-nav > a:not(.nav-cta) { display:block; padding:17px 4px; border-bottom:1px solid var(--line); font-size:.98rem; }
    .nav-cta { margin-top:18px; text-align:center; border-radius:6px; }

    .hero { min-height:780px; align-items:start; }
    .hero__media { inset:45% 0 0; }
    .hero__overlay { background:linear-gradient(180deg,rgba(244,249,253,1) 0%,rgba(244,249,253,.98) 42%,rgba(244,249,253,.38) 66%,rgba(244,249,253,.06) 100%); }
    .hero__inner { padding-top:58px; }
    .hero h1 { max-width:10ch; font-size:clamp(2.5rem,12vw,4rem); }
    .hero__lead { margin-top:18px; font-size:.95rem; }
    .hero__brand { margin-top:24px; }
    .hero__actions { margin-top:24px; }


    .keyfacts__grid { grid-template-columns:1fr 1fr; }
    .keyfact { min-height:98px; padding:20px 16px; border-bottom:1px solid rgba(255,255,255,.16); }
    .keyfact:nth-child(odd) { border-left:none; }
    .keyfact:nth-child(even) { border-right:none; }
    .keyfact span:last-child { font-size:.82rem; }

    .section-heading--split { grid-template-columns:1fr; gap:24px; }
    .section-heading--split > p { padding:0; }

    .compare,.tech-grid,.case-layout,.water-layout,.faq,.cta-section__inner,.site-footer__inner { grid-template-columns:1fr; }
    .compare-card { min-height:auto; }

    .tech-card { min-height:auto; }
    .tech-card h3 { min-height:0; }
    .tech-card > p:last-child { margin-top:0; }

    .case-layout { gap:44px; }
    .case-gallery { grid-template-columns:1fr 1fr; grid-template-rows:auto auto; }
    .case-gallery__main { grid-column:1 / -1; grid-row:auto; }
    .case-gallery figure { min-height:180px; }


    .scene-grid { grid-template-columns:1fr; }
    .scene-card,.scene-card:first-child { border-left:1px solid var(--line); border-right:1px solid var(--line); border-top:1px solid var(--line); }
    .scene-card:last-child { border-bottom:1px solid var(--line); }
    .scene-card { min-height:210px; }
    .scene-card h3 { margin-top:26px; }

    .faq { gap:18px; }
    .cta-section__inner { gap:34px; }
    .cta-section__actions { min-width:0; }
    .site-footer__inner { align-items:start; }
  }

  @media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    *,*::before,*::after { transition-duration:.001ms!important; animation-duration:.001ms!important; animation-iteration-count:1!important; }
  }
}


/* ===== Header logo + dual CTA override ===== */
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.brand__main,
.brand__sub {
  display: none;
}
.brand__logo {
  width: clamp(145px, 15vw, 205px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
}
.global-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 2px;
}
/* =========================
   右側2ボタン
========================= */

/* =========================
   ヘッダー右側 2ボタン
   hoverで色を反転
========================= */

.global-nav__actions .nav-cta {
  /* 前回の矢印は削除 */
  position: relative;
  overflow: hidden;

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

/* 矢印を完全に消す */
.global-nav__actions .nav-cta::before,
.global-nav__actions .nav-cta::after {
  content: none;
}


/* -------------------------
   お問い合わせ
   通常：白背景 × 青文字
   hover：青背景 × 白文字
------------------------- */

.nav-cta--contact {
  color: var(--navy-800);
  background: #fff;
  border-color: var(--navy-800);
}

.nav-cta--contact:hover {
  color: #fff;
  background: var(--navy-800);
  border-color: var(--navy-800);
}


/* -------------------------
   資料ダウンロード
   通常：青背景 × 白文字
   hover：白背景 × 青文字
------------------------- */

.nav-cta--download {
  color: #fff;
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.nav-cta--download:hover {
  color: var(--navy-800);
  background: #fff;
  border-color: var(--navy-800);
}




@media (max-width:760px) {
  .brand__logo {
    width:152px;
    max-height:54px;
  }
}


/* =========================================================
   MOBILE / TABLET NAV FINAL FIX
   PCと同じメニュー項目を1080px以下ですべて表示
   ========================================================= */
@media (max-width: 1080px) {
  .site-header {
    overflow: visible;
  }

  .site-header__inner {
    position: static;
  }

  .menu-button {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    display: grid !important;
    place-content: center;
    gap: 5px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--navy-950);
    cursor: pointer;
  }

  .menu-button__line {
    width: 24px;
    height: 2px;
    display: block;
    background: currentColor;
    transition: transform .25s ease;
  }

  .menu-button__label {
    display: block;
    font-size: .52rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .1em;
  }

  .menu-button[aria-expanded="true"] .menu-button__line:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button__line:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .global-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: calc(100dvh - var(--header-h)) !important;
    max-height: calc(100dvh - var(--header-h)) !important;
    padding: 20px 24px 44px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff !important;
    box-shadow: 0 18px 35px rgba(3, 27, 55, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) !important;
    transition:
      opacity .2s ease,
      transform .2s ease,
      visibility .2s ease !important;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) !important;
  }

  /* Earlier CSS hid these at <=1080px. Force every PC item back on. */
  .global-nav > a,
  .global-nav > a:not(.nav-cta) {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    width: 100%;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    color: var(--ink) !important;
    background: transparent !important;
    font-size: .98rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  .global-nav__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100%;
    margin: 22px 0 0 !important;
    flex: 0 0 auto !important;
  }

  .global-nav__actions .nav-cta {
    display: flex !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1px solid var(--navy-800) !important;
    border-radius: 6px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .global-nav__actions .nav-cta--contact {
    color: var(--navy-900) !important;
    background: #fff !important;
  }

  .global-nav__actions .nav-cta--download {
    color: #fff !important;
    background: var(--navy-800) !important;
  }
}

@media (max-width: 760px) {
  .global-nav {
    padding-inline: 20px !important;
  }
}



/* ===== RE/BIO comparison responsive ===== */
@media (max-width:1080px) {
  .difference__head {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .compare {
    grid-template-columns: 1fr 1fr;
  }

  .compare-card--portable {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .portable-grid {
    max-width: 520px;
  }
}

@media (max-width:760px) {
  .difference__head {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    margin-bottom: 40px;
  }

  .difference__lead {
    max-width: none;
    padding-bottom: 0;
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .compare-card,
  .compare-card--rebio {
    min-height: auto;
    padding: 52px 22px 26px;
  }

  .compare-card--portable {
    grid-column: auto;
  }

  .compare-card__num {
    width: 72px;
    height: 66px;
    font-size: 1.55rem;
  }

  .compare-card__head {
    min-height: 54px;
    padding-left: 48px;
  }

  .compare-card__label {
    font-size: .82rem;
  }

  .compare-card__head-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .compare-card__head-icon img {
    width: 29px;
    height: 29px;
  }

  .compare-flow,
  .compare-card--rebio .compare-flow {
    gap: 5px;
  }

  .compare-flow__item,
  .compare-card--rebio .compare-flow__item {
    min-height: 102px;
    padding: 12px 4px 10px;
    font-size: .68rem;
  }

  .compare-flow__item img {
    width: 29px;
    height: 29px;
  }

  .compare-flow__arrow,
  .compare-card--rebio .compare-flow__arrow {
    flex-basis: 10px;
    font-size: .9rem;
  }

  .compare-card__vehicle {
    margin-inline: -22px;
    height: 135px;
  }

  .portable-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 水循環式手洗いの特徴カード */
.compare-card--water {
  border-color: #8ccdd9;
  background: #f1fbfd;
}
.compare-card--water .compare-card__num {
  background: linear-gradient(135deg, #087c96, #169ab0);
}
.compare-card--water .compare-card__label,
.compare-card--water .compare-card__head-icon {
  color: #086d83;
}
.compare-card--water .compare-card__head-icon { background: #dcf3f7; }
.compare-card__water-stat {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #086d83;
  line-height: 1.4;
}
.compare-card__water-stat strong { font-size: 2.6rem; letter-spacing: -.04em; }
.compare-card__water-stat small { margin-left: 3px; font-size: .9rem; }
.compare-card__water-stat > span { font-size: .82rem; }
.compare-card__water-photo { margin-top: 22px; }
.compare-card__water-photo img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 10px;
}
.compare-card__note { margin-top: 12px; color: var(--muted); font-size: .72rem; line-height: 1.6; }

/* 写真と操作ボタンに控えめな動き。タッチ端末ではホバー演出を省略。 */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .case-gallery img,
  .water-proof__photos img {
    transition: transform .8s cubic-bezier(.22, 1, .36, 1);
  }
  .case-gallery figure:hover img { transform: scale(1.035); }
  .water-proof__photos img:hover { transform: translateY(-3px); }
  .button {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
  }
  .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(3, 27, 55, .14);
  }
}

/* 支給された実機写真：設備全体が見える収まりを優先 */
.tech-card__visual img,
.compare-card__water-photo img {
  object-fit: contain;
  background: #e9eef3;
}
.case-gallery { grid-template-rows: auto auto auto; }
.case-gallery__main { grid-row: 1 / 3; }
.case-gallery img { object-fit: contain; }
.water-proof__photos img { object-fit: contain; background: #e9eef3; }
.photo-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.7;
}
.case-gallery > .photo-caption { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 760px) {
  .case-gallery__main { grid-row: auto; }
}

/* 元の人物写真の表示 */
.case-gallery__main img { object-fit: cover; }

/* 活用シーンの写真サムネイル */
.scene-card { padding: 0 0 28px; min-width: 0; }
.scene-card__photo { overflow: hidden; background: #e9eef3; aspect-ratio: 3 / 2; }
.scene-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.scene-card > span { display: block; margin: 22px 24px 0; }
.scene-card h3 { margin: 12px 24px 0; }
.scene-card > p { margin: 16px 24px 0; }

/* お問い合わせ：中央見出し＋丸型の2つの窓口 */
.cta-section { background: #edf3fa; color: var(--navy-950); }
.cta-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  min-height: 440px;
  padding-block: clamp(64px, 8vw, 112px);
  text-align: center;
}
.cta-section h2 {
  max-width: none;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .035em;
}
.cta-section__copy > p:last-child {
  margin: 24px auto 0;
  max-width: 54ch;
  color: var(--ink);
  font-size: clamp(.9rem, 1.2vw, 1rem);
  font-weight: 600;
  line-height: 1.9;
}
.cta-section__actions {
  width: min(100%, 1000px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  min-width: 0;
}
.contact-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 20px 64px 20px 30px;
  border: 2px solid var(--navy-800);
  border-radius: 999px;
  font-size: clamp(.95rem, 1.4vw, 1.125rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .025em;
}
.contact-button--mail { color: var(--navy-800); background: #fff; }
.contact-button--phone { color: #fff; background: var(--navy-800); font-variant-numeric: tabular-nums; }
.contact-button__arrow {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .contact-button { transition: transform .3s ease, box-shadow .3s ease; }
}
@media (hover: hover) and (pointer: fine) {
  .contact-button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(3,27,55,.12); }
}
@media (max-width: 760px) {
  .cta-section__actions { grid-template-columns: 1fr; max-width: 480px; gap: 16px; }
  .contact-button { min-height: 72px; padding: 18px 52px 18px 22px; font-size: .95rem; }
  .contact-button__arrow { right: 18px; width: 30px; height: 30px; }
}

/* 写真を枠の横幅いっぱいに表示し、余白の帯を解消 */
.compare-card__vehicle { height: auto; aspect-ratio: 8 / 5; }
.compare-card__vehicle img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tech-card__visual { min-height: 0; aspect-ratio: 3 / 2; }
.tech-card__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compare-card__water-photo img { display: block; width: 100%; height: auto; }

/* 写真・ラベル・数字のバランス調整 */
.compare { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare-card__label { font-size: 1rem; }
.tech-card__en { font-size: .85rem; }
.compare-card__water-photo {
  margin: 28px -30px 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
}
.compare-card__water-photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
.case-gallery figure { position: relative; }
.case-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.water-number { align-items: center; gap: clamp(12px, 1.5vw, 22px); }
.water-number span { font-size: clamp(2.5rem, 4vw, 3.75rem); line-height: 1.15; letter-spacing: -.035em; white-space: nowrap; }
.water-number small { font-size: clamp(1rem, 1.5vw, 1.3rem); }
.water-number i { font-size: 1.5rem; }
.scene-grid { gap: 20px; border: 0; }
.scene-card, .scene-card:first-child, .scene-card:last-child { border: 1px solid var(--line); }
.scene-card > span { font-size: 1.15rem; font-weight: 800; color: #43566d; }
.scene-card p { color: #33465d; }
.contact-button { font-size: 21px; gap: 10px; }
.contact-button__phone-icon { width: 23px; height: 23px; flex: 0 0 23px; }
@media (min-width: 761px) {
  .water-layout h2 { font-size: clamp(1.25rem, 2.2vw, 1.875rem); letter-spacing: -.045em; }
}
@media (max-width: 1080px) {
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-card__water-photo { margin-inline: -22px; }
  .case-gallery__main { aspect-ratio: 4 / 3; }
  .contact-button { padding-left: 14px; padding-right: 48px; gap: 7px; }
}
