/* 機能・対応端末・つながらないとき。Webflow由来のページをAppleの型へ組み直す。
   お手本: features は apple.com/jp/iphone/why-iphone、compatible-devices は apple.com/jp/iphone/compare、
   having-trouble は support.apple.com/ja-jp/108788。値は tokens.css の --ap-* と、この3ページの実測値。 */

html[data-page='features'] .body-wrapper,
html[data-page='features'] .body-wrapper *,
html[data-page='compatible-devices'] .body-wrapper,
html[data-page='compatible-devices'] .body-wrapper *,
html[data-page='having-trouble'] .container-10,
html[data-page='having-trouble'] .container-10 * {
  font-family: var(--font-sans);
}

/* ===== 共通の文字 ===== */
html[data-page='features'] .normal-hero,
html[data-page='compatible-devices'] .normal-hero {
  width: 100%;
  height: auto;
  padding: var(--ap-section-y) 0 calc(var(--ap-section-y) / 2);
  gap: 56px;
}
html[data-page='features'] .page-title {
  font-size: var(--ap-page-title);
  line-height: var(--ap-page-title-lh);
  letter-spacing: var(--ap-page-title-ls);
  font-weight: var(--ap-title-weight);
  text-wrap: balance;
}
html[data-page='features'] .page-title-sub,
html[data-page='compatible-devices'] .page-title-sub,
html[data-page='features'] .section-small-title-sub {
  font-size: var(--ap-eyebrow);
  line-height: var(--ap-eyebrow-lh);
  letter-spacing: var(--ap-eyebrow-ls);
  font-weight: var(--ap-title-weight);
}
html[data-page='features'] .section-small-title,
html[data-page='compatible-devices'] .section-small-title {
  font-size: var(--ap-headline);
  line-height: var(--ap-headline-lh);
  letter-spacing: var(--ap-headline-ls);
  font-weight: var(--ap-title-weight);
  text-wrap: balance;
}
html[data-page='features'] .section-title {
  font-size: var(--ap-section-title);
  line-height: var(--ap-section-title-lh);
  letter-spacing: var(--ap-section-title-ls);
  font-weight: var(--ap-title-weight);
}
html[data-page='features'] .section-small-desc {
  font-size: var(--ap-intro);
  line-height: var(--ap-intro-lh);
  letter-spacing: var(--ap-intro-ls);
  font-weight: 400;
}
html[data-page='features'] .stats {
  font-size: var(--ap-stats);
  line-height: var(--ap-stats-lh);
  letter-spacing: var(--ap-stats-ls);
  font-weight: var(--ap-title-weight);
}
html[data-page='features'] .see-more-button {
  align-self: center;
  margin-top: 32px;
  padding: var(--ap-btn-pad);
  border-radius: var(--ap-radius-pill);
  background: var(--ap-cta);
  font-size: var(--ap-btn-size);
  line-height: var(--ap-btn-lh);
}

/* ===== Features: 枠 ===== */
html[data-page='features'] .normal-section:not(.zero-inset) {
  padding: var(--ap-section-y) 0;
}
html[data-page='features'] .normal-section:not(.zero-inset) > .normal-container {
  width: var(--ap-wide);
  max-width: none;
  gap: var(--ap-header-gap);
}
html[data-page='features'] .section-small-desc { max-width: 692px; margin-inline: auto; }
html[data-page='features'] .div-block-917 { width: 100%; align-items: center; }

/* 動画 */
html[data-page='features'] .video-wrapper {
  z-index: 0;
  height: auto;
  min-height: 630px;
  padding: var(--ap-section-y) 6.25vw;
  display: flex;
  align-items: center;
}

/* 流れる国のカード。列そのものは動きが動かすので幅だけ保つ */
html[data-page='features'] .normal-section.zero-inset._16 { overflow: hidden; }
html[data-page='features'] .div-block-922 { border-radius: 18px; }

