/*------------------------------------------------------------
2026-11-25 SFgo の動きとデザイン（テレメトリー／シフトライト）
・全ページ共通：シフトライト、ボタン、右のダウンロード欄、ページの切り替わり
・トップ（body.sfgo-racing、日英）：黒基調、見出しとカードの出方、動画の上の波形
・動きは motion.js が html に付ける .js-motion があるときだけ。JSが動かなくても、OSで「視差効果を減らす」がオンでも、内容はすべて読める
元に戻すとき：css-js.php の motion.css / motion.js の行を消す（トップの body の class も外す）
-------------------------------------------------------------*/

:root {
--sg: #00daa6;
--sg-deep: #009e75;
--ink: #181818;   /* SFgoアプリの画面の実測値に合わせた無彩色のグレー */
--ink-2: #242424; /* カード */
--ink-0: #121212; /* 沈める所（フッター・メニュー） */
--line: rgba(255,255,255,0.14);
--ease: cubic-bezier(.16,.84,.24,1);
}

@media (prefers-reduced-motion: no-preference) {
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateX(-2vw); } }
@keyframes vt-in { from { clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); } to { clip-path: polygon(0 0, 130% 0, 110% 100%, -20% 100%); } }

/* シフトライト：スクロールの進み具合で点灯し、最後に点滅する */
#shift {
position: fixed;
top: 0;
left: 0;
z-index: 290;
width: calc(100% - 300px);
height: 5px;
display: flex;
gap: 3px;
pointer-events: none;
}
#shift i {
flex: 1;
background: rgba(128,128,128,0.22);
transform: skewX(-24deg);
transition: background .12s linear, box-shadow .12s linear;
}
#shift i.on { background: var(--c); box-shadow: 0 0 10px var(--c); }
#shift.full i { animation: shift-flash .14s steps(2, jump-none) 6; }
@keyframes shift-flash { from { opacity: 1; } to { opacity: .15; } }
@media screen and (max-width: 799px) { #shift { width: 100%; } }
@media screen and (min-width: 600px) and (max-width: 799px) and (hover: hover) and (pointer: fine) { #shift { width: calc(100% - 180px); } }

/* ボタン */
.cta-button { position: relative; overflow: hidden; padding: 1.4rem 0; }
.cta-button p { position: relative; margin: 0; }
.cta-button a {
position: relative;
overflow: hidden;
border: 0;
border-radius: 0;
clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
background: linear-gradient(100deg, var(--sg-deep), #00b88a);
letter-spacing: .06em;
}
.cta-button a:hover { color: #04110d; background: var(--sg); border: 0; }
.cta-button a::after {
content: "";
position: absolute;
top: 0;
left: -60%;
width: 40%;
height: 100%;
background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
transform: skewX(-24deg);
}
.js-motion .cta-button a::after { animation: cta-shine 4.2s var(--ease) infinite; }
@keyframes cta-shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }

/* 右のダウンロード欄 */
#download { background: #202020; color: #fff; border-left: 1px solid var(--line); box-sizing: border-box; }
#download li.login a { background: transparent; color: var(--sg); border-color: transparent; border-radius: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); background-image: linear-gradient(rgba(0,218,166,.22), rgba(0,218,166,.22)); }
#download li.login a:hover { background: var(--sg); color: #04110d; border-color: var(--sg); }
#download li.qr-code img { display: block; padding: 6px; background: #fff; box-sizing: border-box; border-radius: 4px; }
#download li.download-link img { transition: transform .3s var(--ease); }
#download li.download-link a:hover img { transform: translateX(4px); }
@media screen and (max-width: 599px) { #download { border-left: 0; border-top: 1px solid var(--line); } }

/* ===== トップ ===== */
html:has(body.sfgo-racing) { background: var(--ink); }
body.sfgo-racing { background: var(--ink); }
.sfgo-racing article, .sfgo-racing .sfgo-top .container { color: #fff; }
.sfgo-racing header.selected { background: rgba(24,24,24,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sfgo-racing header.selected #gnavi svg .st1 { fill: #fff; }
.sfgo-racing header.selected ul li:nth-child(2) .menu-trigger span { background-color: #fff; }
.sfgo-racing .sfgo-top .container h2::before {
content: "";
display: block;
width: 5.6rem;
height: 1rem;
margin-bottom: 1.8rem;
background: repeating-linear-gradient(114deg, var(--sg) 0 7px, transparent 7px 13px);
}
.sfgo-racing .sfgo-top #sfgo-summary h2::before { display: none; }

.sfgo-racing footer { background: var(--ink-0); border-top: 1px solid var(--line); }

/* 動画 */
.sfgo-racing #hero-youtube { container-type: inline-size; }
.sfgo-racing #hero-youtube::before { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35) 45%, rgba(24,24,24,1)); }
.sfgo-racing #hero-youtube #tele { position: absolute; left: 0; bottom: 0; z-index: 2; width: 100%; height: 22%; pointer-events: none; }
.sfgo-racing #hero-youtube #h1-box p { font-size: 1.6rem; font-size: min(5.6rem, 5cqi); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.sfgo-racing.lang-en #hero-youtube #h1-box p { white-space: normal; text-wrap: balance; }

/* キャッチコピー */
.sfgo-racing .sfgo-top #sfgo-summary { background-color: rgba(0,0,0,.86); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4rem), 0 100%); margin-bottom: 0; }
.sfgo-racing .sfgo-top .marking { color: var(--sg); }

/* note */
.sfgo-racing .sfgo-top #sfgo-note li { border-top: 2px solid var(--line); padding-top: 1.4rem; position: relative; }
.sfgo-racing .sfgo-top #sfgo-note li::before { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--sg); transition: width .5s var(--ease); }
.sfgo-racing .sfgo-top #sfgo-note li:hover::before, .sfgo-racing .sfgo-top #sfgo-note li:focus-within::before { width: 100%; }
.sfgo-racing .sfgo-top #sfgo-note li a { color: #fff; }
.sfgo-racing .sfgo-top #sfgo-note li a:hover { opacity: 1; }
.sfgo-racing .sfgo-top #sfgo-note .note-img { border-radius: 2px; background: var(--ink-2); }
.sfgo-racing .sfgo-top #sfgo-note .note-img img { transition: transform .6s var(--ease); }
.sfgo-racing .sfgo-top #sfgo-note li a:hover .note-img img { transform: scale(1.06); }
.sfgo-racing .sfgo-top #sfgo-note .note-text time { color: var(--sg); }
.sfgo-racing .sfgo-top #sfgo-note ul { scrollbar-color: var(--sg-deep) transparent; scrollbar-width: thin; }

/* できること */
.sfgo-racing .sfgo-top .container ul.rows2 { counter-reset: f; }
.sfgo-racing .sfgo-top .container ul.rows2 li { counter-increment: f; position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 0; overflow: hidden; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); transition: background .3s; }
.sfgo-racing .sfgo-top .container ul.rows2 li::before { content: "0" counter(f) / ""; position: absolute; z-index: 2; left: 1.6rem; top: 1.4rem; padding: .3rem 1rem; background: rgba(18,18,18,.8); color: var(--sg); font-size: 1.4rem; font-weight: 800; line-height: 1.4; transform: skewX(-12deg); }
.sfgo-racing .sfgo-top .container ul.rows2 li::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 4px; background: var(--sg); transition: width .6s var(--ease); }
.sfgo-racing .sfgo-top .container ul.rows2 li:hover { background: #2e2e2e; }
.sfgo-racing .sfgo-top .container ul.rows2 li:hover::after { width: 100%; }
.sfgo-racing .sfgo-top .container ul.rows2 li img { border-radius: 0; display: block; transition: transform .8s var(--ease); }
.sfgo-racing .sfgo-top .container ul.rows2 li:hover img { transform: scale(1.04); }
.sfgo-racing .sfgo-top .container ul.rows2 h3 { color: #fff; position: relative; }

/* 支援 */
.sfgo-racing .sfgo-top #sfgo-support-stakeholder { clip-path: polygon(0 5rem, 100% 0, 100% calc(100% - 5rem), 0 100%); padding-top: 14rem; padding-bottom: 11rem; background-image: linear-gradient(90deg, rgba(0,74,55,.94) 30%, rgba(0,74,55,.25)), url('/sfgo/assets/img/bg-sfgo-support-stakeholder.webp'); background-size: cover; background-position: center; background-blend-mode: normal, multiply; }
@media screen and (max-width: 749px) { .sfgo-racing .sfgo-top #sfgo-support-stakeholder { background-image: linear-gradient(180deg, rgba(0,74,55,.9), rgba(0,74,55,.72)), url('/sfgo/assets/img/bg-sfgo-support-stakeholder.webp'); } }
.sfgo-racing .sfgo-top #sfgo-support-stakeholder h2::before { background: repeating-linear-gradient(114deg, #fff 0 7px, transparent 7px 13px); }

/* サーキット観戦：1つおきに左右を入れ替える */
.sfgo-racing .sfgo-top #sfgo-for-circuit li { color: #fff; }
.sfgo-racing .sfgo-top #sfgo-for-circuit li h3 { color: var(--sg); }
.sfgo-racing .sfgo-top #sfgo-for-circuit li img { border-radius: 0; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
@media screen and (max-width: 1179px) {
.sfgo-racing .sfgo-top #sfgo-for-circuit li,
.sfgo-racing .sfgo-top #sfgo-for-circuit li:first-child,
.sfgo-racing .sfgo-top #sfgo-for-circuit li:nth-child(2),
.sfgo-racing .sfgo-top #sfgo-for-circuit li:last-child { background: var(--ink-2); border: 1px solid var(--line); border-radius: 0; }
.sfgo-racing .sfgo-top #sfgo-for-circuit li img { clip-path: none; }
}
@media screen and (min-width: 1180px) {
.sfgo-racing .sfgo-top #sfgo-for-circuit li:nth-child(2) { grid-template-columns: minmax(0, 1fr) 48%; }
.sfgo-racing .sfgo-top #sfgo-for-circuit li:nth-child(2) img { grid-column: 2; }
.sfgo-racing .sfgo-top #sfgo-for-circuit li:nth-child(2) h3,
.sfgo-racing .sfgo-top #sfgo-for-circuit li:nth-child(2) p { grid-column: 1; }
.sfgo-racing .sfgo-top #sfgo-for-circuit ul { gap: 8rem; }
}

/* ===== 動き（トップ） ===== */
@media (prefers-reduced-motion: no-preference) {
.js-motion .sfgo-racing #h1-box p { animation: wipe-in .9s .35s var(--ease) both; }
.js-motion .sfgo-racing #h1-box h1 img { animation: pop-in .7s .1s var(--ease) both; }

.js-motion .sfgo-racing .rv-line { position: relative; clip-path: inset(-.2em 100% -.2em 0); transform: translateX(-2.4rem) skewX(-10deg); transition: clip-path .75s var(--ease), transform .75s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js-motion .sfgo-racing .rv-line.in { clip-path: inset(-.2em -2rem -.2em 0); transform: none; }

.js-motion .sfgo-racing .rv-h { clip-path: inset(-.2em 100% -.2em 0); transform: skewX(-8deg); transform-origin: 0 100%; transition: clip-path .8s var(--ease), transform .8s var(--ease); }
.js-motion .sfgo-racing .rv-h.in { clip-path: inset(-.2em -1rem -.2em 0); transform: none; }
.js-motion .sfgo-racing .rv-h::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s .25s var(--ease); }
.js-motion .sfgo-racing .rv-h.in::before { transform: none; }

.js-motion .sfgo-racing .rv { opacity: 0; transform: translate3d(0, 4.8rem, 0); transition: opacity .6s var(--ease), transform .8s var(--ease), background .3s; transition-delay: calc(var(--i, 0) * 90ms); }
.js-motion .sfgo-racing .rv.in { opacity: 1; transform: none; }
.js-motion .sfgo-racing .rv-l { opacity: 0; transform: translate3d(-9rem, 0, 0) skewX(6deg); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.js-motion .sfgo-racing .rv-r { opacity: 0; transform: translate3d(9rem, 0, 0) skewX(-6deg); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.js-motion .sfgo-racing .rv-l.in, .js-motion .sfgo-racing .rv-r.in { opacity: 1; transform: none; }

/* ボタンのまわりを光の線が走る */
.js-motion .sfgo-racing .cta-button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0,218,166,.75), transparent) 0 28% / 22rem 1px no-repeat, linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent) 0 52% / 14rem 1px no-repeat, linear-gradient(90deg, transparent, rgba(0,218,166,.5), transparent) 0 78% / 30rem 1px no-repeat; background-repeat: no-repeat; animation: streak 2.6s linear infinite; }
}
@keyframes streak { from { background-position: -24rem 28%, -50rem 52%, -34rem 78%; } to { background-position: calc(100% + 60rem) 28%, calc(100% + 44rem) 52%, calc(100% + 40rem) 78%; } }
@keyframes wipe-in { from { clip-path: inset(-.2em 100% -.2em 0); transform: translateX(-3rem) skewX(-14deg); } to { clip-path: inset(-.2em -1rem -.2em 0); transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

.sfgo-racing article { overflow-x: clip; } /* 横から入る動きで横スクロールを出さない */

/* ===== できること：カードごとの動き（motion.js が img を .fx で包む） ===== */
.fx { position: relative; display: block; overflow: hidden; }
.sfgo-racing .sfgo-top .container ul.rows2 li:has(.fx)::before { display: none; }
.sfgo-racing .sfgo-top .container ul.rows2 li .fx::after { content: "0" counter(f) / ""; position: absolute; z-index: 2; left: -.4rem; bottom: 0; padding: .3rem 1.1rem; background: rgba(18,18,18,.85); color: var(--sg); font-size: 1.4rem; font-weight: 800; line-height: 1.4; transform: skewX(-12deg); }
.sfgo-racing .sfgo-top .container ul.rows2 li .fx img { transition: none; transform: none; }
.fx video, .fx canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.fx video { object-fit: cover; opacity: 0; transition: opacity .5s; }
.fx video.on { opacity: 1; }

/* ===== グローバルナビ（全ページ・PCとスマホ共通） ===== */
.open-menu #snavi { background-color: rgba(0,0,0,.5); }
#snavi nav { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.open-menu #snavi nav { background: repeating-linear-gradient(114deg, rgba(255,255,255,.018) 0 2px, transparent 2px 22px), var(--ink-0); }
#gnavi-link { box-sizing: border-box; max-width: 92rem; min-height: 100%; margin: 0 auto; padding: 0 2.4rem 6rem; }
#snavi li { color: #fff; }
#snavi li:first-child { margin: 2.2rem 0 0 0; text-align: right; }
#snavi .menu-trigger span { background-color: #fff; }
#snavi li.login { width: 100%; margin: 3rem 0 0 0; }
#snavi li.login a { padding: .6rem 0; border: 0; border-radius: 0; clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%); background: linear-gradient(100deg, var(--sg-deep), #00b88a); color: #fff; }
#snavi li.login a:hover { border: 0; background: var(--sg); color: #04110d; }
#snavi li.header { margin: 4.4rem 0 1.2rem 0; color: var(--sg); letter-spacing: .12em; }
#snavi li.header::before { content: ""; display: inline-block; width: 2.6rem; height: .8rem; margin-right: 1.2rem; background: repeating-linear-gradient(114deg, var(--sg) 0 5px, transparent 5px 9px); }
#snavi li.linkbutton { position: relative; padding: 0; border-top: 1px solid var(--line); }
#snavi li.bl { border-bottom: 1px solid var(--line); }
#snavi li.linkbutton a { position: relative; z-index: 1; box-sizing: border-box; padding: 1.9rem 4rem 1.9rem .4rem; color: #fff; font-weight: 700; transition: padding .35s var(--ease), color .25s; }
#snavi li.linkbutton a::after { right: .6rem; color: var(--sg); transition: transform .35s var(--ease); }
#snavi li.linkbutton::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,218,166,.22), rgba(0,218,166,0) 80%); clip-path: polygon(0 0, 0 0, -10% 100%, 0 100%); transition: clip-path .45s var(--ease); }
#snavi li.linkbutton:hover::before, #snavi li.linkbutton:focus-within::before { clip-path: polygon(0 0, 110% 0, 100% 100%, 0 100%); }
#snavi li.linkbutton a:hover, #snavi li.linkbutton a:focus-visible { color: #fff; padding-left: 2rem; }
#snavi li.linkbutton a:hover::after { transform: translateX(6px); }
@media (prefers-reduced-motion: no-preference) {
html.js-motion.open-menu #snavi li { animation: nav-in .55s var(--ease) both; }
html.js-motion.open-menu #snavi li:nth-child(1) { animation: none; }
html.js-motion.open-menu #snavi li:nth-child(2) { animation-delay: .10s; }
html.js-motion.open-menu #snavi li:nth-child(3) { animation-delay: .15s; }
html.js-motion.open-menu #snavi li:nth-child(4) { animation-delay: .20s; }
html.js-motion.open-menu #snavi li:nth-child(5) { animation-delay: .25s; }
html.js-motion.open-menu #snavi li:nth-child(6) { animation-delay: .30s; }
html.js-motion.open-menu #snavi li:nth-child(7) { animation-delay: .35s; }
html.js-motion.open-menu #snavi li:nth-child(8) { animation-delay: .40s; }
html.js-motion.open-menu #snavi li:nth-child(9) { animation-delay: .45s; }
html.js-motion.open-menu #snavi li:nth-child(n+10) { animation-delay: .50s; }
}
@keyframes nav-in { from { opacity: 0; transform: translateX(6rem) skewX(-8deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js-motion .cta-button a::after, #shift.full i { animation: none; } }


/*------------------------------------------------------------
2026-11-25 料金・よくある質問・規約など（body.sfgo-sub）
文章を読むページなので、動きは見出しとカードだけ。元に戻すときは各ページの body の class を外す
-------------------------------------------------------------*/
.sfgo-sub article a:not(.cta-button a) { color: var(--sg); }
.sfgo-sub.lang-ja article :is(h1, h2, h3, p, li) { word-break: auto-phrase; }
.sfgo-sub .container { margin: 7rem auto; padding-left: max(4%, calc((100% - 96rem) / 2)); padding-right: max(4%, calc((100% - 96rem) / 2)); line-height: 1.95; }
.sfgo-sub .container h2, .sfgo-sub .container h3 { line-height: 1.5; }
.sfgo-sub .container p { color: rgba(255,255,255,.88); }

/* ページの頭 */
.sfgo-sub #sfgo-plan { position: relative; overflow: hidden; margin: 0 auto; padding-left: max(4%, calc((100% - 96rem) / 2)); padding-right: max(4%, calc((100% - 96rem) / 2)); padding-top: 15rem; padding-bottom: 11rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4rem), 0 100%); background-color: rgba(0,0,0,.84); background-position: center; }
.sfgo-sub #sfgo-plan > * { position: relative; z-index: 1; }
.sfgo-sub #sfgo-plan h1 { margin: 0 0 2.4rem; font-size: clamp(3rem, 5cqi, 5.2rem); font-weight: 800; line-height: 1.3; letter-spacing: .02em; }
.sfgo-sub #sfgo-plan { container-type: inline-size; }
.sfgo-sub #sfgo-plan h1::before { content: ""; display: block; width: 5.6rem; height: 1rem; margin-bottom: 2rem; background: repeating-linear-gradient(114deg, var(--sg) 0 7px, transparent 7px 13px); }
.sfgo-sub #sfgo-plan > p { color: #fff; width: auto; max-width: 40em; margin-left: 0; margin-right: auto; }
.sfgo-sub #sfgo-plan #tele { position: absolute; z-index: 0; left: 0; bottom: 3.2rem; width: 100%; height: 34%; opacity: .55; pointer-events: none; }

/* 料金 */
.sfgo-sub #sfgo-plan ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem; margin: 4rem 0 0; padding: 0; list-style: none; }
.sfgo-sub #sfgo-plan li, .sfgo-sub #sfgo-plan li:first-child { display: block; width: 100%; padding: 3.2rem 1.6rem; border: 0; background: linear-gradient(120deg, rgba(0,218,166,.22), rgba(255,255,255,.05)), rgba(24,24,24,.72); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); font-size: 1.6rem; line-height: 1.6; transition: background .3s; }
.sfgo-sub #sfgo-plan li strong { font-size: clamp(2.8rem, 6.4cqi, 5.6rem); line-height: 1.2; letter-spacing: 0; color: #fff; white-space: nowrap; }

/* 登録方法：タブと手順 */
.sfgo-sub .tab-container ul { border-radius: 0; background: var(--ink-2); padding: 6px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.sfgo-sub .slide-indicator { border-radius: 0; background: linear-gradient(100deg, var(--sg-deep), #00b88a); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); width: calc(50% - 6px); }
.sfgo-sub .tab-container ul li { color: rgba(255,255,255,.66); font-size: 1.5rem; font-weight: 700; line-height: 1.4; display: flex; align-items: center; justify-content: center; }
.sfgo-sub .tab-container ul li.selected { color: #fff; }
.sfgo-sub .tab-container ul li:not(.selected):hover { color: #fff; background: transparent; }
.sfgo-sub .tab-content { padding: 2.4rem 0 0; background: none; border: 0; border-radius: 0; }
.sfgo-sub .tab-content ol { margin: 0; padding: 0; list-style: none; }
.sfgo-sub .tab-content ol > li { position: relative; margin: 0 0 2.4rem; padding: 3rem 3rem 3.2rem; background: var(--ink-2); border-left: 4px solid var(--line); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.sfgo-sub .tab-content ol > li::before { content: ""; position: absolute; left: -4px; top: 0; width: 4px; height: 100%; background: var(--sg); transform-origin: 0 0; }
.sfgo-sub .tab-content ol > li h3 { margin: 0 0 2.4rem; color: #fff; font-size: 1.9rem; }
.sfgo-sub .tab-content ol > li > img { margin: 0 auto !important; max-width: 100%; }
.sfgo-sub .download-button { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.sfgo-sub .tab-container .download-button img { width: 17rem !important; margin: 0 !important; }

/* よくある質問：1問1枚 */
.sfgo-sub.page-faq section:not(#sfgo-plan) h2 { position: relative; margin: 2.8rem 0 0; padding: 2.6rem 4.4rem 0 3rem; background: var(--ink-2); border-left: 4px solid var(--sg); color: #fff; font-size: 2rem; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); box-sizing: border-box; }
.sfgo-sub.page-faq section:not(#sfgo-plan) p { margin: -1px 0 0; padding: 1.4rem 3rem 2.8rem; background: var(--ink-2); border-left: 4px solid var(--sg); box-sizing: border-box; }

/* 規約・プライバシー・特商法：読みやすさ優先 */
.sfgo-sub:is(.page-terms-of-use, .page-privacy-policy, .page-tradelaw) section:not(#sfgo-plan) h2 { margin: 0 0 1.2rem; padding-top: 3.2rem; border-top: 1px solid var(--line); font-size: 2rem; }
.sfgo-sub:is(.page-terms-of-use, .page-privacy-policy, .page-tradelaw) section:not(#sfgo-plan) h2::before { content: ""; display: inline-block; width: 2.6rem; height: .8rem; margin-right: 1.2rem; vertical-align: .12em; background: repeating-linear-gradient(114deg, var(--sg) 0 5px, transparent 5px 9px); }
.sfgo-sub:is(.page-terms-of-use, .page-privacy-policy, .page-tradelaw) section:not(#sfgo-plan) h3 { font-size: 1.7rem; }
.sfgo-sub:is(.page-terms-of-use, .page-privacy-policy, .page-tradelaw) section:not(#sfgo-plan) p { margin: 0 0 3.6rem; font-size: 1.6rem; overflow-wrap: anywhere; }

@media screen and (max-width: 749px) {
.sfgo-sub .container { margin: 5rem auto; padding-left: 2rem; padding-right: 2rem; }
.sfgo-sub #sfgo-plan { padding: 12rem 2rem 8rem; }
.sfgo-sub #sfgo-plan ul { gap: 1.2rem; }
.sfgo-sub #sfgo-plan li, .sfgo-sub #sfgo-plan li:first-child { padding: 2.4rem .6rem; font-size: 1.3rem; }
.sfgo-sub #sfgo-plan li strong { font-size: min(3.4rem, 8.4cqi); }
.sfgo-sub .tab-container ul li { padding: 12px 8px; font-size: 1.3rem; }
.sfgo-sub.lang-ja article p { word-break: normal; }   /* 狭い幅では、文節の改行は見出しだけ */
.sfgo-sub.page-subscribe section:not(#sfgo-plan) > h2 { font-size: min(3rem, 8.2vw); }
.sfgo-sub .cta-button a { box-sizing: border-box; width: 84%; max-width: 100%; padding-left: 1.6rem; padding-right: 1.6rem; font-size: min(1.6rem, 4.2vw); white-space: nowrap; }
.sfgo-sub .tab-content ol > li { padding: 2.4rem 1.8rem; }
.sfgo-sub .tab-content ol > li h3 { font-size: 1.7rem; }
.sfgo-sub .tab-container #tab-1 li img { width: 62%; }
.sfgo-sub .tab-container #tab-2 li img { width: 100%; }
.sfgo-sub.page-faq section:not(#sfgo-plan) h2 { padding: 2.2rem 3.6rem 0 1.8rem; font-size: 1.8rem; }
.sfgo-sub.page-faq section:not(#sfgo-plan) p { padding: 1.2rem 1.8rem 2.4rem; }
}

@media (prefers-reduced-motion: no-preference) {
.js-motion .sfgo-sub #sfgo-plan h1 { animation: wipe-in .9s .1s var(--ease) both; }
.js-motion .sfgo-sub #sfgo-plan li { animation: plan-in .7s calc(.35s + var(--i, 0) * .12s) var(--ease) both; }
.js-motion .sfgo-sub .tab-content ol > li::before { transform: scaleY(0); transition: transform .9s .15s var(--ease); }
.js-motion .sfgo-sub .tab-content ol > li.in::before { transform: none; }
}
@keyframes plan-in { from { opacity: 0; transform: translateX(5rem) skewX(-8deg); } to { opacity: 1; transform: none; } }

