/* ===== Design Tokens ===== */
:root {
  --sky: #3f8fd4;
  --sky-deep: #24639b;
  --leaf: #76be59;
  --sun: #f0c82c;
  --paper: #fffdf8;
  --paper-strong: #fff7eb;
  --ink: #241b14;
  --ink-soft: #62594f;
  --line: rgba(36, 27, 20, 0.08);
  --shadow: 0 22px 60px rgba(36, 27, 20, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --container: min(1120px, calc(100% - 40px));
}

/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 200, 44, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(63, 143, 212, 0.22), transparent 30%),
    linear-gradient(180deg, #fffefb 0%, #f9f4ea 100%);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Shell & Grid Pattern ===== */
.page-shell,
.lp-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.lp-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 27, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 27, 20, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 65%);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ===== Shared: Header ===== */
.site-header,
.lp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid rgba(36, 27, 20, 0.06);
}

.topbar,
.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(36, 27, 20, 0.14);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ===== Shared: Button ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  box-shadow: 0 18px 36px rgba(36, 99, 155, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff 0%, #f6efe1 100%);
  border: 1px solid rgba(36, 27, 20, 0.08);
  box-shadow: 0 14px 30px rgba(36, 27, 20, 0.08);
}

.button-ghost {
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(36, 27, 20, 0.08);
}

.button-nav {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.button-large {
  min-height: 60px;
  padding: 0 32px;
  font-size: 1.1rem;
}

.button-sticky {
  flex: 1;
  min-height: 52px;
}

/* ===== Shared: Store Badge Links ===== */
.store-badge-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.store-badge-link img {
  height: 48px;
  width: auto;
}

.store-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 24px;
}

/* ===== Shared: Typography ===== */
.hero-copy h1,
.section-heading h2,
.feature-card h3,
.step-card h3,
.store-card h3,
.mini-card h3,
.lp-flow-card h3,
.pricing-card h3 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.15;
}

/* アプリ名: ヒーロー内で目立たせる */
.hero-app-name {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--sky-deep);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun), var(--leaf));
}

.lead,
.section-heading p,
.feature-card p,
.step-card p,
.stat-card p,
.store-card p,
.mini-card p,
.lp-flow-card p,
.pricing-note,
.lp-note,
.faq-grid p,
.cta-sub {
  margin: 0;
  color: var(--ink-soft);
}

.cta-sub {
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ===== Shared: Lists ===== */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}

.hero-points,
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li,
.check-list li {
  position: relative;
  padding-left: 28px;
}

.hero-points li::before,
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--leaf);
  font-weight: 800;
}

/* ========================================
   Official Site (index.html)
   ======================================== */

/* ===== Hero ===== */
.hero {
  padding: 44px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
}

.hero-art {
  position: relative;
  min-height: 560px;
}

.hero-art-simple {
  min-height: unset;
  display: grid;
  gap: 18px;
}

.hero-showcase {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-showcase-screen img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.hero-showcase-room img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-showcase figcaption {
  padding: 14px 18px 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
}

/* ===== Section ===== */
.section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-accent {
  background: linear-gradient(180deg, rgba(238, 245, 251, 0.75), rgba(255, 247, 235, 0.8));
}

.section-soft {
  background: rgba(255, 255, 255, 0.56);
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

/* ===== Stat / Feature / Step Grids ===== */
.stat-grid,
.feature-grid,
.step-grid,
.store-grid {
  display: grid;
  gap: 22px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.feature-card,
.step-card,
.store-card,
.pricing-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(36, 27, 20, 0.06);
}

.stat-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--sky-deep);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.32rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 230px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  display: grid;
  gap: 18px;
}

.step-image {
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper-strong);
}

.step-image img {
  aspect-ratio: 1419 / 2796;
  object-fit: cover;
}

.step-number {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--sky-deep);
  background: rgba(63, 143, 212, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
}

.step-card h3 {
  font-size: 1.55rem;
}

/* ===== Gallery Grid (15 samples) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-thumb {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(36, 27, 20, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-thumb img {
  aspect-ratio: 7 / 5;
  object-fit: cover;
  width: 100%;
}

/* ===== Split Panel & Pricing ===== */
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 26px;
}

.panel-copy {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(36, 27, 20, 0.06);
}

.panel-copy h2 {
  margin: 0 0 18px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.pricing-card {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(240, 200, 44, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 236, 222, 0.96));
}

.pricing-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.pricing-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(36, 27, 20, 0.08);
}

.pricing-card dt,
.pricing-card dd {
  margin: 0;
}

.pricing-card dd {
  font-size: 2rem;
  font-weight: 800;
}

/* ===== Store Grid (Official) ===== */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.store-card {
  display: grid;
  gap: 12px;
}

.store-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sky-deep);
  background: rgba(63, 143, 212, 0.12);
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  gap: 16px;
}

