/* ===================================
   SAKIGAKE動画工房 LP - Style Sheet
   Mobile-First Responsive Design
   =================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand palette aligned to hero */
  --brand-pink: #ff6fa7;
  --brand-orange: #ff8a3d;
  --brand-peach: #ffc36e;
  --brand-sky: #6ab8ff;
  --brand-sky-light: #8cd6ff;
  --brand-violet: #b8c0ff;
  --brand-dark: #1e2a44;

  --color-navy: var(--brand-dark);
  --color-navy-light: #3b82f6; /* keep for legacy elements */
  --color-navy-mid: #60a5fa;
  --color-gold: var(--brand-peach);
  --color-gold-light: #ffe08a;
  --color-white: #ffffff;
  --color-off-white: #f5f6f8;
  --color-gray-100: #e8eaed;
  --color-gray-200: #d1d5db;
  --color-gray-500: #6b7280;
  --color-gray-700: #374151;
  --color-gray-900: #111827;
  --color-success: #22c55e;

  --font-main: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-gray-900);
  background: var(--color-white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-16) 0;
}

.section-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: var(--space-4);
  color: var(--brand-dark);
}

.section-subtitle {
  font-size: var(--fs-base);
  color: var(--color-gray-700);
  margin-bottom: var(--space-10);
  line-height: 1.9;
  max-width: 42rem;
}

.sp-only {
  display: inline;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-weight: 700;
  transition: var(--transition);
  text-align: center;
  gap: var(--space-2);
  white-space: normal;
  line-height: 1.5;
  min-height: 56px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange), var(--brand-sky));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 111, 167, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(255, 111, 167, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-pink);
  border: 2px solid var(--brand-pink);
}

.btn-outline:hover {
  background: var(--brand-pink);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--fs-lg);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 1001;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand-pink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.logo-text {
  font-size: var(--fs-lg);
  font-weight: 900;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-left: var(--space-1);
  color: var(--color-gray-500);
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 1001;
}

.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.is-active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Mobile */
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  padding: 100px var(--space-8) var(--space-8);
  overflow-y: auto;
}

.nav.is-open {
  right: 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-gray-100);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-pink);
}

.nav-link--cta {
  margin-top: var(--space-4);
  text-align: center;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange));
  color: #fff;
  border-radius: var(--radius-sm);
  border-bottom: none;
  font-weight: 700;
}

.nav-link--cta:hover {
  filter: brightness(1.05);
  color: #fff;
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 120px 0 var(--space-16);
  /* Layered colorful gradient */
  background:
    radial-gradient(1000px 600px at 10% 15%, #ff80b5 0%, rgba(255, 128, 181, 0) 60%),
    radial-gradient(900px 500px at 90% 10%, #ffd166 0%, rgba(255, 209, 102, 0) 55%),
    radial-gradient(800px 500px at 20% 85%, #7dd3fc 0%, rgba(125, 211, 252, 0) 55%),
    linear-gradient(135deg, #6a11cb 0%, #2575fc 50%, #00c2a8 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  position: relative;
  z-index: 10; /* ensure copy sits above white burst */
}

.hero-copy {
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
}

/* Scrapbook collage */
.hero-scrapbook {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1; /* behind copy */
  opacity: 1;
}

.polaroid {
  position: absolute;
  background: #ffffff;
  padding: 8px 8px 16px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.2);
  transform-origin: center center;
  width: clamp(320px, 40vw, 880px);
  aspect-ratio: 16 / 10; /* default */
  --r: 0deg;
  --s: 0.82;
  transform: rotate(var(--r)) scale(var(--s));
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease;
}

.polaroid.featured {
  transform: rotate(var(--r, 2deg)) scale(var(--s));
  width: clamp(800px, 85vw, 1600px);
  top: 8%;
  left: 18%;
  z-index: 6;
  padding: 10px 10px 18px;
}

.polaroid.featured.anchor-tl {
  top: 6%;
  left: 6%;
  transform: rotate(var(--r, 1deg)) scale(var(--s));
}

.polaroid.in { --s: 1; opacity: 1; }

.polaroid::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 60px;
  height: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75));
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  opacity: 0.9;
}

.polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  background: #f8fafc;
}

.polaroid.landscape { aspect-ratio: 16 / 10; width: clamp(420px, 46vw, 1000px); }
.polaroid.portrait { aspect-ratio: 3 / 4; width: clamp(380px, 42vw, 920px); }

