/* VFraming — café light palette (アプリの AppColors と揃える) */
:root {
  --bg: #F6F2EC;
  --surface: #FFFFFF;
  --sand: #EDE6DD;
  --stroke: rgba(31, 26, 20, .09);
  --stroke-strong: rgba(31, 26, 20, .18);
  --text: #221E1A;
  --sub: #7B716A;
  --muted: #AAA096;
  --ink: #2B2622;
  --clay: #C0785A;
  --sage: #8D9C7E;
  --mist: #9BAAB5;
  --butter: #E9D39C;
  --rose: #D9A6A0;
  --shadow: 0 10px 24px rgba(59, 47, 37, .08);
  --shadow-lg: 0 24px 60px rgba(59, 47, 37, .14);
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --serif-en: "Cormorant Garamond", "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --radius: 22px;
  --w: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--butter); }

.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--stroke); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.brand span { font-family: var(--serif-en); font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.nav a { text-decoration: none; color: var(--sub); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .btn-sm { color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn-sm) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: linear-gradient(135deg, #3B342E, #1F1B17);
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { display: block; font-size: 10px; opacity: .7; line-height: 1.2; letter-spacing: .06em; }
.btn b { display: block; font-weight: 600; line-height: 1.25; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--stroke-strong); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--serif-en); font-style: italic; font-size: 17px;
  color: var(--clay); letter-spacing: .08em; margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--mincho); font-weight: 600; letter-spacing: .04em; line-height: 1.45; margin: 0; }
h1 { font-size: clamp(30px, 4.6vw, 52px); }
.nw { display: inline-block; }
h2 { font-size: clamp(26px, 3.8vw, 38px); }
h3 { font-size: 19px; }
.lead { color: var(--sub); font-size: clamp(15px, 1.6vw, 17px); }
section { padding: clamp(72px, 11vw, 128px) 0; }
.center { text-align: center; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin-top: 14px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 80px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .accent { color: var(--clay); }
.hero .lead { margin: 22px 0 34px; max-width: 30em; }
.hero-meta { margin-top: 22px; font-size: 12px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta span::before { content: "✦ "; color: var(--sage); }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob.a { width: 280px; height: 280px; background: var(--butter); top: 4%; left: 6%; }
.blob.b { width: 240px; height: 240px; background: var(--rose); bottom: 6%; right: 4%; animation-delay: -5s; }
.blob.c { width: 200px; height: 200px; background: var(--sage); bottom: 30%; left: 0; opacity: .35; animation-delay: -9s; }
@keyframes drift { to { transform: translate(24px, -18px) scale(1.08); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .store-row, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 520px; }
}

/* ---------- phone mockup ---------- */
.phone {
  position: relative; z-index: 1;
  width: 270px; aspect-ratio: 9 / 19.2;
  background: #1F1B17; border-radius: 44px; padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #4a413a;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 35px; overflow: hidden;
  background: var(--bg); position: relative; display: flex; flex-direction: column;
}
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; background: #1F1B17; border-radius: 20px; z-index: 3; }
.phone.float { animation: float 6s ease-in-out infinite; }
.phone.tilt-l { transform: rotate(-6deg); }
.phone.tilt-r { transform: rotate(5deg); }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero-visual .phone.back {
  position: absolute; width: 220px; left: calc(50% - 230px); top: 70px; z-index: 0; opacity: .96;
  animation: float 7s ease-in-out -2s infinite;
}
@media (max-width: 520px) { .hero-visual .phone.back { left: calc(50% - 170px); width: 190px; } .hero-visual .phone.float { width: 230px; margin-left: 70px; } }

/* screen chrome */
.app-bar { padding: 44px 16px 8px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--sub); }
.app-bar .t { font-family: var(--serif-en); font-size: 16px; color: var(--text); font-weight: 600; }
.chip { font-size: 9px; padding: 3px 8px; border-radius: 999px; background: var(--sand); color: var(--sub); }
.chip.on { background: var(--ink); color: #fff; }

/* frame collages inside screens */
.canvas {
  margin: 6px 14px; border-radius: 14px; overflow: hidden; position: relative;
  box-shadow: var(--shadow); display: grid; gap: 5px; padding: 8px;
}
.canvas .s {
  border-radius: 6px; background-image: url("hero.jpg"); background-size: 300%;
  position: relative; overflow: hidden;
}
.canvas .s::after { /* playing shimmer */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 4.5s ease-in-out infinite;
}
.canvas .s:nth-child(2)::after { animation-delay: .6s; }
.canvas .s:nth-child(3)::after { animation-delay: 1.2s; }
.canvas .s:nth-child(4)::after { animation-delay: 1.8s; }
@keyframes shimmer { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.p1 { background-position: 25% 15%; } .p2 { background-position: 72% 10%; } .p3 { background-position: 85% 30%; }
.p4 { background-position: 30% 62%; } .p5 { background-position: 65% 50%; } .p6 { background-position: 48% 85%; }
.p7 { background-position: 95% 85%; } .p8 { background-position: 5% 75%; }
.canvas .cap {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-family: var(--serif-en); font-style: italic; font-size: 15px; color: var(--text); z-index: 2;
}

.timeline { margin: auto 14px 0; padding: 10px 0 16px; }
.timeline .row { display: flex; gap: 4px; margin-bottom: 5px; }
.timeline .clip { height: 16px; border-radius: 4px; background-image: url("hero.jpg"); background-size: 400%; }
.timeline .bar { height: 3px; background: var(--sand); border-radius: 3px; position: relative; overflow: hidden; margin-top: 8px; }
.timeline .bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--clay); border-radius: 3px; animation: play 5s linear infinite; }
@keyframes play { from { width: 0; } to { width: 100%; } }
.tool-row { display: flex; justify-content: space-around; padding: 8px 10px 18px; font-size: 9px; color: var(--sub); }
.tool-row i { display: block; width: 26px; height: 26px; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); margin: 0 auto 4px; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--stroke); padding: 18px 0; overflow: hidden; background: var(--surface); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--serif-en); font-style: italic; font-size: 20px; color: var(--sub); white-space: nowrap; }
.marquee span::after { content: "✦"; margin-left: 48px; font-style: normal; font-size: 12px; color: var(--clay); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--surface); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border: 1px solid var(--stroke); position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step .num { font-family: var(--serif-en); font-size: 46px; color: var(--clay); line-height: 1; font-style: italic; }
.step h3 { margin: 18px 0 8px; }
.step p { margin: 0; color: var(--sub); font-size: 14px; }
.step .mini { height: 120px; margin: 0 0 22px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- aspect cards ---------- */
.aspects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; }
.aspect { text-align: center; }
.aspect .shape {
  margin: 0 auto 20px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  display: grid; gap: 4px; padding: 7px; border: 1px solid var(--stroke);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.aspect:hover .shape { transform: translateY(-6px) rotate(-1.5deg); }
.aspect .shape div { border-radius: 5px; background-image: url("hero.jpg"); background-size: 300%; }
.aspect .r { font-family: var(--serif-en); font-size: 30px; font-weight: 600; }
.aspect .u { color: var(--sub); font-size: 13px; }
.aspect .px { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
@media (max-width: 720px) { .aspects { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 110px; }
.split.rev > :first-child { order: 2; }
.split .visual { display: flex; justify-content: center; position: relative; }
.split ul { list-style: none; padding: 0; margin: 26px 0 0; }
.split li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--stroke-strong); font-size: 15px; }
.split li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--sage); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > :first-child { order: 0; }
}

