/* =============================================================================
 * ワンタッチ攻略検索 公式サイト – 共通スタイル
 * 深青〜青紫グラデ / 電光ブルー・ゴールド強調 / グラスモーフィズム / モバイル優先
 * ========================================================================== */
:root {
  --bg: #07132F;
  --bg-2: #0E2450;
  --blue: #2796FF;
  --purple: #7657FF;
  --gold: #F4C64E;
  --text: #FFFFFF;
  --text-sub: #CBD6F2;
  --paper: #FFFFFF;
  --ink: #172033;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-soft: 0 6px 20px rgba(7, 19, 47, .12);
  --maxw: 1120px;
  --header-h: 64px;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 15% -5%, rgba(118, 87, 255, .35), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(39, 150, 255, .28), transparent 55%),
    linear-gradient(180deg, #07132F 0%, #0B1C40 45%, #07132F 100%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 19, 47, .72);
  border-bottom: 1px solid rgba(203, 214, 242, .12);
}
.site-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none; overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow-soft);
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__name { font-size: 1.02rem; letter-spacing: .2px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-sub); padding: 8px 12px; border-radius: 10px; font-size: .92rem; font-weight: 500;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 0; border-radius: 999px; padding: 11px 20px; min-height: 44px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  color: #04122e;
  background: linear-gradient(135deg, var(--gold), #ffd873);
  box-shadow: 0 8px 22px rgba(244, 198, 78, .35);
}
.btn--store {
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 8px 22px rgba(39, 150, 255, .35);
}
/* App Store URL 確定後: Apple 公式バッジ画像に切り替わる（ピル背景は解除し、
   ガイドラインに沿って余白のみ確保した素のリンクにする）。 */
