:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.004 75);
  --surface-strong: oklch(0.925 0.006 70);
  --ink: oklch(0.18 0.012 75);
  --muted: oklch(0.43 0.012 75);
  --primary: oklch(0.58 0.13 58);
  --primary-dark: oklch(0.34 0.08 58);
  --line: oklch(0.88 0.004 75);
  --white: oklch(1 0 0);
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: color-mix(in oklch, var(--white) 92%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 80%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 1.22rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: inset 0 0 0 5px var(--primary-dark);
}

.nav-links {
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
}

.nav-links a,
.text-link,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--primary-dark);
}

.header-actions {
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.button.small {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 0.9rem;
}

.button.secondary {
  background: var(--surface-strong);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - 68px);
  padding: clamp(58px, 8vw, 92px) clamp(18px, 4vw, 48px) 28px;
  overflow: hidden;
}

.hero-copy {
  max-width: 640px;
  justify-self: end;
}

.kicker {
  margin: 0 0 18px;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 700;
}

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

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.3vw, 5.45rem);
  max-width: 11.5ch;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 3.8vw, 4rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 1.7vw, 1.62rem);
}

.heading-line {
  display: block;
  white-space: nowrap;
}

.mobile-heading {
  display: none;
}

.desktop-heading {
  display: block;
}

.lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  text-wrap: pretty;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  min-height: clamp(430px, 44vw, 620px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0 -10vw 8% 4%;
  width: calc(100% + 10vw);
  height: 92%;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.94);
  z-index: -2;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 10% -3vw 0 16%;
  border-radius: 8px;
  background: linear-gradient(90deg, color-mix(in oklch, var(--bg) 88%, transparent), transparent 52%);
  z-index: -1;
}

.router-float {
  position: absolute;
  right: 4%;
  bottom: 7%;
  width: min(520px, 82%);
  filter: drop-shadow(0 22px 18px color-mix(in oklch, var(--ink) 24%, transparent));
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px) clamp(42px, 7vw, 82px);
}

.trust-strip div {
  padding: 20px 22px;
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 3px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: clamp(76px, 10vw, 144px) clamp(18px, 4vw, 48px);
  scroll-margin-top: 80px;
}

.section-intro {
  max-width: 850px;
  margin: 0 auto clamp(34px, 5vw, 64px);
  text-align: center;
}

.section-intro p:not(.kicker),
.network-copy p,
.apply-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  text-wrap: pretty;
}

.pricing-section,
.devices-section,
.use-section {
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.price-card {
  min-height: 260px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.price-card.primary-card {
  background: var(--ink);
  color: var(--white);
}

.price-card p {
  color: var(--muted);
}

.price-card.primary-card p {
  color: oklch(0.86 0 0);
}

.card-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: 0.94rem;
  font-weight: 800;
}

.pricing-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  max-width: var(--max);
  margin: 18px auto 0;
}

.rate-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.rate-panel-head p {
  color: var(--muted);
}

.table-label {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.tier-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tier-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.tier-list div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.tier-list div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.tier-list span {
  color: var(--muted);
  font-weight: 700;
}

.tier-list strong {
  font-size: 1.08rem;
}

.fee-note,
.device-note {
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
}

.network-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
}

.network-copy {
  max-width: 590px;
}

.network-panel {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 8px;
  background: var(--surface);
}

.carrier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.carrier-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
}

.signal-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.signal-path span {
  height: 1px;
  background: var(--primary);
}

.network-panel img {
  width: min(520px, 100%);
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.use-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  align-items: stretch;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.use-photo {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
}

.use-list {
  display: grid;
  gap: 12px;
}

.use-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.use-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.device-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.device-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.device-card-media {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 24px;
  background: var(--surface);
}

.device-card-media img {
  max-height: 260px;
  object-fit: contain;
}

.light-device img {
  opacity: 0.9;
}

.r45-device img {
  max-height: 230px;
  opacity: 0.96;
}

.device-card-copy {
  padding: clamp(22px, 3vw, 34px);
}

.device-card-copy p:not(.card-label) {
  color: var(--muted);
}

.device-price-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.device-price-list div {
  padding: 12px;
  border-right: 1px solid var(--line);
}

.device-price-list div:last-child {
  border-right: 0;
}

.device-price-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.device-price-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.flow-section {
  background: var(--bg);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.flow-list span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.flow-list strong {
  font-size: 1.08rem;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.apply-section {
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
}

.conversion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: start;
  gap: clamp(18px, 3vw, 28px);
}

.order-cart,
.contact-form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-margin-top: 88px;
}

.order-cart {
  display: grid;
  gap: 18px;
  background: var(--surface);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: var(--surface);
}

.inquiry-form {
  background: var(--white);
}

.cart-head,
.cart-item {
  display: flex;
  align-items: center;
}

.cart-head {
  justify-content: space-between;
  gap: 18px;
}

.cart-head h3,
.form-head h3 {
  margin-bottom: 0;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cart-item input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-dark);
}

