/* つくぷら 紹介サイト
   アプリ本体のデザイントークン(lib/ui)に合わせている。
   ライト=オフホワイト+白カード / ダーク=漆黒+濃灰カード、CTAはインク色ピル。 */

:root {
  --bg: #f4f4f6;
  --card: #ffffff;
  --ink: #111113;
  --ink-2: #636368;
  --fill: #ececef;
  --hairline: #e3e3e8;
  --accent: #6d28d9;
  --accent-tint: #ede7fa;
  --ok: #2f5c4b;

  --sage-bg: #e3ebdd; --sage-fg: #3d5230;
  --sky-bg: #dce8f2;  --sky-fg: #2d4a63;
  --lav-bg: #e6e0f2;  --lav-fg: #4a3b70;
  --sand-bg: #f0e7d8; --sand-fg: #6b5631;
  --blush-bg: #f2dfdf;--blush-fg: #6e3a3a;
  --mint-bg: #dceee7; --mint-fg: #2f5c4b;
  --mono-bg: #ececef; --mono-fg: #36363b;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-card: 0 10px 24px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .03);
  --shadow-sticker: 0 4px 10px rgba(0, 0, 0, .08);

  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
          "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --card: #171719;
    --ink: #f4f4f6;
    --ink-2: #9a9aa1;
    --fill: #232327;
    --hairline: #2c2c31;
    --accent: #b79df8;
    --accent-tint: #2a2140;
    --ok: #b2d9c9;

    --sage-bg: #2a3324; --sage-fg: #c3d6b4;
    --sky-bg: #20303c;  --sky-fg: #aecce4;
    --lav-bg: #2d2740;  --lav-fg: #c9bce8;
    --sand-bg: #383022; --sand-fg: #e0cfa8;
    --blush-bg: #3a2828;--blush-fg: #e4bcbc;
    --mint-bg: #21342d; --mint-fg: #b2d9c9;
    --mono-bg: #28282d; --mono-fg: #d6d6db;

    --shadow-card: none;
    --shadow-sticker: none;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* 固定ヘッダーの高さぶん */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.75;
  font-feature-settings: "palt";
}

a { color: inherit; }

img, svg { vertical-align: middle; }

::selection { background: var(--accent-tint); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: .7px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: .02em;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 999px;
}

.site-nav a:hover { background: var(--fill); color: var(--ink); }

.site-nav a.cta {
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

@media (max-width: 640px) {
  .site-nav a:not(.cta) { display: none; }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}

.btn:active { transform: scale(.97); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: .85; }

.btn-soft { background: var(--fill); color: var(--ink); }
.btn-soft:hover { background: var(--hairline); }

.btn-ghost {
  background: none;
  color: var(--ink-2);
  font-weight: 600;
  padding: 12px 18px;
}

/* ---------- 汎用パーツ ---------- */

.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

@media (prefers-color-scheme: dark) {
  .card { border: .7px solid var(--hairline); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
}

.badge.accent { background: var(--accent-tint); color: var(--accent); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sticker);
  border: 1px solid rgba(0, 0, 0, .06);
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .chip { border-color: rgba(255, 255, 255, .08); }
}

.chip.sage  { background: var(--sage-bg);  color: var(--sage-fg); }
.chip.sky   { background: var(--sky-bg);   color: var(--sky-fg); }
.chip.lav   { background: var(--lav-bg);   color: var(--lav-fg); }
.chip.sand  { background: var(--sand-bg);  color: var(--sand-fg); }
.chip.blush { background: var(--blush-bg); color: var(--blush-fg); }
.chip.mint  { background: var(--mint-bg);  color: var(--mint-fg); }
.chip.mono  { background: var(--mono-bg);  color: var(--mono-fg); }

.section { padding: 76px 0; }

.section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--ink-2);
  margin: 0 0 10px;
}

h1, h2, h3 { line-height: 1.3; letter-spacing: .01em; }

h2 {
  font-size: clamp(26px, 4.6vw, 36px);
  font-weight: 800;
  margin: 0 0 14px;
}

h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }

.lead {
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 600px;
  margin: 0 0 36px;
}

/* ---------- ヒーロー ---------- */

.hero { padding: 84px 0 60px; overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(34px, 6.5vw, 56px);
  font-weight: 800;
  margin: 18px 0 16px;
  line-height: 1.18;
}

.hero .sub {
  color: var(--ink-2);
  font-size: 16.5px;
  max-width: 480px;
  margin: 0 0 30px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-note { font-size: 12.5px; color: var(--ink-2); margin-top: 14px; }

/* 散らばるステッカーチップ */
.chip-scatter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin: 34px 0 0;
  max-width: 520px;
}

.chip-scatter .chip:nth-child(3n)   { transform: rotate(-2.4deg); }
.chip-scatter .chip:nth-child(3n+1) { transform: rotate(1.8deg); }
.chip-scatter .chip:nth-child(3n+2) { transform: rotate(-1.1deg); }
.chip-scatter .chip:nth-child(5n)   { transform: rotate(2.6deg); }

/* ---------- チケットモチーフ ---------- */

.ticket {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.04));
}

@media (prefers-color-scheme: dark) {
  .ticket { border: .7px solid var(--hairline); filter: none; }
}

.ticket-top { padding: 22px 24px 18px; }
.ticket-bottom { padding: 16px 24px 20px; }