/* Positions for different thumbnails */
.polaroid.pos-1 { top: 6%; left: 2%; --r: -10deg; z-index: 2; }
.polaroid.pos-2 { top: 4%; right: 4%; --r: 8deg; z-index: 3; }
.polaroid.pos-3 { top: 50%; left: 4%; --r: 14deg; z-index: 2; }
.polaroid.pos-4 { bottom: 2%; right: 2%; --r: -12deg; z-index: 2; }
.polaroid.pos-5 { bottom: 12%; left: 12%; --r: 6deg; z-index: 3; }
.polaroid.pos-6 { top: 18%; right: 18%; --r: -6deg; z-index: 4; }
.polaroid.pos-7 { top: 28%; left: 30%; --r: 10deg; z-index: 7; }
.polaroid.pos-8 { top: 64%; left: 32%; --r: -8deg; z-index: 3; }
.polaroid.pos-9 { top: 34%; left: 62%; --r: 12deg; z-index: 5; }
.polaroid.pos-10 { top: 70%; right: 22%; --r: -10deg; z-index: 4; }
.polaroid.pos-11 { top: 42%; left: 16%; --r: -14deg; z-index: 1; }
.polaroid.pos-12 { bottom: 8%; left: 58%; --r: 9deg; z-index: 2; }
.polaroid.pos-13 { top: -2%; left: 44%; --r: -5deg; z-index: 2; }
.polaroid.pos-14 { bottom: -4%; left: 36%; --r: 11deg; z-index: 3; }
.polaroid.pos-15 { top: 72%; left: 4%; --r: -7deg; width: clamp(150px, 18vw, 300px); z-index: 4; }
.polaroid.pos-16 { top: 8%; left: 72%; --r: -3deg; width: clamp(160px, 18vw, 300px); z-index: 5; }
.polaroid.pos-17 { top: 84%; right: 8%; --r: 7deg; width: clamp(160px, 18vw, 300px); z-index: 3; }
.polaroid.pos-18 { top: 36%; right: -2%; --r: -12deg; width: clamp(170px, 19vw, 310px); z-index: 2; }
.polaroid.pos-19 { top: 6%; left: 50%; --r: -6deg; width: clamp(160px, 18vw, 300px); z-index: 4; }
.polaroid.pos-20 { top: 88%; left: 18%; --r: 9deg; width: clamp(150px, 18vw, 300px); z-index: 5; }
.polaroid.pos-21 { top: 80%; right: 10%; --r: -11deg; width: clamp(160px, 18vw, 300px); z-index: 4; }
.polaroid.pos-22 { top: -6%; left: 6%; --r: 7deg; width: clamp(160px, 18vw, 300px); z-index: 3; }
.polaroid.pos-23 { top: 38%; right: 30%; --r: -8deg; width: clamp(160px, 18vw, 300px); z-index: 6; }
.polaroid.pos-24 { bottom: -8%; right: 12%; --r: 12deg; width: clamp(170px, 19vw, 310px); z-index: 3; }
.polaroid.pos-25 { top: 20%; left: 46%; --r: 5deg; width: clamp(160px, 18vw, 300px); z-index: 5; }
.polaroid.pos-26 { bottom: 18%; left: 78%; --r: -7deg; width: clamp(150px, 17vw, 280px); z-index: 4; }

/* Burst overlay */
.hero-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20vmin;
  height: 20vmin;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.95;
  pointer-events: none;
  z-index: 9;
}


.hero-burst.animate {
  animation: hero-burst-expand 900ms cubic-bezier(0.2, 0.8, 0, 1) forwards;
}

@keyframes hero-burst-expand {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(12); opacity: 1; }
}

/* Keep burst white overlay persistent; no fade-out */

/* Responsive adjustments */
@media (min-width: 768px) {
  .hero-inner { max-width: 820px; }
}

@media (max-width: 480px) {
  .polaroid.pos-17, .polaroid.pos-18 { display: none; }
}

.hero-label { display: none !important; }

