﻿:root {
  --ink: #111318;
  --text: #222222;
  --muted: #667085;
  --line: #e5eaf0;
  --paper: #ffffff;
  --soft: #f7fafc;
  --cream: #fff7e8;
  --cream-deep: #fff0c4;
  --orange: #ff5a1f;
  --orange-dark: #f04b14;
  --red: #f1375b;
  --red-deep: #df1741;
  --green: #16c65b;
  --green-dark: #0daf4d;
  --yellow: #ffc928;
  --navy: #0f2a4d;
  --shadow: 0 8px 24px rgba(15, 42, 77, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Keep section headings below the sticky header, including its wrapped rows. */
#flow,
#prices,
#contact {
  scroll-margin-top: 114px;
}

@media (max-width: 1120px) {
  #flow,
  #prices,
  #contact {
    scroll-margin-top: 178px;
  }
}

@media (max-width: 820px) {
  #flow,
  #prices,
  #contact {
    scroll-margin-top: 220px;
  }
}

@media (max-width: 520px) {
  #flow,
  #prices,
  #contact {
    scroll-margin-top: 264px;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.65;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(15, 42, 77, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 28px));
  min-height: 98px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-width: 188px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-character {
  width: 78px;
  height: auto;
  aspect-ratio: 84 / 80;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy,
.brand-name,
.brand-line {
  display: block;
}

.brand-line {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.brand-name {
  color: var(--orange);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1 1 auto;
}

.header-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #111318;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--orange);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 42, 77, 0.12);
}

.header-button-line {
  background: #06c755;
}

.header-button-apply {
  background: var(--orange);
}

.line-dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06c755;
  background: #ffffff;
  font-size: 8px;
  font-weight: 900;
}

.box-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 4px;
}

.box-icon::before,
.box-icon::after {
  content: "";
  position: absolute;
  background: #ffffff;
}

.box-icon::before {
  width: 2px;
  height: 14px;
  top: 0;
  left: 7px;
}

.box-icon::after {
  width: 14px;
  height: 2px;
  top: 7px;
  left: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #fffef8 0%, var(--cream) 42%, #fff0bd 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -120px -10% 0;
  background: repeating-conic-gradient(from 9deg at 58% 4%, rgba(255, 206, 82, 0.16) 0deg 7deg, rgba(255, 255, 255, 0) 7deg 16deg);
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--yellow);
}

.spark-1 {
  left: 28px;
  top: 64px;
}

.spark-2 {
  left: 54%;
  top: 92px;
  background: #2bb8d9;
}

.spark-3 {
  left: 68%;
  top: 170px;
  width: 9px;
  height: 9px;
  background: #9ec46d;
}

.spark-4 {
  right: 32px;
  top: 42px;
}

.city {
  position: absolute;
  bottom: 0;
  height: 128px;
  opacity: 0.34;
  background-repeat: repeat-x;
  background-size: 150px 128px;
}

.city-left {
  left: 0;
  width: 45%;
  background-image: linear-gradient(to top, rgba(255, 192, 37, 0.55) 0 80px, transparent 80px), linear-gradient(to right, transparent 0 16px, rgba(255, 192, 37, 0.6) 16px 40px, transparent 40px 58px, rgba(255, 192, 37, 0.5) 58px 84px, transparent 84px 98px, rgba(255, 192, 37, 0.6) 98px 122px, transparent 122px);
}

.city-right {
  right: 0;
  width: 38%;
  background-image: linear-gradient(to top, rgba(255, 192, 37, 0.55) 0 106px, transparent 106px), linear-gradient(to right, transparent 0 22px, rgba(255, 192, 37, 0.56) 22px 52px, transparent 52px 68px, rgba(255, 192, 37, 0.64) 68px 94px, transparent 94px 114px, rgba(255, 192, 37, 0.54) 114px 142px, transparent 142px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  min-height: 470px;
  margin: 0 auto;
  padding: 34px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  align-items: end;
  gap: 18px;
}

.hero-copy {
  align-self: center;
  padding: 4px 0 0;
}

.hero-ribbon {
  width: fit-content;
  min-height: 54px;
  margin: 0 0 18px 72px;
  padding: 9px 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red-deep), #ff4c68);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  transform: rotate(-5deg);
  box-shadow: 0 6px 0 rgba(157, 29, 58, 0.16);
}

