/* Web購入の画面。HPの共通部品(.gn .ln .gf .ap-* .ap-cc .ct-*)に無いものだけをここに書く。
   色・文字・余白は tokens.css の --ap-* を使う。下の --sf-* はAppleの購入ページとフォームの実測(2026-11-06)で、HPに同じ役割の値が無いもの。 */
:root {
  --sf-hairline: #e8e8ed;
  --sf-hover-border: #8f8f94;
  --sf-error: #e30000;
  --sf-error-bg: #fff2f4;
  --sf-field-bg: rgba(255, 255, 255, 0.8);
  --sf-radius-field: 12px;
  --sf-radius-panel: 18px;
  --sf-radius-button: 8px;
  --sf-card-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  --sf-card-shadow-hover: 2px 4px 20px rgba(0, 0, 0, 0.16);
  --sf-ease-card: cubic-bezier(0, 0, 0.5, 1);
  /* 購入ページの見出しは画面の幅で変わらない */
  --sf-buy-heading: 24px;
  --sf-buy-heading-lh: 30px;
  --sf-group-gap: 67px;
  --sf-w-title: 600;
}
:root:lang(ja), :root:lang(ko) { --sf-w-title: 700; }

.sf-body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background: var(--ap-fill-1);
  color: var(--ap-label-1);
  font-family: var(--font-sans);
  font-size: var(--ap-body);
  line-height: var(--ap-body-lh);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
:root[data-shop-page="home"] .sf-body { background: var(--ap-fill-2); }
.sf-main { flex: 1; padding-block-end: var(--ap-header-gap); }
.sf-main *, .sf-main *::before, .sf-main *::after { box-sizing: border-box; }
:root:not([data-shop-page="home"]) .sf-main { width: var(--ap-wide); margin-inline: auto; padding-block-end: 96px; }
.sf-main a { color: inherit; }
.sf-main a.ap-link { color: var(--ap-link); }
.sf-main ol, .sf-main ul { margin: 0; padding: 0; list-style: none; }
.sf-main :focus-visible { outline: 2px solid var(--ap-cta); outline-offset: 2px; }
/* 入力欄のフォーカスは枠そのものが2pxになる */
.sf-main .sf-input:focus-visible, .sf-main .sf-select:focus-visible { outline: 0; }
.sf-trademark { width: var(--ap-wide); margin: 0 auto; padding-block: 16px 24px; color: var(--ap-label-2); }

/* 日本語と韓国語の見出しと名前は700。大陸ページと同じ実測(coverage.css) */
.sf-main :is(.ap-page-title, .ap-section-small-title, .ap-section-title-desc, .ap-page-title-sub, .ap-grid-title, .sf-eyebrow, .sf-buysum-title, .sf-tile-title, .sf-cat, .sf-topbar-name, .sf-sum-total, .sf-country-name) { font-weight: var(--sf-w-title); }
:root:not(:lang(ja)):not(:lang(ko)) .sf-country-name { font-weight: 400; }

.sf-button-link { padding: 0; border: 0; background: none; color: var(--ap-link); cursor: pointer; font: inherit; }
.sf-button-link:hover { text-decoration: underline; }
.sf-main .ap-hint { margin-block-start: 8px; color: var(--ap-label-2); }
.sf-note { margin: 12px 0 0; color: var(--ap-label-1); font-size: 14px; line-height: 20px; }
.sf-lead { margin-block-start: 13px; }

/* 見出し */
.sf-page-head { padding-block: 52px 32px; }
.sf-center { text-align: center; }
.sf-eyebrow { margin: 0 0 27px; font-size: var(--sf-buy-heading); line-height: var(--sf-buy-heading-lh); letter-spacing: var(--ap-label-ls); }
.sf-eyebrow-sub { color: var(--ap-label-3); }
.sf-empty { padding-block: 48px; color: var(--ap-label-2); text-align: center; }

