:root {
  --bg: #f4f5f7;
  --paper: #ffffff;
  --navy: #08264d;
  --navy-2: #354f6f;
  --red: #ef3b16;
  --red-2: #d71920;
  --green: #06c755;
  --gold: #f06423;
  --line: #dfe3e8;
  --muted: #68717a;
  --shadow: 0 18px 36px rgba(8, 38, 77, 0.12);
  --radius: 26px;
  --font-ja: "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --inner: min(1500px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-ja);
  font-weight: 700;
  line-height: 1.75;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 108px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 28px;
  padding-left: 34px;
  background: rgba(243, 244, 246, 0.96);
  border-top: 1px solid var(--navy);
  box-shadow: 0 1px 0 rgba(8, 38, 77, 0.05);
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  align-content: center;
  min-width: 112px;
  line-height: 1.02;
}

.brand span {
  font-size: 17px;
  font-weight: 900;
}

.brand strong {
  color: var(--red);
  font-family: var(--font-en);
  font-size: 33px;
  font-weight: 900;
  line-height: 0.95;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.45vw, 34px);
  min-width: 0;
  font-size: clamp(13px, 0.8vw, 17px);
  font-weight: 900;
  white-space: nowrap;
}

.global-nav a {
  transition: color 0.2s ease;
}

.global-nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.header-phone {
  display: grid;
  align-content: center;
  min-width: 214px;
  padding: 0 24px;
  text-align: center;
}

.header-phone small {
  font-size: 13px;
}

.header-phone strong {
  font-family: var(--font-en);
  font-size: 29px;
  font-weight: 900;
  line-height: 1.08;
}

.header-cta {
  display: grid;
  place-items: center;
  min-width: 210px;
  padding: 0 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.red {
  background: var(--red-2);
}

.green {
  background: var(--green);
}

.nav-toggle {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 112px;
  border: 0;
  background: var(--navy-2);
  color: #fff;
}

.nav-toggle span {
  display: block;
  width: 48px;
  height: 4px;
  background: currentColor;
}

.nav-toggle small {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
}

.hero {
  padding: 76px 0 98px;
  background: var(--bg);
}

.hero-stage {
  width: var(--inner);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.42fr);
  gap: 72px;
  align-items: start;
}

.hero-copy {
  position: relative;
  min-width: 0;
  min-height: 720px;
  padding: clamp(42px, 5vw, 84px);
  overflow: hidden;
  border-radius: 0 var(--radius) var(--radius) 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    repeating-linear-gradient(0deg, rgba(8, 38, 77, 0.06) 0 1px, transparent 1px 48px);
  box-shadow: var(--shadow);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 16px;
  background: var(--navy);
}

.hero-copy::after {
  content: "WEB";
  position: absolute;
  right: 44px;
  bottom: 26px;
  color: rgba(8, 38, 77, 0.08);
  font-family: var(--font-en);
  font-size: clamp(140px, 16vw, 250px);
  font-weight: 900;
  line-height: 1;
}

.hero-kicker {
  margin-bottom: 10px;
  text-align: center;
  font-size: clamp(22px, 2vw, 33px);
  font-weight: 900;
}

.hero-badge {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 10px 42px;
  border-radius: 6px;
  background: var(--gold);
  color: #fff;
  font-size: clamp(18px, 1.7vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}

h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  text-align: center;
  font-size: clamp(48px, 5.8vw, 92px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span,
.section-head h2 span,
.hero-form-wrap h2 span,
.pain-card h3 span,
.reason-card h3 span {
  color: var(--red);
}

.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 38px;
  font-size: clamp(18px, 1.2vw, 23px);
  text-align: center;
}

.hero-checks {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 44px;
  padding: 0;
  list-style: none;
}

.hero-checks li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 2px dotted rgba(8, 38, 77, 0.24);
  color: #111;
  font-size: clamp(20px, 1.5vw, 31px);
  font-weight: 900;
}

.hero-checks li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #111;
  color: var(--red);
  font-size: 26px;
  line-height: 1;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary,
.button.submit {
  border-color: var(--red-2);
  background: var(--red-2);
  color: #fff;
}

.button.outline {
  background: #fff;
  color: var(--navy);
}

.hero-form-wrap {
  min-width: 0;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-mini {
  margin-bottom: 4px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.hero-form-wrap h2 {
  margin-bottom: 0;
  text-align: center;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 900;
  line-height: 1.2;
}

.required-note {
  margin: 12px 0 14px;
  text-align: center;
  font-size: 17px;
}

.required-note span {
  color: var(--red);
}

.diagnosis-form {
  display: grid;
  gap: 16px;
}

.diagnosis-form label {
  display: grid;
  gap: 8px;
}

.diagnosis-form label span {
  font-size: 15px;
  font-weight: 900;
}

.diagnosis-form input,
.diagnosis-form select,
.diagnosis-form textarea {
  width: 100%;
  min-height: 62px;
  border: 3px solid var(--navy-2);
  border-radius: 13px;
  background: #fff;
  padding: 12px 22px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  outline: 0;
}

.diagnosis-form textarea {
  min-height: 132px;
  resize: vertical;
}

.diagnosis-form input::placeholder,
.diagnosis-form textarea::placeholder {
  color: rgba(8, 38, 77, 0.45);
}

.diagnosis-form input:focus,
.diagnosis-form select:focus,
.diagnosis-form textarea:focus {
  border-color: var(--red);
}

.privacy-box {
  border: 2px solid #b8c3d1;
  border-radius: 12px;
  background: #fff;
}

.privacy-box summary {
  padding: 14px 18px;
}

.privacy-box p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
}

.button.submit {
  width: 100%;
  min-height: 76px;
  border-radius: 16px;
  font-size: 31px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
  text-align: center;
}

.section {
  padding: 110px 0;
  overflow: hidden;
}

.section-inner {
  width: var(--inner);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 46px;
}

.section-head.wide {
  max-width: 1040px;
}

.section-head h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.5vw, 64px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

.section-head p {
  max-width: 900px;
  color: var(--navy);
  font-size: clamp(17px, 1.2vw, 22px);
}

.card-scroll,
.issue-scroll,
.reason-scroll {
  display: flex;
  gap: 28px;
  margin-inline: calc((100vw - var(--inner)) / -2);
  padding: 0 calc((100vw - var(--inner)) / 2) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.card-scroll::-webkit-scrollbar,
.issue-scroll::-webkit-scrollbar,
.reason-scroll::-webkit-scrollbar {
  display: none;
}

.pain-card,
.issue-card,
.reason-card {
  flex: 0 0 min(560px, calc(100vw - 54px));
  scroll-snap-align: start;
  min-height: 520px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.pain-card {
  display: grid;
  align-content: start;
  gap: 30px;
  padding: 62px 54px;
}

.pain-card h3 {
  margin: 0;
  font-size: clamp(34px, 3vw, 54px);
  font-weight: 900;
  line-height: 1.35;
}

.pain-card b {
  width: fit-content;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 17px;
}
.pain-card p,
.issue-card p,
.reason-card p,
.work-card p,
.price-card span,
.faq-list p {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.scroll-controls {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  margin-top: 26px;
}

.scroll-controls button {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: #d9dde2;
  color: #2e3b44;
  font-size: 64px;
  font-family: var(--font-en);
  line-height: 0.8;
}

.scroll-controls button:last-child {
  background: #c5cbd2;
}

.issues {
  background: #eef0f2;
}

.issue-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 40px;
}

.issue-card strong {
  color: #c7ced8;
  font-family: var(--font-en);
  font-size: 66px;
  font-weight: 900;
  line-height: 1;
}

.issue-card h3 {
  margin: 0;
  font-size: clamp(26px, 2vw, 36px);
  font-weight: 900;
  line-height: 1.42;
}

.issue-card.invert {
  background: var(--navy);
  color: #fff;
}

.issue-card.invert strong,
.issue-card.invert p {
  color: #fff;
}

.plus {
  position: absolute;
  right: 30px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-en);
  font-size: 54px;
  line-height: 1;
}

.section-pill {
  display: inline-flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  border-radius: 999px;
  background: #758394;
  color: #fff;
  padding: 16px 48px;
  font-size: 24px;
  font-weight: 900;
}

.section-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.section-ctas .section-pill {
  min-width: 180px;
  margin-top: 0;
}

.cta-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1.1fr) minmax(150px, 0.55fr);
  gap: clamp(8px, 1vw, 14px);
  align-items: center;
  width: 100%;
}

.section-ctas.cta-strip {
  grid-template-columns: minmax(0, 320px) minmax(0, 320px) minmax(0, 150px);
  justify-content: start;
  column-gap: 6px;
  margin-top: 32px;
}

.section-ctas .cta-card {
  justify-self: center;
  width: min(100%, 320px);
}

.bottom-cta .section-inner.cta-strip {
  grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1.1fr) minmax(150px, 0.55fr);
  gap: clamp(8px, 1vw, 14px);
}

.cta-card {
  display: grid;
  min-height: 66px;
  align-content: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 22px;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  transition: opacity 0.2s ease;
}

.cta-card--red {
  background: var(--red-2);
}

.cta-card--green {
  background: var(--green);
}

.cta-card:hover,
.cta-link:hover {
  opacity: 0.86;
}