/* データ容量。「説明」「テキストリンク」は未入力の仮の文字なので見せない */
html[data-page='features'] .capacity-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}
html[data-page='features'] .capacity-type-wrapper {
  width: auto;
  padding: 40px;
  border-radius: var(--ap-radius-card);
  background: var(--ap-fill-2);
}
html[data-page='features'] .text-block-317 { font-size: 17px; line-height: 23px; font-weight: 600; }
html[data-page='features'] .text-block-318 {
  font-size: var(--ap-eyebrow);
  line-height: var(--ap-eyebrow-lh);
  font-weight: var(--ap-title-weight);
}
html[data-page='features'] .text-block-319,
html[data-page='features'] .capacity-link { display: none; }

/* 複数の国のプラン。スクロールで選ぶ動きはそのまま、カードの大きさだけ画面に収める */
html[data-page='features'] .normal-section.zero-inset > .normal-container { width: var(--ap-wide); max-width: none; padding-top: var(--ap-section-y); }
html[data-page='features'] .global-plan-animation-wrapper {
  top: 72px;
  width: var(--ap-wide);
  max-width: 1260px;
  margin-inline: auto;
  padding: 32px 0;
  grid-template-rows: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
html[data-page='features'] .global-plan-animation-wrapper > div:not(.mutiple-country-wrapper) { display: contents; }
html[data-page='features'] .mutiple-country-wrapper {
  width: auto;
  height: auto;
  aspect-ratio: 3 / 4;
  min-width: 0;
  border-radius: 18px;
}
/* 動きが transform を上書きするので、中央寄せは transform を使わない */
html[data-page='features'] .customized-sim-wrapper {
  top: 50%;
  left: 0;
  right: 0;
  width: 60vw;
  max-width: 720px;
  margin-inline: auto;
  translate: 0 -50%;
}
html[data-page='features'] .mutiple-country-wrapper .text-block-316 { font-size: 17px; line-height: 21px; word-break: keep-all; }
html[data-page='features'] .mutiple-country-wrapper .text-block-315 { font-size: 12px; line-height: 16px; }

/* 最安値エンジン */
html[data-page='features'] .gd-engine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  width: var(--ap-wide);
  margin-inline: auto;
}
html[data-page='features'] .gd-engine .section-small-title { text-align: left; }
html[data-page='features'] .gd-engine .div-block-927 { grid-area: auto !important; min-width: 0; padding: 40px 32px; }

/* 選ばれる理由 */
html[data-page='features'] .div-block-925 {
  grid-template-rows: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
html[data-page='features'] .div-block-925 > .div-block-927 {
  grid-area: auto !important;
  min-width: 0;
  min-height: 300px;
  padding: 32px 24px;
  text-align: center;
}
html[data-page='features'] .div-block-927 { border-radius: var(--ap-radius-card); }
html[data-page='features'] [class*='text-block-320'] {
  font-size: var(--ap-eyebrow);
  line-height: var(--ap-eyebrow-lh);
  font-weight: var(--ap-title-weight);
}
html[data-page='features'] [class*='text-block-321'] { font-size: 17px; line-height: 23px; font-weight: 600; }
html[data-page='features'] .image-471 { max-width: 100%; height: auto; }

/* 購入後のカード */
html[data-page='features'] .gd-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}
html[data-page='features'] .gd-tile {
  display: flex;
  align-items: flex-end;
  min-height: 240px;
  padding: 40px;
  border-radius: var(--ap-radius-card);
  background: var(--ap-fill-2);
  font-size: var(--ap-eyebrow);
  line-height: var(--ap-eyebrow-lh);
  letter-spacing: var(--ap-eyebrow-ls);
  font-weight: var(--ap-title-weight);
}

/* テザリングの波。画面からはみ出す円はセクションで切る */
html[data-page='features'] .gd-hotspot { overflow: clip; }
html[data-page='features'] .hotspot-memoji { width: clamp(88px, 17vw, 240px); padding: clamp(12px, 2.4vw, 34px); }
html[data-page='features'] .image-476 { width: clamp(28px, 4.5vw, 64px); }
html[data-page='features'] .div-block-936 { gap: clamp(8px, 2.2vw, 32px); margin-top: 64px; }

