/* Harry Game / Harry Study 共通の見た目＝「あそび場」の服。
   太い縁取り＋ずらした影（押すと沈むボタン）・丸ゴシック1書体・ハリーちゃんと作品の絵が主役。
   2026-10-15 社長「UIがダサい」→ 金継ぎの見立て（道具の服・主役が小さい・色が事務的・手触りなし）を受けて全面的に着替えた。
   色はサイトで1組：Game＝あんず色の地×かぼちゃ色／Study＝空色の地×青（html の data-site で切りかえ） */
:root {
  --bg: #FFFDF8; --paper: #FFFFFF; --ground: #FFDDB0; --ground-2: #FFF1DD;
  --ink: #2B1D12; --muted: #5E4D3E; --line: #2B1D12;
  --accent: #A8410F; --accent-soft: #FFDDB0;
  --btn: #FFC93C; --btn-ink: #2B1D12;
  --ok: #23703F; --ok-soft: #DDF3E3; --ng: #B23A26; --ng-soft: #FBE3DD;
  --radius: 18px; --radius-s: 12px; --edge: 2.5px solid var(--line);
  --pop: 0 5px 0 var(--line); --pop-s: 0 3px 0 var(--line);
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}
html[data-site="study"] {
  --bg: #F8FBFF; --ground: #C9E3FF; --ground-2: #E6F2FF;
  --ink: #14243A; --muted: #43546B; --line: #14243A;
  --accent: #1F5FAE; --accent-soft: #C9E3FF;
  --btn: #1F5FAE; --btn-ink: #FFFFFF;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--round); font-weight: 500; line-height: 1.8; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー・フッター */
.top { background: var(--ground); border-bottom: var(--edge); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.logo img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.logo span { font-size: 22px; }
.top nav { display: flex; gap: 6px; }
.top nav a { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.top nav a:hover { background: var(--paper); }
@media (max-width: 560px) { .top nav a:not(:last-child) { display: none; } .logo span { font-size: 19px; } }
.foot { background: var(--ink); color: var(--ground-2); margin-top: 72px; padding: 32px 0 44px; font-size: 13px; text-align: center; }
.foot p { margin: 4px 0; }
.foot a { color: inherit; margin: 0 8px; }

/* トップのヒーロー：地は1色の平らな面。ハリーちゃんを大きく、帯の下へはみ出させる */
.hero { background: var(--ground); border-bottom: var(--edge); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 340px; align-items: end; gap: 12px; padding-top: 44px; }
.hero .copy { padding-bottom: 48px; }
.hero h1 { font-size: clamp(26px, 7.2vw, 58px); word-break: keep-all; font-weight: 800; line-height: 1.2; margin: 0 0 14px; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 0 0 22px; color: var(--ink); font-size: 16px; }
.hero .harry { width: 340px; margin-bottom: -6px; justify-self: center; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .08)); }
@media (max-width: 680px) {
  .hero .wrap { grid-template-columns: 1fr 130px; padding-top: 26px; gap: 4px; }
  .hero .copy { padding-bottom: 26px; }
  .hero p { margin-bottom: 16px; }
  .hero .harry { width: 130px; }
}

.sec { padding: 48px 0 8px; }
.sec h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; margin: 0 0 6px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; color: var(--accent); font-weight: 800; margin: 0 0 2px; }
.sec .lead { margin: 0 0 22px; color: var(--muted); }