.cta-note {
  display: block;
  font-size: clamp(10px, 0.82vw, 13px);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.cta-text {
  display: block;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.cta-link {
  position: relative;
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: min(100%, 150px);
  margin-left: 44px;
  padding: 0 20px 0 10px;
  border: 1px solid #4b5963;
  border-radius: 999px;
  background: #fff;
  color: #2f3b45;
  text-align: center;
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 500;
  line-height: 1.15;
  transition: opacity 0.2s ease;
}

.cta-link::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: rotate(45deg);
}

@media (max-width: 1280px) {
  .cta-strip,
  .bottom-cta .section-inner.cta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .section-ctas.cta-strip {
    grid-template-columns: minmax(0, 320px) minmax(0, 320px) minmax(0, 150px);
    justify-content: start;
    row-gap: 12px;
  }
}

@media (max-width: 760px) {
  .section-ctas.cta-strip {
    margin-top: 28px;
  }

  .cta-strip,
  .bottom-cta .section-inner.cta-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cta-card {
    min-height: 58px;
    border-radius: 5px;
  }

  .section-ctas .cta-card {
    width: min(100%, 260px);
  }

  .cta-text {
    font-size: 17px;
  }

  .cta-note {
    font-size: 11px;
  }

  .cta-link {
    min-height: 30px;
    width: min(100%, 170px);
    margin-left: 0;
    padding: 0 22px 0 10px;
    font-size: 11px;
    justify-self: center;
    margin-left: 0;
  }
}

.reason-card {
  min-height: 500px;
  padding: 52px;
}

.reason-card i {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-family: var(--font-en);
  font-size: 66px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.reason-card h3 {
  margin-bottom: 18px;
  font-size: clamp(28px, 2.4vw, 43px);
  font-weight: 900;
  line-height: 1.42;
}
.works {
  background: #fff;
}

.works-grid,
.price-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.work-card,
.price-card,
.knowledge-list div {
  min-height: 260px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.work-card {
  display: grid;
  align-content: start;
  padding: 34px;
  border-top: 8px solid var(--red);
}

.work-card span,
.knowledge-list span {
  margin-bottom: 32px;
  color: var(--red);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 900;
}

.work-card h3 {
  margin-bottom: 14px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

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

.knowledge-list div {
  padding: 34px;
}

.knowledge-list p {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.price {
  background: #eef0f2;
}

.price-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 38px;
  border: 3px solid transparent;
}

.price-card.featured {
  border-color: var(--red);
}

.price-card p {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.price-card strong {
  color: var(--red);
  font-family: var(--font-en);
  font-size: clamp(42px, 4vw, 72px);
  font-weight: 900;
  line-height: 1;
}
.faq-list {
  border-top: 3px solid var(--navy);
}

.faq-list details {
  border-bottom: 2px solid var(--line);
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 28px 30px;
  list-style: none;
  font-size: 22px;
  font-weight: 900;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--red);
  font-family: var(--font-en);
  font-size: 32px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 920px;
  margin: 0;
  padding: 0 30px 30px;
}

.bottom-cta {
  padding: 62px 0 86px;
  background: var(--bg);
}

.bottom-cta .section-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: center;
}

.bottom-main,
.bottom-sub {
  display: grid;
  place-items: center;
  min-height: 98px;
  border-radius: 10px;
  text-align: center;
  font-size: 29px;
  font-weight: 900;
}

.bottom-main {
  color: #fff;
}

.bottom-sub {
  min-height: 72px;
  border: 2px solid var(--navy-2);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 19px;
}

.site-footer {
  padding: 54px 0;
  background: var(--navy);
  color: #fff;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.site-footer strong {
  font-size: 22px;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1580px) {
  :root {
    --inner: min(1180px, calc(100vw - 64px));
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
  }

  .global-nav {
    display: none;
  }

  .global-nav.is-open {
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 18px 32px 24px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .global-nav.is-open a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 1180px) {
  .header-phone,
  .header-cta {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    padding-left: 28px;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy {
    min-height: auto;
    border-radius: var(--radius);
  }

  .hero-form-wrap {
    max-width: 720px;
    margin: 0 auto;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --inner: calc(100vw - 36px);
    --radius: 20px;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 78px;
    padding-left: 18px;
  }

  .brand span {
    font-size: 13px;
  }

  .brand strong {
    font-size: 27px;
  }

  .nav-toggle {
    width: 82px;
  }

  .nav-toggle span {
    width: 38px;
    height: 3px;
  }

  .nav-toggle small {
    font-size: 11px;
  }

  .global-nav.is-open {
    top: 78px;
    padding-inline: 22px;
  }

  .hero {
    padding: 34px 0 72px;
  }

  .hero-stage,
  .section-inner {
    width: 100%;
    max-width: 100%;
    padding-inline: 18px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 34px 22px;
  }

  .hero-copy::before {
    width: 9px;
  }

  .hero-kicker {
    font-size: 21px;
  }

  .hero-badge {
    padding: 8px 20px;
    font-size: 18px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  h1 span,
  .hero-form-wrap h2 span {
    display: block;
  }

  .hero-lead {
    text-align: left;
  }

  .hero-checks li {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 56px;
    font-size: 18px;
  }

  .hero-checks li::before {
    width: 28px;
    height: 28px;
    font-size: 21px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-form-wrap {
    width: 100%;
    padding: 22px;
  }

  .hero-form-wrap h2 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .diagnosis-form input,
  .diagnosis-form select,
  .diagnosis-form textarea {
    min-height: 56px;
    border-width: 2px;
    border-radius: 10px;
    padding-inline: 16px;
  }

  .button.submit {
    min-height: 66px;
    font-size: 26px;
  }

  .section {
    padding: 78px 0;
  }

  .section-head h2 {
    font-size: clamp(31px, 9vw, 48px);
  }

  .card-scroll,
  .issue-scroll,
  .reason-scroll {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .pain-card,
  .issue-card,
  .reason-card {
    min-height: 420px;
    padding: 34px 28px;
  }

  .pain-card h3 {
    font-size: 32px;
  }

  .scroll-controls {
    justify-content: center;
  }

  .scroll-controls button {
    width: 58px;
    height: 58px;
    font-size: 52px;
  }

  .split,
  .price-list,
  .knowledge-list,
  .bottom-cta .section-inner {
    grid-template-columns: 1fr;
  }

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

  .work-card,
  .price-card {
    min-height: auto;
  }

  .footer-layout {
    display: grid;
  }
}

@media (max-width: 500px) {
  .nav-toggle {
    position: fixed;
    top: 0;
    right: auto;
    left: calc(min(100vw, 390px) - 82px);
    height: 78px;
  }

  .hero-stage,
  .section-inner {
    width: min(390px, 100vw);
    margin-left: 0;
    margin-right: auto;
  }

  .hero-copy,
  .hero-form-wrap {
    width: 100%;
  }

  .hero-copy {
    padding-inline: 20px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .button {
    width: min(100%, 320px);
    margin-inline: auto;
    padding-inline: 18px;
  }
}

/* Overall scale tuning */
:root {
  --shadow: 0 12px 26px rgba(8, 38, 77, 0.1);
  --radius: 18px;
}

.site-header {
  height: 88px;
  gap: 22px;
  padding-left: 28px;
}

.brand {
  min-width: 96px;
}

.brand span {
  font-size: 14px;
}

.brand strong {
  font-size: 28px;
}

.header-phone {
  min-width: 190px;
  padding-inline: 18px;
}

.header-phone small {
  font-size: 12px;
}

.header-phone strong {
  font-size: 25px;
}

.header-cta {
  min-width: 176px;
  padding-inline: 20px;
  font-size: 17px;
}

.nav-toggle {
  width: 92px;
}

.nav-toggle span {
  width: 42px;
  height: 3px;
}

.hero {
  padding: 56px 0 74px;
}

.hero-stage {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.38fr);
  gap: 48px;
}

.hero-copy {
  min-height: 560px;
  padding: clamp(34px, 4vw, 62px);
}

.hero-copy::before {
  width: 12px;
}

.hero-copy::after {
  font-size: clamp(100px, 13vw, 190px);
}

.hero-kicker {
  margin-bottom: 8px;
  font-size: clamp(18px, 1.55vw, 25px);
}

.hero-badge {
  margin-bottom: 14px;
  padding: 8px 30px;
  font-size: clamp(16px, 1.25vw, 22px);
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4.6vw, 70px);
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(15px, 1vw, 19px);
}

.hero-checks {
  gap: 10px;
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-checks li {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  min-height: 52px;
  padding: 10px 16px;
  font-size: clamp(17px, 1.15vw, 23px);
}

.hero-checks li::before {
  width: 28px;
  height: 28px;
  border-width: 2px;
  font-size: 21px;
}

.hero-actions {
  gap: 14px;
}

.button {
  min-height: 48px;
  padding: 11px 26px;
  font-size: 15px;
}

.hero-form-wrap {
  padding: 24px;
}

.form-mini {
  font-size: 15px;
}

.hero-form-wrap h2 {
  font-size: clamp(24px, 2.2vw, 35px);
}

.required-note {
  margin: 8px 0 12px;
  font-size: 14px;
}

.diagnosis-form {
  gap: 12px;
}

.diagnosis-form label {
  gap: 6px;
}

.diagnosis-form label span {
  font-size: 13px;
}

.diagnosis-form input,
.diagnosis-form select,
.diagnosis-form textarea {
  min-height: 50px;
  border-width: 2px;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
}

.diagnosis-form textarea {
  min-height: 104px;
}

.privacy-box summary {
  padding: 10px 14px;
}

.privacy-box p {
  padding: 0 14px 12px;
  font-size: 12px;
}

.button.submit {
  min-height: 58px;
  border-radius: 12px;
  font-size: 22px;
}

.section {
  padding: 84px 0;
}

.section-head {
  margin-bottom: 34px;
}

.section-head.wide {
  max-width: 900px;
}

.section-head h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 2.7vw, 48px);
}

.section-head p {
  max-width: 760px;
  font-size: clamp(14px, 1vw, 18px);
}

.card-scroll,
.issue-scroll,
.reason-scroll {
  gap: 22px;
}

.pain-card,
.issue-card,
.reason-card {
  flex-basis: min(430px, calc(100vw - 54px));
  min-height: 380px;
}

.pain-card {
  gap: 22px;
  padding: 40px 36px;
}

.pain-card h3 {
  font-size: clamp(24px, 2vw, 36px);
}

.pain-card b {
  padding: 6px 18px;
  font-size: 14px;
}
.pain-card p,
.issue-card p,
.reason-card p,
.work-card p,
.price-card span,
.faq-list p {
  font-size: 15px;
}

.scroll-controls {
  gap: 18px;
  margin-top: 18px;
}

.scroll-controls button {
  width: 56px;
  height: 56px;
  font-size: 48px;
}

.issue-card {
  gap: 14px;
  padding: 32px;
}

.issue-card strong {
  font-size: 48px;
}

.issue-card h3 {
  font-size: clamp(22px, 1.6vw, 30px);
}

.plus {
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  font-size: 40px;
}

.section-pill {
  min-height: 54px;
  padding: 12px 36px;
  font-size: 18px;
}

.reason-card {
  min-height: 370px;
  padding: 38px;
}

.reason-card i {
  margin-bottom: 24px;
  font-size: 48px;
}

.reason-card h3 {
  margin-bottom: 14px;
  font-size: clamp(22px, 1.8vw, 32px);
}

.works-grid,
.price-list {
  gap: 20px;
}
.work-card,
.price-card,
.knowledge-list div {
  min-height: 210px;
}

.work-card {
  padding: 28px;
  border-top-width: 6px;
}

.work-card span,
.knowledge-list span {
  margin-bottom: 22px;
  font-size: 12px;
}

.work-card h3 {
  font-size: 22px;
}

.split {
  gap: 56px;
}

.knowledge-list {
  gap: 18px;
}

.knowledge-list div {
  padding: 28px;
}

.knowledge-list p {
  font-size: 18px;
}

.price-card {
  gap: 12px;
  padding: 30px;
}

.price-card p {
  font-size: 20px;
}

.price-card strong {
  font-size: clamp(34px, 3.2vw, 56px);
}
.faq-list summary {
  padding: 22px 26px;
  font-size: 18px;
}

.faq-list summary::after {
  font-size: 26px;
}

.faq-list p {
  padding: 0 26px 24px;
}

.bottom-cta {
  padding: 48px 0 68px;
}

.bottom-cta .section-inner {
  gap: 20px;
}

.bottom-main,
.bottom-sub {
  min-height: 76px;
  font-size: 22px;
}

.bottom-sub {
  min-height: 58px;
  font-size: 16px;
}

@media (max-width: 1180px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-form-wrap {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 70px;
  }

  .brand span {
    font-size: 12px;
  }

  .brand strong {
    font-size: 24px;
  }

  .nav-toggle {
    width: 76px;
  }

  .nav-toggle span {
    width: 34px;
  }

  .hero {
    padding: 28px 0 58px;
  }

  .hero-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    padding: 28px 20px;
  }

  .hero-kicker {
    font-size: 17px;
  }

  .hero-badge {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-checks li {
    min-height: 48px;
    font-size: 15px;
  }

  .hero-form-wrap {
    padding: 20px;
  }

  .hero-form-wrap h2 {
    font-size: 24px;
  }

  .button.submit {
    min-height: 54px;
    font-size: 20px;
  }

  .section {
    padding: 62px 0;
  }

  .section-head h2 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .pain-card,
  .issue-card,
  .reason-card {
    min-height: 330px;
    padding: 28px 24px;
  }

  .pain-card h3 {
    font-size: 24px;
  }

  .reason-card h3,
  .issue-card h3 {
    font-size: 22px;
  }

  .bottom-main,
  .bottom-sub {
    min-height: 58px;
    font-size: 17px;
  }
}

@media (max-width: 500px) {
  .nav-toggle {
    height: 70px;
    left: calc(min(100vw, 390px) - 76px);
  }

  .button {
    width: min(100%, 300px);
  }
}

/* Final compact high-contrast color pass */
:root {
  --bg: #f4f5f7;
  --paper: #ffffff;
  --navy: #08264d;
  --navy-2: #354f6f;
  --red: #ef3b16;
  --red-2: #d71920;
  --green: #06c755;
  --gold: #f06423;
  --line: #dfe3e8;
  --muted: #68717a;
  --shadow: 0 8px 22px rgba(8, 38, 77, 0.1);
  --radius: 14px;
  --inner: min(1240px, calc(100vw - 80px));
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 500;
}

.site-header {
  height: 78px;
  padding-left: 24px;
  background: rgba(242, 247, 251, 0.96);
}

.brand {
  min-width: 86px;
}

.brand span {
  font-size: 12px;
}

.brand strong {
  font-size: 24px;
  color: var(--navy);
  font-weight: 500;
}

.header-phone {
  min-width: 172px;
  background: var(--navy);
  color: #fff;
}

.header-phone strong {
  font-size: 22px;
  font-weight: 700;
}

.header-cta {
  min-width: 154px;
  font-size: 15px;
  font-weight: 700;
}

.button.primary,
.bottom-main.red {
  border-color: var(--red-2);
  background: var(--red-2);
  box-shadow: 0 10px 20px rgba(67, 167, 196, 0.18);
}

.header-cta.red,
.button.submit {
  background: var(--red-2);
  box-shadow: 0 8px 18px rgba(67, 167, 196, 0.14);
}

.global-nav {
  font-weight: 700;
}

.hero-copy h1,
.section-head h2,
.detail-modal__hero h2 {
  font-weight: 800;
}

.hero-kicker,
.hero-lead,
.diagnosis-form label span,
.pain-card p,
.issue-card p,
.reason-card p,
.work-card p,
.faq-list p {
  font-weight: 500;
}

.nav-toggle {
  width: 82px;
}

.nav-toggle span {
  width: 36px;
}

.hero {
  padding: 44px 0 62px;
}

.hero-stage {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: 36px;
}

.hero-copy {
  min-height: 500px;
  padding: clamp(28px, 3.4vw, 48px);
}

.hero-copy::before {
  width: 10px;
}

.hero-copy::after {
  font-size: clamp(80px, 10vw, 150px);
}

.hero-kicker {
  font-size: clamp(16px, 1.3vw, 21px);
}

.hero-badge {
  padding: 7px 24px;
  font-size: clamp(14px, 1.05vw, 18px);
}

h1 {
  font-size: clamp(32px, 3.9vw, 58px);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(14px, 0.9vw, 16px);
}

.hero-checks {
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-checks li {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 44px;
  padding: 8px 14px;
  font-size: clamp(14px, 0.95vw, 18px);
}

.hero-checks li::before {
  width: 24px;
  height: 24px;
  font-size: 18px;
}

.button {
  min-height: 42px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 800;
}

.hero-form-wrap {
  padding: 20px;
}

.form-mini {
  font-size: 13px;
}

.hero-form-wrap h2 {
  font-size: clamp(21px, 1.8vw, 29px);
}

.required-note {
  font-size: 12px;
}

.diagnosis-form {
  gap: 10px;
}

.diagnosis-form label span {
  font-size: 12px;
}

.diagnosis-form input,
.diagnosis-form select,
.diagnosis-form textarea {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13px;
}

.diagnosis-form textarea {
  min-height: 88px;
}

.button.submit {
  min-height: 50px;
  font-size: 18px;
}

.section {
  padding: 68px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(24px, 2.2vw, 38px);
}

.section-head p {
  font-size: clamp(13px, 0.9vw, 16px);
}

.card-scroll,
.issue-scroll,
.reason-scroll {
  gap: 18px;
}

.pain-card,
.issue-card,
.reason-card {
  flex-basis: min(360px, calc(100vw - 54px));
  min-height: 300px;
}

.pain-card {
  gap: 16px;
  padding: 28px;
}

.pain-card h3 {
  font-size: clamp(20px, 1.6vw, 28px);
}

.pain-card b {
  padding: 5px 14px;
  font-size: 12px;
}
.pain-card p,
.issue-card p,
.reason-card p,
.work-card p,
.price-card span,
.faq-list p {
  font-size: 13px;
}

.scroll-controls button {
  width: 46px;
  height: 46px;
  font-size: 40px;
}

.issue-card {
  padding: 26px;
}

.issue-card strong {
  font-size: 38px;
}

.issue-card h3 {
  font-size: clamp(18px, 1.35vw, 24px);
}

.plus {
  width: 44px;
  height: 44px;
  font-size: 32px;
}

.section-pill {
  min-height: 46px;
  padding: 10px 28px;
  font-size: 15px;
}

.reason-card {
  min-height: 300px;
  padding: 28px;
}

.reason-card i {
  margin-bottom: 18px;
  font-size: 38px;
}

.reason-card h3 {
  font-size: clamp(18px, 1.45vw, 25px);
}
.work-card,
.price-card,
.knowledge-list div {
  min-height: 170px;
}

.work-card {
  padding: 22px;
}

.work-card h3 {
  font-size: 18px;
}

.work-card span,
.knowledge-list span {
  margin-bottom: 16px;
}

.knowledge-list div {
  padding: 22px;
}

.knowledge-list p {
  font-size: 16px;
}

.price-card {
  padding: 24px;
}

.price-card p {
  font-size: 17px;
}

.price-card strong {
  font-size: clamp(28px, 2.6vw, 44px);
}

.faq-list summary {
  padding: 18px 22px;
  font-size: 16px;
}

.bottom-main,
.bottom-sub {
  min-height: 62px;
  font-size: 18px;
}

.bottom-sub {
  min-height: 50px;
  font-size: 14px;
}

@media (max-width: 1180px) {
  :root {
    --inner: min(920px, calc(100vw - 56px));
  }

  .hero-stage {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 820px) {
  :root {
    --inner: calc(100vw - 32px);
    --radius: 12px;
  }

  .site-header {
    height: 64px;
    padding-left: 16px;
  }

  .brand span {
    font-size: 11px;
  }

  .brand strong {
    font-size: 22px;
  }

  .nav-toggle {
    width: 70px;
  }

  .nav-toggle small {
    font-size: 10px;
  }

  .hero {
    padding: 22px 0 46px;
  }

  .hero-stage,
  .section-inner {
    padding-inline: 16px;
  }

  .hero-copy {
    padding: 24px 18px;
  }

  .hero-kicker {
    font-size: 15px;
  }

  .hero-badge {
    font-size: 13px;
  }

  h1 {
    font-size: clamp(27px, 8vw, 33px);
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-checks li {
    min-height: 42px;
    font-size: 13px;
  }

  .hero-form-wrap {
    padding: 18px;
  }

  .hero-form-wrap h2 {
    font-size: 21px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head h2 {
    font-size: clamp(22px, 6.2vw, 30px);
  }

  .pain-card,
  .issue-card,
  .reason-card {
    min-height: 260px;
    padding: 22px;
  }

  .pain-card h3,
  .reason-card h3,
  .issue-card h3 {
    font-size: 19px;
  }

  .nav-toggle {
    height: 64px;
    left: calc(min(100vw, 390px) - 70px);
  }
}

/* Side carousel controls */
.section-inner {
  position: relative;
}

.scroll-controls {
  position: absolute;
  z-index: 5;
  top: 54%;
  left: -24px;
  right: -24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  margin: 0;
  pointer-events: none;
}

.scroll-controls button {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(16, 43, 74, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(16, 43, 74, 0.12);
  font-family: var(--font-en);
  font-size: 32px;
  line-height: 0.8;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.scroll-controls button:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

.issues .scroll-controls,
.reason .scroll-controls {
  top: 58%;
}

@media (max-width: 820px) {
  .scroll-controls {
    top: 56%;
    left: 2px;
    right: 2px;
  }

  .scroll-controls button {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
}

/* Left-aligned horizontal scroll */
.card-scroll,
.issue-scroll,
.reason-scroll {
  direction: ltr;
  margin-inline: 0;
  padding: 0 0 18px;
  scroll-padding-left: 0;
}

.pain .section-head,
.issues .section-head,
.reason .section-head {
  margin-left: 0;
}

.scroll-controls {
  left: -20px;
  right: -20px;
}

@media (max-width: 820px) {
  .card-scroll,
  .issue-scroll,
  .reason-scroll {
    margin-inline: 0;
    padding: 0 0 16px;
  }

  .scroll-controls {
    left: 0;
    right: 0;
  }
}

/* Expandable issue cards */
.issue-card {
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.issue-detail {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.34s ease, margin 0.34s ease, opacity 0.24s ease, transform 0.34s ease;
}

.issue-card.is-expanded {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 28px rgba(16, 43, 74, 0.16);
}

.issue-card.is-expanded strong,
.issue-card.is-expanded p {
  color: #fff;
}

.issue-card.is-expanded .issue-detail {
  max-height: 720px;
  margin: 6px 0 58px;
  opacity: 1;
  transform: translateY(0);
}

.issue-card.is-expanded .plus {
  border-color: #fff;
  background: #fff;
  color: var(--navy);
}

.plus {
  width: auto;
  min-width: 104px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.28s ease;
}

.case-detail {
  font-size: 12px;
  line-height: 1.75;
  overflow: auto;
}

.case-detail .case-lead {
  margin-bottom: 10px;
  font-weight: 900;
}

.case-data {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.case-data div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
}

.case-data dt,
.case-columns b {
  font-weight: 900;
}

.case-data dd {
  margin: 0;
}

.case-columns {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.case-columns div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
}

.case-columns p,
.case-quote {
  margin: 4px 0 0;
}

.case-points {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding-left: 1.1em;
}

.case-link {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .issue-card,
  .issue-detail,
  .plus,
  .detail-modal,
  .detail-modal__panel {
    transition: none;
  }
}

body.modal-open {
  overflow: hidden;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.detail-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 39, 45, 0.66);
  backdrop-filter: blur(8px);
}

.detail-modal__panel {
  position: relative;
  width: min(1180px, calc(100vw - 64px));
  max-height: min(900px, calc(100dvh - 64px));
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s ease;
}

.detail-modal[aria-hidden="false"] .detail-modal__panel {
  transform: translateY(0) scale(1);
}

.detail-modal__panel:focus {
  outline: none;
}

.detail-modal__close {
  position: sticky;
  top: 22px;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 22px 22px 0 0;
  border: 0;
  border-radius: 50%;
  background: #f4f5f7;
  color: var(--navy-2);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.detail-modal__hero {
  clear: both;
  padding: 72px 64px 64px;
  border-bottom: 1px solid #dfe3e8;
  background: #f4f5f7;
  text-align: center;
}

.detail-modal__number {
  display: inline;
  margin: 0;
  padding: 0 8px;
  background: rgba(239, 59, 22, 0.16);
  color: var(--navy);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.35;
}

.detail-modal__hero h2 {
  max-width: 980px;
  margin: 20px auto;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.18;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail-modal__hero h2::selection,
.detail-modal__number::selection,
.detail-modal__hero p::selection,
.detail-modal__content *::selection {
  background: rgba(239, 59, 22, 0.24);
}

.detail-modal__hero h2,
.detail-modal__hero > p:last-child {
  text-decoration: underline;
  text-decoration-thickness: 0.42em;
  text-decoration-color: rgba(239, 59, 22, 0.24);
  text-underline-offset: -0.22em;
  text-decoration-skip-ink: none;
}

.detail-modal__hero > p:last-child {
  max-width: 900px;
  margin: 0 auto;
  color: #47566a;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 900;
  line-height: 1.65;
}

.detail-modal__content {
  padding: 56px 64px 72px;
}

.modal-detail-content {
  color: var(--navy);
}

.detail-modal .case-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  gap: 34px;
  overflow: visible;
  font-size: 16px;
  line-height: 1.85;
}

.detail-modal .case-lead {
  grid-column: 1 / -1;
  max-width: 860px;
  margin: 0 auto 8px;
  color: var(--navy);
  font-size: 21px;
  text-align: center;
}

.detail-modal .case-data,
.detail-modal .case-columns,
.detail-modal .case-points,
.detail-modal .case-quote,
.detail-modal .case-link {
  margin: 0;
}

.detail-modal .case-data {
  align-self: start;
  display: grid;
  gap: 0;
  padding: 28px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fbfdfe;
  box-shadow: 0 8px 24px rgba(8, 38, 77, 0.08);
}

.detail-modal .case-data::before {
  content: "事例店舗データ";
  display: inline-grid;
  justify-self: start;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 0 18px;
  place-items: center;
  border-radius: 8px;
  background: rgba(239, 59, 22, 0.14);
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.detail-modal .case-data div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #dfe3e8;
}

.detail-modal .case-data div:last-child {
  border-bottom: 0;
}

.detail-modal .case-data dt {
  color: var(--navy);
}

.detail-modal .case-data dd {
  color: #47566a;
  font-weight: 800;
}

.detail-modal .case-data a {
  color: var(--navy);
  font-weight: 900;
}

.detail-modal .case-columns {
  display: grid;
  gap: 18px;
}

.detail-modal .case-columns div,
.detail-modal .case-points,
.detail-modal .case-quote {
  padding: 22px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 38, 77, 0.06);
}

.detail-modal .case-columns b {
  display: inline-grid;
  min-height: 32px;
  padding: 0 12px;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}

.detail-modal .case-columns p,
.detail-modal .case-quote {
  color: #47566a;
  font-weight: 800;
}

.detail-modal .case-points {
  display: grid;
  gap: 8px;
  padding-left: 42px;
  color: #47566a;
  font-weight: 900;
}

.detail-modal .case-link {
  display: inline-grid;
  justify-self: start;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--red-2);
  color: #fff;
  font-size: 16px;
}

@media (max-width: 820px) {
  .detail-modal {
    padding: 14px;
  }

  .detail-modal__panel {
    width: 100%;
    max-height: calc(100dvh - 28px);
    border-radius: 14px;
  }

  .detail-modal__close {
    width: 48px;
    height: 48px;
    margin: 14px 14px 0 0;
    font-size: 32px;
  }

  .detail-modal__hero {
    padding: 52px 22px 38px;
  }

  .detail-modal__hero h2 {
    font-size: clamp(26px, 9vw, 38px);
  }

  .detail-modal__content {
    padding: 30px 18px 44px;
  }

  .detail-modal .case-detail {
    grid-template-columns: 1fr;
    gap: 20px;
    font-size: 14px;
  }

  .detail-modal .case-lead {
    font-size: 17px;
  }

  .detail-modal .case-data {
    padding: 20px;
  }

  .detail-modal .case-data div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* CUBE-like simple and airy finish */
:root {
  --bg: #f4f5f7;
  --paper: #ffffff;
  --navy: #08264d;
  --navy-2: #354f6f;
  --red: #ef3b16;
  --red-2: #d71920;
  --green: #06c755;
  --gold: #f06423;
  --line: #dfe3e8;
  --muted: #68717a;
  --shadow: 0 10px 26px rgba(8, 38, 77, 0.1);
  --radius: 6px;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Cormorant Garamond", Georgia, serif;
}

body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-ja);
  font-weight: 400;
  letter-spacing: 0;
}

.site-header {
  border-top: 0;
  border-bottom: 1px solid #dfe3e8;
  background: rgba(244, 245, 247, 0.96);
  box-shadow: none;
}

.brand {
  gap: 0;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
}

.brand strong {
  color: var(--navy);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.global-nav {
  color: var(--navy);
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 500;
}

.global-nav a:hover {
  color: var(--red);
}

.header-phone {
  background: var(--navy-2);
  color: #fff;
}

.header-phone small {
  font-weight: 500;
}

.header-phone strong {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.header-cta {
  font-weight: 600;
}

.header-cta.red,
.header-cta.green,
.button.primary,
.button.submit,
.bottom-main,
.case-link,
.detail-modal .case-link {
  border-color: var(--red-2);
  background: var(--red-2);
  box-shadow: none;
}

.nav-toggle {
  background: var(--navy-2);
}

.hero {
  position: relative;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(239, 59, 22, 0.08) 38% 62%, transparent 62%),
    var(--bg);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
}

.hero::before {
  left: -120px;
  top: 42px;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(8, 38, 77, 0.12);
  transform: rotate(45deg);
}

.hero::after {
  right: 5vw;
  top: 124px;
  width: 0;
  height: 0;
  border-left: 58px solid transparent;
  border-right: 58px solid transparent;
  border-top: 92px solid rgba(239, 59, 22, 0.12);
}

.hero-stage,
.section-inner {
  position: relative;
  z-index: 1;
}

.hero-copy,
.hero-form-wrap,
.pain-card,
.issue-card,
.reason-card,
.work-card,
.price-card,
.faq-list details,
.detail-modal__panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-left: 6px solid var(--navy-2);
  background: rgba(255, 255, 255, 0.92);
}

.hero-kicker {
  color: var(--navy);
  font-weight: 500;
}

.hero-badge {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
}

.hero-copy h1 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 span,
.section-head h2 span,
.pain-card h3 span,
.reason-card h3 span,
.form-mini,
.hero-checks li::before {
  color: var(--red);
}
.hero-lead,
.section-head p,
.faq-list p {
  color: #47566a;
  font-weight: 400;
}

.button,
.bottom-main,
.bottom-sub,
.section-pill {
  border-radius: 0;
  font-weight: 600;
}

.button.primary,
.button.submit,
.bottom-main,
.section-pill {
  color: #fff;
}

.section-pill.green {
  border-color: var(--green);
  background: var(--green);
}

.button.outline,
.bottom-sub {
  background: #fff;
  color: var(--navy);
}

.section {
  background: #fff;
}

.section:nth-of-type(even) {
  background: var(--bg);
}

.section-head h2 {
  color: var(--navy);
  font-weight: 700;
}

.works .section-head h2::before,
.reason .section-head h2::before,
.issues .section-head h2::before,
.faq .section-head h2::before {
  display: block;
  margin-bottom: 4px;
  color: rgba(51, 51, 51, 0.48);
  font-family: var(--font-script);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 500;
  line-height: 1;
}

.works .section-head h2::before {
  content: "Works";
}

.reason .section-head h2::before {
  content: "About";
}

.issues .section-head h2::before {
  content: "Service";
}

.faq .section-head h2::before {
  content: "Guide";
}

.pain-card,
.issue-card,
.reason-card,
.work-card,
.price-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.pain-card b,
.case-columns b {
  background: var(--navy);
  color: #fff;
}

.issue-card strong {
  color: rgba(51, 51, 51, 0.14);
  font-weight: 600;
}

.plus {
  border-radius: 0;
}

.reason-card i {
  color: var(--red);
}

.work-card {
  border-top-color: var(--red);
}

.work-card span,
.price-card strong {
  color: var(--red);
}

.site-footer {
  background: #08264d;
}

.detail-modal__backdrop {
  background: rgba(45, 53, 59, 0.64);
}

.detail-modal__hero {
  background: #f4f5f7;
  border-bottom-color: #dfe3e8;
}

.detail-modal__number,
.detail-modal .case-data::before {
  background: rgba(239, 59, 22, 0.14);
}

.detail-modal__hero h2,
.detail-modal__hero > p:last-child {
  text-decoration-color: rgba(239, 59, 22, 0.24);
}

.detail-modal .case-data,
.detail-modal .case-columns div,
.detail-modal .case-points,
.detail-modal .case-quote {
  border-color: var(--line);
  box-shadow: none;
}

@media (max-width: 820px) {
  .hero::before {
    left: -180px;
    top: 70px;
    width: 340px;
    height: 340px;
  }

  .hero::after {
    right: 18px;
    top: 82px;
    border-left-width: 34px;
    border-right-width: 34px;
    border-top-width: 54px;
  }
}

.hero-banner-carousel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin: 34px auto 0;
}

.hero-banner-window {
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.75);
  background: #fff;
  box-shadow: 0 18px 42px rgba(30, 40, 48, 0.14);
}

.hero-banner-track {
  display: flex;
  width: 100%;
  transition: transform 0.65s ease;
  will-change: transform;
}

.hero-banner-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.hero-banner-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.hero-banner-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}

.hero-banner-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #b8c3d1;
  border-radius: 50%;
  background: #c5cbd2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-banner-dots button.is-active {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.25);
}

.hero-main-carousel {
  width: 100%;
  margin: 0;
}

.hero-main-carousel .hero-banner-window {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-main-carousel .hero-banner-slide {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-main-carousel .hero-text-slide {
  justify-content: flex-start;
}

.hero-main-carousel .hero-banner-slide img {
  width: min(560px, 100%);
  border-radius: calc(var(--radius) * 0.75);
  box-shadow: 0 18px 42px rgba(30, 40, 48, 0.14);
}

@media (max-width: 820px) {
  .hero-banner-carousel {
    width: min(420px, 100%);
    margin-top: 28px;
  }

  .hero-main-carousel {
    width: 100%;
    margin-top: 0;
  }

  .hero-main-carousel .hero-banner-slide {
    min-height: 0;
    justify-content: center;
  }

  .hero-main-carousel .hero-text-slide {
    justify-content: flex-start;
  }
}

/* Reduce generic template styling */
:root {
  --bg: #f4f5f7;
  --shadow: none;
  --radius: 4px;
}

.site-header {
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}

.hero {
  background: #fff;
}

.hero::before,
.hero::after,
.hero-copy::after,
.works .section-head h2::before,
.reason .section-head h2::before,
.issues .section-head h2::before,
.faq .section-head h2::before {
  display: none;
}

.hero-stage {
  gap: 48px;
}
.hero-copy,
.hero-form-wrap,
.pain-card,
.issue-card,
.reason-card,
.work-card,
.price-card,
.knowledge-list div,
.faq-list details,
.detail-modal__panel,
.detail-modal .case-data,
.detail-modal .case-columns div,
.detail-modal .case-points,
.detail-modal .case-quote,
.hero-main-carousel .hero-banner-slide img {
  box-shadow: none;
  border-radius: 4px;
}
.hero-copy,
.hero-form-wrap,
.pain-card,
.issue-card,
.reason-card,
.work-card,
.price-card,
.knowledge-list div,
.faq-list details {
  border: 1px solid var(--line);
}

.hero-copy {
  min-height: auto;
  padding: clamp(34px, 4vw, 58px);
  border-left: 4px solid var(--navy-2);
  background: #fff;
}

.hero-kicker,
.hero-copy h1,
.hero-lead,
.section-head,
.section-head.wide,
.section-head h2,
.section-head p,
.detail-modal .case-lead {
  text-align: left;
}

.hero-kicker,
.hero-badge,
.hero-lead,
.hero-checks {
  margin-left: 0;
  margin-right: 0;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 60px);
}

.hero-badge {
  border-left: 4px solid var(--gold);
  padding: 0 0 0 16px;
  background: transparent;
  color: var(--navy);
}

.hero-lead {
  max-width: 760px;
}

.hero-checks {
  max-width: 720px;
  gap: 0;
  border-top: 1px solid var(--line);
}

.hero-checks li {
  min-height: auto;
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: clamp(16px, 1.2vw, 20px);
}

.hero-checks li::before {
  width: auto;
  height: auto;
  border: 0;
  font-size: 18px;
}

.hero-actions {
  justify-content: flex-start;
}

.button,
.bottom-main,
.bottom-sub,
.section-pill,
.plus,
.case-link,
.detail-modal .case-link {
  border-radius: 2px;
}

.button:hover,
.scroll-controls button:hover {
  transform: none;
}

.button:hover,
.bottom-main:hover,
.bottom-sub:hover,
.section-pill:hover {
  opacity: 0.84;
}

.js .reveal,
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.section-head {
  max-width: 820px;
  margin-left: 0;
  margin-right: 0;
}

.section-head.wide {
  max-width: 980px;
}

.card-scroll,
.issue-scroll,
.reason-scroll {
  gap: 18px;
}

.pain-card,
.issue-card,
.reason-card {
  flex-basis: min(360px, calc(100vw - 44px));
  min-height: 360px;
  padding: 26px 22px;
}

.issue-card {
  display: grid;
  gap: 12px;
  height: 400px;
  min-height: 400px;
  grid-template-rows: 48px minmax(58px, auto) minmax(48px, auto) 1fr 132px;
  padding-bottom: 64px;
  overflow: hidden;
}

.issue-card strong {
  font-size: 50px;
}

.issue-card h3 {
  font-size: clamp(22px, 1.6vw, 30px);
  line-height: 1.35;
}

.issue-card p {
  font-size: 15px;
  line-height: 1.65;
}

.issue-card > .issue-detail {
  display: none;
}

.issue-card-image {
  align-self: end;
  width: 100%;
  height: 132px;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.issue-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.issue-card .plus {
  right: 22px;
  bottom: 18px;
  min-width: 92px;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.reason-card {
  flex-basis: min(420px, calc(100vw - 54px));
}

.reason-card i {
  font-size: 32px;
}

.works-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.work-card {
  min-height: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-top: 0;
  padding: 30px;
}

/* Sticky stacking cards: the section defines all tuning knobs in one place. */
.stack-section {
  --offset: 130px; /* header height plus breathing room before cards stick */
  --step: 34px; /* visible stair-step between fixed cards on desktop */
  --gap: 72px; /* vertical space that creates enough scroll distance */
  width: var(--inner);
  margin-inline: auto;
  padding: 96px 0 180px;
  background: transparent;
}

.stack-section .section-head {
  margin-bottom: 34px;
}

.stack {
  display: block;
}

.stack__card {
  position: sticky;
  top: calc(var(--offset) + var(--i) * var(--step));
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  min-height: min(430px, calc(100vh - var(--offset) - 150px));
  margin-bottom: var(--gap);
  border: 1px solid var(--line);
  border-radius: 8px 22px 8px 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(8, 38, 77, 0.12);
}

.stack__media {
  padding: 18px;
}

.stack__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 4px 14px 4px 4px;
}

.stack__body {
  min-width: 0; /* prevents long Japanese/URL text from forcing horizontal overflow */
  padding: 40px 44px 38px;
}

.stack__no {
  margin: 0 0 12px;
  color: var(--red);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.stack__title {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 800;
  line-height: 1.35;
}

.stack__text {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}

.stack__items {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.stack__items li {
  position: relative;
  padding-left: 18px;
}

.stack__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.stack__dots {
  position: sticky;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack__dots li {
  width: 8px;
  height: 8px;
  border: 1px solid var(--navy);
  background: transparent;
}

.stack__dots li.is-active {
  background: var(--red);
  border-color: var(--red);
}

.detail-modal__backdrop {
  backdrop-filter: none;
}

.detail-modal,
.detail-modal__panel,
.issue-card,
.issue-detail,
.plus {
  transition-property: background, color, border-color, visibility, max-height, margin;
}

.detail-modal__panel,
.detail-modal[aria-hidden="false"] .detail-modal__panel,
.issue-card.is-expanded .issue-detail,
.issue-detail {
  transform: none;
}

.issue-detail {
  opacity: 1;
}

.detail-modal__panel,
.detail-modal .case-data,
.detail-modal .case-columns div,
.detail-modal .case-points,
.detail-modal .case-quote {
  border-radius: 4px;
  box-shadow: none;
}

.detail-modal .case-data::before,
.detail-modal .case-columns b {
  border-radius: 2px;
}

.site-header,
.section,
.section:nth-of-type(even),
.price,
.bottom-cta {
  background-image: none;
}

.hero {
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(239, 59, 22, 0.08) 38% 62%, transparent 62%),
    #fff;
}

.header-cta.green,
.bottom-main.green,
.section-pill.green {
  border-color: #06c755;
  background: #06c755;
  color: #fff;
}

.header-cta.green:hover,
.bottom-main.green:hover,
.section-pill.green:hover {
  background: #05b84f;
}

.detail-modal .case-after-photo {
  grid-column: 1 / -1;
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.detail-modal .case-after-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.header-cta,
.hero-form-wrap label,
.hero-form-wrap textarea,
.hero-form-wrap input,
.hero-form-wrap select,
.form-privacy,
.scroll-controls button,
.detail-modal__close {
  border-radius: 2px;
  box-shadow: none;
}

.scroll-controls button {
  transform: none;
}

@media (max-width: 820px) {
  .hero-copy,
  .hero-form-wrap,
  .pain-card,
  .issue-card,
  .reason-card,
  .work-card,
  .price-card {
    padding: 24px 20px;
  }

  .works-grid,
  .price-list,
  .knowledge-list,
  .price-card {
    grid-template-columns: 1fr;
  }

  .price-list {
    gap: 14px;
    padding-bottom: 120px;
  }

  .price-card,
  .price-card.featured {
    top: calc(78px + var(--stack-offset, 0px));
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
    margin-top: 18px;
  }

  .price-card p {
    max-width: none;
    font-size: 19px;
  }

  .price-card strong {
    font-size: 34px;
  }

  .price-card ul {
    grid-column: 1;
    grid-row: auto;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    font-size: 13px;
  }

  .pain-card,
  .issue-card,
  .reason-card {
    flex-basis: min(310px, calc(100vw - 36px));
    min-height: 340px;
    padding: 22px 18px;
  }

  .issue-card {
    height: 370px;
    min-height: 370px;
    grid-template-rows: 42px minmax(52px, auto) minmax(42px, auto) 1fr 104px;
    padding-bottom: 58px;
  }

  .issue-card strong {
    font-size: 42px;
  }

  .issue-card h3 {
    font-size: 22px;
  }

  .issue-card-image {
    height: 104px;
  }

  .issue-card .plus {
    right: 18px;
    bottom: 16px;
  }
}

@media (max-width: 768px) {
  .stack-section {
    --offset: 70px; /* mobile header height, keeps the first card visible under nav */
    --step: 12px; /* smaller stair-step so five cards still fit on narrow screens */
    --gap: 42px; /* keeps the sticky parent tall without making the section excessive */
    width: min(100% - 28px, var(--inner));
    padding: 64px 0 120px;
  }

  .stack-section .section-head {
    margin-bottom: 22px;
  }

  .stack__card {
    grid-template-columns: 1fr;
    height: min(540px, calc(100svh - var(--offset) - 4 * var(--step) - 18px));
    min-height: 0;
    margin-bottom: var(--gap);
    border-radius: 6px 16px 6px 6px;
  }

  .stack__media {
    padding: 12px 12px 0;
  }

  .stack__media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 4px 12px 4px 4px;
  }

  .stack__body {
    padding: 16px 18px 18px;
  }

  .stack__no {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .stack__title {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
  }

  .stack__text {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  .stack__items {
    gap: 5px;
    padding-top: 12px;
    font-size: 12px;
    line-height: 1.45;
  }

  .stack__items li {
    padding-left: 14px;
  }

  .stack__items li::before {
    top: 0.72em;
    width: 5px;
    height: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack__card {
    position: static;
  }

  .stack__dots {
    display: none;
  }
}

/* =========================================================================
   DESIGN C — Gradient Dynamic (2026-08-17 採用案)
   最終レイヤー。このファイルは後勝ちなので、ここから下で見た目を決める。
   カード構造と .stack__card の sticky 階段アニメーションは変更しない。
   ここより上の祖先要素に overflow / clip を足すと重なりが死ぬので注意。
   ========================================================================= */
:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --navy: #101a2b;
  --navy-2: #3b4a60;
  --red: #ff5a1f;
  --red-2: #e8352a;
  --gold: #ff8a00;
  --line: #e3e9f1;
  --muted: #6a7686;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(16, 26, 43, 0.12);
  --grad: linear-gradient(100deg, #ff8a00, #e8352a);
  --grad-soft: linear-gradient(100deg, rgba(255, 138, 0, 0.12), rgba(232, 53, 42, 0.12));
}

/* gradient text helper: applied to the accent <span> inside headings */
.section-head h2 span,
.hero-grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-cta,
.header-cta.red,
.header-cta.green {
  border-radius: 999px;
  border: 0;
}

.header-cta.red {
  background: var(--grad);
}

.header-phone {
  border-radius: 999px;
  background: #eef2f8;
  color: var(--navy);
}

.nav-toggle {
  background: var(--grad);
}

/* Show the real nav on laptops instead of collapsing everything into MENU.
   The header is a 4-column grid, so nav and toggle must never both show. */
@media (min-width: 1120px) {
  .global-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-right: 20px;
  }

  /* no room for the phone block until the viewport is genuinely wide */
  .header-phone {
    display: none;
  }
}

@media (min-width: 1500px) {
  .header-phone {
    display: grid;
  }
}

/* ---------- hero: gradient panel with a diagonal bottom cut ---------- */
.hero {
  position: relative;
  padding: 64px 0 132px;
  background: var(--grad);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  color: #fff;
}

.hero-copy {
  padding: 0;
  border: 0;
  background: transparent;
}

/* dark accent bar from the old white-card hero; reads as a stray line on the gradient */
.hero-copy::before {
  display: none;
}

/* copy sits flush left on the gradient instead of centred in the slide */
.hero-main-carousel .hero-text-slide {
  align-items: flex-start;
  text-align: left;
}

.hero-kicker {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero-copy h1 {
  color: #fff;
  /* the highlighted <em> paints a box per line, so lines need clearance */
  line-height: 1.62;
}

/* inline (not inline-block) so each wrapped line gets its own white box
   instead of one full-width slab */
.hero-copy h1 em,
.hero-copy h1 .mark {
  display: inline;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--red-2);
  font-style: normal;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px 6px 0;
  border-left: 0;
  color: #fff;
  font-weight: 800;
}

.hero-badge::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  margin: 0 10px 5px 0;
  background: #fff;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.92);
}

.hero-checks {
  border-top-color: rgba(255, 255, 255, 0.32);
}

.hero-checks li {
  border-bottom-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.hero-checks li::before {
  color: #fff;
}

.hero-actions .button.primary {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--red-2);
}

.hero-actions .button.outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: transparent;
  color: #fff;
}

.hero-banner-dots button {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.4);
}

.hero-banner-dots button.is-active {
  border-color: #fff;
  background: #fff;
}

.hero-main-carousel .hero-banner-slide img {
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(16, 26, 43, 0.28);
}

/* The window height is synced to the active slide in script.js, so image
   slides no longer float inside the tall text slide's empty space.
   flex-start is required: the default stretch makes every slide as tall as
   the tallest one, which makes the height sync a no-op. */
.hero-main-carousel .hero-banner-window {
  transition: height 0.45s ease;
}

.hero-main-carousel .hero-banner-track {
  align-items: flex-start;
}

.hero-main-carousel .hero-banner-slide {
  min-height: 0;
  padding-bottom: 4px;
}

/* form card stays white so it reads as the primary action on the gradient */
.hero-form-wrap {
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 26, 43, 0.22);
  color: var(--navy);
}

.hero-form-wrap h2 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-form-wrap input,
.hero-form-wrap textarea,
.privacy-box {
  border-radius: 8px;
}

.hero-form-wrap input:focus,
.hero-form-wrap textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.button.submit {
  border: 0;
  border-radius: 999px;
  background: var(--grad);
}
/* ---------- cards: rounder,
softer,
no dead space at the bottom ---------- */
.pain-card,
.issue-card,
.reason-card,
.work-card,
.knowledge-list div,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 26, 43, 0.07);
}

/* the old 360px floor left half of every card empty */
.pain-card,
.reason-card {
  min-height: 0;
}

.pain-card b {
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
}

.reason-card i {
  color: var(--red);
}

.issue-card strong {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.issue-card .plus {
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
}

.work-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.works-grid {
  gap: 16px;
  border: 0;
}

.work-card span {
  color: var(--red-2);
}

.knowledge-list div {
  padding: 22px;
}

.knowledge-list span {
  color: var(--red-2);
}

.scroll-controls button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 26, 43, 0.12);
}

.scroll-controls button:hover {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}

/* ---------- pricing stack: same sticky mechanics, new skin ---------- */
.stack__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(16, 26, 43, 0.14);
}

.stack__media img {
  border-radius: 12px;
}

.stack__no {
  color: var(--red-2);
}

.stack__title {
  color: var(--navy);
}

/* price figure inside the plan text, e.g. ¥130,000〜 */
.stack__text b,
.stack__price {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-en);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 900;
  line-height: 1.1;
}

.stack__items {
  border-top: 1px dashed var(--line);
}

.stack__items li::before {
  border-radius: 999px;
  background: var(--grad);
}

.stack__dots li {
  border-radius: 999px;
  border-color: #c3ccda;
}

.stack__dots li.is-active {
  border-color: transparent;
  background: var(--grad);
}

/* ---------- CTA strips / FAQ / footer ---------- */
.cta-card {
  border: 0;
  border-radius: var(--radius);
}

.cta-card--red {
  background: var(--grad);
}

.cta-link {
  border-radius: 999px;
  border: 2px solid var(--red);
  color: var(--red-2);
}

.faq-list details {
  margin-bottom: 12px;
}

.faq-list summary::after,
.faq-list summary::before {
  color: var(--red);
}

.site-footer {
  background: var(--navy);
}

.detail-modal__panel {
  border-radius: var(--radius);
}

.detail-modal .case-link {
  border: 0;
  border-radius: 999px;
  background: var(--grad);
}

@media (max-width: 820px) {
  .hero {
    padding-bottom: 92px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
  }

  .pain-card,
  .reason-card {
    min-height: 0;
  }
}

/* leftovers from the old layout that read as broken next to the new cards */
.knowledge-list div {
  min-height: 0; /* was 170px holding ~43px of content */
}

.bottom-cta .section-inner {
  width: var(--inner); /* was full-bleed while every other section is inset */
  margin-inline: auto;
}

/* =========================================================================
   MOTION — 追加モーション（2026-08-17）
   1. 料金スタックの奥行き  2. stagger reveal の再実装  3. スマホ固定CTAバー
   DESIGN C より後のレイヤー。.stack__card の sticky 機構（top / --i / --step）は
   変更しない。transform / filter は sticky 要素“自身”にだけ掛けること。
   祖先に付けると sticky の包含ブロックが変わって重なりが死ぬ。
   ========================================================================= */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 1. 料金スタックの奥行き ----------
   --p は script.js が「次のカードにどれだけ覆われたか」を 0→1 で書き込む。
   transform-origin を上端にするのが要点：上端が動かないので、覆われて見えて
   いる縁の位置がずれず、内側に引くだけになる。 */
.stack__card {
  transform: scale(calc(1 - 0.022 * var(--p, 0)));
  transform-origin: 50% 0;
  filter: brightness(calc(1 - 0.06 * var(--p, 0)));
  transition: transform 0.15s linear, filter 0.15s linear;
}

/* ---------- 2. stagger reveal ----------
   3472行目のレイヤーが transition: none で打ち消していたので、ここで戻す。
   移動量は 18px から 10px に、イージングは ease から --ease-out に変更。
   --d（同じ親の中での順番）は script.js が書き込む。 */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 3. スマホ固定CTAバー ----------
   visibility で隠すので、出ていない間はフォーカスもスクリーンリーダーにも
   入らない。aria-hidden の付け外しは不要。 */
.mobile-cta {
  display: none;
}

.mobile-cta a {
  display: grid;
  place-content: center;
  padding: 14px 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.mobile-cta__tel {
  background: var(--red-2);
}

.mobile-cta__line {
  background: var(--green);
}

@media (max-width: 820px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900; /* ヘッダー(30)より上、詳細モーダル(1000)より下 */
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out), visibility 0.4s;
  }

  .mobile-cta.is-visible {
    visibility: visible;
    transform: none;
  }

  /* バーがフッターの最終行に被らないよう、常にその分だけ底を空ける */
  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
}

/* モーダルを開いている間はバーを下げる */
body.modal-open .mobile-cta {
  visibility: hidden;
  transform: translateY(100%);
}

@media (prefers-reduced-motion: reduce) {
  /* このブレークポイントでは .stack__card が position: static に戻るので、
     奥行きも無効にする */
  .stack__card {
    transform: none;
    filter: none;
    transition: none;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mobile-cta {
    transition: none;
  }
}

/* =========================================================================
   料金プランの番号ラベル  PLAN ——— 01
   小さく字間を開けた "PLAN" ＋ 罫線 ＋ 大きい番号の3要素。番号を大きくする
   ことで、カードが重なって上端しか見えていない状態でもプランを識別できる。
   ========================================================================= */
.stack__no {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--red-2);
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.stack__no span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

/* PLAN と番号をつなぐ罫線 */
.stack__no span::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

@media (max-width: 820px) {
  .stack__no {
    gap: 10px;
    margin-bottom: 10px;
    font-size: 20px;
  }

  .stack__no span {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .stack__no span::after {
    width: 18px;
  }
}

/* =========================================================================
   CTAホバーの光沢（キラッ）
   幅の狭い光の帯を斜めに1回だけ通す。ホバー中に往復させたり常時光らせると
   途端に安く見えるので、片道1回・720msで止める。
   帯は z-index: -1 で背景の上／文字の下を通す（isolation: isolate が必要）。
   ========================================================================= */
.header-cta,
.button.primary,
.button.submit,
.cta-card,
.mobile-cta a {
  --sheen: rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ヒーローの主ボタンは白地なので、白い帯だと見えない。地色に合わせて反転。 */
.hero-actions .button.primary {
  --sheen: rgba(232, 53, 42, 0.18);
}

.header-cta::after,
.button.primary::after,
.button.submit::after,
.cta-card::after,
.mobile-cta a::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -75%;
  z-index: -1;
  width: 42%;
  background: linear-gradient(100deg, transparent, var(--sheen) 48%, transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

/* タップでも :hover が発火して残る端末があるので、ポインタのある環境だけ */
@media (hover: hover) {
  .header-cta:hover::after,
  .button.primary:hover::after,
  .button.submit:hover::after,
  .cta-card:hover::after,
  .mobile-cta a:hover::after {
    /* linear が要点。--ease-out のような前詰めのカーブだと帯が最初の1/3で
       通過しきって、残りが無駄な待ち時間になる。等速で通し、明滅は下の
       opacity キーフレームだけで作る。 */
    animation: cta-sheen 0.7s linear 1;
  }

  /* 既存の :hover は opacity 0.86 で全体を沈ませていた。光らせながら暗く
     なるのは矛盾するので、CTAカードは沈ませない（cta-link は従来どおり）。 */
  .cta-card:hover {
    opacity: 1;
  }
}

@keyframes cta-sheen {
  0% {
    left: -75%;
    opacity: 0;
  }

  16% {
    opacity: 1;
  }

  72% {
    opacity: 1;
  }

  100% {
    left: 128%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-cta:hover::after,
  .button.primary:hover::after,
  .button.submit:hover::after,
  .cta-card:hover::after,
  .mobile-cta a:hover::after {
    animation: none;
  }
}

/* =========================================================================
   ヘッダーCTAの角丸を外す
   この2つはヘッダーの高さいっぱい（77px・上下フラッシュ）に伸びる面なので、
   999px のピルだと上下が削られて中に浮いた板に見えていた。角を落として
   面として置く。DESIGN C の 999px より後に置いて打ち消す。
   ========================================================================= */
.header-cta,
.header-cta.red,
.header-cta.green {
  border-radius: 0;
}

/* =========================================================================
   料金プランのカード：角丸を右上だけ残す
   DESIGN C が 16px の四隅一律に上書きしていたのを、右上のみに戻す。
   値は --radius のままなので、いま見えている右上の丸みは変わらない。
   スマホ側（768px以下）にも別の指定があるが、このレイヤーが後なので
   全幅で右上のみになる。
   ========================================================================= */
.stack__card {
  border-radius: 0 var(--radius) 0 0;
}

/* =========================================================================
   「選ばれる理由」= 左固定 ／ 右スクロール（2026-08-17）
   左に見出しとリード文を置いて sticky で貼り付け、右の横長カードを
   ページスクロールで送る。
   旧 .reason-card / .reason-scroll には上で15箇所の上書きが積まれているので、
   新しいクラス名で組んで旧レイヤーを回避している。
   ========================================================================= */

/* これが要点。.section { overflow: hidden }（470行目）が効いていると、
   その要素がスクロールコンテナになって中の sticky が機能しない。
   横スクロールをやめたセクションなので visible に戻して問題ない。 */
.section.reason {
  overflow: visible;
}

.reason-split {
  --header-h: 78px; /* ヘッダー実測値 */
  display: grid;
  /* 左を大きめの文字にしたので、収まるよう左右をほぼ等分に寄せた。
     0.82fr のままだと左が485pxで、見出し48pxが1行に入らない。 */
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 4vw, 76px);
  /* start が必須。stretch だと左列が行全体の高さになって sticky の
     移動距離が0になり、貼り付かない。 */
  align-items: start;
}

/* ---------- 左：画面中央で固定される見出しとリード文 ---------- */
/* 中央に置くために translateY は使わない。ヘッダー下いっぱいの高さの箱を
   top: var(--header-h) で貼り付け、その中で内容を中央寄せする。
   transform を使うと sticky の解除位置がずれるうえ、包含ブロックの扱いも
   ややこしくなる。
   .reveal は中の要素だけに付けること。この要素に付けると transform が
   包含ブロックを作って sticky の基準が変わる。 */
.reason-intro {
  position: sticky;
  top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
}

.reason-intro .section-head {
  margin-bottom: 34px;
}

/* 見出しとリード文はこのセクションの主役なので、他セクションより大きく取る。
   縦は735px使えるのに内容が280pxしかなく余っていた。 */
.reason-intro .section-head h2 {
  font-size: clamp(26px, 3.3vw, 48px);
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.reason-intro__lead {
  margin: 0;
  color: var(--navy);
  font-size: clamp(14px, 1.35vw, 19px);
  font-weight: 400;
  line-height: 2.05;
}

/* ---------- 右：横長カード ---------- */
/* 最初の画面では文章だけを見せたいので、1画面ぶん空けてから1枚目を置く。
   ここを削るとカードが最初から見えてしまう。 */
.reason-list {
  display: grid;
  gap: 20px;
  padding-top: calc(100svh - var(--header-h));
}

.reason-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 0 20px;
  align-items: center;
  /* 縦を厚めに取る。右列が左列より高い分だけ左が貼り付いていられるので、
     カードの高さがそのまま固定の持続時間になる。 */
  padding: clamp(26px, 3vw, 44px) clamp(22px, 2.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(16, 26, 43, 0.07);
}

.reason-row i {
  font-style: normal;
  font-size: 30px;
  line-height: 1;
  color: var(--red);
  text-align: center;
}

.reason-row h3 {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  line-height: 1.55;
}

.reason-row h3 span {
  color: var(--red-2);
}

.reason-row p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.9;
}

.reason-row p + p {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .reason-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  /* 1カラムでは貼り付ける相手がないので解除。1画面ぶんの空きも外す
     （縦積みでそれをやると空白だけの画面が挟まる） */
  .reason-intro {
    position: static;
    top: auto;
    min-height: 0;
    display: block;
  }

  .reason-list {
    padding-top: 0;
  }

  /* 見出しとリード文の改行は横幅ありきの指定なので、1カラムでは外す */
  .reason-intro .section-head h2 br,
  .reason-intro__lead br {
    display: none;
  }
}

@media (max-width: 820px) {
  .reason-split {
    --header-h: 64px;
  }
}

@media (max-width: 500px) {
  .reason-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 14px;
  }

  .reason-row i {
    font-size: 24px;
  }
}

/* =========================================================================
   FV 作り替え = 案2（写真クロスフェード）＋ 案3（正方形バナーの束）
   2026-08-17

   直した構造上の問題：これまで「テキスト」はカルーセルの5枚中1枚目だったので、
   4秒後に左へ流れて出ていき、戻るのは20秒後だった。つまりキャッチとCTAが
   20秒のうち16秒間 画面に無かった。テキストは常設にして、写真だけが
   入れ替わる形にしている。テキストが横に流れなくなるので、1440pxで文字が
   左に見切れる不具合（実測 x = -1644px）も同時に消えた。
   ========================================================================= */

/* ---------- 背景：写真のクロスフェード＋スローズーム ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  clip-path: none; /* 斜めカットは廃止 */
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 62% center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

/* 素材の明るさが揃っていない。omise-hero は左45%の平均輝度が54だが、
   他は112〜172あり、同じスクリムだと文字が読めないうえ、切り替わるたびに
   画面の明るさが跳ねる。明るい側だけ落として揃える。 */
.hero-media img.is-dim {
  filter: brightness(0.56) saturate(0.92);
}

.hero-media img.is-on {
  opacity: 1;
  /* 動いていると気づかない速さにする。速いと安っぽくなる。 */
  animation: hero-kenburns 9s linear forwards;
}

@keyframes hero-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09) translate(-1.4%, -1%); }
}

/* 文字が乗る左側を確実に沈める。写真は明るいので薄いスクリムでは読めない。 */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg,
      rgba(16, 12, 10, 0.9) 0%,
      rgba(16, 12, 10, 0.74) 44%,
      rgba(16, 12, 10, 0.4) 70%,
      rgba(16, 12, 10, 0.28) 100%),
    linear-gradient(180deg, rgba(232, 53, 42, 0.2), rgba(255, 138, 0, 0.12));
}

.hero-stage {
  position: relative;
  z-index: 2;
}

/* ---------- バナーの束：チェック項目の横に置く ---------- */
/* フォームが757pxあるので、束を右カラムに積むとFVが1309pxまで伸びた。
   左カラムは872px幅に対して本文が720pxしか使っておらず、高さも右より
   100px以上余っていたので、その空きに入れて全体の高さを据え置く。 */
.hero-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.hero-deck-wrap {
  display: grid;
  gap: 10px;
}

/* バナーは 1254x1254 の正方形（Instagram用の完成デザインで、見出しもCTAも
   焼き込み済み）。全面に敷くと文字が切れるうえ、サイト側のコピーと
   キャッチが二重になる。1:1のまま束ねて「制作イメージ」として置く。 */
.hero-deck {
  position: relative;
  width: 250px;
  aspect-ratio: 1 / 1;
  margin-top: 14px; /* 背面カードが上にはみ出すぶん */
}

.hero-deck__card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.hero-deck__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 背面2枚は束の厚みを出すための飾り */
.hero-deck__card--back2 {
  transform: translate(15px, -13px) rotate(2.4deg);
  opacity: 0;
}

.hero-deck__card--back1 {
  transform: translate(7px, -6px) rotate(1.2deg);
  opacity: 0;
}

.js .hero-deck.is-visible .hero-deck__card--back1 {
  opacity: 0.55;
  transition: opacity 0.8s var(--ease-out) 0.45s;
}

.js .hero-deck.is-visible .hero-deck__card--back2 {
  opacity: 0.32;
  transition: opacity 0.8s var(--ease-out) 0.6s;
}

.hero-deck__card--top {
  z-index: 2;
}

/* 前面はカードを動かさず中身だけ差し替える */
.hero-deck__card--top img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}

