/*!
 * © 2026 パソコンサロンゆうらく (Pasokon Salon Yuuraku). All rights reserved.
 * Project: ゆうらく学習トレーニングポータル Yuuraku Learning Station
 * File: typing_lp
 * BUILD_ID: YR-2026-0120-TYP-LP01
 * CANARY_ZW
 * SPDX-License-Identifier: LicenseRef-Yuuraku-Proprietary
 * Contact: yuurakunomori@gmail.com  |  URL: https://yuurakus.jp/
 */

/*==================================================================
  lp.css — ローマ字タイピング練習（遊び方/LP）
==================================================================*/
:root{
  --bg1:#eff6ff; /* blue-50 */
  --bg2:#dbeafe; /* blue-100 */
  --bg3:#ecfeff; /* cyan-50 */
  --ink:#0f172a; /* slate-900 */

  --p:#2563eb;   /* blue-600 */
  --p2:#60a5fa;  /* blue-400 */
  --mint:#5eead4;
  --violet:#a78bfa;
  --amber:#fbbf24;

  --card:#ffffffcc;
  --line: rgba(37,99,235,.18);

  --shadow: 0 16px 40px rgba(0,0,0,.12);
  --shadow2: 0 10px 24px rgba(37,99,235,.18);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background:
    radial-gradient(1200px 700px at 15% 0%, var(--bg1), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, var(--bg3), transparent 55%),
    radial-gradient(1200px 900px at 50% 120%, var(--bg2), transparent 60%),
    linear-gradient(180deg, #fff, #f1f5ff 45%, #fff 100%);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  position:fixed; left:12px; top:12px;
  width:auto; height:auto; padding:10px 12px;
  background:#fff; border:2px solid var(--p); border-radius:12px;
  z-index:9999;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(96,165,250,.40), rgba(94,234,212,.28));
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  max-width:1160px;
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:14px;
}

.brand{ display:flex; align-items:center; gap:10px; min-width: 290px; }
.brand__mark{
  width:36px; height:36px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(96,165,250,.9), rgba(94,234,212,.75));
  box-shadow: 0 6px 16px rgba(37,99,235,.22);
  position:relative;
  overflow:hidden;
}
.brand__mark .mark-dot{
  position:absolute;
  width:9px; height:9px; border-radius:99px;
  background:#fff;
  opacity:.95;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.brand__mark .mark-dot:nth-child(1){ left:7px; top:9px; background:var(--mint); }
.brand__mark .mark-dot:nth-child(2){ left:16px; top:18px; background:var(--p2); }
.brand__mark .mark-dot:nth-child(3){ left:22px; top:8px; background:var(--violet); }

.brand__name{ font-weight:900; letter-spacing:.05em; font-size:14px; }
.brand__tag{ font-weight:800; font-size:12px; color: rgba(15,23,42,.72); }

.nav{
  display:flex;
  gap:10px;
  align-items:center;
  padding:0 8px;
  border-left: 1px solid rgba(37,99,235,.14);
  border-right: 1px solid rgba(37,99,235,.14);
  margin-left:auto;
}
.nav a{
  padding:8px 10px;
  border-radius:12px;
  font-weight:800;
  color: rgba(15,23,42,.82);
}
.nav a:hover{
  background: rgba(255,255,255,.7);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.topbar__actions{ display:flex; gap:10px; align-items:center; }

/* Buttons */
.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:.04em;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  user-select:none;
  background: rgba(255,255,255,.85);
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn:active{ transform: translateY(0px) scale(.99); }

.btn--primary{
  color:#fff;
  background: linear-gradient(135deg, var(--p), #1d4ed8);
  box-shadow: 0 16px 30px rgba(37,99,235,.22);
}
.btn--ghost{
  background: rgba(255,255,255,.80);
  border: 2px solid rgba(37,99,235,.22);
}
.btn--soft{
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(219,234,254,.70));
  border: 2px solid rgba(37,99,235,.16);
}
.btn--big{ padding:12px 16px; border-radius:16px; font-size:14px; }

/* Page / Sections */
.page{ width:100%; }
.section{
  max-width:1160px;
  margin:0 auto;
  padding:54px 14px;
}
.section--alt{
  background: radial-gradient(900px 600px at 10% 0%, rgba(219,234,254,.65), transparent 55%),
              radial-gradient(900px 600px at 95% 20%, rgba(94,234,212,.28), transparent 55%);
  border-top: 1px solid rgba(37,99,235,.08);
  border-bottom: 1px solid rgba(37,99,235,.08);
}
.section__head{ margin-bottom:18px; }
.section__title{
  margin:0 0 10px;
  font-size:28px;
  letter-spacing:.03em;
}
.section__sub{ margin:0; color: rgba(15,23,42,.72); font-weight:700; }

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  padding: 30px 0 14px;
}
.sprinkles{
  position:absolute;
  inset:-120px -80px;
  background:
    radial-gradient(circle at 10% 20%, rgba(96,165,250,.24), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(94,234,212,.18), transparent 38%),
    radial-gradient(circle at 70% 70%, rgba(167,139,250,.16), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(251,191,36,.14), transparent 40%);
  filter: blur(1px);
  pointer-events:none;
}
.hero-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  opacity:.55;
}
.hero__inner{
  max-width:1160px;
  margin:0 auto;
  padding: 26px 14px 22px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: start; /* ★右カラムが高くても左カードを伸ばさない */
  position:relative;
  z-index:1;
}

