/* サイト共通のフッター。値はAppleのフッターのCSSの実測値(2026-11-06 apple.com/jp、ac-globalfooter.built.css)。
   Appleに無いもの(ロゴ・ストアのバッジ・カード)だけ、今の中身を残すために足した。 */
.gf {
  --gf-bg: #f5f5f7;
  --gf-border: rgba(0, 0, 0, 0.16);
  --gf-text: rgba(0, 0, 0, 0.56);
  --gf-link: rgba(0, 0, 0, 0.72);
  --gf-pipe: rgba(0, 0, 0, 0.48);
  --gf-title: rgba(0, 0, 0, 0.88);
  --gf-title-hover: #000;
  --gf-offset: 4px;
  position: relative;
  z-index: 1;
  background: var(--gf-bg);
  color: var(--gf-text);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* 日本語のページ以外でも和文のページと同じ行間にすると詰まらないよう、ここは日本語だけ */
.gf:lang(ja) {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif);
  line-height: 1.41667;
  letter-spacing: 0;
}
.gf *, .gf *::before, .gf *::after { box-sizing: content-box; margin: 0; padding: 0; font-family: inherit; letter-spacing: inherit; }
.gf ul { list-style: none; }
.gf h3 { color: var(--gf-title); font: inherit; }
.gf a { color: var(--gf-link); font-size: inherit; font-weight: inherit; line-height: inherit; text-decoration: none; }
.gf a:hover { text-decoration: underline; }
.gf-content { max-width: 980px; margin: 0 auto; padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); }

/* 注記 */
.gf-sosumi { padding: 17px 0 11px; border-bottom: 1px solid var(--gf-border); }
.gf-sosumi p { padding-bottom: 0.8em; }

/* 列のリンク */
.gf-directory { display: flex; flex-wrap: nowrap; padding-top: 20px; }
.gf-column { flex-basis: 25%; }
.gf-section { pointer-events: none; }
.gf-section ~ .gf-section { padding-top: 24px; }
.gf-title-text { display: block; margin-block-end: 0.8em; margin-inline-end: 20px; font-weight: 600; }
.gf-title-button, .gf-title-icon { display: none; }
.gf-list { margin-inline-end: 20px; }
.gf-item { display: block; margin-bottom: 0.8em; pointer-events: auto; }
.gf-item:last-child { margin-bottom: 0; }

/* 購入の帯と著作権 */
.gf-footer { padding: 37px 0 max(11px, env(safe-area-inset-bottom)); }
.gf-shop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; padding-bottom: 19px; border-bottom: 1px solid var(--gf-border); }
.gf-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.gf-brand img { width: 24px; height: 24px; border-radius: 6px; }
.gf-brand-name { color: var(--gf-title); font-weight: 600; }
.gf-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.gf-badge { display: block; line-height: 0; }
.gf-badge img { display: block; height: 32px; width: auto; }
.gf-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-inline-start: 8px; }
.gf-cards img { display: block; height: 22px; width: auto; }
.gf-end { position: relative; display: flex; justify-content: space-between; gap: 16px; }
.gf-legal { position: relative; top: -3px; display: flex; flex-wrap: wrap; min-width: 0; }
.gf-copyright { margin-block-start: 5px; margin-inline-end: 30px; }
.gf-legal-links { position: relative; top: -5px; margin-block-start: 5px; margin-inline-end: 30px; }
.gf-legal-item { position: relative; display: inline-block; margin-block-start: 5px; margin-inline-end: 6px; }
.gf-legal-item::after { content: ""; position: absolute; width: 1px; height: 10px; margin: 3px 0; background: var(--gf-pipe); }
.gf-legal-item:last-child::after { display: none; }
.gf-legal-link { display: inline-block; margin-inline-start: -9px; padding: 0 9px; white-space: nowrap; }
.gf-legal-item:first-child .gf-legal-link { margin-inline-start: 0; padding-inline-start: 0; }

/* 言語と通貨。Appleと同じく、選ぶページへ移る短い文字リンク */
.gf-locale { position: relative; top: -3px; flex: none; margin-block-start: 5px; white-space: nowrap; }
.gf-locale-link { display: inline-block; }