.btn--store-badge {
  background: none; box-shadow: none; padding: 0; border-radius: 0;
  min-height: 0; display: inline-flex;
}
.btn--store-badge img { display: block; height: 53px; width: auto; }
.btn--store-badge:hover { transform: translateY(-1px); opacity: .88; }
.btn--ghost {
  color: #fff; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(203, 214, 242, .25);
}
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(203, 214, 242, .25);
  color: #fff; width: 44px; height: 44px; border-radius: 11px; font-size: 20px; cursor: pointer;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 {
  font-size: clamp(1.5rem, 4.2vw, 2.1rem); margin: 0 0 12px; line-height: 1.35;
}
.section-head p { color: var(--text-sub); margin: 0; font-size: 1.02rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 10px;
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.25; margin: 14px 0 18px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 1.12rem; color: var(--text-sub); margin: 0 0 14px; }
.hero__note {
  font-size: .95rem; color: var(--text-sub); margin: 0 0 26px;
  padding-left: 14px; border-left: 3px solid var(--purple);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* スクショ → 検索 のフロー表現 */
.flow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.flow__phone {
  width: 168px; border-radius: 26px; padding: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(203, 214, 242, .25); box-shadow: var(--shadow);
}
.flow__screen {
  border-radius: 19px; overflow: hidden; aspect-ratio: 9 / 19.5;
  background: #0b1733 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"/>');
  display: grid; place-items: center; color: var(--text-sub); text-align: center; padding: 12px; font-size: .8rem;
}
.flow__arrow { color: var(--gold); font-size: 28px; filter: drop-shadow(0 0 8px rgba(244, 198, 78, .6)); }
.flow__cap { text-align: center; font-size: .78rem; color: var(--text-sub); margin-top: 8px; }

/* ---------- 中央寄せ Hero ---------- */
.hero-center { text-align: center; padding: 84px 0 56px; }
.hero-center__badge {
  width: 104px; height: 104px; border-radius: 26px; margin: 0 auto 26px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(39, 150, 255, .4); border: 1px solid rgba(255, 255, 255, .25);
}
.hero-center__badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-center h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); line-height: 1.22; margin: 0 0 18px; }
.hero-center h1 .accent {
  background: linear-gradient(120deg, var(--blue), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-center__sub {
  font-size: 1.12rem; color: var(--text-sub); max-width: 600px; margin: 0 auto 32px;
}
.hero-center .btn { font-size: 1.05rem; padding: 15px 32px; min-height: 52px; }
.hero-center__hint { margin-top: 14px; font-size: .85rem; color: var(--text-sub); }

/* ---------- ショーケース（1枚＋下に説明） ---------- */
.showcase { padding: 44px 0; }
.showcase:nth-child(even) { background: rgba(255, 255, 255, .025); }
.showcase__item { max-width: 560px; margin: 0 auto; text-align: center; }
.showcase__media { position: relative; max-width: 360px; margin: 0 auto 30px; }
.showcase__media::after {
  content: ""; position: absolute; inset: -8% -6% -4%; z-index: -1; border-radius: 40px;
  background: radial-gradient(60% 50% at 50% 30%, rgba(39, 150, 255, .35), transparent 70%);
  filter: blur(18px);
}
.showcase__media img {
  width: 100%; border-radius: 22px; box-shadow: 0 22px 55px rgba(0, 0, 0, .5);
  border: 1px solid rgba(203, 214, 242, .2);
}
.showcase__label {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 12px;
}
.showcase__item h3 { font-size: clamp(1.3rem, 4.5vw, 1.75rem); margin: 0 0 12px; line-height: 1.4; }
.showcase__item p { color: var(--text-sub); font-size: 1.02rem; margin: 0; }

/* ---------- 末尾CTA ---------- */
.endcta { text-align: center; padding: 72px 0 80px; }
.endcta h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 0 0 24px; }

/* ---------- Gallery (App Store 宣伝画像) ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 18px; overflow-x: auto; padding: 6px 4px 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(203, 214, 242, .25); border-radius: 999px; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid rgba(203, 214, 242, .18); box-shadow: var(--shadow);
}

/* ---------- Cards ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035));
  border: 1px solid rgba(203, 214, 242, .16);
  border-radius: var(--radius);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.feature { padding: 24px; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(39, 150, 255, .25), rgba(118, 87, 255, .25));
  border: 1px solid rgba(203, 214, 242, .2);
}
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--text-sub); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { padding: 24px; position: relative; }
.step__num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.step__num::before { content: counter(step); }
.step h3 { margin: 0 0 8px; font-size: 1.06rem; }
.step p { margin: 0; color: var(--text-sub); font-size: .94rem; }
.callout {
  margin-top: 26px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(244, 198, 78, .12); border: 1px solid rgba(244, 198, 78, .4);
  color: #fff; font-weight: 600; text-align: center;
}

/* ---------- Scenes ---------- */
.scene { padding: 24px; }
.scene__tag { color: var(--gold); font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.scene h3 { margin: 0 0 8px; font-size: 1.08rem; }
.scene p { margin: 0; color: var(--text-sub); font-size: .94rem; }

/* ---------- Games ---------- */
.games { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.game-chip {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(203, 214, 242, .18); color: #fff;
}
.games-note { text-align: center; color: var(--text-sub); margin-top: 18px; font-size: .92rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan--pro { border-color: rgba(244, 198, 78, .5); box-shadow: 0 12px 34px rgba(244, 198, 78, .18); }
.plan__name { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.plan__badge {
  display: inline-block; font-size: .72rem; font-weight: 700; color: #04122e;
  background: var(--gold); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.plan__price { font-size: 1.9rem; font-weight: 800; margin: 6px 0 4px; }
.plan__price small { font-size: .9rem; color: var(--text-sub); font-weight: 600; }
.plan__yearly { color: var(--text-sub); font-size: .92rem; margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; color: var(--text-sub); font-size: .95rem; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 800;
}
.plan .btn { margin-top: auto; }
.price-disclaimer { text-align: center; color: var(--text-sub); font-size: .85rem; margin-top: 16px; }

/* ---------- FAQ / Accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details.qa {
  padding: 0; overflow: hidden; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(203, 214, 242, .16);
}
details.qa > summary {
  list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; position: relative;
  font-weight: 600; color: #fff;
}
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after {
  content: "＋"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 800; transition: transform .2s;
}
details.qa[open] > summary::after { content: "−"; }
details.qa .qa__body { padding: 0 20px 18px; color: var(--text-sub); font-size: .95rem; }

/* ---------- Support specific ---------- */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub a {
  padding: 22px; text-align: center; color: #fff; text-decoration: none; display: block;
}
.hub a:hover { text-decoration: none; transform: translateY(-2px); }
.hub__icon { font-size: 28px; margin-bottom: 8px; }
.hub__t { font-weight: 700; }

.paper {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.paper h2 { color: var(--ink); margin-top: 0; }
.paper h3 { color: var(--ink); margin: 28px 0 10px; font-size: 1.12rem; }
.paper p, .paper li { color: #3a4660; }
.paper a { color: #1565d8; }
.paper ol, .paper ul { padding-left: 22px; }
.paper li { margin: 6px 0; }
.paper .note {
  background: #fff7e6; border: 1px solid #f4c64e; border-radius: 10px; padding: 12px 14px;
  color: #6b4e00; margin: 16px 0; font-weight: 500;
}
.paper .warn {
  background: #fef2f2; border: 1px solid #f3b4b4; border-radius: 10px; padding: 12px 14px;
  color: #9b2222; margin: 16px 0; font-weight: 600;
}
.paper table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.paper th, .paper td { border: 1px solid #e2e8f5; padding: 10px 12px; text-align: left; vertical-align: top; font-size: .94rem; }
.paper th { background: #f3f6fd; width: 34%; color: #1f2a44; }
.anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .req { color: #d4380d; font-size: .82rem; margin-left: 4px; }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #cdd6ec;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39, 150, 255, .18);
}
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { margin-top: 4px; }
.field--check label { font-weight: 500; margin: 0; }
.form-note { color: #6b7693; font-size: .85rem; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.form-msg--ok { background: #e9f8ee; border: 1px solid #9bdfb4; color: #166534; }
.form-msg--err { background: #fef2f2; border: 1px solid #f3b4b4; color: #9b2222; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(203, 214, 242, .12); padding: 48px 0 36px; margin-top: 40px;
  background: rgba(4, 12, 30, .5);
}
.footer__grid { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; max-width: 720px; }
.footer__links a { color: var(--text-sub); font-size: .9rem; }
.footer__links a:hover { color: #fff; }
.footer__copy { color: var(--text-sub); font-size: .85rem; margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .hub { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 14px 18px 22px; background: rgba(7, 19, 47, .98);
    border-bottom: 1px solid rgba(203, 214, 242, .14); transform: translateY(-130%);
    transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin-top: 8px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .pricing { grid-template-columns: 1fr; }
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .hub { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .paper { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