/* 入力欄: Appleのフォームの実測そのまま。高さ56、角丸12、枠1px、フォーカス2px、ラベルは上に縮む */
.sf-field { position: relative; }
.sf-input { display: block; width: 100%; height: 56px; padding: 18px 16px 0; border: 1px solid var(--ap-label-3); border-radius: var(--sf-radius-field); outline: 0; background: var(--sf-field-bg); color: var(--ap-label-1); font-family: inherit; font-size: 17px; line-height: 21px; appearance: none; }
.sf-input:focus { padding-inline: 15px; border: 2px solid var(--ap-cta); }
.sf-label { position: absolute; inset-block-start: 18px; inset-inline-start: 16px; overflow: hidden; max-width: calc(100% - 32px); color: var(--ap-label-2); font-size: 17px; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; transition: all 0.125s ease-in; }
.sf-input:focus + .sf-label, .sf-input:not(:placeholder-shown) + .sf-label { inset-block-start: 10px; font-size: 12px; line-height: 17px; }
.sf-input::placeholder { color: transparent; }
.is-error .sf-input { border-color: var(--sf-error); background: var(--sf-error-bg); }
.is-error .sf-label { color: var(--sf-error); }
.sf-error { margin: 8px 0 12px; color: var(--sf-error); font-size: 12px; line-height: 17px; }
.sf-form-error { font-size: 14px; line-height: 20px; }
.sf-selectbox { position: relative; }
.sf-select { display: block; width: 100%; height: 56px; padding: 18px 40px 0 16px; border: 1px solid var(--ap-label-3); border-radius: var(--sf-radius-field); background: var(--sf-field-bg); color: var(--ap-label-1); font-family: inherit; font-size: 17px; line-height: 21px; cursor: pointer; appearance: none; }
:root[dir="rtl"] .sf-select { padding: 18px 16px 0 40px; }
.sf-select:focus { padding-inline-start: 15px; border: 2px solid var(--ap-cta); outline: 0; }
.sf-selectbox-label { position: absolute; inset-block-start: 10px; inset-inline-start: 17px; color: var(--ap-label-2); font-size: 12px; line-height: 17px; pointer-events: none; }
.sf-selectbox-arrow { position: absolute; inset-block-start: 12px; inset-inline-end: 16px; color: var(--ap-label-2); font-size: 20px; line-height: 28px; pointer-events: none; }