.faq-grid details {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-grid p {
  margin-top: 12px;
}

/* ===== Footer (Official) ===== */
.site-footer {
  padding: 34px 0 26px;
  background: rgba(36, 27, 20, 0.94);
  color: rgba(255, 255, 255, 0.84);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.footer-copyright {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

/* ========================================
   LP (lp.html) — Mobile-First Ad Landing
   ======================================== */
.lp-body {
  background:
    radial-gradient(circle at top right, rgba(118, 190, 89, 0.2), transparent 24%),
    radial-gradient(circle at top left, rgba(63, 143, 212, 0.18), transparent 24%),
    linear-gradient(180deg, #fffefb 0%, #f7f1e7 100%);
}

.lp-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding-bottom: 100px;
}

.lp-header {
  padding: 12px 4px;
}

.brand-compact img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

/* ===== LP Hero ===== */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 24px 4px 28px;
}

.lp-hero-copy h1 {
  margin: 0 0 16px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
}

.lp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.lp-chip-row span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(36, 27, 20, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.lp-hero-visual {
  display: grid;
  gap: 18px;
}

/* ===== LP Main CTA ===== */
.lp-main-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.lp-main-cta .store-badge-link img {
  height: 48px;
}

/* ===== LP Sections ===== */
.lp-section {
  padding: 32px 4px;
}

.section-heading-left {
  max-width: 640px;
  margin-bottom: 20px;
}

/* ===== LP Card Grid (3 trust signals) ===== */
.lp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(36, 27, 20, 0.06);
  text-align: center;
}

.mini-card-icon {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--sky-deep);
  line-height: 1.2;
}

.mini-card-icon svg {
  color: var(--sky-deep);
}

.mini-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ===== LP Section Accent ===== */
.lp-section-accent {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(238, 245, 251, 0.9), rgba(255, 247, 235, 0.96));
  padding: 32px 20px;
}

/* ===== LP Flow (Steps) ===== */
.lp-flow {
  display: grid;
  gap: 16px;
}

.lp-flow-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.lp-flow-card img {
  aspect-ratio: 1419 / 2796;
  object-fit: cover;
  border-radius: 14px;
  width: 100%;
}

.lp-flow-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

/* ===== LP Gallery (Horizontal Scroll) ===== */
.lp-gallery-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.lp-gallery-scroll::-webkit-scrollbar {
  height: 4px;
}

.lp-gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(36, 27, 20, 0.15);
  border-radius: 999px;
}

.lp-gallery-item {
  flex: 0 0 72%;
  margin: 0;
  scroll-snap-align: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.lp-gallery-item img {
  aspect-ratio: 7 / 5;
  object-fit: cover;
  width: 100%;
}

/* ===== LP Spec List ===== */
.lp-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.lp-spec-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ===== LP Price Grid ===== */
.lp-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.price-box {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(36, 27, 20, 0.06);
  text-align: center;
}

.price-box span {
  display: block;
  color: var(--ink-soft);
  font-weight: 700;
}

.price-box strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.price-box strong small {
  font-size: 0.5em;
}

/* ===== LP Final CTA ===== */
.lp-final-cta {
  text-align: center;
  padding: 48px 16px;
}

.lp-final-cta h2 {
  margin: 0 0 24px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.lp-final-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== LP Footer ===== */
.lp-footer {
  padding: 24px 8px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.lp-footer p {
  margin: 0 0 4px;
}

.lp-footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.lp-footer-links a {
  color: var(--sky-deep);
  font-weight: 600;
}

.lp-footer-links a:hover {
  text-decoration: underline;
}

.lp-copyright {
  margin-top: 10px;
  color: var(--ink-soft);
  opacity: 0.6;
  font-size: 0.78rem;
}

/* ===== LP Sticky CTA ===== */
.lp-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(480px, calc(100% - 16px));
  padding: 10px 16px;
  transform: translateX(-50%) translateY(100%);
  border-radius: 20px 20px 0 0;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 -8px 30px rgba(36, 27, 20, 0.12);
  transition: transform 0.3s ease;
}

.lp-sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
}

.lp-sticky-cta .store-badge-link img {
  height: 40px;
}

/* ========================================
   Responsive: Tablet (max-width: 980px)
   ======================================== */
@media (max-width: 980px) {
  .nav {
    display: none;
  }

  /* Official site */
  .hero-grid,
  .stat-grid,
  .feature-grid,
  .step-grid,
  .split-panel,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-art {
    min-height: unset;
    display: grid;
    gap: 18px;
  }

  /* LP */
  .lp-hero {
    grid-template-columns: 1fr;
  }

  .lp-hero-visual {
    max-width: 100%;
  }

  .lp-card-grid {
    grid-template-columns: 1fr;
  }

  .lp-flow-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

/* ========================================
   Responsive: Mobile (max-width: 720px)
   ======================================== */
@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  /* Official site */
  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .section,
  .section-tight {
    padding: 48px 0;
  }

  .feature-card {
    min-height: unset;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .footer-grid,
  .lp-header {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge-row .store-badge-link img,
  .store-card .store-badge-link img {
    height: 44px;
  }

  /* LP */
  .lp-shell {
    width: min(100% - 16px, 1120px);
  }

  .lp-hero-copy h1 {
    font-size: 2.2rem;
  }

  .lp-section-accent {
    padding: 24px 14px;
  }

  .lp-flow-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .lp-flow-card img {
    border-radius: 10px;
  }

  .step-image {
    max-width: 180px;
    margin: 0 auto;
  }

  .lp-gallery-item {
    flex: 0 0 82%;
  }

  .lp-sticky-cta {
    width: 100%;
    border-radius: 0;
    padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 8px);
  }

  .lp-main-cta .store-badge-link img {
    height: 44px;
  }
}

/* ========================================
   Responsive: Small Mobile (max-width: 420px)
   ======================================== */
@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 2rem;
  }

  .lp-hero-copy h1 {
    font-size: 1.9rem;
  }

  .lp-flow-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .step-image {
    max-width: 140px;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }
}