.hero-deck__card--top img.is-on {
  opacity: 1;
}

/* ラベルはカードの外に出す。上に重ねるとバナー自身の見出しに被る。 */
.hero-deck__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-deck__tag {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero-mid .hero-checks {
  max-width: none;
}

.hero-deck-dots {
  display: flex;
  gap: 7px;
}

.hero-deck-dots i {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.3s var(--ease-out);
}

.hero-deck-dots i.is-on {
  background: #fff;
}

/* ---------- 進捗バー（写真の枚数と残り時間） ---------- */
.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 3px;
  width: var(--inner);
  margin-inline: auto;
  padding-bottom: 16px;
}

.hero-progress i {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.hero-progress i::after {
  content: "";
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-progress i.is-done::after { transform: scaleX(1); }
.hero-progress i.is-filling::after { animation: hero-fill 5s linear forwards; }

@keyframes hero-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- 見出し ---------- */
/* 1.62 は白帯を逃がすための値で、見出しが間延びしていた。帯の高さは
   em の padding で確保しているので詰められる。 */
.hero-copy h1 {
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .hero-deck {
    width: 210px;
  }

  .hero-mid {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  /* 横に並べる幅がないので縦積みに戻す */
  .hero-mid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-deck {
    width: min(300px, 100%);
    justify-self: center;
  }

  /* 写真は横位置を中央に寄せる。左に寄せたままだと被写体が切れる。 */
  .hero-media img {
    object-position: center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(16, 12, 10, 0.82) 0%,
        rgba(16, 12, 10, 0.74) 50%,
        rgba(16, 12, 10, 0.84) 100%),
      linear-gradient(180deg, rgba(232, 53, 42, 0.2), rgba(255, 138, 0, 0.12));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img.is-on { animation: none; }
  .hero-media img { transition: none; }
  .hero-deck__card--back1 { opacity: 0.55; }
  .hero-deck__card--back2 { opacity: 0.32; }
  .hero-deck__card--top img { transition: none; }
  .hero-progress i::after { animation: none; transform: scaleX(1); }
}

/* =========================================================================
   「Webまわりの接続」= 案3 罫線の一覧（2026-08-17）
   白い角丸カードをやめて全幅の罫線リストにする。旧 .knowledge-list には
   上で12箇所の上書きが積まれているので、新しいクラス名で組んで回避する。

   直した点：見出しが左カラムの上130pxしか使わず下228pxが空白だった。
   見出しと件数を1行にまとめて、リストを全幅に展開して解消している。
   ========================================================================= */
.connect-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.connect-head .section-head {
  margin-bottom: 0;
}

.connect-count {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.connect-list {
  margin-top: clamp(26px, 3vw, 42px);
  border-top: 1px solid var(--navy);
}

.connect-row {
  position: relative;
  border-bottom: 1px solid var(--line);
}

/* ホバー／開いたときはカードを浮かせず、下罫を左から引く */
.connect-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--red-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.connect-row:hover::after,
.connect-row[open]::after {
  transform: scaleX(1);
}

.connect-row > summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 44px;
  gap: 0 clamp(16px, 2.4vw, 40px);
  align-items: center;
  padding: clamp(18px, 2vw, 26px) 4px;
  list-style: none;
  cursor: pointer;
}

/* Safari の三角マーカーを消す */
.connect-row > summary::-webkit-details-marker {
  display: none;
}

.connect-row__en {
  color: var(--red-2);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.connect-row h3 {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 800;
  line-height: 1.5;
}

/* ＋ボタン。丸ごと回すと過剰なので、縦棒だけ90度回して − にする。 */
.connect-row__plus {
  position: relative;
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.connect-row__plus::before,
.connect-row__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--red-2);
}

.connect-row__plus::before {
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
}

.connect-row__plus::after {
  width: 1.5px;
  height: 12px;
  margin: -6px 0 0 -0.75px;
  transition: transform 0.32s var(--ease-out);
}

.connect-row[open] .connect-row__plus::after {
  transform: rotate(90deg);
}

.connect-row > summary:hover .connect-row__plus {
  border-color: #f0b49a;
}

.connect-row__body {
  padding: 0 clamp(16px, 2.4vw, 40px) clamp(20px, 2.2vw, 28px) calc(150px + clamp(16px, 2.4vw, 40px));
}

.connect-row__body p {
  margin: 0;
  max-width: 48em;
  color: var(--muted);
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.95;
}

.connect-row__body p + p {
  margin-top: 12px;
}

/* 高さのアニメーション。JSなしで開閉を滑らかにできる。
   非対応ブラウザは瞬時に開くだけで、機能は損なわれない。 */
@supports (interpolate-size: allow-keywords) {
  .connect-list {
    interpolate-size: allow-keywords;
  }

  .connect-row::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 0.34s var(--ease-out),
      content-visibility 0.34s allow-discrete;
  }

  .connect-row[open]::details-content {
    block-size: auto;
  }
}

@media (max-width: 900px) {
  .connect-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .connect-row > summary {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 4px 14px;
    align-items: center;
  }

  /* 英字ラベルは見出しの上に載せる */
  .connect-row__en {
    grid-column: 1;
    grid-row: 1;
  }

  .connect-row h3 {
    grid-column: 1;
    grid-row: 2;
  }

  .connect-row__plus {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .connect-row__body {
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect-row::after {
    transition: none;
  }
}

/* =========================================================================
   制作実績 = 縦長カードの横スクロール（2026-08-17）
   写真は後から差し替える前提で、実ファイル（assets/images/work-0X.webp）を
   置いてある。同じ名前で上書きすれば入れ替わり、マークアップは触らなくてよい。

   旧 .works-grid / .work-card には上で10箇所以上の上書きが積まれているので、
   新しいクラス名で組んで回避している。
   ========================================================================= */
.works-scroll {
  display: flex;
  gap: clamp(16px, 1.8vw, 24px);
  /* 全幅。左右とも画面端まで抜く。見出しは本文幅のままなので、
     この列だけが画面いっぱいを流れる。
     自動スクロールで回り続けるため、左端に余白を残す意味がない。 */
  margin-inline: calc((100vw - var(--inner)) / -2);
  padding: 0 0 20px;
  overflow-x: auto;
  /* 自動スクロールと scroll-snap は相性が悪い（毎フレームの scrollLeft を
     スナップが引き戻して震える）ので、このリストではスナップを使わない。 */
  scrollbar-width: none;
}

.works-scroll::-webkit-scrollbar {
  display: none;
}

/* ---------- カードは iPhone の形にする ----------
   文字は一切載せず、画面のスクリーンショットだけを見せる。
   ベゼル（枠）と角丸で端末に見せるので、カード自体の背景・境界線は持たない。 */
.work-tile {
  flex: 0 0 clamp(200px, 18vw, 260px);
  overflow: hidden;
  /* iPhone の画面比 9:19.5 */
  aspect-ratio: 9 / 19.5;
  /* 幅に対する比率で角を丸める。端末サイズが変わっても形が崩れない。 */
  border-radius: 13%/6%;
  border: 5px solid #14171b;
  background: #14171b;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 18px 40px rgba(16, 26, 43, 0.22);
}

.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.2s var(--ease-out);
}

/* ホバーでページの下のほうへゆっくり送る */
.work-tile:hover img {
  transform: translateY(-6%);
}

@media (prefers-reduced-motion: reduce) {
  .work-tile:hover img {
    transform: none;
  }

  .work-tile img {
    transition: none;
  }
}

/* 自動スクロール中でも指で掴めるように、慣性は切っておく */
.works-scroll {
  scroll-behavior: auto;
}

/* 複製したカードは読み上げ・タブ移動から外す（見た目だけの複製） */
.works-scroll .work-tile[aria-hidden="true"] {
  pointer-events: none;
}


/* =========================================================================
   制作実績の下のCTA（2026-08-18）
   部品はサービス直後の .cta-strip をそのまま流用する。実績の下だけ独自の
   見た目にすると浮くため。ただし .cta-strip は「ボタン2つ＋資料請求」の
   3列なので、ここは2列に組み替えて1行目にリード文を通す。
   ========================================================================= */
.section-ctas.works-cta {
  grid-template-columns: minmax(0, 320px) minmax(0, 320px);
  row-gap: clamp(14px, 1.6vw, 20px);
  margin-top: clamp(26px, 3vw, 40px);
}

.works-cta__lead {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  line-height: 1.85;
}

.works-cta__lead b {
  color: var(--navy);
  font-weight: 800;
}

@media (max-width: 640px) {
  .section-ctas.works-cta {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================================
   フッター拡張 ＋ 規約系ページ（2026-08-18）
   フッターは屋号とリンク4本だけで「作りかけ」に見えていたので、
   ご相談導線・サイト情報・対応業種を足して段組みにした。
   ========================================================================= */
.site-footer .footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.9fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.footer-brand strong { display: block; }

.footer-tel {
  display: inline-block;
  margin-top: 14px;
  line-height: 1.3;
}

.footer-tel small { display: block; font-size: 10.5px; opacity: 0.7; }
.footer-tel b { font-family: var(--font-en); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }

/* .site-footer nav（1035行目）が display:flex で当たっているため、
   クラス2つぶんの詳細度で上書きする。.footer-col だけでは負ける。 */
.site-footer .footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer .footer-col h2,
.site-footer .footer-industries h2 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.62;
}

.footer-industries { grid-column: 1 / -1; }

.footer-industries p {
  margin: 0;
  max-width: 60em;
  font-size: 12px;
  line-height: 1.95;
  opacity: 0.72;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-copy { margin: 0; font-size: 11.5px; opacity: 0.62; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
}

.footer-legal a { opacity: 0.78; }
.footer-legal a:hover { opacity: 1; }

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

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

/* ---------- 規約系ページ ---------- */
.legal { background: var(--bg); color: var(--navy); }

.legal-inner {
  width: min(860px, 100%);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 40px) clamp(56px, 7vw, 96px);
}

.legal-crumb { margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.legal-crumb a { color: var(--red-2); }

.legal h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.legal-lead { margin: 0 0 28px; color: var(--muted); font-size: 13.5px; line-height: 1.95; }

/* 未記入の項目があることを、読み飛ばせない形で出す */
.legal-todo {
  margin: 0 0 34px;
  padding: 18px 20px;
  border: 1px solid #f0b49a;
  border-radius: 10px;
  background: #fff6f3;
}

.legal-todo b { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 800; color: var(--red-2); }
.legal-todo p { margin: 0; font-size: 12.5px; line-height: 1.95; color: var(--muted); }

.legal section { margin-bottom: 30px; }

.legal h2 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 800;
  line-height: 1.6;
}

.legal p, .legal li { font-size: 13.5px; line-height: 1.95; color: var(--muted); }
.legal section p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 1.3em; }
.legal li { margin-bottom: 4px; }

.legal-dl {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--navy);
}

.legal-dl--wide { grid-template-columns: 220px minmax(0, 1fr); }

.legal-dl dt,
.legal-dl dd {
  margin: 0;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
}

.legal-dl dt { font-weight: 800; }
.legal-dl dd { color: var(--muted); }
.legal-dl dd a { color: var(--red-2); font-weight: 700; }
.legal-dl small { font-size: 11.5px; }

/* 記入待ちの箇所は、そのまま公開されないよう目立たせる */
.legal-blank {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed var(--red-2);
  border-radius: 3px;
  background: #fff6f3;
  color: var(--red-2);
  font-size: 12px;
  font-weight: 700;
}

.legal-date { margin: 26px 0 0; font-size: 12.5px; color: var(--muted); }
.legal-back { margin: 34px 0 0; font-size: 13px; }
.legal-back a { color: var(--red-2); font-weight: 700; }

@media (max-width: 640px) {
  .legal-dl,
  .legal-dl--wide { grid-template-columns: minmax(0, 1fr); }
  .legal-dl dt { padding-bottom: 0; border-bottom: 0; }
}

/* =========================================================================
   ヘッダーのロゴ上段を「OMISE」→「お店」に変更（2026-08-18）
   ラテン用の 11px / weight 600 のままだと日本語2文字が小さく詰まって
   見えるので、和文向けに一段上げて字間を少しだけ開ける。
   ========================================================================= */
.site-header .brand span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* =========================================================================
   ヘッダーのロゴマーク（2026-08-18）
   .brand は grid。マークを1列目に置き、2行ぶんまたがせる。
   テキストを <span> で包むと .brand span（複数レイヤーで上書きされている）に
   巻き込まれるので、包まずに列指定だけで組む。
   ========================================================================= */
.site-header .brand {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.brand__mark {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 40px;
  height: 40px;
  align-self: center;
}

.site-header .brand span,
.site-header .brand strong {
  grid-column: 2;
}

@media (max-width: 1120px) {
  .brand__mark { width: 34px; height: 34px; }
  .site-header .brand { column-gap: 8px; }
}

@media (max-width: 500px) {
  .brand__mark { width: 30px; height: 30px; }
}

/* ロゴ下段を「DESIGN」→「デザイン」に変更（2026-08-18）
   ラテン用の指定（--font-en / weight 400 / 字間 0.03em）のままだと、
   和文が細く間延びして上段の「お店」と釣り合わない。和文向けに直す。 */
.site-header .brand strong {
  font-family: var(--font-ja);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

@media (max-width: 1120px) {
  .site-header .brand strong { font-size: 22px; }
}

/* ===== 事例の実物スクリーンショット =====
   16:7 に切り出すとヘッダー〜FVが残るよう上寄せ。中央寄せだとナビが切れる。 */
.detail-modal .case-after-photo img {
  object-position: top center;
}

/* ===== フッターから「サイト情報」列を外した分の再配分 =====
   4列のままだと右端が1列まるごと空くので3列に詰める。
   （対応業種は grid-column: 1 / -1 なので影響なし） */
.site-footer .footer-layout {
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.9fr));
}

/* ===== 問い合わせフォームの送信状態 =====
   .form-status は既定が赤（エラー色）なので、成功と送信中を上書きする。 */
.form-status.is-ok { color: #1f8a4c; }
.form-status.is-busy { color: var(--navy); opacity: 0.7; }

.button.submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ハニーポット。表示にも読み上げにも出さないが、autofillは効かせない。 */
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===== 料金プランの写真を実績スクショに変更 =====
   カード枠は約1.28:1、スクショは約1.6:1。cover だと左右が削られ、
   中央寄せではロゴや見出しが切れる（ELSIO が「LSIO」になった）。
   左寄せにすればロゴと見出しが残り、落ちるのは右端だけで済む。 */
.stack__media img {
  object-position: left center;
}

/* ===== 料金プラン：写真をやめて仕様ブロックに（案C） =====
   画像を外したので .stack__media は入れ物として残し、中身を自前で組む。
   未確定の数字は .spec-todo（赤い点線）で可視化。公開前に実数へ置き換えること。 */
.stack__spec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  /* 写真が height:100% で埋めていた領域を、そのまま引き継ぐ。
     これが無いとカード下部に空白が残る（実測 87px）。 */
  height: 100%;
  min-height: 300px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f6f8fa 100%);
}

.stack__spec-head {
  margin: 0 0 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.stack__spec dl { margin: 0; }

.stack__spec dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px;
  border-top: 1px solid var(--line);
}

.stack__spec dl > div:last-child { border-bottom: 1px solid var(--line); }

.stack__spec dt {
  font-size: 12px;
  line-height: 1.5;
  color: var(--navy-2);
}

.stack__spec dd {
  margin: 0;
  text-align: right;
}

/* 値の既定。日本語が入るのでフォントは日本語側。 */
.spec-val {
  font-family: var(--font-ja);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  white-space: nowrap;
}

/* 数字だけは英字フォントで大きく。単位は小さく添える。 */
.spec-val--num {
  font-family: var(--font-en);
  font-size: clamp(24px, 2.2vw, 30px);
}

.spec-val small {
  font-family: var(--font-ja);
  font-size: 12px;
  font-weight: 500;
  margin-left: 3px;
  color: var(--navy-2);
}

/* 未確定。公開前に消し込む。 */
.spec-todo {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  border-bottom: 2px dashed var(--red);
  line-height: 1.4;
  white-space: nowrap;
}

/* ===== 料金プラン：左に図・右に文章 =====
   図は 3:2、枠は約 1.28:1。cover で切ると図の左右が欠けるので contain で全体を見せる。
   図の地色が白なので、余る上下に地色を敷けば letterbox は目立たない。 */
.stack__media--plan img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 10px;
}

