/* 月謝袋アプリ LP — style.css */
:root {
  --bg: #faf6ef;
  --paper: #ffffff;
  --kraft: #8a6a4f;
  --kraft-dark: #5e4632;
  --kraft-soft: #efe5d6;
  --stamp: #c8323c;
  --navy: #1f3a5f;
  --text: #2b2420;
  --muted: #6f6359;
  --line: #e4d9c8;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(80, 55, 30, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  background: var(--kraft-dark);
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #fff; display: grid; place-items: center;
  font-size: 13px; transform: rotate(-12deg);
}
.lang { display: flex; gap: 6px; font-size: 13px; }
.lang a, .lang span {
  color: #fff; text-decoration: none; padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 99px;
}
.lang span[aria-current] { background: #fff; color: var(--kraft-dark); }
.lang a[aria-disabled] { opacity: .45; pointer-events: none; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--kraft-soft), var(--bg)); padding: 48px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.35; margin: 0 0 12px; }
.hero h1 .accent { color: var(--stamp); }
.nb { display: inline-block; }
.hero .lead { font-size: 17px; color: var(--muted); margin: 0 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 99px; padding: 4px 12px; font-size: 14px;
}
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 700;
  text-decoration: none; font-size: 15px;
}
.btn-dark { background: #111; color: #fff; }
.stores { align-items: center; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 48px; width: auto; }
.btn-outline { border: 2px solid var(--kraft); color: var(--kraft-dark); background: var(--paper); }
.latest {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 14px; color: var(--text); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px 4px 4px;
}
.latest b { background: var(--stamp); color: #fff; border-radius: 99px; padding: 2px 10px; font-size: 12px; }

/* ---------- tabs (category nav) ---------- */
.tabs {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 239, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.tabs ul {
  display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 8px 16px;
  max-width: var(--max); overflow-x: auto; scrollbar-width: none;
}
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a {
  display: block; white-space: nowrap; text-decoration: none;
  color: var(--muted); font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 99px;
}
.tabs a:hover { background: var(--kraft-soft); color: var(--text); }
.tabs a[aria-selected="true"] { background: var(--kraft-dark); color: #fff; }

/* ---------- panels ---------- */
.panel { padding: 40px 0 56px; }
.js .panel[hidden] { display: none; }
.panel-head { margin-bottom: 28px; }
.panel-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; }
.panel-head p { margin: 0; color: var(--muted); }

/* in-panel quick index */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.toc a {
  font-size: 13px; text-decoration: none; color: var(--kraft-dark);
  background: var(--kraft-soft); border-radius: 6px; padding: 3px 10px;
}

/* ---------- feature (2 columns: video | explanation) ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px;
  scroll-margin-top: 70px;
}
.feature-media { display: flex; flex-direction: column; gap: 12px; }
.feature-body h3 { font-size: 21px; margin: 0 0 8px; line-height: 1.5; }
.feature-body p { margin: 0 0 12px; }
.feature-body ol, .feature-body ul { margin: 0 0 12px; padding-left: 1.4em; }
.feature-body li { margin-bottom: 4px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; border-radius: 4px;
  padding: 1px 8px; margin-right: 6px; vertical-align: 2px;
}
.tag-new { background: var(--stamp); color: #fff; }
.tag-premium { background: #b8892c; color: #fff; }
.tag-parent { background: #2f7d6b; color: #fff; }
.tip {
  background: #fbf7ee; border-left: 4px solid var(--kraft);
  padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14px; margin: 0 0 12px;
}
.more { font-size: 14px; }

/* screenshots row */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 4px 0 12px; }
.shots figure { margin: 0; }
.shots img { border-radius: 10px; border: 1px solid var(--line); }
.shots .wide { grid-column: 1 / -1; }
.shots img, .media-img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 15, 10, .85);
  display: grid; place-items: center; padding: 16px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; }
.media-img { border-radius: 12px; border: 1px solid var(--line); }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; }
.shots figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.shot-todo {
  aspect-ratio: 9 / 16; border: 2px dashed var(--line); border-radius: 10px;
  display: grid; place-items: center; text-align: center; padding: 8px;
  color: var(--muted); font-size: 12px; background: #fdfbf7;
}

/* ---------- YouTube (lite embed) ---------- */
.yt {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; background: #1d1a17; cursor: pointer;
}
.yt.is-short { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt .play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px;
  background: rgba(200, 50, 60, .92); border-radius: 12px; border: 0; cursor: pointer;
}
.yt .play::after {
  content: ""; position: absolute; left: 27px; top: 14px;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.yt.is-empty {
  cursor: default; background: repeating-linear-gradient(45deg, #f3ece1, #f3ece1 10px, #efe6d8 10px, #efe6d8 20px);
  display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 12px;
}
.yt-caption { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.plan .price { font-size: 26px; font-weight: 800; color: var(--kraft-dark); margin: 0 0 8px; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.plan.is-premium { border: 2px solid #b8892c; }

/* ---------- steps (getting started) ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 12px; }
.steps li { position: relative; padding-left: 40px; margin-bottom: 10px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--stamp); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px;
}

/* ---------- updates ---------- */
.release {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.release img { border-radius: 10px; }
.release .ver { font-weight: 800; color: var(--stamp); }
.release time { color: var(--muted); font-size: 14px; margin-left: 8px; }
.release h3 { margin: 4px 0 10px; font-size: 19px; line-height: 1.5; }
.release ul { margin: 0 0 10px; padding-left: 1.2em; }
.release .jump { font-size: 14px; }

.history-title { font-size: 19px; margin: 36px 0 12px; }
.history {
  list-style: none; margin: 0 0 16px; padding: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.history li { padding: 14px 18px; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.history li:first-child { border-top: 0; }
.history .ver { font-weight: 800; color: var(--kraft-dark); margin-right: 8px; }
.history time { color: var(--muted); font-size: 13px; margin-right: 10px; }
.history a { font-weight: 700; }
.history p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.history p a { font-weight: 400; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; }

/* ---------- CTA / footer ---------- */
.cta { background: var(--kraft-dark); color: #fff; text-align: center; padding: 40px 16px; }
.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0 0 18px; opacity: .85; }
.cta .stores { justify-content: center; }
.cta .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.site-footer { text-align: center; font-size: 13px; color: var(--muted); padding: 24px 16px; }
.site-footer a { color: var(--muted); margin: 0 8px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .feature, .release { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .feature { padding: 18px; gap: 18px; }
  .yt.is-short { max-width: 220px; }
}