.ticket-divider {
  position: relative;
  border-top: 1.5px dashed var(--hairline);
  margin: 0 14px;
}

.ticket-divider::before,
.ticket-divider::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
}

.ticket-divider::before { left: -25px; }
.ticket-divider::after { right: -25px; }

@media (prefers-color-scheme: dark) {
  .ticket-divider::before,
  .ticket-divider::after { border: .7px solid var(--hairline); }
}

.ticket .route {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ticket .big-time {
  font-size: 38px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ticket .meta { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

.barcode {
  height: 34px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 8px, transparent 8px 10px,
    var(--ink) 10px 11px, transparent 11px 15px,
    var(--ink) 15px 19px, transparent 19px 21px
  );
  border-radius: 2px;
  opacity: .85;
}

/* ---------- iPhoneモックアップ ---------- */

.phone {
  width: 280px;
  aspect-ratio: 9 / 19.2;
  border-radius: 44px;
  background: var(--card);
  border: 7px solid var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .phone { border-color: #3a3a40; box-shadow: none; }
}

.phone::before {
  /* Dynamic Island */
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  border-radius: 12px;
  background: #000;
  z-index: 5;
}

/* 実機スクリーンショットをそのまま入れる場合(ステータスバー込みのため枠だけ使う) */
.phone.shot::before { display: none; }

.phone.shot .screen { padding: 0; }

.phone.shot .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone .screen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  padding: 44px 13px 12px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.5;
}

.phone-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* モックの中身用ミニパーツ */
.m-title { font-size: 15px; font-weight: 800; margin: 6px 2px 8px; }
.m-card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 10px 12px;
  margin-bottom: 9px;
}
@media (prefers-color-scheme: dark) {
  .m-card { border: .7px solid var(--hairline); }
}
.m-label { font-size: 9px; color: var(--ink-2); font-weight: 700; }
.m-strong { font-size: 13px; font-weight: 800; }
.m-num { font-variant-numeric: tabular-nums; }
.m-pill {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 10px;
}

/* 時間割グリッドのモック */
.m-grid {
  display: grid;
  grid-template-columns: 14px repeat(5, 1fr);
  gap: 3px;
  font-size: 7.5px;
  font-weight: 700;
}
.m-grid .h { color: var(--ink-2); text-align: center; font-size: 8px; padding: 2px 0; }
.m-cell {
  border-radius: 5px;
  padding: 4px 3px;
  min-height: 30px;
  line-height: 1.25;
  overflow: hidden;
}
.m-cell.empty { background: var(--fill); opacity: .45; }

/* ---------- 機能セクション ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-card .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.feature-card .icon-tile svg { width: 21px; height: 21px; }

.feature-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

.feature-card .more {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}

/* 大きい紹介ブロック(交互レイアウト) */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 46px 0;
}

.showcase:nth-child(even) .showcase-visual { order: -1; }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .showcase:nth-child(even) .showcase-visual { order: 0; }
}

.showcase h3 { font-size: clamp(21px, 3vw, 26px); margin-bottom: 10px; }
.showcase p { color: var(--ink-2); margin: 0 0 14px; }

.showcase ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.showcase li {
  position: relative;
  padding: 5px 0 5px 26px;
  font-size: 14px;
}

.showcase li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

/* ---------- ライブバス ---------- */

.bus-live { max-width: 560px; margin: 0 auto; }

.bus-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}

.bus-controls button {
  border: 0;
  font-family: inherit;
  background: var(--fill);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.bus-controls button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.bus-status {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 14px;
}

.bus-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.bus-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  background: var(--fill);
  font-size: 13.5px;
  font-weight: 600;
}

.bus-row time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 15px;
  min-width: 52px;
}

.bus-row .left { color: var(--ink-2); margin-left: auto; font-size: 12px; }

/* ---------- 全機能カタログ(features.html) ---------- */

.catalog-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
}

.catalog-toc a {
  text-decoration: none;
  background: var(--fill);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
}

.catalog-section { margin-bottom: 56px; }

.catalog-section > h2 {
  font-size: 22px;
  padding-bottom: 10px;
  border-bottom: .7px solid var(--hairline);
}

.catalog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: .7px solid var(--hairline);
}

@media (max-width: 640px) {
  .catalog-item { grid-template-columns: 1fr; gap: 6px; }
}

.catalog-item:last-child { border-bottom: 0; }

.catalog-item dt { font-weight: 800; font-size: 15.5px; }

.catalog-item dt .badge { margin-left: 8px; vertical-align: 2px; }

.catalog-item dd { margin: 0; color: var(--ink-2); font-size: 14px; }

.catalog-item dd .note { font-size: 12.5px; display: block; margin-top: 6px; }

/* ---------- FAQ・フッター ---------- */

details.faq {
  border-bottom: .7px solid var(--hairline);
  padding: 4px 0;
}

details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 4px;
  list-style: none;
  display: flex;
  align-items: center;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform .2s;
}

details.faq[open] summary::after { transform: rotate(-135deg); }

details.faq .a { padding: 0 4px 16px; color: var(--ink-2); font-size: 14px; }

.site-footer {
  border-top: .7px solid var(--hairline);
  padding: 44px 0 60px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink-2);
}

.site-footer .wrap {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a { color: inherit; }

/* ---------- 出現アニメーション ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* スクロール連動が使えるブラウザはネイティブで */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: rise both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  html { scroll-behavior: auto; }
}