/* 遊ぶもの：作品の絵が主役の大きなカード */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--paper); border: var(--edge); border-radius: var(--radius); overflow: hidden; box-shadow: var(--pop); color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--line); }
.card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.card .thumb { position: relative; aspect-ratio: 16 / 10; border-bottom: var(--edge); overflow: hidden; background: var(--ground-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .badge { position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--ink); border: 2px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 800; padding: 2px 12px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 24px; font-weight: 800; margin: 0; line-height: 1.35; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.card .foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card .play { font-weight: 800; font-size: 17px; background: var(--btn); color: var(--btn-ink); border: var(--edge); border-radius: 99px; padding: 6px 18px; box-shadow: var(--pop-s); white-space: nowrap; }
.tag { font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--ground-2); color: var(--ink); }
.tag.own { background: var(--ok-soft); color: var(--ok); }
.tag.free { background: var(--accent-soft); color: var(--accent); }

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan { position: relative; border: var(--edge); border-radius: var(--radius); padding: 20px; background: var(--paper); box-shadow: var(--pop-s); display: flex; flex-direction: column; }
.plan.sub { background: var(--ground-2); }
.plan .ribbon { position: absolute; top: -15px; right: 16px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; padding: 1px 12px; border-radius: 99px; border: 2px solid var(--line); }
.plan .k { font-size: 14px; color: var(--accent); font-weight: 800; margin: 0; }
.plan .n { font-weight: 800; font-size: 17px; margin: 2px 0; }
.plan .p { font-size: 32px; font-weight: 800; margin: 2px 0 6px; line-height: 1.3; }
.plan .p small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan .d { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.plan .act { margin-top: auto; }
.plan .btn { width: 100%; }

/* ボタン：押すと沈む */
.btn { display: inline-block; font: inherit; font-weight: 800; font-size: 17px; padding: 12px 22px; border-radius: 99px; border: var(--edge); background: var(--btn); color: var(--btn-ink); cursor: pointer; text-decoration: none; text-align: center; box-shadow: var(--pop); transition: transform .08s, box-shadow .08s; }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: var(--pop); }

/* 読みもの（特商法・規約・購入と復元） */
.doc { max-width: 760px; margin: 0 auto; padding: 36px 16px; }
.doc h1 { font-size: 28px; font-weight: 800; margin: 0 0 18px; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 28px 0 8px; }
.doc dl { border: var(--edge); border-radius: var(--radius); overflow: hidden; margin: 0; background: var(--paper); }
.doc dl div { display: grid; grid-template-columns: 200px 1fr; border-top: 1.5px solid var(--line); }
.doc dl div:first-child { border-top: 0; }
.doc dt { background: var(--ground-2); padding: 12px 16px; font-size: 14px; font-weight: 800; }
.doc dd { margin: 0; padding: 12px 16px; font-size: 14px; }
@media (max-width: 560px) { .doc dl div { grid-template-columns: 1fr; } .doc dt { border-bottom: 1.5px solid var(--line); } }
.box { border: var(--edge); border-radius: var(--radius); padding: 20px; margin: 18px 0; background: var(--paper); box-shadow: var(--pop-s); }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 24px; letter-spacing: .08em; font-weight: 700; background: var(--ground-2); border: 2px dashed var(--line); padding: 8px 16px; border-radius: var(--radius-s); display: inline-block; user-select: all; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input { flex: 1; min-width: 200px; font: inherit; font-size: 18px; padding: 10px 14px; border: var(--edge); border-radius: var(--radius-s); text-transform: uppercase; letter-spacing: .06em; background: var(--paper); }
.muted { color: var(--muted); font-size: 14px; }

/* ============================================================
   ゲームの世界（2026-10-15 社長「Harryの名前はあるがハリーちゃんだけではない。スーパーマリオみたいな感じ？」）
   タイトル画面＝空・雲・丘・地面＋カラフルなロゴ＋仲間たち。任天堂の絵柄（?ブロック・土管など）はまねしない
   ============================================================ */
:root { --display: "Dela Gothic One", "M PLUS Rounded 1c", sans-serif;
  --sky-1: #4FB6F5; --sky-2: #BFE7FF; --grass: #4CB848; --grass-d: #2F8A2E; --soil: #B4672E; --soil-d: #8A4A1C;
  --c-red: #E5483C; --c-yel: #FFC93C; --c-grn: #36B04A; --c-blu: #2E86E6; }
.top { background: var(--sky-1); border-bottom: 0; }
.top .logo, .top nav a { color: var(--ink); }
.top nav a:hover { background: rgba(255, 255, 255, .45); }
.sec h2, .doc h1, .q-hero h1 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }

.world { position: relative; overflow: hidden; background: linear-gradient(var(--sky-1), var(--sky-2) 78%); }
.world .title { position: relative; z-index: 3; text-align: center; padding: 30px 16px 0; }
.logo-word { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1; font-size: clamp(56px, 15vw, 132px); letter-spacing: .02em;
  -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink); }