/* 購入のボタン。実測で角丸8と12。HPの .ap-btn は丸いので、購入の流れだけこれを使う */
.sf-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 22px; border: 0; border-radius: var(--sf-radius-button); background: var(--ap-cta); color: #fff; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 18px; text-align: center; text-decoration: none; cursor: pointer; }
.sf-main a.sf-cta { color: #fff; }
.sf-cta:hover { background: var(--ap-cta-hover); }
.sf-cta:disabled { opacity: 0.42; cursor: not-allowed; }
.sf-cta.is-busy { opacity: 0.6; cursor: progress; }
.sf-cta-lg { width: 100%; min-height: 56px; padding: 17px 30px; border-radius: var(--sf-radius-field); font-size: 17px; line-height: 20px; }

/* ホーム */
.sf-hero { padding-block: 80px 44px; }
.sf-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sf-main :is(.ap-page-title, .ap-section-small-title, .sf-eyebrow) { word-break: auto-phrase; text-wrap: balance; }
.sf-hero-lead { flex: none; width: 380px; text-wrap: balance; word-break: auto-phrase; }
.sf-home-search { max-width: 580px; margin-block-start: 40px; }
.sf-hero-esims { display: none; margin-block-start: 16px; font-size: 14px; line-height: 20px; }
.sf-cats { display: flex; gap: 10px; width: var(--ap-wide); margin-inline: auto; padding-block-end: 40px; overflow-x: auto; scrollbar-width: none; }
.sf-cats::-webkit-scrollbar { display: none; }
.sf-cat { display: flex; flex: none; flex-direction: column; align-items: center; gap: 8px; width: 136px; padding-inline: 8px; color: var(--ap-label-1); font-size: 14px; line-height: 18px; text-align: center; text-decoration: none; }
.sf-cat-img { width: 120px; height: 78px; border-radius: var(--sf-radius-field); object-fit: cover; transition: transform 0.3s var(--sf-ease-card); }
.sf-cat:hover .sf-cat-img { transform: scale(1.06); }
.sf-section { padding-block-start: 64px; }
.sf-shelf-title { margin-block-end: 24px; }
.sf-search-results { padding-block: 12px 40px; }
/* 結果の行はヘッダーの検索と同じ形。旗、国名、普通の太さ */
.sf-search-results .sf-country-grid { grid-template-columns: minmax(0, 1fr); max-width: 580px; }
.sf-search-results .sf-country { column-gap: 8px; padding: 8px; }
.sf-main .sf-search-results .sf-country-name { font-weight: 400; }

/* 写真の段。大陸ページの部品に、膜と暗くなる動きが無い形で載せる */
.sf-others.ct-others { padding-block: 0; background: transparent; }
.sf-others .ct-tile-link::before { display: none; }
.sf-others .ct-tile-link { transition: transform 0.3s var(--sf-ease-card); }
.sf-others .ct-tile-link:hover { transform: scale(1.02); }
.sf-tile-tag { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; z-index: 2; padding: 4px 12px; border-radius: var(--ap-radius-pill); background: var(--ap-fill-1); color: var(--ap-label-1); font-size: 14px; font-weight: var(--sf-w-title); line-height: 20px; white-space: nowrap; }
.sf-others .ct-others-foot { min-height: 36px; margin-block-start: 16px; }

/* 棚のカード。大きさは .ap-gallery-item--tile、面は .ap-card */
.sf-main .ap-gallery-track { padding-block: 4px 16px; }
.sf-shelf-card { display: flex; flex-direction: column; box-shadow: var(--sf-card-shadow); text-decoration: none; transition: box-shadow 0.3s var(--sf-ease-card); }
.sf-shelf-card:hover { box-shadow: var(--sf-card-shadow-hover); }
.sf-shelf-text { display: flex; flex: none; flex-direction: column; padding: 28px 28px 20px; }
.sf-shelf-flag { margin-block-end: 8px; font-size: 28px; line-height: 32px; }
.sf-shelf-link { display: inline-flex; align-items: center; gap: 4px; margin-block-start: 8px; font-size: 17px; line-height: 21px; }
.sf-shelf-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[dir="rtl"] .sf-shelf-link svg, :root[dir="rtl"] .sf-chevron svg { transform: scaleX(-1); }
.sf-shelf-media { flex: 1; min-height: 0; overflow: hidden; }
.sf-shelf-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--sf-ease-card); }
.sf-shelf-card:hover .sf-shelf-media img { transform: scale(1.03); }