/* Ensure hero copy stays hidden until white burst completes */
.hero-copy {
  position: relative;
  z-index: 2;
  background: transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.hero-copy.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
  background: linear-gradient(90deg,
    #ff6fa7 0%,   /* vibrant pastel pink */
    #ff8a3d 30%,  /* rich pastel orange */
    #ffc36e 45%,  /* warm peach */
    #8cd6ff 70%,  /* bright sky blue */
    #6ab8ff 100%  /* deeper sky blue tail */
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  display: none; /* 白背景ではコピーのみ表示 */
}

.hero-cta {
  display: none; /* 白背景では非表示 */
}

.hero-label { display: none; }

.hero .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero-stats {
  display: none !important;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--fs-base);
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1.2;
}

.stat-number small {
  font-size: 0.6em;
}

.stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}

/* ========================================
   PROBLEM
   ======================================== */
.problem {
  background: var(--color-white);
}

.problem-list {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-off-white);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  line-height: 1.7;
}

.problem-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.problem-answer {
  text-align: center;
  margin-top: var(--space-10);
}

.problem-answer-text {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.8;
}

.problem-answer-text strong {
  color: var(--brand-pink);
}

.problem-arrow {
  display: block;
  font-size: var(--fs-2xl);
  color: var(--brand-pink);
  margin-top: var(--space-4);
  animation: bounce 1.5s ease infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  background: var(--color-off-white);
}

/* Content Types */
.content-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-10);
}

.content-type {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.content-type:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.content-type-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.content-type h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.content-type p {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
  line-height: 1.8;
}

/* Support Flow */
.support-flow {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-5);
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 2px solid var(--color-gold);
}

.support-flow-title {
  font-size: var(--fs-lg);
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

.support-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.support-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.support-step-num {
  width: 36px;
  height: 36px;
  background: var(--color-navy);
  color: var(--color-gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 900;
}

.support-step-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-navy);
}

.support-step-arrow {
  color: var(--color-gray-200);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.support-flow-desc {
  font-size: var(--fs-sm);
  color: var(--color-gray-700);
  line-height: 2;
}

.support-flow-desc strong {
  color: var(--color-gold);
  font-weight: 900;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.card-desc {
  font-size: var(--fs-base);
  color: var(--color-gray-700);
  line-height: 1.9;
}

/* ========================================
   WORKS - YouTube Embeds
   ======================================== */
.works-embed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.work-embed-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.work-embed-card:hover {
  box-shadow: var(--shadow-md);
}

.work-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  background: var(--color-navy);
}

.work-embed-wrapper iframe,
.work-embed-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-embed-info {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

/* Work story (column style) */
.work-story {
  margin: var(--space-3) 0 var(--space-4);
  background: #ffffff;
  border: 1px solid var(--color-gray-100);
  border-left: 4px solid var(--brand-pink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.work-story-title {
  font-size: var(--fs-base);
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

.work-story-body p {
  font-size: var(--fs-base);
  color: var(--color-gray-700);
  line-height: 1.9;
  margin-bottom: var(--space-2);
}

.work-story-body p:last-child {
  margin-bottom: 0;
}

/* Work metrics (badges) */
.work-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-3);
  padding: 0;
  list-style: none;
}
.work-metrics li {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--brand-pink);
  background: rgba(255, 111, 167, 0.12);
  border: 1px solid rgba(255, 111, 167, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.work-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand-pink);
  background: rgba(255, 111, 167, 0.12);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.work-embed-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.work-embed-desc {
  font-size: var(--fs-base);
  color: var(--color-gray-700);
  line-height: 1.9;
  margin-bottom: var(--space-4);
}

.work-embed-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-pink);
  transition: var(--transition);
}

.work-embed-link:hover {
  color: var(--brand-orange);
}

/* ========================================
   FLOW
   ======================================== */
.flow {
  background: var(--color-off-white);
}

.flow-steps {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.flow-step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.flow-step:hover {
  box-shadow: var(--shadow-md);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--brand-pink);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: 900;
}

.step-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
  line-height: 1.8;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.price-card {
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.price-card--popular {
  border-color: var(--brand-pink);
}

.price-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--brand-pink);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: 0 0 0 var(--radius-md);
}

.price-header {
  padding: var(--space-6) var(--space-6) var(--space-4);
  text-align: center;
}

