/* ===== nuance — iPhoneケース専門EC LP ===== */
:root {
  /* Base */
  --bg: #FBF7F4;
  --bg-warm: #F6EEE9;
  --bg-card: #FFFFFF;
  --ink: #3D3A3A;
  --ink-mute: #8A8480;
  --ink-faint: #B6AFA9;
  --line: #ECE3DC;

  /* Nuance colors（くすみパレット） */
  --c-milktea: #D8C3A9;
  --c-sage:    #AFC2A8;
  --c-lavender:#C3B7D6;
  --c-butter:  #EBD79B;
  --c-pink:    #E3B7BD;
  --c-coral:   #E89B86;

  /* Accent（差し色） */
  --accent: #E07A5F;
  --accent-soft: #F4E3DD;

  /* Type */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Poppins", var(--font-jp);
  --font-hand: "Caveat", var(--font-jp);

  /* Layout */
  --container: 1120px;
  --container-narrow: 760px;
  --space-sec: 132px;
  --space-sec-sm: 84px;
  --radius: 22px;
  --radius-lg: 34px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 44px -22px rgba(86, 70, 60, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(86, 70, 60, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
em { font-style: normal; color: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }
.sp-br { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 600; letter-spacing: .02em;
  padding: 15px 30px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  font-size: 15px;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px rgba(224, 122, 95, .8); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -12px rgba(224, 122, 95, .85); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-lg { padding: 18px 44px; font-size: 17px; }

/* ===== Section heads ===== */
.sec-head { text-align: center; margin-bottom: 60px; }
.sec-en {
  display: inline-block; font-family: var(--font-en); font-weight: 600;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sec-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; line-height: 1.4; letter-spacing: .01em; }
.sec-sub { margin-top: 16px; color: var(--ink-mute); font-size: 15px; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(251, 247, 244, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 9px; }
.logo-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-en); font-weight: 700; font-size: 20px; line-height: 1;
}
.logo-text { font-family: var(--font-en); font-weight: 600; font-size: 20px; letter-spacing: .01em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--ink-mute); position: relative; transition: color .25s; }
.nav-links a span::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--accent); border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover span::after { width: 100%; }
.nav-cta {
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 999px; transition: transform .3s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer {
  display: none; flex-direction: column; gap: 4px; padding: 16px 24px 28px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-drawer a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
.nav-drawer .drawer-cta { margin-top: 14px; background: var(--accent); color: #fff; text-align: center; border: none; border-radius: 999px; font-weight: 600; }
.nav-drawer.is-open { display: flex; }

/* ===== Case mock（CSSで描くケース） ===== */
.case-mock {
  position: relative; aspect-ratio: 100 / 205; border-radius: 28px;
  background: var(--case);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.28), var(--shadow);
}
.case-mock .case-cam {
  position: absolute; top: 9%; left: 9%; width: 30%; aspect-ratio: 1; border-radius: 26%;
  background: rgba(255,255,255,.32);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
}
.case-mock .case-cam::before, .case-mock .case-cam::after {
  content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(61,58,58,.22); box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
}
.case-mock .case-cam::before { top: 16%; left: 16%; }
.case-mock .case-cam::after  { bottom: 16%; right: 16%; }
.case-mock .case-glow {
  position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,0) 42%);
}

/* ===== H-07 Hero ===== */
.hero { position: relative; padding: 150px 24px 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 22%, rgba(195,183,214,.45), transparent 60%),
    radial-gradient(55% 45% at 12% 75%, rgba(175,194,168,.4), transparent 60%),
    var(--bg-warm);
}
.hero-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; font-family: var(--font-en); font-weight: 600; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.hero-title { font-size: clamp(34px, 5.6vw, 60px); font-weight: 700; line-height: 1.28; letter-spacing: .01em; }
.hero-lead { margin-top: 24px; color: var(--ink-mute); font-size: 16px; line-height: 1.95; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--ink-faint); letter-spacing: .02em; }

.hero-stage { position: relative; height: 440px; }
.hero-stage .case-mock { position: absolute; width: 46%; }
.case-main  { left: 27%; top: 4%; width: 50% !important; z-index: 3; transform: rotate(-4deg); animation: float 6s var(--ease) infinite; }
.case-float-1 { left: 2%; top: 26%; z-index: 2; transform: rotate(-13deg); animation: float 7s var(--ease) infinite .6s; }
.case-float-2 { right: 1%; top: 18%; z-index: 1; transform: rotate(11deg); animation: float 6.5s var(--ease) infinite 1.1s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); z-index: 0; }
.blob-a { width: 120px; height: 120px; background: rgba(235,215,155,.5); left: 8%; bottom: 6%; }
.blob-b { width: 90px; height: 90px; background: rgba(227,183,189,.5); right: 14%; bottom: 16%; }

/* 手描きあしらい */
.doodle { position: absolute; pointer-events: none; }
.doodle-star { width: 30px; color: var(--c-butter); top: 130px; left: 8%; animation: twinkle 4s ease-in-out infinite; }
.doodle-wave { width: 96px; color: var(--c-sage); right: 6%; bottom: 14%; opacity: .8; }
.doodle-smile { width: 42px; color: var(--accent); left: 46%; bottom: 8%; opacity: .85; }
@keyframes twinkle { 0%,100% { opacity: .5; transform: scale(.9) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(12deg); } }

