@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Outfit:wght@400;600;700;800&display=swap");

:root {
  --bg: #f5f0e6;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: #fffdf9;
  --line: rgba(18, 18, 18, 0.1);
  --line-strong: rgba(18, 18, 18, 0.16);
  --text: #161616;
  --muted: #504c46;
  --soft: #6b6560;
  --gold: #efbb64;
  --blue: #7d98ff;
  --green: #88d4a0;
  --purple: #b695ff;
  --teal: #5cc9c9;
  --coral: #ff8a7a;
  --radius: 28px;
  --shadow: 0 24px 60px rgba(18, 18, 18, 0.08);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 187, 100, 0.28), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(125, 152, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 34%, #f7f4ee 100%);
}

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

/* ── Focus ── */

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Skip link ── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 16px;
  background: var(--text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.page-shell {
  padding: 24px 24px 40px;
}

.nav,
.hero,
.intro,
.flow,
.closing,
.blog-section,
.profile-section,
.footer {
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Nav ── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 28px;
}

.nav-logo,
.eyebrow,
.tool-kind {
  font-family: "Outfit", sans-serif;
}

.nav-logo {
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--soft);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--text);
}

.nav-links a:hover {
  background: rgba(18, 18, 18, 0.04);
}

/* ── Hero ── */

.hero {
  display: flex;
  justify-content: center;
  padding: 24px 0 36px;
}

.hero-copy,
.closing-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 48px;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 255, 255, 0.72));
  max-width: var(--max);
  width: 100%;
  text-align: center;
}

.eyebrow,
.tool-kind {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.hero h1,
.section-head h2,
.closing-card h2,
.tool-body h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.hero-catch {
  margin: 10px auto 0;
  max-width: 18ch;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.03;
  color: var(--text);
  text-wrap: balance;
}

.desktop-break {
  display: block;
}

.hero-lead,
.section-head p,
.tool-body p,
.closing-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-lead {
  margin: 18px auto 0;
  max-width: 42rem;
  font-size: 1.05rem;
  text-wrap: balance;
}

/* Hero profile */

.hero-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.03);
  border: 1px solid var(--line);
}

.hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gold);
}

.hero-profile strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.hero-profile p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

/* ── Buttons ── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  background: #171717;
  border-color: #171717;
  color: #fff;
}

.button-primary:hover {
  background: #333;
  border-color: #333;
  box-shadow: 0 8px 24px rgba(18, 18, 18, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
}

/* ── Intro section ── */

.intro {
  padding: 0 0 24px;
}

.intro .section-head {
  margin-bottom: 0;
}

.intro .section-head p {
  font-size: 1.05rem;
}

/* ── Flow section ── */

.flow {
  padding-top: 32px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2,
.closing-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.section-head p,
.closing-card p {
  margin-top: 12px;
}

/* Flow timeline */

.flow-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 36px;
}

.flow-list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--teal), var(--blue), var(--green), var(--coral), var(--purple));
  border-radius: 2px;
}

.flow-item {
  position: relative;
}

.flow-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(18, 18, 18, 0.1);
}

.flow-item:nth-child(1)::before { background: var(--gold); }
.flow-item:nth-child(2)::before { background: var(--teal); }
.flow-item:nth-child(3)::before { background: var(--blue); }
.flow-item:nth-child(4)::before { background: var(--green); }
.flow-item:nth-child(5)::before { background: var(--coral); }
.flow-item:nth-child(6)::before { background: var(--purple); }

/* Flow context (pain point) */

.flow-context {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.flow-step {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.flow-copy {
  min-width: 0;
}

.flow-heading {
  margin: 0 0 6px;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
}

.flow-context-doc .flow-step { color: var(--gold); }
.flow-context-startpack .flow-step { color: var(--teal); }
.flow-context-king .flow-step { color: var(--blue); }
.flow-context-pocket .flow-step { color: var(--green); }
.flow-context-stopro .flow-step { color: var(--coral); }
.flow-context-lofi .flow-step { color: var(--purple); }

.flow-pain {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Tool stage label */

.tool-stage {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  margin-top: 16px;
}

.tool-doc .tool-stage { background: var(--gold); }
.tool-startpack .tool-stage { background: var(--teal); }
.tool-king .tool-stage { background: var(--blue); }
.tool-pocket .tool-stage { background: var(--green); }
.tool-stopro .tool-stage { background: var(--coral); }
.tool-lofi .tool-stage { background: var(--purple); }

/* Flow card (tool) */

.flow-card {
  display: grid;
  grid-template-columns: 0.5fr 0.5fr;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.flow-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 28px 64px rgba(18, 18, 18, 0.13);
  transform: translateY(-2px);
}

.flow-card:active {
  transform: scale(0.99);
}

.flow-card-featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 241, 255, 0.84));
}

.flow-card-bonus {
  opacity: 0.92;
  border-style: dashed;
}

.flow-card-bonus:hover {
  opacity: 1;
}

.flow-card .tool-media {
  min-height: 280px;
}