/* 手順と理由 */
.sf-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ap-gallery-gap); }
.sf-how-card { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 519px; padding: 28px 28px 0; box-shadow: var(--sf-card-shadow); }
.sf-how-num { display: block; margin-block-end: 8px; }
.sf-main .sf-how-num { margin-block-start: 0; font-weight: 600; }
.sf-how-body { margin-block-start: 10px; }
.sf-mock { align-self: stretch; margin-block-start: auto; }
.sf-mock-plan { display: grid; gap: 10px; padding-block-end: 28px; }
.sf-mock-tile { padding: 15px; border: 1px solid var(--ap-label-3); border-radius: var(--sf-radius-field); font-size: 17px; font-weight: var(--sf-w-title); line-height: 21px; }
.sf-mock-tile.is-on { padding: 14px; border: 2px solid var(--ap-cta); }
.sf-mock-mail { display: grid; gap: 12px; margin-inline: 8px; padding: 20px; border-radius: var(--sf-radius-panel) var(--sf-radius-panel) 0 0; background: var(--ap-fill-2); }
.sf-mock-mail-head { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 18px; }
.sf-mock-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--ap-cta); }
.sf-mock-line { width: 70%; height: 9px; border-radius: 9px; background: var(--ap-separator); }
.sf-mock-line.is-long { width: 92%; }
.sf-mock-line.is-short { width: 44%; }
.sf-mock-link { height: 40px; border-radius: var(--sf-radius-button); background: var(--ap-cta); }
.sf-mock-phone.uc-phone { align-self: center; height: 21em; font-size: 10px; border-radius: 3.6em 3.6em 0 0; padding-block-end: 0; box-shadow: none; }
.sf-mock-screen.uc-phone-screen { align-items: center; justify-content: center; gap: 12px; padding: 3em 1.6em 1.6em; border-radius: 2.9em 2.9em 0 0; }
.sf-mock-qr { width: 128px; height: 128px; }
.sf-mock-install { width: 100%; padding: 9px; border-radius: var(--sf-radius-button); background: var(--ap-cta); color: #fff; font-size: 12px; line-height: 16px; text-align: center; }
.sf-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--ap-gallery-gap); }
.sf-bento-tile { display: flex; flex-direction: column; grid-column: span 4; gap: 10px; min-height: 280px; padding: 28px; box-shadow: var(--sf-card-shadow); }
.sf-bento-count { grid-column: span 8; grid-row: span 2; }
.sf-bento-blue { background: var(--ap-cta); color: #fff; }
.sf-bento-wide { grid-column: 1 / -1; min-height: 180px; }
.sf-bento-num { margin: 0; background: linear-gradient(100deg, var(--ap-dark-link), #7ee0ff 55%, var(--ap-fill-1)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 140px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.sf-flagcloud { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-block-start: auto; padding-block-start: 32px; font-size: 40px; line-height: 1; }
.sf-linkpill { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; margin-block-start: auto; padding: 10px 16px; border-radius: var(--ap-radius-pill); background: var(--ap-fill-2); color: var(--ap-link); direction: ltr; font-size: 14px; line-height: 18px; }
.sf-linkpill-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ap-cta); }

/* 国を探す */
.sf-chips { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-block: 16px 24px; }
.sf-chips-tight { margin-block: 0 40px; }
.sf-chip { min-height: 38px; padding: 8px 15px; border: 1px solid var(--ap-label-1); border-radius: var(--ap-radius-pill); background: transparent; color: var(--ap-label-1); font-family: inherit; font-size: 14px; line-height: 20px; cursor: pointer; }
.sf-chip:hover { background: rgba(0, 0, 0, 0.04); }
.sf-chip.is-on { border-color: var(--ap-label-1); background: var(--ap-label-1); color: var(--ap-fill-1); }
.sf-list-panel { padding: 12px; box-shadow: var(--sf-card-shadow); }
.sf-country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px var(--ap-gallery-gap); }
.sf-country { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; padding: 13px 16px; border-radius: var(--sf-radius-field); text-decoration: none; transition: background 0.15s; }
.sf-country:hover { background: var(--ap-fill-2); }
.sf-flag { font-size: 24px; line-height: 1; }
.sf-country-name { font-size: 17px; line-height: 21px; }
.sf-chevron svg { display: block; width: 14px; height: 14px; fill: none; stroke: var(--ap-label-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* プランを選ぶ: 872:60:328 の2カラム */
.sf-buy-head { padding-block: 52px 22px; }
.sf-buy-lead { margin-block-start: 13px; font-weight: 400; }
.sf-buy { display: flex; align-items: flex-start; gap: 60px; padding-block-start: 18px; }
.sf-buy-visual { position: sticky; inset-block-start: 110px; flex: 1 1 auto; min-width: 0; }
.sf-buy-options { flex: 0 0 328px; min-width: 0; }
.sf-buy-card { display: flex; align-items: center; justify-content: center; min-height: 711px; padding: 40px; border-radius: var(--sf-radius-panel); background: var(--ap-fill-2); text-align: center; }
.sf-buy-card.has-photo { position: relative; padding: 0; overflow: hidden; }
.sf-buy-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-buy-flag { font-size: 128px; line-height: 1; }
.sf-option-group { margin-block-end: var(--sf-group-gap); }
.sf-option-group.is-off { opacity: 0.32; pointer-events: none; }
.sf-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sf-tiles-1 { grid-template-columns: minmax(0, 1fr); }
.sf-tile-wrap { position: relative; }
.sf-tile-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sf-tile { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 15px; border: 1px solid var(--ap-label-3); border-radius: var(--sf-radius-field); background: var(--sf-field-bg); font-size: 17px; line-height: 21px; cursor: pointer; }
.sf-tile:hover { border-color: var(--sf-hover-border); }
.sf-tile-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.sf-tile-input:checked + .sf-tile { padding: 14px; border: 2px solid var(--ap-cta); }
.sf-tile-input:focus-visible + .sf-tile { outline: 2px solid var(--ap-cta); outline-offset: 2px; }
.sf-tile-sub { color: var(--ap-label-1); font-size: 12px; line-height: 17px; text-align: end; white-space: nowrap; }
.sf-qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ap-label-3); border-radius: var(--sf-radius-field); background: var(--sf-field-bg); }
.sf-qty-btn { width: 52px; height: 52px; border: 0; background: none; color: var(--ap-link); cursor: pointer; font-size: 22px; }
.sf-qty-btn:disabled { color: var(--ap-label-3); cursor: default; }
.sf-qty-value { min-width: 32px; font-size: 17px; font-weight: 600; text-align: center; }
.sf-days { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sf-days-input { width: 64px; height: 52px; padding: 0; border: 0; background: none; color: inherit; font-family: inherit; appearance: textfield; }
.sf-days-input::-webkit-outer-spin-button, .sf-days-input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.sf-days-total { font-size: 17px; font-weight: 600; line-height: 23px; }
.sf-chips[hidden] { display: none; }
.sf-specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0 0 40px; padding-block-start: 20px; border-block-start: 1px solid var(--ap-separator); font-size: 14px; line-height: 20px; }
.sf-specs dt { color: var(--ap-label-2); }
.sf-specs dd { margin: 0; }