.price-name {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.price-target {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
}

.price-body {
  padding: 0 var(--space-6) var(--space-6);
  text-align: center;
}

.price-amount {
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

.price-yen {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--brand-dark);
}

.price-number {
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: var(--fs-base);
  color: var(--color-gray-700);
}

.price-features {
  text-align: left;
  margin-bottom: var(--space-6);
}

.price-features li {
  padding: var(--space-2) 0;
  font-size: var(--fs-base);
  color: var(--color-gray-700);
  border-bottom: 1px solid var(--color-gray-100);
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.8;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-pink);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-gray-700);
  margin-top: var(--space-6);
  line-height: 1.8;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  background: var(--color-off-white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
  letter-spacing: 0.1em;
}

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--color-gray-700);
  line-height: 2;
  margin-bottom: var(--space-5);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  color: var(--color-gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-navy);
}

.testimonial-role {
  font-size: var(--fs-sm);
  color: var(--color-gray-700);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--color-gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-navy);
  text-align: left;
  gap: var(--space-4);
  transition: var(--transition);
  line-height: 1.7;
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--fs-base);
  color: var(--color-gray-700);
  line-height: 2;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
}

/* ========================================
   CTA / CONTACT
   ======================================== */
.cta-section {
  background:
    radial-gradient(700px 400px at 12% 20%, var(--brand-pink) 0%, rgba(255, 111, 167, 0) 60%),
    radial-gradient(600px 350px at 88% 18%, var(--brand-peach) 0%, rgba(255, 195, 110, 0) 55%),
    radial-gradient(600px 350px at 20% 90%, var(--brand-sky-light) 0%, rgba(140, 214, 255, 0) 55%),
    linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-orange) 50%, var(--brand-sky) 100%);
  color: var(--color-white);
}

.cta-box {
  text-align: center;
  background: #ffffff; /* solid white card for contrast */
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  padding: var(--space-10) var(--space-6);
  color: var(--color-gray-900);
}

.cta-title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: var(--space-4);
  color: var(--brand-dark);
}

.cta-desc {
  font-size: var(--fs-base);
  color: var(--color-gray-700);
  margin-bottom: var(--space-10);
  line-height: 2;
}

.cta-mail {
  font-size: var(--fs-sm);
  margin-top: calc(var(--space-2) * -1);
  margin-bottom: var(--space-6);
  color: var(--color-gray-700);
}
.cta-mail a {
  color: var(--brand-pink);
  font-weight: 800;
  text-decoration: underline;
}
.cta-mail a:hover {
  color: var(--brand-orange);
}

/* Contact Form */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--brand-dark);
}

.required {
  font-size: var(--fs-xs);
  color: var(--brand-pink);
  margin-left: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--color-gray-900);
  font-size: var(--fs-base);
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: var(--color-gray-500);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-pink);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 111, 167, 0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: #ffffff;
  color: var(--color-gray-900);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-gray-900);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-6);
}

.logo--footer .logo-text {
  color: var(--color-white);
}

.footer-tagline {
  font-size: var(--fs-base);
  margin-top: var(--space-2);
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
}

.footer-nav a {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.82);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   DESKTOP (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
  .section {
    padding: var(--space-20) 0;
  }

  .section-title {
    font-size: var(--fs-3xl);
  }

  .section-label,
  .section-title,
  .section-subtitle {
    text-align: center;
  }

  .sp-only {
    display: none;
  }

  /* Header */
  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nav-link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-sm);
    border-bottom: none;
  }

  .nav-link--cta {
    margin-top: 0;
    margin-left: var(--space-3);
    padding: var(--space-2) var(--space-5);
  }

  /* Hero */
  .hero {
    padding: 160px 0 var(--space-20);
  }

  .hero-title {
    font-size: var(--fs-4xl);
    line-height: 1.4;
  }

  .hero-desc {
    font-size: var(--fs-base);
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
  }

  .stat-number {
    font-size: var(--fs-lg);
  }

  /* Problem */
  .problem-list {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Content Types */
  .content-types {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  /* Support Flow */
  .support-flow {
    padding: var(--space-10) var(--space-8);
  }

  .support-steps {
    gap: var(--space-3);
    flex-wrap: nowrap;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  /* Works */
  .works-embed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Flow */
  .flow-step {
    padding: var(--space-8);
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: var(--fs-xl);
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .price-card--popular {
    transform: scale(1.05);
  }

  .price-card--popular:hover {
    transform: scale(1.05) translateY(-4px);
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* CTA */
  .cta-title {
    font-size: var(--fs-3xl);
  }

  /* Footer */
  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* ========================================
   LARGE DESKTOP (min-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-stats {
    gap: var(--space-16);
  }

  .flow-steps {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========================================
   Accessibility
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