.hero-ribbon::before,
.hero-ribbon::after {
  content: "";
  position: absolute;
  bottom: -13px;
  width: 28px;
  height: 28px;
  background: #c81f3d;
  z-index: -1;
}

.hero-ribbon::before {
  left: -13px;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.hero-ribbon::after {
  right: -13px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.hero h1 {
  margin: 0 0 16px;
  color: #05070a;
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 3px 0 #ffffff, 0 8px 24px rgba(15, 42, 77, 0.08);
}

.hero h1 span {
  display: inline-block;
}

.hero h1 .green {
  color: #0b9f3e;
}

.hero h1 .red {
  color: var(--red-deep);
}

.hero-lead {
  margin: 0 0 18px 108px;
  color: var(--ink);
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 900;
  line-height: 1.65;
}

.hero-lead span,
.hero-lead strong {
  color: var(--red-deep);
}

.benefit-strip {
  width: min(650px, 100%);
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #f0e3d1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.benefit-card {
  min-width: 0;
  padding: 14px 14px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-right: 1px solid #e5eaf0;
}

.benefit-card:last-child {
  border-right: 0;
}

.benefit-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.benefit-icon svg {
  width: 38px;
  height: 38px;
}

.benefit-icon-red {
  background: var(--red);
}

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

.benefit-icon-yellow {
  background: #f8b400;
}

.benefit-card p {
  margin: 0;
  color: #111318;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.benefit-card p span {
  color: var(--red-deep);
}

.hero-visual {
  position: relative;
  align-self: end;
  justify-self: end;
  width: min(530px, 100%);
  padding-top: 58px;
}

.hero-visual::before {
  content: "すべてのスマホに\A 新しい価値を！";
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 3;
  width: 220px;
  min-height: 94px;
  padding: 18px 22px;
  display: grid;
  place-items: center;
  border-radius: 52% 48% 54% 46% / 50% 48% 52% 50%;
  color: #111318;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 42, 77, 0.12);
  white-space: pre-line;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  transform: rotate(-5deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  top: 88px;
  right: 132px;
  z-index: 3;
  width: 24px;
  height: 24px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 38%, 28% 100%);
  transform: rotate(20deg);
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  filter: drop-shadow(0 16px 20px rgba(74, 91, 48, 0.18));
}

.section-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.steps-section {
  padding: 26px 0 34px;
  background: #ffffff;
}

.steps-heading {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
  align-items: center;
  gap: 18px;
  text-align: center;
}

.steps-heading > span {
  height: 2px;
  background: linear-gradient(90deg, transparent, #8798b0);
}

.steps-heading > span:last-child {
  background: linear-gradient(90deg, #8798b0, transparent);
}

.step-caption {
  margin: 0;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.steps-heading h2 {
  margin: 0;
  color: #111318;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
}

.system-message {
  min-height: 22px;
  margin: 0 0 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.assessment-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.step-card {
  min-height: 286px;
  padding: 20px;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.step-number {
  margin: 0 0 2px;
  color: var(--orange-dark);
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.step-card h3 {
  min-height: 44px;
  margin: 0 0 12px;
  color: #111318;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}

.step-arrow {
  width: 0;
  height: 0;
  justify-self: center;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 10px solid var(--navy);
}

.step-placeholder {
  min-height: 172px;
  display: grid;
  place-items: center;
  color: #a4adb8;
}

.step-card:has(.assessment-step:not(.hidden)) .step-placeholder {
  display: none;
}

.step-placeholder-selected p {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.mini-phone,
.phone-illustration,
.calculator-illustration {
  position: relative;
  display: block;
}

.mini-phone,
.phone-illustration {
  width: 74px;
  height: 118px;
  border: 8px solid #28313d;
  border-radius: 10px;
  background: linear-gradient(135deg, #d9f3ff 0 48%, #ffffff 49% 55%, #9bd4f3 56% 100%);
  box-shadow: inset 0 -14px 0 rgba(0, 0, 0, 0.04);
}

.mini-phone {
  width: 42px;
  height: 70px;
  border-width: 5px;
}

.mini-phone::after,
.phone-illustration::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffffff;
}

.calculator-illustration {
  width: 86px;
  height: 104px;
  border-radius: 8px;
  background: #adb3bb;
}

.calculator-illustration::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  height: 26px;
  border-radius: 4px;
  background: #eff4f9;
}

.calculator-illustration::after {
  content: "¥";
  position: absolute;
  right: -26px;
  bottom: -6px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #f8b400;
  font-size: 36px;
  font-weight: 900;
}

.device-grid,
.model-list {
  display: grid;
  gap: 8px;
}

.option-button,
.model-button,
.condition-button {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.option-button {
  min-height: 82px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.option-icon {
  width: 44px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #12315c;
}

.option-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.option-title,
.model-name {
  display: block;
  font-weight: 900;
}

.option-title {
  font-size: 24px;
  line-height: 1.15;
}

.option-status {
  width: fit-content;
  margin-top: 8px;
  padding: 2px 14px;
  display: block;
  border-radius: 999px;
  color: #8f949d;
  background: #e5e7eb;
  font-size: 12px;
  font-weight: 900;
}

.option-button:hover,
.model-button:hover,
.option-button:focus-visible,
.model-button:focus-visible {
  border-color: #9fc5f9;
  box-shadow: 0 4px 16px rgba(47, 111, 180, 0.12);
  outline: none;
}

.option-button.is-disabled,
.option-button:disabled {
  cursor: not-allowed;
  color: #8f949d;
  background: #f5f5f5;
  opacity: 0.76;
}

.option-button.is-disabled:hover,
.option-button:disabled:hover,
.option-button.is-disabled:focus-visible,
.option-button:disabled:focus-visible {
  border-color: var(--line);
  box-shadow: none;
}

.option-button.is-disabled .option-icon {
  color: #a8adb5;
}

.sub-title {
  margin: 0 0 10px;
  color: var(--navy);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.model-list {
  max-height: 174px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.model-button {
  min-height: 42px;
  padding: 9px 12px;
  border-width: 0 0 1px;
  border-radius: 0;
  font-size: 14px;
  background: #ffffff;
}

.model-button:last-child {
  border-bottom: 0;
}

.model-button.selected,
.option-button.selected {
  background: #f0f7ff;
}

.back-button,
.secondary-button {
  min-height: 40px;
  border: 1px solid #c9dff7;
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  font-weight: 900;
}

.back-button {
  width: 100%;
}

.subtle {
  margin-top: 10px;
}

.result-view {
  display: grid;
  gap: 8px;
  text-align: center;
}

.result-model {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.result-price-list {
  display: grid;
  gap: 8px;
}

.price-row {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.price-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.price-row strong {
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.result-price strong {
  color: var(--red-deep);
  font-size: 25px;
}

.used-price strong {
  color: var(--ink);
  font-size: 18px;
}

.result-actions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  border: 1px solid var(--red-deep);
  color: #ffffff;
  background: linear-gradient(90deg, var(--red-deep), #ff3156);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--red-deep);
  outline: none;
}

.compact {
  min-height: 40px;
  font-size: 14px;
}

.flow-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #596477;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.flow-controls p {
  margin: 0;
}

.reset-button {
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid #c9dff7;
  border-radius: 999px;
  color: var(--navy);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.price-band,
.contact-band {
  padding: 28px 0;
  background: #ffffff;
}

.price-panel,
.application-grid,
.guide-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.price-panel {
  padding: 20px;
}

.section-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2,
.application-intro h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.28;
}

.section-heading p,
.application-intro p,
.line-contact-card p,
.form-heading p,
.identity-guide-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.75;
}

.section-heading p,
.application-intro p {
  margin-bottom: 0;
}

.outline-link {
  min-height: 46px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9fc5f9;
  border-radius: 999px;
  color: #1769df;
  background: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.outline-link::after {
  content: "›";
  margin-left: 10px;
  font-size: 22px;
  line-height: 1;
}

.table-shell {
  --price-table-visible-rows: 5;
  --price-table-row-height: 48px;
  --price-table-header-height: 46px;
  max-height: calc(var(--price-table-header-height) + (var(--price-table-visible-rows) * var(--price-table-row-height)));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  min-height: 48px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #111318;
  background: #f7fafc;
  font-size: 13px;
  font-weight: 900;
}

td {
  color: #111318;
  font-size: 14px;
  font-weight: 800;
}

.application-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 0.92fr) minmax(320px, 1.35fr);
  gap: 0;
}

.application-intro,
.line-contact-card,
.contact-form {
  min-width: 0;
  padding: 18px 24px;
}

.application-intro,
.line-contact-card {
  border-right: 1px solid var(--line);
}

.identity-guide-card,
.line-contact-card,
.contact-form {
  background: #ffffff;
}

.identity-guide-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #c9dff7;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.identity-guide-label,
.method-badge {
  width: fit-content;
  margin: 0 0 9px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff !important;
  background: var(--navy);
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

.identity-guide-card h3,
.line-contact-card h3,
.form-heading h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.identity-guide-link,
.line-apply-button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

.identity-guide-link {
  background: #1769df;
}

.line-apply-button {
  background: #06c755;
  font-size: 20px;
}

.line-bubble {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06c755;
  background: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.selected-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cbe7df;
  border-radius: 8px;
  color: var(--navy);
  background: #effcf5;
  font-size: 13px;
  font-weight: 900;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 10px;
}

.form-heading {
  margin-bottom: 2px;
}

.contact-form label {
  display: grid;
  gap: 5px;
  color: #111318;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #9fc5f9;
  outline: 3px solid rgba(23, 105, 223, 0.12);
}

.contact-form .agreement-label {
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.6;
}

.contact-form .agreement-label input {
  width: auto;
  min-width: 16px;
  margin-top: 4px;
  padding: 0;
}

.contact-form .agreement-label a {
  color: #1769df;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.full {
  width: 100%;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.form-message.success {
  color: var(--green-dark);
}

.form-message.error {
  color: var(--red-deep);
}

.site-guide {
  padding: 0 0 28px;
  background: #ffffff;
}

.guide-menu {
  padding: 24px 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.guide-column {
  min-width: 0;
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

.guide-column:last-child {
  padding-right: 0;
  border-right: 0;
}

.guide-column h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
}

.guide-column a {
  min-height: 28px;
  display: flex;
  align-items: center;
  color: #111318;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.guide-column a::before {
  content: "・";
  margin-right: 2px;
}

.guide-column a:hover,
.guide-column a:focus-visible {
  color: var(--orange);
  outline: none;
}

.site-footer {
  padding: 12px 16px 24px;
  color: #666666;
  background: #ffffff;
  text-align: center;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.guide-page {
  background: #ffffff;
}

.guide-hero {
  padding: 68px 0 44px;
  background: linear-gradient(180deg, var(--cream), #ffffff);
}

.guide-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.18;
}

.guide-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.guide-content {
  padding: 42px 0 70px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 118px;
  padding: 18px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.guide-toc a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
  background: #fff7e8;
  outline: none;
}

.guide-articles {
  display: grid;
  gap: 18px;
}

.guide-card {
  scroll-margin-top: 116px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.guide-card h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
}

.guide-card h3 {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.guide-card p,
.guide-card li {
  color: var(--muted);
  font-weight: 800;
}

.guide-card a {
  color: #1769df;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .header-inner {
    min-height: 90px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand {
    min-width: 170px;
  }

  .brand-character {
    width: 64px;
    height: auto;
  }

  .brand-name {
    font-size: 32px;
  }

  .header-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

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

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

  .application-intro {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .header-inner {
    width: min(100% - 20px, 620px);
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    margin-left: 0;
  }

  .header-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
  }

  .header-nav {
    justify-content: flex-start;
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-bottom: 2px;
  }

  .header-nav a {
    min-height: 30px;
    font-size: 13px;
  }

  .hero-inner {
    width: min(100% - 20px, 620px);
    min-height: auto;
    padding: 24px 0 18px;
  }

  .hero-ribbon {
    margin-left: 20px;
    padding: 8px 24px;
    font-size: 20px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .hero-lead {
    margin-left: 16px;
  }

  .benefit-strip {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .benefit-card:last-child {
    border-bottom: 0;
  }

  .assessment-board {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .application-grid,
  .guide-menu,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .application-intro,
  .line-contact-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-column {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-column:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .outline-link {
    width: 100%;
  }

  .guide-toc {
    position: static;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand-character {
    width: 54px;
    height: auto;
  }

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

  .brand-name {
    font-size: 29px;
  }

  .header-actions {
    flex-direction: column;
  }

  .header-button {
    width: 100%;
  }

  .hero-ribbon {
    margin-left: 0;
    transform: rotate(-3deg);
    font-size: 17px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    padding-top: 46px;
  }

  .hero-visual::before {
    width: 176px;
    min-height: 76px;
    padding: 14px 16px;
    font-size: 15px;
    right: 2px;
  }

  .hero-visual::after {
    top: 72px;
    right: 104px;
  }

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

  .benefit-card {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 12px;
  }

  .benefit-icon {
    width: 54px;
    height: 54px;
    font-size: 25px;
  }

  .step-card,
  .price-panel,
  .application-grid,
  .guide-menu {
    padding: 16px;
  }

  .application-intro,
  .line-contact-card,
  .contact-form {
    padding: 16px 0;
  }

  .application-intro {
    padding-top: 0;
  }

  .contact-form {
    padding-bottom: 0;
  }

  .steps-heading {
    gap: 10px;
  }

  .steps-heading h2,
  .section-heading h2,
  .application-intro h2 {
    font-size: 24px;
  }
}






/* Full hero artwork from the supplied design image. */
.hero-full {
  min-height: 0;
  padding: 0;
  background: #fff3d6;
}

.hero-full-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-full-picture,
.hero-full-image {
  width: 100%;
}

.hero-full-picture {
  display: block;
}

.hero-full-image {
  height: auto;
  display: block;
}

@media (max-width: 680px) {
  .hero-full-inner {
    width: 100%;
  }
}


.business-info { margin: 20px 0 0; }
.business-info > div { padding: 14px 0; border-bottom: 1px solid #eadfce; }
.business-info dt { font-weight: 700; }
.business-info dd { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* The original desktop layout remains above this mobile-only layer. */
.mobile-only { display: none; }
.header-nav a.mobile-only { display: none; }

.subpage-header .header-inner { min-height: 76px; }
.subpage-header .outline-link { white-space: normal; }
.subpage-main { width: min(760px, calc(100% - 28px)); margin: 28px auto 40px; }
.subpage-back { min-height: 44px; display: inline-flex; align-items: center; color: var(--navy); font-weight: 900; text-decoration: none; }
.subpage-heading { margin: 12px 0 18px; color: var(--navy); font-size: 28px; line-height: 1.3; }
.subpage-note { color: var(--muted); font-size: 14px; font-weight: 800; }
.application-page .contact-form { padding: 20px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.application-page .contact-form input, .application-page .contact-form textarea { min-height: 46px; font-size: 16px; }
.application-page .contact-form textarea { min-height: 100px; }
.application-page .selected-box { margin: 0 0 18px; overflow-wrap: anywhere; }
.application-page .completion-panel { padding: 24px; border: 1px solid #cbe7df; border-radius: 8px; background: #effcf5; }
.application-page .completion-panel h2 { margin: 0 0 8px; color: var(--navy); }
.price-list-page .table-shell { max-height: none; overflow-x: auto; overflow-y: visible; }
.price-list-page .price-band { padding: 0; }

@media (max-width: 680px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: revert; }

  #flow, #contact { scroll-margin-top: 82px; }
  .top-page .header-inner {
    width: calc(100% - 24px);
    min-height: 64px;
    padding: 6px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
  }
  .top-page .brand { min-width: 0; }
  .top-page .brand-character { width: 48px; }
  .top-page .brand-name { font-size: 27px; }
  .top-page .header-actions { display: none; }
  .top-page .mobile-menu-toggle {
    min-height: 44px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #c9dff7;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
  }
  .top-page .header-nav { display: none; }
  .top-page .header-nav.is-open {
    grid-column: 1 / -1;
    width: 100%;
    padding: 8px 0 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
  }
  .top-page .header-nav a { min-height: 44px; white-space: normal; }
  .top-page .header-nav.is-open a.mobile-only { display: inline-flex; }

  .top-page .steps-section { padding: 18px 0 22px; }
  .top-page .steps-heading { margin-bottom: 10px; }
  .top-page .steps-heading h2 { font-size: 22px; }
  .top-page .assessment-board { display: block; }
  .top-page .step-arrow, .top-page .step-placeholder { display: none; }
  .top-page .step-card { min-height: 0; padding: 14px; display: none; }
  .top-page[data-assessment-step="1"] .step-card-device,
  .top-page[data-assessment-step="2"] .step-card-model,
  .top-page[data-assessment-step="3"] .step-card-model,
  .top-page[data-assessment-step="4"] .step-card-result { display: grid; }
  .top-page .step-card h3 { min-height: 0; margin-bottom: 10px; font-size: 17px; }
  .top-page .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-page .option-button { min-height: 82px; padding: 10px 6px; }
  .top-page .option-title { font-size: clamp(17px, 5vw, 23px); }
  .top-page .option-status { margin: 4px auto 0; padding: 2px 7px; }
  .top-page .flow-controls { margin-top: 10px; flex-wrap: wrap; gap: 6px 12px; }
  .top-page .flow-controls p { flex: 1 1 100%; }
  .top-page .model-list { max-height: none; overflow: visible; }
  .top-page[data-assessment-step="3"] #capacityChoices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; gap: 8px; }
  .top-page[data-assessment-step="3"] #capacityChoices .model-button { min-height: 48px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
  .top-page .result-actions .outline-link { width: 100%; }

  .top-page[data-assessment-step="2"] { overflow: hidden; }
  .top-page[data-assessment-step="2"] .step-card-model {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .top-page[data-assessment-step="2"] .step-card-model .step-number { display: none; }
  .top-page[data-assessment-step="2"] .step-card-model > h3 { margin: 0 0 12px; color: var(--navy); font-size: 22px; text-align: left; }
  .series-toolbar { display: grid; gap: 8px; margin-bottom: 10px; }
  .series-close { width: fit-content; min-height: 44px; padding: 6px 10px; border: 0; background: transparent; color: var(--navy); font-weight: 900; }
  .series-toolbar label { color: var(--navy); font-size: 13px; font-weight: 900; }
  .series-toolbar input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #c9dff7; border-radius: 8px; font-size: 16px; }
  .top-page[data-assessment-step="2"] #modelChoices { display: grid; gap: 6px; border: 0; }
  .top-page[data-assessment-step="2"] #modelChoices .model-button { min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
  .series-empty { margin: 16px 0; color: var(--muted); font-weight: 800; }

  .top-page .price-band, .top-page .contact-form { display: none; }
  .top-page .application-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
  .top-page .application-intro { padding: 0 0 18px; border: 0; }
  .top-page .selected-box { overflow-wrap: anywhere; }
  .top-page .line-contact-card,
  .top-page .mobile-form-card {
    min-height: 250px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    border: 1px solid #cbe7df;
    border-radius: 8px;
    background: #f7fff9;
  }
  .top-page .mobile-form-card { border-color: #ffd9c8; background: #fff9f4; }
  .top-page .line-contact-card h3,
  .top-page .mobile-form-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
  .top-page .line-contact-card p,
  .top-page .mobile-form-card p { margin-top: 0; color: var(--muted); font-size: 14px; font-weight: 800; }
  .top-page .line-contact-card .line-apply-button,
  .top-page .mobile-form-card .primary-button { margin-top: auto; }
  .top-page .method-separator { margin: 12px 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 900; }
  .top-page .method-separator::before,
  .top-page .method-separator::after { content: ""; height: 1px; flex: 1; background: var(--line); }

  .subpage-header .header-inner { width: calc(100% - 24px); min-height: 64px; gap: 8px; }
  .subpage-header .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .subpage-header .brand { min-width: 0; }
  .subpage-header .brand-character { width: 48px; }
  .subpage-header .brand-name { font-size: 27px; }
  .subpage-header .outline-link { width: auto; min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .subpage-main { width: calc(100% - 24px); margin-top: 16px; }
  .subpage-heading { font-size: 24px; }
  .price-list-page .price-panel { padding: 14px; }
  .price-list-page .table-shell { overflow: visible; border: 0; background: transparent; }
  .price-list-page table { min-width: 0; display: block; }
  .price-list-page thead { display: none; }
  .price-list-page tbody { display: grid; gap: 12px; }
  .price-list-page tr { min-width: 0; padding: 12px 14px; display: grid; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
  .price-list-page td { min-height: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
  .price-list-page td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-weight: 800; }
  .price-list-page td:first-child { display: block; color: var(--navy); font-size: 17px; font-weight: 900; }
  .price-list-page td:first-child::before { display: none; }
  .price-list-page td:last-child { border-bottom: 0; }
  .application-page .contact-form { padding: 16px; }
}

/* Visible page heading above the existing hero artwork. */
.hero-full .hero-heading {
  margin: 0;
  padding: 16px 16px 4px;
  color: #57351f;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