/* ===== 対応端末 ===== */
html[data-page='compatible-devices'] .page-title {
  font-size: 64px;
  line-height: 71px;
  font-weight: var(--ap-title-weight);
  text-wrap: balance;
}
html[data-page='compatible-devices'] .text-block-304 { font-size: 17px; line-height: 23px; }
html[data-page='compatible-devices'] .normal-section {
  padding: var(--ap-section-y) 0;
}
html[data-page='compatible-devices'] .normal-section > .normal-container {
  width: min(87.5vw, 980px);
  max-width: none;
}
html[data-page='compatible-devices'] .text-block-305 {
  font-size: var(--ap-eyebrow);
  line-height: var(--ap-eyebrow-lh);
  letter-spacing: var(--ap-eyebrow-ls);
  font-weight: var(--ap-title-weight);
}
html[data-page='compatible-devices'] .collection-list-6 {
  grid-template-rows: none;
  gap: 12px 24px;
  font-size: 17px;
  line-height: 25px;
}
html[data-page='compatible-devices'] .collection-item-6 { min-width: 0; overflow-wrap: anywhere; }
html[data-page='compatible-devices'] .div-block-891 { padding-inline: 0; }
html[data-page='compatible-devices'] .div-block-893 { top: 72px; }

/* ===== つながらないとき ===== */
html[data-page='having-trouble'] .container-10 {
  width: 817px;
  max-width: 87.5vw;
  margin-inline: auto;
  padding: 64px 0 var(--ap-section-y);
}
html[data-page='having-trouble'] .div-block-686 { margin-bottom: 24px; }
html[data-page='having-trouble'] .heading-505 {
  margin: 0;
  font-size: 48px;
  line-height: 55px;
  font-weight: var(--ap-title-weight);
  color: #1d1d1f;
}
html[data-page='having-trouble'] .container-10 > .text-block-190 {
  margin-top: 14px;
  font-size: 21px;
  line-height: 28px;
  letter-spacing: 0.231px;
  font-weight: 400;
  color: #1d1d1f;
}
html[data-page='having-trouble'] .div-block-692 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
  padding: 0;
  background: none;
}
html[data-page='having-trouble'] .link-3 {
  padding: 0;
  color: #06c;
  font-size: 17px;
  line-height: 23px;
  font-weight: 400;
  text-decoration: none;
}
html[data-page='having-trouble'] .link-3:hover { text-decoration: underline; }
html[data-page='having-trouble'] .div-block-690,
html[data-page='having-trouble'] .div-block-690-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  margin-top: 52px;
  scroll-margin-top: 72px;
}
html[data-page='having-trouble'] .div-block-691 { width: 100%; scroll-margin-top: 72px; }
html[data-page='having-trouble'] .heading-508 {
  margin: 0;
  font-size: 40px;
  line-height: 47px;
  font-weight: var(--ap-title-weight);
  color: #1d1d1f;
}
html[data-page='having-trouble'] .div-block-691 .text-block-190 {
  margin-top: 14px;
  font-size: 17px;
  line-height: 23px;
  font-weight: 400;
  color: #1d1d1f;
}
html[data-page='having-trouble'] .image-364 {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 560px;
  margin-inline: auto;
}
html[data-page='having-trouble'] .form-block-5 { width: 100%; margin-top: 28px; }
html[data-page='having-trouble'] .form-4 { width: 100%; margin: 0; padding: 0; }
html[data-page='having-trouble'] .form-label,
html[data-page='having-trouble'] .form-label-2 {
  position: static;
  display: block;
  margin: 20px 0 8px;
  padding: 0;
  background: none;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
html[data-page='having-trouble'] .email,
html[data-page='having-trouble'] .textarea-2 {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #86868b;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  font-size: 17px;
  line-height: 25px;
}
html[data-page='having-trouble'] .email { height: 56px; }
html[data-page='having-trouble'] .textarea-2 { min-height: 160px; }
html[data-page='having-trouble'] .email:focus,
html[data-page='having-trouble'] .textarea-2:focus {
  border-color: #0071e3;
  outline: 3px solid rgba(0, 113, 227, 0.3);
}
html[data-page='having-trouble'] .checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  font-size: 17px;
  line-height: 23px;
}
html[data-page='having-trouble'] .checkbox-field .w-checkbox-input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}
html[data-page='having-trouble'] .link-18 { color: #06c; }
html[data-page='having-trouble'] .submit-button-5 {
  display: inline-block;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: var(--ap-radius-pill);
  background: var(--ap-cta);
  font-size: 17px;
  line-height: 20px;
}

/* ===== タブレット ===== */
@media (max-width: 1068px) {
  html[data-page='features'] .global-plan-animation-wrapper { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  html[data-page='features'] .mutiple-country-wrapper { aspect-ratio: 1; padding: 12px; }
  html[data-page='features'] .mutiple-country-wrapper .text-block-316 { font-size: 14px; line-height: 18px; }
  html[data-page='features'] .customized-sim-wrapper { width: 72vw; }
  html[data-page='features'] .div-block-925 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-page='features'] .div-block-925 > .div-block-927 { min-height: 240px; }
  html[data-page='features'] .gd-engine { grid-template-columns: minmax(0, 1fr); }
  html[data-page='features'] .gd-engine .section-small-title { text-align: center; }
  html[data-page='features'] .capacity-type-wrapper { padding: 28px; }
  html[data-page='compatible-devices'] .page-title { font-size: 56px; line-height: 63px; }
  html[data-page='having-trouble'] .container-10 { width: 692px; padding-top: 56px; }
  html[data-page='having-trouble'] .heading-505 { font-size: 40px; line-height: 47px; }
  html[data-page='having-trouble'] .heading-508 { font-size: 32px; line-height: 39px; letter-spacing: 0.128px; }
  html[data-page='having-trouble'] .div-block-690,
  html[data-page='having-trouble'] .div-block-690-copy { margin-top: 48px; }
}

/* ===== スマホ ===== */
@media (max-width: 734px) {
  html[data-page='features'] .video-wrapper { min-height: 560px; }
  html[data-page='features'] .capacity-wrapper { grid-template-columns: minmax(0, 1fr); }
  html[data-page='features'] .global-plan-animation-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 16px 0; }
  html[data-page='features'] .mutiple-country-wrapper { padding: 8px; border-radius: 12px; }
  html[data-page='features'] .mutiple-country-wrapper .text-block-316 { font-size: 11px; line-height: 14px; }
  html[data-page='features'] .mutiple-country-wrapper .text-block-315 { font-size: 10px; line-height: 13px; }
  html[data-page='features'] .selected-icon { width: 16px; }
  html[data-page='features'] .customized-sim-wrapper { width: 87.5vw; padding: 24px; }
  html[data-page='features'] .div-block-925 > .div-block-927 { min-height: 180px; padding: 20px 14px; }
  html[data-page='features'] .gd-tiles { grid-template-columns: minmax(0, 1fr); }
  html[data-page='features'] .gd-tile { min-height: 160px; padding: 28px; }
  html[data-page='compatible-devices'] .page-title { font-size: 40px; line-height: 47px; }
  html[data-page='compatible-devices'] .collection-list-6 { font-size: 14px; line-height: 19px; gap: 10px 16px; }
  html[data-page='compatible-devices'] .div-block-893 { top: 52px; }
  html[data-page='having-trouble'] .container-10 { padding-top: 48px; }
  html[data-page='having-trouble'] .heading-505 { font-size: 32px; line-height: 39px; }
  html[data-page='having-trouble'] .heading-508 { font-size: 28px; line-height: 33px; letter-spacing: 0.196px; }
  html[data-page='having-trouble'] .container-10 > .text-block-190 { font-size: 19px; line-height: 26px; letter-spacing: 0.228px; }
  html[data-page='having-trouble'] .div-block-690,
  html[data-page='having-trouble'] .div-block-690-copy { margin-top: 40px; }
  html[data-page='having-trouble'] .image-364 { max-height: 460px; }
}