.flow-card .tool-media.media-screenshot img {
  border-radius: 0;
  box-shadow: none;
}

.flow-card .tool-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

/* Tool media */

.tool-media {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.media-doc {
  background: linear-gradient(180deg, #fff2d2, #fff9ee);
}

.media-startpack {
  background: linear-gradient(180deg, #e0f5f5, #f5fffe);
}

.media-king {
  background: linear-gradient(180deg, #e8edff, #f7f9ff);
}

.media-pocket {
  background: linear-gradient(180deg, #e4f8eb, #f8fffa);
}

.media-stopro {
  background: linear-gradient(180deg, #ffe8e4, #fff8f7);
}

.media-lofi {
  background: linear-gradient(180deg, #efe6ff, #fbf8ff);
}

.tool-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-media.media-pocket-screens {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.tool-media.media-pocket-screens img.pc-screen {
  width: 58%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(18, 18, 18, 0.12);
  border: 1px solid rgba(18, 18, 18, 0.08);
  object-fit: contain;
}

.tool-media.media-pocket-screens img.phone-screen {
  width: 28%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(18, 18, 18, 0.14);
  border: 1px solid rgba(18, 18, 18, 0.08);
  object-fit: contain;
}

.tool-media.media-screenshot img {
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 -20px 40px rgba(18, 18, 18, 0.04);
}

/* Bonus label */

.bonus-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 10px;
  vertical-align: middle;
}

/* Tool body */

.tool-body {
  padding: 24px 24px 28px;
}

.tool-body h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.98;
}

.tool-hook {
  margin: 10px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.tool-body p {
  margin: 12px 0 0;
}

/* CTA */

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  transition: gap 0.25s ease;
}

.flow-card:hover .tool-cta {
  gap: 12px;
}

.tool-cta svg {
  width: 16px;
  height: 16px;
}

/* ── Closing ── */

.closing {
  padding-top: 32px;
  padding-bottom: 24px;
}

.closing-card {
  padding: 48px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 255, 255, 0.72));
  text-align: center;
}

/* ── Blog section ── */

.blog-section {
  padding: 48px 0 8px;
}

.blog-section .section-head {
  margin-bottom: 28px;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(18, 18, 18, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 44px rgba(18, 18, 18, 0.11);
  transform: translateY(-2px);
}

.blog-card-category {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-card-category[data-theme="green"] {
  background: rgba(136, 212, 160, 0.2);
  color: #3a8a5a;
}

.blog-card-category[data-theme="blue"] {
  background: rgba(125, 152, 255, 0.2);
  color: #5570cc;
}

.blog-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.blog-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-more a:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
}

.blog-more a svg {
  width: 16px;
  height: 16px;
}

/* ── Profile section ── */

.profile-section {
  padding: 16px 0 24px;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Consult card (profile横) ── */

.consult-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 1px solid rgba(125, 152, 255, 0.25);
  box-shadow: var(--shadow), 0 0 40px rgba(125, 152, 255, 0.08);
  text-decoration: none;
  color: #e0e0e8;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.consult-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 0 60px rgba(125, 152, 255, 0.14);
}

.consult-badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
}

.consult-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.consult-body {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.consult-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 2px;
}

.consult-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.consult-card:hover .consult-cta svg {
  transform: translateX(4px);
}

.profile-card .profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gold);
}

.profile-card .profile-info strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.profile-card .profile-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ── */

.footer {
  padding-top: 24px;
  text-align: center;
  color: var(--soft);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--soft);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover {
  background: rgba(18, 18, 18, 0.04);
}

/* ── Scroll reveal ── */

.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv.visible {
  opacity: 1;
  transform: translateY(0);
}

.rv.d1 { transition-delay: 0s; }
.rv.d2 { transition-delay: 0.08s; }
.rv.d3 { transition-delay: 0.16s; }
.rv.d4 { transition-delay: 0.24s; }
.rv.d5 { transition-delay: 0.32s; }
.rv.d6 { transition-delay: 0.40s; }

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .flow-card,
  .tool-cta,
  .nav-links a,
  .footer-links a {
    transition: none;
  }
}

/* ── Responsive ── */

@media (max-width: 1080px) {
  .flow-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px 16px 32px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-copy {
    padding: 28px 20px;
  }

  .hero-catch {
    max-width: 100%;
  }

  .desktop-break {
    display: none;
  }

  .tool-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .closing-card {
    padding: 32px 20px;
  }

  .flow-list {
    padding-left: 28px;
    gap: 32px;
  }

  .flow-item::before {
    left: -22px;
    width: 10px;
    height: 10px;
    top: 6px;
  }

  .flow-context {
    gap: 14px;
  }

  .flow-list::before {
    left: 9px;
  }

  .tool-media {
    min-height: 220px;
  }

  .tool-body h3 {
    font-size: 1.75rem;
  }

  .tool-media.media-pocket-screens {
    padding: 12px;
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .consult-card {
    padding: 24px 20px;
  }
}