.photo-card { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 440px; transform: rotate(-2deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.photo-card:hover { transform: rotate(0) scale(1.01); }

/* ---------- pricing ---------- */
.pricing { background: var(--surface); border-block: 1px solid var(--stroke); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--stroke-strong); background: var(--bg); position: relative; }
.plan.best { background: linear-gradient(160deg, #3B342E, #1F1B17); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.best .muted, .plan.best li { color: rgba(255,255,255,.75); }
.plan .tag { position: absolute; top: -12px; right: 20px; background: var(--clay); color: #fff; font-size: 11px; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; }
.plan h3 { font-size: 16px; }
.plan .price { font-family: var(--serif-en); font-size: 42px; font-weight: 600; margin: 12px 0 0; line-height: 1.1; }
.plan .price small { font-family: var(--sans); font-size: 13px; font-weight: 400; margin-left: 4px; }
.plan .muted { font-size: 12px; color: var(--sub); min-height: 1.8em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; }
.plan li { padding: 6px 0; display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "—"; color: var(--muted); }
.fine { text-align: center; color: var(--muted); font-size: 12px; margin-top: 28px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--stroke-strong); padding: 6px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--mincho); font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 1.5px solid var(--sub); border-bottom: 1.5px solid var(--sub);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--sub); font-size: 15px; }

/* ---------- cta ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta .icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 28px; box-shadow: var(--shadow-lg); }
.cta .store-row { justify-content: center; margin-top: 34px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--stroke); padding: 48px 0 40px; font-size: 13px; color: var(--sub); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4.5vw, 38px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 13px; margin: 0 0 40px; }
.legal .intro { background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; padding: 22px 26px; color: var(--sub); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; margin: 48px 0 14px; padding-left: 14px; border-left: 3px solid var(--clay); }
.legal h3 { font-size: 16px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; background: var(--surface); border-radius: 14px; overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.legal th { background: var(--sand); font-weight: 600; white-space: nowrap; }
.legal .table-scroll { overflow-x: auto; }
.legal .end { margin-top: 56px; text-align: right; color: var(--sub); }
.toc { background: var(--surface); border-radius: 18px; padding: 20px 26px; border: 1px solid var(--stroke); margin-bottom: 8px; font-size: 14px; }
.toc ol { margin: 6px 0 0; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; color: var(--sub); }
.toc a:hover { color: var(--clay); }
@media (max-width: 620px) { .toc ol { columns: 1; } }

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