/* 上に出る価格バー: 影もぼかしも無い白 */
.sf-topbar { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 30; border-block-end: 1px solid var(--sf-hairline); background: var(--ap-fill-1); transform: translateY(-100%); transition: transform 0.5s ease-in-out; }
.sf-topbar.is-on { transform: none; }
.sf-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: var(--ap-wide); height: 50px; margin-inline: auto; }
.sf-topbar-name { overflow: hidden; min-width: 0; margin: 0; font-size: 21px; line-height: 29px; text-overflow: ellipsis; white-space: nowrap; }
.sf-topbar-price { flex: none; margin: 0; font-size: 17px; font-weight: 600; line-height: 23px; }

/* 固定しない下の合計欄 */
.sf-buysum { margin-block: 60px -96px; margin-inline: calc(50% - 50vw); padding-block: 39px 90px; background: var(--ap-fill-2); }
.sf-buysum-inner { display: grid; grid-template-columns: 380px minmax(0, 1fr) 328px; align-items: start; gap: 41px; width: var(--ap-wide); margin-inline: auto; }
.sf-buysum-title { margin: 0; font-size: 38px; line-height: 46px; }
.sf-buysum-price { min-height: 30px; margin: 0; font-size: 24px; font-weight: 600; line-height: 30px; }
.sf-buysum-plan { margin: 6px 0 0; font-size: 14px; line-height: 19.6px; }
.sf-buysum-cta { width: 100%; padding: 12px 22px; }

