/* PIP TIDE（ピップタイド）の LP の見た目。手本はリドルインクの LP（riddle-quest web/lp/）。
   ゲームの見た目（案E：ノートと色鉛筆）に合わせる：生成りのノートの紙・うすい青の方眼・主の色は鉛筆の紺 #2f4fa3・差し色は付箋の黄。
   部品の決まり（ゲームと同じ）：線は細いか無し・影はぼかす・主の色は1つ・太い縁取りや白縁の字はしない。
   書体は端末の物（ヒラギノ角ゴ・Noto Sans）。名前はロゴの絵。ダークモードは作らない。 */

:root {
  color-scheme: light;
  --paper: #fbf6ea; --paper2: #f3ecdb; --sheet: #ffffff; --grid: rgba(47,79,163,.07);
  --ink: #22305a; --muted: #5a6a8a; --rule: #e3dac6;
  --navy: #2f4fa3; --navy-d: #24408a; --navy-s: #dfe5f4;
  --sticky: #f6d860; --sticky-s: #fbeeb0; --torn: #c9772f;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", system-ui, sans-serif;
  --r: 16px;
  --sh: 0 1px 2px rgba(58,46,31,.05), 0 12px 30px rgba(58,46,31,.10);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  background-color: var(--paper);
  /* ノートの方眼 */
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-x: clip;
}
p { text-wrap: pretty; margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; line-height: 1.45; letter-spacing: .03em; margin: 0; }
h1:lang(ja), h2:lang(ja), h3:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; }
.nb { display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* 頭の帯 */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(251,246,234,.9); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(251,246,234,.78); backdrop-filter: blur(8px); } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 48px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(58,46,31,.18); }
.brand b { font-weight: 900; font-size: 19px; letter-spacing: .08em; line-height: 1.1; color: var(--navy); white-space: nowrap; }
.brand small { display: block; font-size: 11px; letter-spacing: .2em; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover { color: var(--navy); }
@media (max-width: 860px) { .site-nav a:not(.keep) { display: none; } }

/* 配信準備中の札（押せない） */
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px; background: var(--sheet); color: var(--navy); font-weight: 800; font-size: 15px; box-shadow: var(--sh); white-space: nowrap; }
.soon::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--sticky); box-shadow: 0 1px 2px rgba(58,46,31,.25); transform: rotate(-8deg); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 99px; font-weight: 800; text-decoration: none; font-size: 15px; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(47,79,163,.28); }
.btn-navy:hover { background: var(--navy-d); color: #fff; }

/* 最初の画面 */
.hero { padding: 40px 0 56px; position: relative; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 64px 0 88px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.kick { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .12em; }
.kick .tag { background: var(--sticky-s); color: var(--ink); padding: 2px 12px; border-radius: 6px; letter-spacing: .06em; }
.hero h1 { margin: 0 0 6px; }
.hero h1 img { width: min(100%, 620px); }
.hero .ruby { margin: -4px 0 18px; color: var(--muted); font-size: 15px; letter-spacing: .3em; padding-left: 8px; }
.hero .catch { font-size: clamp(24px, 4.6vw, 34px); font-weight: 800; line-height: 1.5; margin: 0 0 16px; color: var(--ink); }
.hero .lead { font-size: 16.5px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.hero-art { margin: 0; justify-self: center; width: min(100%, 440px); }
.hero-art .frame { border-radius: 26px; overflow: hidden; box-shadow: 0 2px 4px rgba(58,46,31,.06), 0 24px 60px rgba(58,46,31,.22); transform: rotate(1.2deg); }
.hero-art figcaption, .shot-cap { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }

/* 鉛筆の揺れた線（段の境目） */
.pencil-rule { display: block; width: min(100% - 32px, 1056px); height: 14px; margin: 0 auto; }

/* 段 */
.sec { padding: 72px 0; }
@media (min-width: 960px) { .sec { padding: 96px 0; } }
.label { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.label .no { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--sticky); color: var(--ink); border-radius: 4px; font-size: 15px; letter-spacing: 0; box-shadow: 0 3px 8px rgba(58,46,31,.16); transform: rotate(-4deg); }
.sec h2 { font-size: clamp(26px, 5.2vw, 38px); margin-bottom: 16px; }
.sec .lead { font-size: 16.5px; max-width: 40em; }

/* 遊び方 */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 40px; }
.step { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .step { grid-template-columns: 300px 1fr; gap: 40px; } .step:nth-child(even) { grid-template-columns: 1fr 300px; } .step:nth-child(even) .phone { order: 2; } }
.phone { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--sh); background: var(--sheet); width: min(100%, 300px); justify-self: center; }
.step .no { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--sticky); border-radius: 5px; font-weight: 900; font-size: 20px; box-shadow: 0 4px 10px rgba(58,46,31,.16); transform: rotate(-5deg); margin-bottom: 12px; }
.step h3 { font-size: clamp(21px, 3.6vw, 26px); margin-bottom: 10px; color: var(--navy); }
.step p { max-width: 30em; }
.mini { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.mini img { width: 48px; height: 48px; }
.mini .sum { font-weight: 900; color: var(--navy); font-size: 20px; }
.more-shots { margin-top: 56px; }
.more-shots h3 { font-size: 18px; margin-bottom: 14px; }
.shot-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; }
@media (max-width: 759px) { .shot-row { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; } }
.shot-row figure { margin: 0; scroll-snap-align: start; }
.shot-row .phone { width: 100%; border-radius: 18px; }
.shot-row figcaption { font-size: 13.5px; margin-top: 10px; line-height: 1.6; }