.cart-item.is-selected {
  border-color: var(--primary-dark);
  background: color-mix(in srgb, var(--primary) 7%, var(--white));
}

.cart-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  width: 96px;
  height: 68px;
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.cart-thumb img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.cart-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cart-main strong,
.cart-price {
  font-weight: 800;
}

.cart-main small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cart-price {
  margin-left: auto;
  max-width: 150px;
  text-align: right;
  white-space: nowrap;
}

.cart-options,
.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.cart-summary div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 12px 14px;
}

.cart-summary div + div {
  border-left: 1px solid var(--line);
}

.cart-summary span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-summary strong {
  font-size: 0.94rem;
  line-height: 1.35;
}

.cart-summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

#device-payment,
#device-total {
  color: var(--primary-dark);
  font-size: 1rem;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 22%, transparent);
}

.wide,
.wide-button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  display: grid;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 48px);
  background: var(--ink);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
}

.site-footer p,
.footer-brand {
  margin: 0;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
}

.site-footer p:not(.footer-brand) {
  color: oklch(0.82 0 0);
}

.footer-trust,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-trust span,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in oklch, var(--white) 18%, transparent);
  border-radius: 999px;
}

.footer-trust span {
  color: oklch(0.9 0 0);
}

.footer-links a {
  color: var(--white);
}

.legal-header {
  position: static;
}

.legal-shell {
  padding: clamp(48px, 8vw, 92px) clamp(18px, 4vw, 48px);
  background: var(--surface);
}

.legal-document {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-document h1 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-document h2 {
  margin-top: 34px;
}

.legal-document p,
.legal-document li,
.legal-table td {
  color: var(--muted);
}

.legal-note {
  margin-top: 40px;
  text-align: right;
}

.legal-table {
  display: block;
  overflow-x: auto;
}

.legal-table tbody {
  display: table;
  width: 100%;
}

.legal-table th {
  width: 30%;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}

.legal-table th,
.legal-table td {
  vertical-align: top;
}

.motion-ready .reveal,
.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .hero,
  .network-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: clamp(52px, 8vw, 76px);
  }

  .hero-copy,
  .network-copy {
    max-width: 720px;
    justify-self: start;
  }

  .hero-visual {
    min-height: clamp(380px, 52vw, 560px);
  }

  h1 {
    font-size: clamp(3rem, 8vw, 4.9rem);
    max-width: 11.5ch;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .use-layout,
  .pricing-grid,
  .pricing-detail,
  .device-compare,
  .conversion-layout,
  .flow-list,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-bg,
  .hero-visual::after {
    inset: 0;
    width: 100%;
  }

  .router-float {
    right: 3%;
    width: 96%;
  }

  .trust-strip {
    padding-bottom: 28px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  .brand span:last-child {
    max-width: 170px;
    white-space: normal;
    line-height: 1.2;
  }

  .text-link {
    display: none;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.9rem);
  }

  .pricing-heading .desktop-heading {
    display: none;
  }

  .pricing-heading .mobile-heading {
    display: block;
  }

  .hero-visual {
    min-height: 360px;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .contact-form,
  .cart-options,
  .checkout-fields,
  .cart-summary,
  .tier-list,
  .device-price-list {
    grid-template-columns: 1fr;
  }

  .tier-list div:nth-child(odd) {
    border-right: 0;
  }

  .tier-list div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .device-price-list div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .device-price-list div:last-child {
    border-bottom: 0;
  }

  .cart-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cart-thumb {
    flex-basis: 84px;
    width: 84px;
    height: 60px;
  }

  .cart-price {
    width: 100%;
    margin-left: 32px;
    max-width: none;
    text-align: left;
  }

  .cart-summary div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
