
:root{--bg:#f4f7fd;--card:#fff;--ink:#232a35;--ink2:#5d6a7d;--accent:#2f6bff;--accent-ink:#1f4fc0;--line:#dbe4f2;--chip:#e3ecfd}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",sans-serif;line-height:1.75;font-size:16px}
.wrap{max-width:760px;margin:0 auto;padding:20px 16px 56px}
a{color:var(--accent-ink)}
.top-link{display:inline-block;margin-bottom:14px;font-size:13px}
.meta{color:var(--ink2);font-size:13px;margin:0 0 10px}
.cat{display:inline-block;background:var(--chip);border-radius:999px;padding:2px 10px;font-size:12px;margin-right:8px}
.badge{display:inline-block;background:var(--accent);color:#fff;font-size:11px;font-weight:700;border-radius:999px;padding:1px 9px;margin-left:6px}
h1{font-size:24px;line-height:1.45;margin:10px 0 8px}
.titleimg,.scene-img{width:100%;height:auto;border-radius:14px;margin:6px 0 16px;display:block}
h2{font-size:19px;border-left:5px solid var(--accent);padding-left:10px;margin:26px 0 10px}
p{margin:0 0 13px}
ul,ol{margin:0 0 13px;padding-left:22px}
li{margin-bottom:7px}
.stats{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.stats span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:2px 10px;font-size:12px;color:var(--ink2)}
.dlg-line{display:flex;gap:10px;margin:0 0 10px;align-items:flex-start}
.dlg-face{width:44px;height:44px;border-radius:50%;flex:none;background:var(--chip)}
.dlg-main{background:#fff;border:1px solid var(--line);border-radius:4px 16px 16px 16px;padding:8px 12px}
.dlg-name{display:inline-block;color:#fff;font-weight:700;font-size:12px;border-radius:999px;padding:0 9px;margin-bottom:4px;background:#60788f}
.dlg-main p{margin:0;font-size:15px}
.sp-papa .dlg-name{background:#2f6bff}.sp-mama .dlg-name{background:#e2703a}
.sp-elder .dlg-name{background:#b97f2e}.sp-younger .dlg-name{background:#4f7d5a}
.sp-master .dlg-name{background:#1f56d6}.sp-friend .dlg-name{background:#b3612c}
.sp-teacher .dlg-name{background:#60788f}.sp-lumi .dlg-name{background:#3b82c4}
.sp-watcher .dlg-name{background:#8494b3}.sp-vision .dlg-name{background:#7d6ba8}
.tasks{list-style:none;padding-left:0}
.tasks li{background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px;margin:0 0 8px;font-size:15px}
.gate-line{display:flex;align-items:center;gap:12px;margin:26px 0 8px;font-size:13px;font-weight:700;color:var(--accent-ink);letter-spacing:.05em}
.member-panel{background:#fff;border:2px solid var(--accent);border-radius:14px;padding:18px 16px;margin:10px 0 8px}
.member-chip{display:inline-block;background:var(--chip);font-size:11px;border-radius:999px;padding:1px 9px}
.member-title{margin:6px 0 8px;font-size:18px}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:12px 0}
.plan-card{border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.plan-flag{display:inline-block;background:var(--chip);font-size:11px;border-radius:999px;padding:1px 9px;margin-bottom:4px}
.plan-name{font-weight:700}.plan-price{font-weight:700;color:var(--accent-ink);margin-left:8px}
.plan-card ul{margin:6px 0 0;padding-left:20px;font-size:14px}
.member-btn{display:block;text-align:center;background:var(--accent);color:#fff;text-decoration:none;font-weight:700;border-radius:10px;padding:12px;margin:12px 0 6px}
.member-sub{color:var(--ink2);font-size:14px}/* ===== 紹介フロー（無料版→メンバーシップ）2026-11-15 ===== */
.intro-stage { position: relative; height: 192px; border-radius: 14px; overflow: hidden; margin: 14px 0 12px; text-align: center; }
.intro-skip { position: absolute; top: 8px; right: 8px; z-index: 9; border: 1px solid rgba(255,255,255,.5); background: rgba(15,18,26,.55); color: #fff; font-size: 11.5px; line-height: 1; padding: 6px 11px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.intro-lead { font-size: 15px; font-weight: 700; line-height: 1.8; margin: 2px 0 8px; text-align: left; }
.intro-body { font-size: 13.5px; line-height: 1.9; margin: 0 0 10px; text-align: left; }
.plan-btn { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 13px; text-decoration: none; color: #fff; border-radius: 999px; padding: 8px 16px; }
.intro-open-row { margin: 14px 0 4px; text-align: center; }
.intro-open-btn { font-family: inherit; font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 10px 20px; cursor: pointer; background: #fff; }
.intro-modal { position: fixed; inset: 0; z-index: 1200; }
.intro-modal[hidden] { display: none; }
.intro-modal-back { position: absolute; inset: 0; background: rgba(12,14,20,.62); }
.intro-modal-box { position: relative; max-width: 680px; margin: 4vh auto; max-height: 92vh; overflow-y: auto; border-radius: 18px; padding: 24px 18px; text-align: center; }
.intro-modal-x { position: absolute; top: 10px; right: 12px; z-index: 5; border: none; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; padding: 6px; }
/* --- お金側ステージ（本棚と扉） --- */
.ifx-money { background: linear-gradient(180deg, #262d40 0%, #171c29 78%); box-shadow: inset 0 0 0 1.5px rgba(224,208,162,.35); }
.ifx-money .ifx-shelf { position: absolute; left: 0; right: 0; top: 10px; z-index: 1; padding: 0 14px; }
.ifx-money .ifx-row { display: flex; align-items: flex-end; gap: 3px; height: 40px; border-bottom: 4px solid rgba(146,116,58,.55); padding: 0 6px; margin-bottom: 7px; }
.ifx-money .ifx-row i { display: block; height: 32px; border-radius: 2px 2px 0 0; }
.ifx-money .ifx-row i:nth-child(6n+1) { background: #a8503f; } .ifx-money .ifx-row i:nth-child(6n+2) { background: #476b52; }
.ifx-money .ifx-row i:nth-child(6n+3) { background: #4d5f96; } .ifx-money .ifx-row i:nth-child(6n+4) { background: #a37c2c; }
.ifx-money .ifx-row i:nth-child(6n+5) { background: #71548f; } .ifx-money .ifx-row i:nth-child(6n) { background: #3f7183; }
.ifx-money .ifx-light { position: absolute; left: 50%; top: 6px; z-index: 2; width: 190px; height: 178px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 38%, rgba(255,226,150,.85), rgba(255,214,120,.28) 55%, rgba(255,214,120,0) 75%); }
.ifx-money .ifx-medals { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 12px; }
.ifx-money .ifx-medal { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d9a83f 55%, #9a741f); box-shadow: 0 0 10px rgba(255,214,110,.65), inset 0 0 0 2px rgba(122,90,20,.45); }
.ifx-money .ifx-door { position: absolute; left: 50%; top: 8px; z-index: 4; width: 104px; height: 150px; transform: translateX(-50%); }
.ifx-money .ifx-door span { position: absolute; top: 0; width: 52px; height: 150px; background: linear-gradient(180deg, #4a3a22, #332818); border: 2px solid rgba(217,168,63,.75); box-sizing: border-box; }
.ifx-money .ifx-dl { left: 0; border-radius: 6px 0 0 6px; transform: translateX(-58px); opacity: 0; } .ifx-money .ifx-dr { right: 0; border-radius: 0 6px 6px 0; transform: translateX(58px); opacity: 0; }
.ifx-money.play .ifx-dl { animation: ifxDoorL 3.4s ease-out both; } .ifx-money.play .ifx-dr { animation: ifxDoorR 3.4s ease-out both; }
.ifx-money.play .ifx-light { animation: ifxLight 3.4s ease-out both; }
.ifx-money.play .ifx-row i { animation: ifxBookIn 3.4s ease-out both; }
.ifx-money.play .ifx-row:nth-child(2) i { animation-delay: .12s; } .ifx-money.play .ifx-row:nth-child(3) i { animation-delay: .24s; }
.ifx-money.play .ifx-medal { animation: ifxMedalIn 3.4s ease-out both; }
.ifx-money.play .ifx-medal:nth-child(2) { animation-delay: .1s; } .ifx-money.play .ifx-medal:nth-child(3) { animation-delay: .2s; }
.ifx-money.play .ifx-medal:nth-child(4) { animation-delay: .3s; } .ifx-money.play .ifx-medal:nth-child(5) { animation-delay: .4s; }
@keyframes ifxDoorL { 0%, 12% { transform: translateX(0); opacity: 1; } 42%, 100% { transform: translateX(-58px); opacity: 0; } }
@keyframes ifxDoorR { 0%, 12% { transform: translateX(0); opacity: 1; } 42%, 100% { transform: translateX(58px); opacity: 0; } }
@keyframes ifxLight { 0%, 14% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes ifxBookIn { 0%, 22% { filter: brightness(.38) saturate(.25); } 78%, 100% { filter: brightness(1) saturate(1); } }
@keyframes ifxMedalIn { 0%, 30% { filter: grayscale(1) brightness(.45); box-shadow: none; } 82%, 100% { filter: none; } }
/* --- AI側ステージ（起動と生成） --- */
.ifx-ai { background: linear-gradient(180deg, #131b2c 0%, #0a0e16 80%); box-shadow: inset 0 0 0 1.5px rgba(110,190,230,.3); }
.ifx-ai .ifx-scan { position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 5; opacity: 0; background: linear-gradient(180deg, rgba(103,209,255,0), rgba(103,209,255,.5), rgba(103,209,255,0)); }
.ifx-ai.play .ifx-scan { animation: ifxScan 3.4s ease-in-out both; }
@keyframes ifxScan { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 55% { top: 166px; opacity: 1; } 70%, 100% { top: 166px; opacity: 0; } }
.ifx-ai .ifx-dots { position: absolute; left: 0; right: 0; top: 16px; z-index: 2; display: flex; justify-content: center; gap: 14px; }
.ifx-ai .ifx-dots span { width: 8px; height: 8px; border-radius: 50%; background: #67d1ff; box-shadow: 0 0 9px rgba(103,209,255,.9); }
.ifx-ai.play .ifx-dots span { animation: ifxDotIn 3.4s ease-out both; }
.ifx-ai.play .ifx-dots span:nth-child(2) { animation-delay: .12s; } .ifx-ai.play .ifx-dots span:nth-child(3) { animation-delay: .24s; }
.ifx-ai.play .ifx-dots span:nth-child(4) { animation-delay: .36s; } .ifx-ai.play .ifx-dots span:nth-child(5) { animation-delay: .48s; }
.ifx-ai.play .ifx-dots span:nth-child(6) { animation-delay: .6s; }
@keyframes ifxDotIn { 0%, 8% { background: #2b3648; box-shadow: none; } 45%, 100% { background: #67d1ff; } }
.ifx-ai .ifx-hexwrap { position: absolute; left: 50%; top: 44px; z-index: 3; width: 86px; height: 86px; transform: translateX(-50%); }
.ifx-ai .ifx-hexring { position: absolute; inset: 0; background: rgba(103,209,255,.28); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.ifx-ai .ifx-hex { position: absolute; inset: 7px; background: linear-gradient(150deg, #dfe9f5 0%, #8fb6cf 45%, #4d7fa8 100%); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); box-shadow: 0 0 18px rgba(103,209,255,.5); }
.ifx-ai .ifx-hexcore { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #eaf7ff, #67d1ff 60%, #2b7fb8); }
.ifx-ai.play .ifx-hexwrap { animation: ifxHexIn 3.4s ease-out both; }
@keyframes ifxHexIn { 0%, 18% { transform: translateX(-50%) scale(.72); opacity: .25; filter: grayscale(.8) brightness(.6); } 62%, 100% { transform: translateX(-50%) scale(1); opacity: 1; filter: none; } }
.ifx-ai .ifx-cards { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 9px; padding: 0 14px; }
.ifx-ai .ifx-cards span { flex: 1; max-width: 92px; height: 30px; border-radius: 7px; background: rgba(140,190,225,.16); border: 1px solid rgba(103,209,255,.55); }
.ifx-ai.play .ifx-cards span { animation: ifxCardIn 3.4s ease-out both; }
.ifx-ai.play .ifx-cards span:nth-child(2) { animation-delay: .14s; } .ifx-ai.play .ifx-cards span:nth-child(3) { animation-delay: .28s; }
.ifx-ai.play .ifx-cards span:nth-child(4) { animation-delay: .42s; }
@keyframes ifxCardIn { 0%, 34% { background: rgba(90,110,135,.1); border-color: rgba(110,130,155,.25); } 85%, 100% { background: rgba(140,190,225,.16); border-color: rgba(103,209,255,.55); } }
@media (prefers-reduced-motion: reduce) {
  .intro-stage *, .intro-stage { animation: none !important; }
  .ifx-ai .ifx-scan { display: none; }
}

.plan-btn{display:block;text-align:center;background:var(--accent);color:#fff;text-decoration:none;font-weight:700;border-radius:10px;padding:10px;margin-top:10px}

.note-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin:22px 0 8px}
.note-box h2{border:none;padding:0;margin:0 0 8px;font-size:18px}
.nav{display:flex;justify-content:space-between;gap:10px;margin-top:34px}
.nav a{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;text-decoration:none;font-size:13px;max-width:48%}
footer{color:var(--ink2);font-size:12px;text-align:center;margin-top:40px}
.list-item{display:block;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:9px 12px;margin:0 0 8px;text-decoration:none;color:var(--ink)}
.list-item .no{font-size:12px;color:var(--ink2);margin-right:8px}
h2.sec{font-size:19px;border-left:5px solid var(--accent);padding-left:10px;margin:28px 0 12px}
.sub{color:var(--ink2);font-size:14px}
/* ===== 見出し帯（案B・章見出し）2026-11-15 ===== */
h2{background-image:linear-gradient(90deg,rgba(47,107,255,.10),rgba(159,216,255,.04) 62%,rgba(159,216,255,0)),linear-gradient(90deg,#2f6bff,#9fd8ff);background-size:100% 100%,100% 2px;background-position:0 0,0 100%;background-repeat:no-repeat;border-radius:0 8px 8px 0;padding-top:6px;padding-bottom:8px;padding-right:10px}
.note-box h2{background-image:none}
.gate h2{background-image:none}