/* ===== 選ばれる理由のリード文：表示時に左上→右下へ光が走る =====
   背景が明るいので白い帯では光って見えない。文字自体を
   background-clip: text で塗り、ブランドのオレンジの帯を通す。

   角度は 115deg。この向きだと帯が傾き、上の行が下の行より先に光る＝
   左上から右下へ流れて見える。65deg にすると逆で、下の行が先に光る
   （実際に描画して確認済み。理屈だけで決めると符号を間違える）。

   終了後は JS で sheen-run を外して通常のテキストに戻す。
   text-fill-color: transparent を残したままだと、背景が描画されない
   環境（強制カラーモード・印刷）で文字が消えるため。 */
.reason-intro__lead.sheen-run {
  background-image: linear-gradient(115deg,
    var(--navy) 0 44%,
    #ff8a00 50%,
    var(--navy) 56% 100%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: reason-sheen 1.4s ease-out 1 both;
}

/* 位置は 0%〜100% の外に出さないこと。
   background-size が 260% なので、この範囲なら常に文字全体が
   グラデーションで覆われる。範囲外に出すと覆われない部分の文字が
   text-fill: transparent のまま残り、消えてしまう。
   位置を減らす向き＝帯は左から右へ進む。 */
@keyframes reason-sheen {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reason-intro__lead.sheen-run {
    background-image: none;
    -webkit-text-fill-color: currentColor;
    color: var(--navy);
    animation: none;
  }
}

/* 強制カラーモードでは背景が落とされるので、文字色を戻して消えないようにする。 */
@media (forced-colors: active) {
  .reason-intro__lead.sheen-run {
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }
}

/* ===== スマホ：プラン図は出さず、文章だけにする =====
   図は元が1536px幅。スマホでは317px、タブレット幅(800px)でも281pxまで縮み、
   図中の14px相当の文字が3〜4pxになって読めない。
   同じ内容は下の文章に入っているので、狭い画面では図を落として文章に絞る。

   （図を残していたときは、固定540pxのカードに図312px＋文章296pxが
     入りきらず溢れていた。図を出さないことでその問題も消える） */
@media (max-width: 900px) {
  .stack__media--plan {
    display: none;
  }

  /* 図が無くなったぶんカードを詰める。540px固定のままだと下が大きく空く。
     1カラム指定も必須：769〜900pxでは既定が2カラムのままなので、
     図を消すと文章が左45%に押し込まれ、右半分が空く。 */
  .stack__card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
  }
}