.hero__copy{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.hero__title{ margin:0 0 10px; font-size:40px; line-height:1.12; letter-spacing:.02em; }
.hero__lead{ margin:0 0 16px; color: rgba(15,23,42,.78); font-weight:750; }
.hero__cta{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }

.badges{ list-style:none; padding:0; margin:0; display:flex; gap:8px; flex-wrap:wrap; }
.badge{
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.14);
}

.hero__shots{
  display:grid;
  gap: 12px;
}
.shot{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  overflow:hidden;
}
.shot img{ width:100%; height:auto; }
.shot figcaption{
  padding: 10px 12px;
  font-weight:900;
  color: rgba(15,23,42,.78);
  border-top: 1px solid rgba(37,99,235,.10);
  background: rgba(255,255,255,.70);
}

/* Grids / Cards */
.grid4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.card{
  background: var(--card);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  padding: 16px 16px;
}
.card h3{ margin:0 0 8px; font-size:16px; }
.card p{ margin:0; color: rgba(15,23,42,.78); font-weight:700; }

.card--mode{ padding: 18px 18px; }

/* Steps */
.steps{ display:grid; gap: 14px; }
.step{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap: 14px;
  align-items:stretch;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(37,99,235,.12);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  overflow:hidden;
}
.step__img{ background: rgba(255,255,255,.70); }
.step__img img{ width:100%; height:100%; object-fit:cover; }
.step__body{ padding: 16px 16px; }
.step__body h3{ margin:0 0 8px; font-size:18px; }
.step__body p{ margin:0; color: rgba(15,23,42,.78); font-weight:750; }

/* Notes */
.noteBox{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  background: rgba(255,255,255,.70);
  border: 1px dashed rgba(37,99,235,.34);
  border-radius: var(--radius);
  padding: 14px 14px;
}
.noteBox__icon{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.18);
  font-weight:1000;
  letter-spacing:.08em;
  color: rgba(15,23,42,.85);
}
.noteBox__text{ margin:0; font-weight:800; color: rgba(15,23,42,.78); }

/* 2-shot gallery */
.shots2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.shot.big figcaption{ font-size:13px; }

/* FAQ */
.faq{
  display:grid;
  gap: 10px;
}
.faq details{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.faq summary{
  cursor:pointer;
  font-weight:1000;
  letter-spacing:.02em;
}
.faq p{ margin: 10px 0 0; color: rgba(15,23,42,.78); font-weight:750; }

/* Final */
.final{ padding: 56px 14px 66px; }
.final__box{
  max-width: 980px;
  margin: 0 auto;
  text-align:center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px 18px;
}
.final__title{ margin:0 0 10px; font-size:28px; }
.final__sub{ margin:0 0 16px; color: rgba(15,23,42,.78); font-weight:800; }
.final__actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* Legal */
.legal{ padding: 40px 14px 20px; }
.legal__inner{ max-width: 980px; margin:0 auto; }
.legal__details{
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  padding: 12px 14px;
}
.legal__summary{ cursor:pointer; font-weight:1000; }
.legal__text{ margin:10px 0 0; color: rgba(15,23,42,.76); font-weight:750; }
.legal__contact{ margin:12px 2px 0; color: rgba(15,23,42,.78); font-weight:800; }
.legal__mail{ color: var(--p); text-decoration: underline; }

/* Footer */
.footer{
  padding: 18px 14px 26px;
  border-top: 1px solid rgba(37,99,235,.10);
}
.footer__inner{
  max-width:1160px;
  margin:0 auto;
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.footer__brand{ font-weight:1000; }
.footer__links{ display:flex; gap:12px; flex-wrap:wrap; margin-left:auto; }
.footer__links a{ text-decoration: underline; color: rgba(15,23,42,.82); }
.footer__copy{ width:100%; color: rgba(15,23,42,.60); font-weight:700; }

/* Utilities */
.preline{ white-space: pre-line; }

/* Reveal */
[data-reveal]{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-in{ opacity: 1; transform: translateY(0px); }

/* Noscript */
.noscript{
  position:fixed;
  left: 10px;
  bottom: 10px;
  padding: 10px 12px;
  background:#fff;
  border: 1px solid rgba(37,99,235,.20);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

/* Responsive */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .brand{ min-width: 0; }
  .nav{ display:none; }
  .grid4{ grid-template-columns: repeat(2, 1fr); }
  .step{ grid-template-columns: 1fr; }
  .step__img img{ height:auto; }
}

@media (max-width: 520px){
  .grid4{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .shots2{ grid-template-columns: 1fr; }
  .hero__title{ font-size: 32px; }
  .section__title{ font-size: 24px; }
}