/* 注文内容の確認 */
.sf-checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 60px; }
.sf-summary { position: sticky; inset-block-start: 76px; display: flex; flex-direction: column; gap: 16px; }
.sf-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block-end: 12px; border-block-end: 1px solid var(--ap-separator); font-size: 14px; line-height: 20px; }
.sf-summary-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 23px; }
.sf-summary .sf-note, .sf-summary .ap-hint { margin-block-start: 0; }
.sf-sum-rows { min-height: 72px; }
.sf-sum-row { display: flex; justify-content: space-between; gap: 20px; font-size: 17px; line-height: 23px; }
.sf-sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-block-start: 16px; padding-block-start: 19px; border-block-start: 1px solid var(--ap-separator); font-size: 24px; line-height: 30px; }
.sf-sum-amount { font-size: 24px; line-height: 30px; }
.sf-consent { position: relative; padding-inline-start: 26px; font-size: 14px; line-height: 20px; }
.sf-consent input { position: absolute; inset-block-start: 2px; inset-inline-start: 0; width: 16px; height: 16px; margin: 0; border: 1px solid var(--ap-label-3); border-radius: 3px; background: var(--sf-field-bg); cursor: pointer; appearance: none; }
.sf-consent input:checked { border-color: var(--ap-cta); background: var(--ap-cta) center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.7l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sf-consent input:focus-visible { outline: 2px solid var(--ap-cta); outline-offset: 3px; }
.sf-consent label { cursor: pointer; }
.sf-secure { text-align: center; }
.sf-more { margin-block-start: 16px; }
.sf-more > summary { font-size: 14px; line-height: 20px; list-style: none; cursor: pointer; }
.sf-more > summary::-webkit-details-marker { display: none; }
.sf-more[open] > summary { margin-block-end: 12px; }

/* 受け取り */
.sf-status { max-width: 735px; margin: 50px auto 0; text-align: center; }
.sf-status .sf-cta { width: 360px; max-width: 100%; margin-block-start: 32px; }
.sf-received, .sf-esim { display: grid; gap: var(--ap-gallery-gap); max-width: 720px; margin-inline: auto; }
.sf-card { padding: 28px; overflow: visible; }
.sf-narrow { max-width: 480px; margin-inline: auto; }
.sf-stack { display: grid; gap: 12px; }
.sf-setup { display: grid; gap: 4px; }
.sf-setup-links { display: grid; gap: 10px; }
.sf-qr-wrap { justify-self: center; text-align: center; }
.sf-qr { display: block; width: 240px; height: 240px; margin-inline: auto; padding: 12px; border-radius: var(--sf-radius-field); background: var(--ap-fill-1); }
.sf-code { margin: 0 0 8px; direction: ltr; font-family: ui-monospace, Menlo, monospace; font-size: 14px; line-height: 20px; text-align: start; word-break: break-all; }
.sf-steps { display: grid; gap: 8px; margin: 24px 0 0; padding-inline-start: 22px; color: var(--ap-label-2); font-size: 14px; line-height: 21px; }
.sf-main ol.sf-steps { padding-inline-start: 22px; list-style: decimal; }
.sf-after { display: block; margin-block-start: 28px; }

/* 持っているeSIM */
.sf-sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sf-sim { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px; border: 0; border-radius: var(--sf-radius-panel); background: var(--ap-fill-2); color: inherit; font: inherit; text-align: start; text-decoration: none; cursor: pointer; }
.sf-sim-flag { margin-block-end: 12px; font-size: 40px; }
.sf-meter { margin-block-start: 16px; }
.sf-meter-head { display: flex; justify-content: space-between; gap: 12px; margin-block-end: 6px; font-size: 14px; line-height: 20px; }
.sf-meter-track { overflow: hidden; height: 8px; border-radius: 8px; background: var(--sf-hairline); }
.sf-meter-fill { height: 100%; border-radius: 8px; background: var(--ap-cta); }
.sf-w-0{width:0}.sf-w-5{width:5%}.sf-w-10{width:10%}.sf-w-15{width:15%}.sf-w-20{width:20%}.sf-w-25{width:25%}.sf-w-30{width:30%}.sf-w-35{width:35%}.sf-w-40{width:40%}.sf-w-45{width:45%}.sf-w-50{width:50%}.sf-w-55{width:55%}.sf-w-60{width:60%}.sf-w-65{width:65%}.sf-w-70{width:70%}.sf-w-75{width:75%}.sf-w-80{width:80%}.sf-w-85{width:85%}.sf-w-90{width:90%}.sf-w-95{width:95%}.sf-w-100{width:100%}
.sf-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.sf-action { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 15px; border: 1px solid var(--ap-link); border-radius: var(--sf-radius-button); background: transparent; color: var(--ap-link); font-family: inherit; font-size: 14px; line-height: 18px; text-align: center; text-decoration: none; cursor: pointer; }
.sf-main a.sf-action { color: var(--ap-link); }
.sf-action:hover { border-color: var(--ap-label-3); }
.sf-action.is-danger { border-color: var(--sf-error); color: var(--sf-error); }

.sf-withdraw { margin-block-start: 16px; font-size: 14px; line-height: 20px; }
.sf-unlimited-note { margin-block: -40px var(--sf-group-gap); }

/* 計測の同意。欧州のタイムゾーンで未選択の人だけに出る */
.sf-consent-banner { position: fixed; inset-block-end: 16px; inset-inline: 16px; z-index: 26; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 720px; margin-inline: auto; padding: 16px 20px; border-radius: var(--sf-radius-panel); background: var(--ap-fill-1); box-shadow: var(--sf-card-shadow-hover); font-family: var(--font-sans); }
.sf-consent-text { margin: 0; color: var(--ap-label-1); font-size: 14px; line-height: 20px; }
.sf-consent-text a { color: var(--ap-link); text-decoration: none; }
.sf-consent-actions { display: flex; flex: none; gap: 10px; }
.sf-consent-actions .sf-action { min-height: 36px; background: var(--ap-fill-1); }

/* 返金について */
.sf-policy { display: grid; gap: 16px; max-width: var(--ap-text); padding-block-start: 52px; }
.sf-policy h1 { margin-block-end: 16px; }

.sf-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 48px; color: var(--ap-label-2); }
.sf-loading p { margin: 0; }
.sf-spin { width: 24px; height: 24px; border: 2px solid var(--ap-separator); border-block-start-color: var(--ap-label-2); border-radius: 50%; animation: sf-spin 0.8s linear infinite; }
@keyframes sf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sf-spin { animation-duration: 2s; } .sf-country, .sf-shelf-media img, .sf-cat-img { transition: none; } }