.logo-word span:nth-child(4n+1) { color: var(--c-red); }
.logo-word span:nth-child(4n+2) { color: var(--c-yel); }
.logo-word span:nth-child(4n+3) { color: var(--c-grn); }
.logo-word span:nth-child(4n+4) { color: var(--c-blu); }
.logo-word small { display: block; font-size: .42em; color: #fff; margin-top: .12em; letter-spacing: .3em; padding-left: .3em; -webkit-text-stroke-width: 8px; }
.tagline { display: inline-block; margin: 16px 0 18px; padding: 4px 16px; background: rgba(255, 255, 255, .9); border: var(--edge); border-radius: 99px; font-weight: 800; font-size: 16px; }
.btn-start { display: block; width: max-content; margin: 0 auto; font-size: 22px; padding: 12px 34px; }

.cloud { position: absolute; z-index: 1; background: #fff; border-radius: 99px; width: 150px; height: 46px; opacity: .95; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 64px; height: 64px; left: 22px; top: -30px; }
.cloud::after { width: 46px; height: 46px; left: 72px; top: -20px; }
.cloud.c1 { left: 4%; top: 70px; }
.cloud.c2 { right: 6%; top: 40px; transform: scale(1.25); }
.cloud.c3 { left: 58%; top: 210px; transform: scale(.75); }
@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: drift 26s ease-in-out infinite alternate; }
  .cloud.c2 { animation-duration: 32s; }
  @keyframes drift { from { translate: -18px 0; } to { translate: 18px 0; } }
}

.stage { position: relative; height: 280px; margin-top: 8px; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; z-index: 1; }
.cast { position: absolute; left: 50%; bottom: 46px; translate: -50% 0; width: min(980px, 100%); height: 240px; z-index: 2; }
.cast img { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .18)); }
.ground { position: relative; z-index: 3; height: 54px; border-top: var(--edge);
  background:
    linear-gradient(var(--grass) 0 14px, var(--grass-d) 14px 17px, transparent 17px),
    repeating-linear-gradient(90deg, transparent 0 46px, var(--soil-d) 46px 49px),
    repeating-linear-gradient(0deg, var(--soil) 0 15px, var(--soil-d) 15px 18px); }
@media (max-width: 680px) {
  .stage { height: 190px; margin-top: 18px; }
  .cast { height: 150px; bottom: 36px; }
  .cast .m-hide { display: none; }
  .hills { height: 110px; }
  .cloud.c3 { display: none; }
  .tagline { font-size: 14px; }
}

/* ステージ札（遊ぶものカードの上に番号） */
.stages { background: var(--bg); }
.card .num { position: absolute; right: 12px; top: 10px; width: 54px; height: 54px; border-radius: 50%; background: var(--c-yel); border: var(--edge); box-shadow: var(--pop-s);
  font-family: var(--display); font-size: 26px; line-height: 50px; text-align: center; color: var(--ink); }
.card .stage-k { font-family: var(--display); font-size: 14px; letter-spacing: .12em; color: var(--accent); margin: 0; }
.card.soon { background: repeating-linear-gradient(135deg, var(--paper) 0 14px, var(--ground-2) 14px 28px); box-shadow: none; border-style: dashed; justify-content: center; align-items: center; text-align: center; padding: 28px 18px; min-height: 220px; }
.card.soon:hover, .card.soon:active { transform: none; box-shadow: none; }
.card.soon img { width: 120px; opacity: .9; filter: grayscale(.2); }
.card.soon h3 { font-family: var(--display); font-weight: 400; font-size: 20px; }

/* Study＝クイズの島：地面のかわりに海、上に国旗の旗飾り */
.bunting { position: absolute; z-index: 2; top: 0; left: -2%; right: -2%; height: 62px; display: flex; justify-content: space-around; align-items: flex-start;
  background: radial-gradient(120% 60px at 50% -30px, transparent 98%, var(--ink) 98.5%, var(--ink) 100%, transparent 100.5%) no-repeat; }
.bunting img { width: 44px; border: 2px solid var(--ink); border-radius: 3px; margin-top: 10px; rotate: var(--r, 0deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.bunting img:nth-child(odd) { --r: -6deg; margin-top: 18px; }
.bunting img:nth-child(3n) { --r: 5deg; margin-top: 24px; }
.sea { position: relative; z-index: 3; height: 54px; border-top: var(--edge); background:
  radial-gradient(18px 10px at 20px 0, #fff 96%, transparent 100%) 0 6px / 40px 20px repeat-x,
  linear-gradient(#2E86E6, #1F5FAE); }
.world.island { background: linear-gradient(#5CC0F7, #D3EEFF 80%); }
@media (max-width: 680px) { .bunting img { width: 30px; } .bunting img:nth-child(n+7) { display: none; } }

/* ページごとのアイコン（2026-10）：ゲームのカード＝絵の左下、クイズの教科名の横 */
.card .thumb .ic { position: absolute; left: 10px; bottom: 10px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line), 0 4px 10px rgba(0,0,0,.25); object-fit: cover; background: #fff; }
.subj-name .ic { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line); vertical-align: middle; margin-right: 8px; object-fit: cover; }