/* 言語と通貨を選ぶページ。Appleの /choose-country-region/ の実測値 */
.lc-main { background: #fff; color: #1d1d1f; }
.lc { box-sizing: border-box; width: 980px; max-width: 87.5%; margin: 0 auto; padding: 65px 0 22px; font-size: 17px; font-weight: 400; line-height: 25px; letter-spacing: -0.374px; }
.lc:lang(ja), .lc:lang(ko), .lc:lang(zh-Hans), .lc:lang(zh-Hant) { letter-spacing: normal; }
.lc-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lc-title { margin: 0; padding: 30px 0 20px; border-top: 1px solid #d2d2d7; color: #1d1d1f; font-size: 32px; font-weight: 600; line-height: 36px; letter-spacing: 0.128px; }
.lc-title:lang(ja), .lc-title:lang(ko) { font-weight: 700; letter-spacing: normal; }
.lc-title.lc-first { padding-top: 0; border-top: 0; }
.lc-list { columns: 3; margin: 14px 0 26px; padding: 0 0 25px; list-style: none; }
.lc-list li { padding-bottom: 7px; break-inside: avoid; }
.lc .lc-link { font-size: 17px; font-weight: 400; line-height: 25px; }
.lc-link, .lc-list button { color: #0066cc; text-decoration: none; }
.lc-list button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; text-align: start; }
.lc-link:hover, .lc-list button:hover { text-decoration: underline; }
.lc-list button span { color: #6e6e73; }
.lc .lc-link[aria-current="true"], .lc-list button[aria-pressed="true"] { color: #1d1d1f; font-weight: 600; }
@media (max-width: 1068px) {
  .lc { width: 692px; }
  .lc-title { font-size: 28px; line-height: 32px; letter-spacing: 0.196px; }
}
@media (max-width: 734px) {
  .lc { padding: 45px 0 9px; }
  .lc-title { font-size: 24px; line-height: 28px; letter-spacing: 0.216px; }
  .lc-list { columns: 1; }
}

/* タブレット(Appleの切替点 1023px) */
@media (max-width: 1023px) {
  .gf-legal { display: block; }
  .gf-copyright, .gf-legal-links { margin-inline-end: 0; }
  .gf-legal-item { margin-block-start: 4px; }
}

/* スマホ(Appleの切替点 833px)。列を縦に並べ、小見出しで開閉する */
@media (max-width: 833px) {
  .gf-content { padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .gf-directory { flex-direction: column; }
  .gf-column { flex-basis: auto; }
  .gf-section { position: relative; z-index: 1; overflow: hidden; box-sizing: border-box; width: calc(100% + var(--gf-offset) * 2); margin-inline-start: calc(var(--gf-offset) * -1); padding: 0 var(--gf-offset) 1px; pointer-events: auto; }
  .gf-section::after { content: ""; position: absolute; right: var(--gf-offset); bottom: 0; left: var(--gf-offset); z-index: 3; height: 1px; background: var(--gf-border); }
  .gf-section ~ .gf-section { padding-top: 0; }
  .gf-title-text { display: none; }
  .gf-title-button { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; box-sizing: border-box; width: 100%; padding: 10px 0; border: 0; background: var(--gf-bg); color: var(--gf-title); font: inherit; font-weight: 400; text-align: start; cursor: pointer; -webkit-user-select: none; user-select: none; }
  .gf-title-button:hover { color: var(--gf-title-hover); }
  .gf-title-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 11px; margin-block-start: 5px; color: var(--gf-title); }
  .gf-list { position: absolute; top: 100%; inset-inline-start: 0; z-index: -1; overflow: hidden; width: 100%; margin: 0; padding: 5px 0 16px; box-sizing: border-box; visibility: hidden; transform: translateY(-100px); will-change: transform; }
  .gf-item { margin-bottom: 0; }
  .gf-link { display: block; padding: 6px 14px; }
  .gf-section.is-open .gf-title-button { color: var(--gf-title-hover); }
  .gf-section.is-open .gf-list { position: static; z-index: 1; visibility: visible; transform: none; transition: transform 300ms ease; }
  .gf-footer { padding: 17px 0 max(9px, env(safe-area-inset-bottom)); }
  .gf-shop { display: block; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 0; }
  .gf-stores { margin-block-start: 12px; }
  .gf-cards { margin-inline-start: 0; }
  .gf-end { display: flex; flex-direction: column-reverse; gap: 0; }
  .gf-legal { padding-top: 12px; }
  .gf-legal-item { margin-block-start: 5px; }
  .gf-locale { margin-block-start: 0; padding-top: 4px; }
}
/* JSが動かないときは、スマホでも全部開いたままにして読めるようにする */
@media (max-width: 833px) {
  html:not(.w-mod-js) .gf-list { position: static; visibility: visible; transform: none; }
}