@media (max-width: 1068px) {
  .sf-buy, .sf-checkout { gap: 40px; }
  .sf-buy-card { min-height: 460px; }
  .sf-buysum-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sf-buysum-title { grid-column: 1 / -1; }
  .sf-how { grid-template-columns: minmax(0, 1fr); }
  .sf-how-card { min-height: 0; }
  .sf-bento-tile { grid-column: span 6; }
  .sf-bento-count, .sf-bento-wide { grid-column: 1 / -1; }
}
/* 2段目のリンクが消える幅(site.css)では、ヒーローからマイeSIMへ行ける */
@media (max-width: 833px) {
  .sf-hero-esims { display: inline-block; }
}
@media (max-width: 734px) {
  :root { --sf-group-gap: 50px; }
  .sf-consent-banner { flex-direction: column; align-items: stretch; gap: 12px; }
  .sf-consent-actions .sf-action { flex: 1; }
  .sf-page-head { padding-block: 38px 24px; }
  .sf-buy-head { padding-block: 38px 18px; }
  .sf-buy { display: block; padding-block-start: 0; }
  .sf-buy-visual { position: static; margin-block-end: 28px; }
  .sf-buy-options { flex: none; }
  .sf-buy-card { min-height: 246px; padding: 24px; border-radius: 20px; }
  .sf-buy-flag { font-size: 72px; }
  .sf-checkout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sf-summary { position: static; }
  .sf-card { padding: 24px; }
  .sf-country-grid { grid-template-columns: minmax(0, 1fr); }
  .sf-hero { padding-block: 56px 28px; }
  .sf-hero-row { display: block; }
  .sf-hero-lead { width: auto; margin-block-start: 12px; }
  .sf-home-search { margin-block-start: 24px; }
  .sf-cats { width: auto; padding-inline: 6.25vw; padding-block-end: 28px; }
  .sf-cat { width: 100px; padding-inline: 4px; }
  .sf-cat-img { width: 92px; height: 60px; }
  .sf-section { padding-block-start: 42px; }
  .sf-tile-tag { inset-block-end: 8px; inset-inline-start: 8px; padding: 2px 8px; font-size: 12px; line-height: 16px; }
  .sf-shelf-text { padding: 20px 20px 14px; }
  .sf-shelf-link { margin-block-start: 6px; font-size: 14px; line-height: 19px; }
  .sf-how-card { min-height: 420px; }
  .sf-bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sf-bento-tile, .sf-bento-count, .sf-bento-wide { grid-column: auto; grid-row: auto; min-height: 180px; }
  .sf-bento-num { font-size: 96px; }
  .sf-flagcloud { font-size: 28px; }
  .sf-topbar-name { font-size: 17px; line-height: 23px; }
  .sf-topbar-price { font-size: 12px; line-height: 16px; }
  .sf-buysum { padding-block: 32px 48px; }
  .sf-buysum-inner { display: block; }
  .sf-buysum-text { padding-block-start: 20px; }
  .sf-buysum-action { padding-block-start: 24px; }
  .sf-buysum-title { font-size: 32px; line-height: 39px; }
  .sf-actions { grid-template-columns: minmax(0, 1fr); }
}