/* サメ先生 */
.sensei { display: grid; gap: 28px; align-items: center; margin-top: 28px; background: var(--sheet); border-radius: 24px; padding: 28px 20px; box-shadow: var(--sh); }
@media (min-width: 860px) { .sensei { grid-template-columns: 1fr 1.1fr; padding: 40px 48px; } }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stages figure { margin: 0; text-align: center; }
.stages img { width: 100%; max-width: 150px; margin: 0 auto; }
.stages figcaption { font-size: 13px; color: var(--muted); line-height: 1.5; }
.sensei h3 { font-size: 24px; color: var(--navy); margin-bottom: 4px; }
.sensei .role { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.bubble { position: relative; display: inline-block; background: var(--paper); border-radius: 14px; padding: 8px 16px; font-weight: 700; margin: 4px 0 14px; box-shadow: 0 4px 12px rgba(58,46,31,.10); }

/* 特長 */
.features { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; gap: 24px; } }
.feature { background: var(--sheet); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.feature .pic { position: relative; background: var(--paper2); aspect-ratio: 16 / 10; overflow: hidden; }
.pic-tag { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.82); padding: 1px 8px; border-radius: 999px; }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.feature .pic.top img { object-position: 50% 8%; }
.feature .pic.mid img { object-position: 50% 62%; }
.feature .pic img.at-guide { object-position: 50% 78%; }
.feature .pic img.at-fast { object-position: 50% 0%; }
.feature .pic img.at-daily { object-position: 50% 31%; }
.feature .body { padding: 20px 22px 22px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; color: var(--navy); }
.feature p { margin: 0; }

/* 対応 */
.spec { margin: 24px 0 0; display: grid; gap: 0; background: var(--sheet); border-radius: var(--r); box-shadow: var(--sh); padding: 8px 22px; }
.spec div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-weight: 800; color: var(--navy); }
.spec dd { margin: 0; }
@media (max-width: 719px) { .spec div { grid-template-columns: 1fr; gap: 2px; } }

/* よくある質問 */
.faq { margin-top: 24px; display: grid; gap: 12px; }
.faq details { background: var(--sheet); border-radius: 14px; box-shadow: 0 1px 2px rgba(58,46,31,.05), 0 6px 16px rgba(58,46,31,.07); }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 10px 20px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--sticky); font-size: 14px; transform: rotate(-4deg); }
.faq summary::after { content: "＋"; margin-left: auto; color: var(--navy); font-weight: 700; }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0; padding: 0 20px 18px 60px; }

/* 締め（ゲームの紺の大きな段） */
.release { background: var(--navy); color: #fff; padding: 72px 0 80px; margin-top: 24px; position: relative; overflow: hidden; }
.release::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.release .wrap { position: relative; display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 900px) { .release .wrap { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; } }
.release .icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 16px 36px rgba(0,0,0,.28); }
.release h2 { font-size: clamp(26px, 5vw, 40px); margin-bottom: 10px; }
.release p { margin: 0 0 18px; color: #dfe5f4; }
.release .soon { color: var(--navy); }
.release .sensei-end { width: 200px; }

/* 足 */
.site-foot { padding: 32px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
.site-foot a { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }
.sec.tight { padding-top: 0; }
