:root {
  color-scheme: light;
  --paper: #f5f5ef;
  --white: #fff;
  --ink: #202820;
  --muted: #515d53;
  --line: #d8ddd2;
  --pine: #243e31;
  --lime: #eaf0d3;
  --violet: #ece9f5;
  font: 16px/1.5 "Segoe UI", "Yu Gothic UI", "Hiragino Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #6b64a6;
  outline-offset: 3px;
}
.wrap { width: min(100% - 72px, 1250px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; background: var(--white); padding: 12px; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 760; text-decoration: none; white-space: nowrap; }
.brand-icon { width: 40px; height: 40px; background: url("/favicon.svg") center/contain no-repeat; }
.brand small { display: block; color: var(--muted); font-size: 10px; line-height: 1; letter-spacing: .14em; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 50px); }
.main-nav a { display: grid; place-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.language select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--white); }
.hero { display: grid; grid-template-columns: .89fr 1.11fr; margin-block: 28px 64px; min-height: 470px; border-radius: 24px; overflow: hidden; }
.hero-content { background: var(--pine); color: #f8f9ef; padding: clamp(36px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { color: var(--lime); font-size: 12px; font-weight: 750; letter-spacing: .13em; margin-bottom: 22px; }
h1 { white-space: pre-line; font-size: clamp(42px, 4.7vw, 66px); font-weight: 780; letter-spacing: -.062em; }
:lang(ja) h1 { font-size: clamp(33px, 4.25vw, 58px); letter-spacing: -.04em; line-height: 1.22; }
.hero-desc { margin-block: 22px 29px; max-width: 32ch; color: #e3e9da; font-size: clamp(16px, 1.6vw, 19px); }
.hero-media { position: relative; min-height: 100%; background: #2b3a52; }
.hero-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-media figcaption { position: absolute; bottom: 13px; right: 14px; padding: 3px 7px; border-radius: 4px; color: #fff; background: #161c20dc; font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 9px 14px; font-weight: 700; text-decoration: none; transition: background-color .15s, scale .15s; }
.button:active:not(:disabled) { scale: .96; }
.primary { background: var(--lime); color: var(--pine); min-height: 50px; padding-inline: 16px; }
.primary:hover { background: #f4f8e8; }
.catalog { margin-bottom: 78px; scroll-margin-top: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2, .contact h2 { font-size: clamp(29px, 3.6vw, 46px); letter-spacing: -.05em; }
.section-head p, .contact p { color: var(--muted); margin-top: 9px; }
.search { flex: 0 1 280px; }
.search input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); padding: 10px 14px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 15px; }
.filter-bar > p { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 44px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 22px; background: transparent; color: var(--ink); font-weight: 650; }
.filters button:hover, .outline:hover { background: var(--lime); }
.filters button[aria-pressed="true"] { color: white; background: var(--pine); border-color: var(--pine); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { display: flex; min-width: 0; flex-direction: column; align-items: start; border: 1px solid var(--line); background: var(--white); border-radius: 16px; padding: 21px; }
.plan-top { display: flex; width: 100%; justify-content: space-between; align-items: start; gap: 8px; }
.plan-type { background: var(--lime); color: var(--pine); padding: 4px 9px; border-radius: 6px; font-size: 13px; font-weight: 750; width: fit-content; }
[data-type="air"] .plan-type { background: var(--violet); color: #44375c; }
.plan-icon { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 12px; background: var(--lime) url("/images/fiber.svg") center/24px no-repeat; }
[data-type="air"] .plan-icon { background: var(--violet) url("/images/air.svg") center/24px no-repeat; }
.plan h3 { font-size: 24px; margin-block: 8px 14px; overflow-wrap: anywhere; }
.offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.offer strong { font-size: 27px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.from, .monthly, .tax { color: var(--muted); font-size: 13px; }
.tax { margin-block: 5px 17px; }
.detail-button, .outline { color: var(--pine); background: transparent; border-color: var(--line); }
.detail-button { width: 100%; margin-top: auto; text-align: left; }
.detail-button:hover { background: var(--lime); }
.empty { grid-column: 1 / -1; padding: 35px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.empty .button { margin-top: 12px; }
.contact { background: var(--lime); border-block: 1px solid var(--line); }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 43px; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.channel { justify-content: center; background: var(--pine); color: white; }
.channel:hover:not(:disabled) { background: #345841; }
.channel:disabled { cursor: default; color: #48544c; border-color: #c7d1bc; background: #f6f8ee; }
.unavailable { font-size: 13px; color: var(--muted); margin-top: 8px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: center; padding-block: 20px; font-size: 14px; color: var(--muted); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
dialog { color: var(--ink); background: var(--white); border: 0; border-radius: 18px; width: min(620px, 100% - 24px); max-height: calc(100dvh - 32px); padding: 0; box-shadow: 0 15px 70px #111a1a42; }
dialog::backdrop { background: #121b18b8; }
body:has(dialog[open]) { overflow: hidden; }
.close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); background: var(--paper); font-size: 26px; line-height: 1; }
.close:hover { background: var(--lime); }
#detail-body { padding: clamp(18px, 4vw, 32px); }
#detail-body h2 { margin: 10px 42px 20px 0; font-size: clamp(27px, 5vw, 40px); }
#detail-body h3 { font-size: 18px; margin-block: 17px 9px; }
.rates { background: var(--paper); border-radius: 9px; padding: 4px 12px; }
.rate-row { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding-block: 8px; }
.rate-row + .rate-row { border-top: 1px solid var(--line); }
.rate-row dd { white-space: nowrap; font-weight: 720; font-variant-numeric: tabular-nums; }
.facts { display: grid; gap: 9px; margin-block: 18px; }
.facts div { display: grid; align-items: baseline; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 650; }
.detail-note { color: var(--muted); margin-block: 7px; }
.installment { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.installment summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 650; }
.detail-contact { border-top: 1px solid var(--line); margin-top: 18px; }
.detail-contact > p { color: var(--muted); margin-block: 0 12px; }
@media (max-width: 980px) {
  .wrap { width: min(100% - 40px, 1250px); }
  .hero { min-height: 395px; }
  .hero-content { padding: clamp(30px, 4vw, 54px); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 62px; gap: 8px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand-icon { width: 34px; height: 34px; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; margin-block: 14px 39px; border-radius: 18px; }
  .hero-media { min-height: clamp(185px, 53vw, 320px); }
  .hero-content { padding: 24px; }
  .eyebrow { margin-bottom: 13px; }
  .hero-desc { margin-block: 14px 18px; }
  .section-head { display: grid; margin-bottom: 12px; gap: 11px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .plan { padding: 12px; border-radius: 13px; }
  .plan h3 { font-size: 19px; }
  .plan-type { font-size: 12px; padding-inline: 6px; }
  .plan-icon { display: none; }
  .detail-button { padding-inline: 8px; gap: 5px; font-size: 14px; }
  .catalog { margin-bottom: 44px; }
  .contact-inner { padding-block: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