/* ===== V-04 Lineup ===== */
.lineup { padding: var(--space-sec) 0; }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.product {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-visual {
  position: relative; background: var(--bg-warm); border-radius: var(--radius);
  padding: 30px 26%; margin-bottom: 20px;
}
.product-visual .case-card { width: 100%; transition: transform .4s var(--ease); }
.product:hover .case-card { transform: translateY(-6px) rotate(-3deg); }
.tag {
  position: absolute; top: 14px; right: 14px; font-family: var(--font-en); font-weight: 600;
  font-size: 11px; letter-spacing: .08em; padding: 5px 11px; border-radius: 999px;
}
.tag-new { background: var(--accent); color: #fff; }
.tag-hot { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.product-name { font-family: var(--font-en); font-weight: 600; font-size: 20px; }
.product-desc { color: var(--ink-mute); font-size: 14px; margin-top: 4px; }
.swatches { display: flex; gap: 9px; margin: 16px 0 14px; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; background: var(--sw); cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.1); }
.product-price { font-family: var(--font-en); font-weight: 600; font-size: 22px; }
.product-price span { font-size: 12px; color: var(--ink-faint); font-weight: 400; margin-left: 4px; }

/* ===== V-03 Features ===== */
.features { padding: var(--space-sec-sm) 0 var(--space-sec); background: var(--bg-warm); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 42px 32px; text-align: center;
  border: 1px solid var(--line); transition: transform .35s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); }
.feature-icon {
  width: 72px; height: 72px; margin: 0 auto 22px; display: grid; place-items: center;
  background: var(--accent-soft); border-radius: 50%; color: var(--accent);
}
.feature-icon svg { width: 38px; height: 38px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--ink-mute); font-size: 14.5px; }

/* ===== S-02 Steps ===== */
.steps { padding: var(--space-sec) 0; }
.step-row { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-item { position: relative; padding: 38px 28px; background: var(--bg-warm); border-radius: var(--radius-lg); text-align: center; }
.step-item:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -22px; width: 18px; height: 18px;
  border-top: 2.5px solid var(--accent); border-right: 2.5px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.step-num {
  display: inline-block; font-family: var(--font-en); font-weight: 700; font-size: 15px;
  color: var(--accent); background: #fff; width: 46px; height: 46px; line-height: 46px;
  border-radius: 50%; margin-bottom: 16px; box-shadow: var(--shadow-soft);
}
.step-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-item p { color: var(--ink-mute); font-size: 14px; }

/* ===== Q-01 Voices ===== */
.voices { padding: var(--space-sec-sm) 0 var(--space-sec); background: var(--bg-warm); }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.voice-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line); }
.voice-stars { color: var(--c-butter); letter-spacing: .12em; font-size: 16px; margin-bottom: 14px; }
.voice-card blockquote { font-size: 15px; line-height: 1.9; }
.voice-card figcaption { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 13px; color: var(--ink-mute); }
.voice-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--av); flex-shrink: 0; }

/* ===== Q-03 FAQ ===== */
.faq { padding: var(--space-sec) 0; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-jp); font-size: 16px; font-weight: 500; color: var(--ink);
}
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease);
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--ink-mute); font-size: 14.5px; }

/* ===== C-02 CTA ===== */
.cta { position: relative; margin: 0 24px var(--space-sec-sm); padding: 88px 24px; overflow: hidden; border-radius: 40px;
  background: linear-gradient(135deg, var(--accent-soft), #FCEFE0 55%, #EFE7DC); text-align: center; }
.cta-inner { position: relative; z-index: 2; }
.cta-en { font-family: var(--font-hand); font-size: 28px; color: var(--accent); margin-bottom: 8px; }
.cta-title { font-size: clamp(26px, 4.4vw, 42px); font-weight: 700; line-height: 1.4; margin-bottom: 32px; }
.cta-note { margin-top: 20px; font-size: 13px; color: var(--ink-mute); }
.cta-blob { position: absolute; border-radius: 50%; z-index: 1; filter: blur(4px); }
.cta-blob-a { width: 180px; height: 180px; background: rgba(195,183,214,.5); left: -40px; top: -40px; }
.cta-blob-b { width: 150px; height: 150px; background: rgba(175,194,168,.5); right: -30px; bottom: -40px; }
.cta-doodle { width: 34px; color: var(--c-butter); right: 12%; top: 22%; }

/* ===== Footer ===== */
.footer { padding: 64px 0 30px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.footer-brand p { width: 100%; margin-top: 10px; color: var(--ink-mute); font-size: 13px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-mute); transition: color .25s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { text-align: center; margin-top: 48px; font-size: 12px; color: var(--ink-faint); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --space-sec: 84px; --space-sec-sm: 60px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .sp-br { display: inline; }
  .hero { padding: 116px 22px 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-stage { height: 330px; order: -1; }
  .hero-stage .case-mock { width: 38%; }
  .case-main { width: 42% !important; left: 29%; top: 1%; }
  .case-float-1 { left: 3%; top: 20%; }
  .case-float-2 { right: 1%; top: 13%; }
  .feature-grid, .step-row, .voice-grid { grid-template-columns: 1fr; }
  .step-item:not(:last-child)::after { top: auto; bottom: -22px; right: 50%; transform: translateX(50%) rotate(135deg); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { padding: 30px 30%; }
  .cta { margin: 0 16px var(--space-sec-sm); padding: 64px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { transition: opacity .4s ease; transform: none; }
}
