/* === Atelier Mayah portfolio styles === */
:root {
  --c-red: #E60012;
  --c-red-deep: #B8000E;
  --c-red-soft: #FBE5E7;
  --c-ink: #111111;
  --c-ink-soft: #2a2a2a;
  --c-paper: #fafaf8;
  --c-paper-2: #f1efea;
  --c-line: #e6e3dd;
  --c-mute: #6b6b6b;
  --c-mute-2: #9a9a9a;
  --c-on-dark: #f5f3ee;
  --c-on-dark-mute: #a4a09a;

  --f-serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --f-script: "Style Script", "Allura", cursive;
  --f-serif-jp: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 999px;

  /* anim intensity (overridden via tweaks) */
  --anim-distance: 32px;
  --anim-duration: 900ms;
  --anim-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans-jp);
  color: var(--c-ink);
  background: var(--c-paper);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* === Fade-in on scroll === */
.reveal { opacity: 0; transform: translateY(var(--anim-distance)); transition: opacity var(--anim-duration) var(--anim-ease), transform var(--anim-duration) var(--anim-ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-reveal="left"] { transform: translateX(calc(var(--anim-distance) * -1)); }
.reveal[data-reveal="right"] { transform: translateX(var(--anim-distance)); }
.reveal[data-reveal="fade"] { transform: none; transition-duration: 1600ms; }
.reveal[data-reveal="left"].in, .reveal[data-reveal="right"].in { transform: none; }
.stagger > * { opacity: 0; transform: translateY(var(--anim-distance)); transition: opacity var(--anim-duration) var(--anim-ease), transform var(--anim-duration) var(--anim-ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 90ms; }
.stagger.in > *:nth-child(3) { transition-delay: 180ms; }
.stagger.in > *:nth-child(4) { transition-delay: 270ms; }
.stagger.in > *:nth-child(5) { transition-delay: 360ms; }
.stagger.in > *:nth-child(6) { transition-delay: 450ms; }
.stagger.in > *:nth-child(7) { transition-delay: 540ms; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--c-line); background: rgba(250, 250, 248, 0.96); }
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand-img { display: block; height: 44px; width: auto; }
.brand-logo {
  font-family: var(--f-serif-en); font-weight: 700; font-size: 28px; letter-spacing: -0.01em;
}
.brand-logo .a { color: var(--c-red); }
.brand-sub { font-family: var(--f-serif-jp); font-size: 10px; letter-spacing: 0.6em; color: var(--c-ink); padding-left: 4px; }
.site-footer .brand-img { height: 57px; }
nav.primary { display: flex; align-items: center; gap: 36px; }
.nav-toggle, .nav-close, .nav-backdrop { display: none; }
.nav-toggle {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; gap: 6px; align-items: center; justify-content: center;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px;
  transition: transform 220ms ease, opacity 200ms ease;
}
.nav-close {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  color: var(--c-ink); align-items: center; justify-content: center;
}
nav.primary a { font-family: "Playfair Display", "Cormorant Garamond", serif; font-weight: 700; font-size: 16px; letter-spacing: 0.02em; position: relative; padding: 6px 0; color: var(--c-ink); }
nav.primary a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px; background: var(--c-red); transition: width 220ms ease, left 220ms ease; }
nav.primary a:hover::after { width: 100%; left: 0; }
nav.primary a.btn-contact {
  background: var(--c-red); color: #fff; padding: 10px 18px; border-radius: var(--radius);
  font-family: "Playfair Display", "Cormorant Garamond", serif; font-weight: 700; font-size: 16px; letter-spacing: 0.04em;
  transition: transform 220ms var(--anim-ease), box-shadow 220ms ease, background 200ms ease;
  border: 0;
}
nav.primary a.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(230, 0, 18, 0.5); background: var(--c-red-deep); }
nav.primary a.btn-contact::after { display: none; }

/* === Hero === */
.hero { position: relative; padding: 70px 0 110px; overflow: hidden; min-height: 720px; }
.hero::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 50vw;
  background: var(--c-red);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; align-items: center; min-height: 580px; }
.hero-copy h1 {
  font-family: var(--f-serif-jp); font-weight: 800; color: var(--c-ink);
  font-size: clamp(34px, 4.2vw, 56px); line-height: 1.45; letter-spacing: 0.02em;
  margin: 0 0 28px;
}
.hero-copy h1 .accent { color: var(--c-red); }
.hero-copy h1 .cursor { display: inline-block; width: 0.06em; height: 1em; background: var(--c-ink); transform: translateY(0.12em); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-rule { width: 64px; height: 2px; background: var(--c-red); margin-bottom: 28px; }
.hero-copy p.lede { color: var(--c-ink-soft); margin: 0 0 40px; max-width: 28em; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--c-red); color: #fff; padding: 18px 36px; border-radius: var(--radius);
  font-family: var(--f-serif-en); font-size: 17px; letter-spacing: 0.08em;
  transition: transform 220ms var(--anim-ease), box-shadow 220ms ease;
  border: 0;
}
.btn-pill:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -12px rgba(230, 0, 18, 0.55); }
.btn-pill .arrow { display: inline-block; transition: transform 240ms var(--anim-ease); }
.btn-pill:hover .arrow { transform: translateX(6px); }

.hero-mock {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 65vw; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 3vw;
  box-sizing: border-box;
}
.hero-mock .hero-mock-img {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(17, 17, 17, 0.25));
}
.hero-copy { max-width: 38%; position: relative; z-index: 2; }

/* hero variants */
.hero[data-layout="centered"] .container { grid-template-columns: 1fr; text-align: center; }
.hero[data-layout="centered"] .hero-copy { max-width: 720px; margin: 0 auto; }
.hero[data-layout="centered"] .hero-rule { margin-left: auto; margin-right: auto; }
.hero[data-layout="centered"] .hero-mock { margin: 24px auto 0; max-width: 760px; }
.hero[data-layout="centered"]::after { display: none; }
.hero[data-layout="centered"] { background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper) 60%, var(--c-red) 60%, var(--c-red) 100%); }

.hero[data-layout="fullbleed"] { padding: 0; min-height: 86vh; }
.hero[data-layout="fullbleed"]::after { width: 56vw; clip-path: none; }
.hero[data-layout="fullbleed"] .container { padding-top: 80px; padding-bottom: 80px; min-height: 86vh; }
.hero[data-layout="fullbleed"] .hero-mock { transform: scale(1.05) translateX(2%); }

/* === Section atoms === */
section { padding: 120px 0; position: relative; }
.section-eyebrow {
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 18px; letter-spacing: 0.3em; color: var(--c-red);
  margin: 14px 0 0;
}
.section-title {
  font-family: var(--f-serif-en); font-weight: 700; color: inherit;
  font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -0.01em; margin: 0;
}
.section-title .script { font-family: var(--f-script); font-weight: 400; color: var(--c-red); font-size: 0.45em; margin-left: 0.2em; vertical-align: 0.6em; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 72px; flex-wrap: wrap; }
.section-head .left { max-width: 720px; }

/* Striped placeholder */
.placeholder {
  position: relative; background-color: var(--c-paper-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(17,17,17,0.04) 14px 15px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--c-mute); text-transform: uppercase;
  text-align: center; padding: 16px;
}
.placeholder.dark {
  background-color: #1c1c1e;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.04) 14px 15px);
  color: rgba(255,255,255,0.55);
}

/* === About === */
.about {
  background: #0a0a0a url('images/bg-about.png') center / cover no-repeat;
  background-attachment: fixed;
  color: var(--c-ink); padding: 140px 0 160px;
  position: relative;
}
.about .container { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; align-items: center; }
.about .about-text {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 56px 56px 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.about .section-eyebrow { color: var(--c-red); }
.about .section-title { color: var(--c-ink); }
.about .section-title .script { color: var(--c-red); }
.about p { color: var(--c-ink); margin: 24px 0 0; max-width: 32em; }
.about .btn-line {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 44px;
  border: 1px solid var(--c-ink); padding: 16px 32px; border-radius: var(--radius);
  color: var(--c-ink); font-family: var(--f-sans-jp); font-size: 14px; letter-spacing: 0.08em;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.about .btn-line:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.about-portrait .vlabel { color: rgba(17,17,17,0.4); }

.about-skills { margin-top: 56px; }
.about-skills .skills-title {
  font-family: var(--f-serif-en); font-weight: 700; font-size: 26px; letter-spacing: -0.01em;
  margin: 0 0 18px; color: var(--c-ink);
}
.about-skills .skills-title .skills-jp {
  display: inline-block; margin-left: 14px;
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 14px;
  letter-spacing: 0.3em; color: var(--c-red);
  vertical-align: 4px;
}
.about-skills .skills-list {
  list-style: none; padding: 18px 0 0; margin: 0;
  border-top: 1px solid var(--c-line);
}
.about-skills .skills-list li {
  font-family: var(--f-mono); font-size: 14px; line-height: 2;
  color: var(--c-ink); letter-spacing: 0.04em;
}
.about-portrait { position: relative; }
.about-portrait .arch {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-paper);
}
.about-portrait .arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-portrait .dot {
  position: absolute; right: -28px; bottom: -28px; width: 36%; aspect-ratio: 1; border-radius: 50%;
  background: var(--c-red); z-index: -1;
}
.about-portrait .vlabel {
  position: absolute; right: -90px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: 50% 50%;
  font-family: var(--f-serif-en); color: rgba(255,255,255,0.5); letter-spacing: 0.4em; font-size: 13px; white-space: nowrap;
}

/* === Works === */
.works { padding: 130px 0; background: #0a0a0a; color: #fff; }
.works .section-title { color: #fff; }
.works .section-eyebrow { color: var(--c-red); }
.works .work-card h3 { color: #fff; }
.works .work-card .meta-tag { color: rgba(255,255,255,0.6); }
.works .work-card .role { color: rgba(255,255,255,0.55); }
.works .all { font-family: var(--f-serif-en); font-size: 15px; letter-spacing: 0.06em; color: #fff; display: inline-flex; align-items: center; gap: 14px; }
.works .all .ar { display: inline-block; width: 60px; height: 1px; background: var(--c-red); position: relative; }
.works .all .ar::after { content: ""; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-top: 1px solid var(--c-red); border-right: 1px solid var(--c-red); transform: rotate(45deg); }
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 28px; }
.work-card {
  display: flex; flex-direction: column; gap: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: background 220ms ease, border-color 220ms ease, transform 360ms var(--anim-ease);
}
.work-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--c-red);
  border-width: 3px;
  box-shadow: 0 0 0 1px rgba(230, 0, 18, 0.35), 0 18px 40px -16px rgba(230, 0, 18, 0.45);
  transform: translateY(-4px);
}
.work-card .thumb {
  position: relative; aspect-ratio: 3 / 4; border-radius: 0; overflow: hidden;
  transition: transform 480ms var(--anim-ease);
  background: #f4f1ec;
}
.work-card .thumb::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(230,0,18,0.7), transparent);
  z-index: 3; pointer-events: none;
}
.work-card .meta-tag,
.work-card h3,
.work-card .role { padding-left: 16px; padding-right: 16px; }
.work-card .meta-tag { padding-top: 16px; }
.work-card h3 { padding-top: 6px; }
.work-card .role { padding-bottom: 16px; padding-top: 4px; }
.work-card .thumb image-slot { width: 100%; height: 100%; }
.work-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.work-card .thumb::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.18));
  opacity: 0; transition: opacity 280ms ease;
}
.work-card:hover .thumb::after { opacity: 1; }
.work-card .new-badge {
  position: absolute; top: 6px; right: 6px;
  width: 88px; height: 88px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-red);
  filter: drop-shadow(0 6px 14px rgba(230, 0, 18, 0.55));
  z-index: 2;
  animation: heartPulse 1.1s ease-in-out infinite;
  pointer-events: none;
}
.work-card .new-badge .heart {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.work-card .new-badge .badge-text {
  position: relative; z-index: 1;
  font-family: var(--f-serif-en); font-weight: 700;
  color: #fff; font-size: 11px; letter-spacing: 0.1em;
  transform: translateY(-4px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
@keyframes heartPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}
.work-card .meta-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--c-mute); text-transform: uppercase; }
.work-card h3 { font-family: var(--f-serif-jp); font-weight: 700; font-size: 19px; margin: 0; letter-spacing: 0.02em; }
.work-card .role { font-size: 13px; color: var(--c-mute); }

/* === Services === */
.services {
  background: #0a0a0a url('images/bg-service4.png') center / cover no-repeat;
  color: #fff; padding: 140px 0 130px; overflow: hidden; position: relative;
}
.services::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.40) 100%);
  pointer-events: none;
}
.services > .container { position: relative; z-index: 1; }
.services .section-title { color: #fff; }
.services .section-eyebrow { color: var(--c-red); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; }
.service-item { padding: 40px 36px; text-align: center; border-right: 1px solid rgba(255,255,255,0.25); }
.service-item:last-child { border-right: 0; }
.service-icon { width: 88px; height: 88px; border: 1.5px solid #fff; border-radius: 50%; margin: 0 auto 28px; display: grid; place-items: center; transition: transform 320ms var(--anim-ease), background 200ms ease; }
.service-item:hover .service-icon { transform: scale(1.04); background: rgba(255,255,255,0.06); }
.service-item h3 { font-family: var(--f-serif-jp); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; margin: 0 0 18px; }
.service-item p { color: rgba(255,255,255,0.92); margin: 0; font-size: 13px; line-height: 1.95; }
.services .center-cta { text-align: center; margin-top: 64px; }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 14px; border: 1px solid #fff; padding: 14px 36px; border-radius: var(--radius);
  color: #fff; font-family: var(--f-sans-jp); font-size: 13px; letter-spacing: 0.1em;
  transition: background 200ms ease, color 200ms ease;
}
.btn-ghost-light:hover { background: #fff; color: var(--c-red); }

/* === Process === */
.process {
  background: #0a0a0a url('images/bg-service4.png') center / cover no-repeat;
  color: #fff; padding: 140px 0; position: relative; overflow: hidden;
}
.process::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.40) 100%);
  pointer-events: none;
}
.process > .container { position: relative; z-index: 1; }
.process .section-title { color: #fff; }
.process .section-eyebrow { color: var(--c-red); }
.process .section-head p { color: rgba(255,255,255,0.85) !important; }
.process .section-head { margin-bottom: 88px; }
.process-rail {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step;
}
.process-rail::before {
  content: ""; position: absolute; top: 55px; left: 8%; right: 8%; height: 1px; background: rgba(255,255,255,0.25);
}
.process-rail .progress { position: absolute; top: 55px; left: 8%; height: 1px; background: var(--c-red); width: 0; transition: width 1400ms var(--anim-ease) 200ms; }
.process-rail.in .progress { width: 84%; }
.step { position: relative; counter-increment: step; }
.step .num {
  width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.35);
  display: grid; place-items: center; font-family: var(--f-serif-en); font-weight: 700; font-size: 44px; color: #fff;
  margin: 0 auto 36px; position: relative; z-index: 1;
  transition: transform 420ms var(--anim-ease), background 240ms ease, color 240ms ease, border-color 240ms ease;
}
.step:hover .num { transform: translateY(-4px); background: var(--c-red); color: #fff; border-color: var(--c-red); }
.step .num::before { content: "STEP " counter(step, decimal-leading-zero); position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.55); white-space: nowrap; }
.step h4 { font-family: var(--f-serif-jp); font-weight: 700; font-size: 17px; text-align: center; margin: 32px 0 12px; color: #fff; }
.step p { font-size: 13px; color: rgba(255,255,255,0.78); text-align: center; line-height: 1.85; margin: 0; }

/* === Pricing === */
.pricing { padding: 140px 0; background: #e3dcc9; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  background: #fff; padding: 44px 36px; border-radius: 4px; position: relative;
  transition: transform 320ms var(--anim-ease), box-shadow 320ms ease;
  border: 1px solid var(--c-line);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(17,17,17,0.18); }
.plan.featured { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.plan .plan-tag {
  position: absolute; top: -14px; left: 36px; padding: 6px 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  background: #fff; color: var(--c-ink); border-radius: 2px;
  border: 1px solid var(--c-line);
}
.plan.featured .plan-tag,
.plan.accent .plan-tag { background: #fff; color: var(--c-ink); border-color: #fff; }
.plan h3 { font-family: var(--f-serif-en); font-weight: 700; font-size: 32px; margin: 8px 0 4px; }
.plan .plan-jp { font-family: var(--f-serif-jp); font-size: 13px; color: var(--c-mute); letter-spacing: 0.1em; margin-bottom: 28px; }
.plan.featured .plan-jp { color: rgba(255,255,255,0.65); }
.plan .price { font-family: var(--f-serif-en); font-size: 48px; font-weight: 600; line-height: 1; }
.plan .price small { font-size: 14px; font-family: var(--f-sans-jp); color: var(--c-mute); margin-left: 6px; }
.plan.featured .price small { color: rgba(255,255,255,0.6); }
.plan .price-foot { font-size: 12px; color: var(--c-mute); letter-spacing: 0.08em; }
.plan.featured .price-foot { color: rgba(255,255,255,0.6); }
.plan ul { list-style: none; padding: 32px 0 0; margin: 32px 0 0; border-top: 1px solid var(--c-line); }
.plan.featured ul { border-top-color: rgba(255,255,255,0.18); }
.plan ul li { font-size: 13.5px; padding: 8px 0 8px 24px; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 16px; width: 12px; height: 1px; background: var(--c-red); }
.plan .plan-note {
  font-size: 12.5px; line-height: 1.85; color: var(--c-mute);
  margin: 18px 0 0;
}
.plan .plan-note + .plan-note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--c-line); }
.plan.featured .plan-note { color: rgba(255,255,255,0.72); }
.plan.featured .plan-note + .plan-note { border-top-color: rgba(255,255,255,0.18); }

.plan.accent { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.plan.accent h3 { color: #fff; }
.plan.accent .plan-jp { color: rgba(255,255,255,0.85); }
.plan.accent .price small { color: rgba(255,255,255,0.7); }
.plan.accent .price-foot { color: rgba(255,255,255,0.7); }
.plan.accent ul { border-top-color: rgba(255,255,255,0.28); }
.plan.accent ul li::before { background: #fff; }
.plan.accent .plan-note { color: rgba(255,255,255,0.85); }
.plan.accent .plan-note + .plan-note { border-top-color: rgba(255,255,255,0.28); }

/* Simple pricing on LP */
.pricing-grid.simple .plan { padding: 48px 36px; text-align: center; }
.pricing-grid.simple .plan h3 { margin: 0 0 8px; }
.pricing-grid.simple .plan .plan-jp { margin-bottom: 24px; }
.pricing-grid.simple .plan .price { font-size: 42px; }

/* === Pricing Overview (LP) — match pricing page color scheme === */
.pricing-overview {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  background: transparent;
}
.po-card {
  position: relative; padding: 56px 28px 44px; text-align: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  transition: transform 320ms var(--anim-ease), box-shadow 320ms ease, background 240ms ease;
  box-shadow: 0 16px 36px -24px rgba(17,17,17,0.18);
}
.po-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(17,17,17,0.25); }
/* Standard — black bg / white text */
.po-card.standard {
  background: var(--c-ink); color: #fff; border-color: var(--c-ink);
}
.po-card.standard .po-name { color: #fff; }
.po-card.standard .po-target { color: rgba(255,255,255,0.78); }
.po-card.standard .po-fee-label { color: rgba(255,255,255,0.6); }
.po-card.standard .po-fee-price { color: #fff; }
.po-card.standard .po-fee-price small { color: rgba(255,255,255,0.6); }
.po-card.standard .po-fee + .po-fee::before { color: rgba(255,255,255,0.5); }
/* Premium — red name like pricing page */
.po-card.premium .po-name { color: var(--c-red); font-family: var(--f-serif-jp); font-size: 28px; }
.po-name {
  font-family: "Playfair Display", "Cormorant Garamond", serif; font-weight: 700;
  font-size: 32px; color: var(--c-ink); line-height: 1;
  margin-bottom: 16px;
}
.po-target {
  font-family: var(--f-serif-jp); font-size: 13px; color: var(--c-mute);
  letter-spacing: 0.15em; margin: 0 0 36px; line-height: 1.6;
}
.po-card::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translateX(-50%);
  width: 30px; height: 1px; background: var(--c-red); opacity: 0.5;
}
.po-price {
  font-family: var(--f-serif-en); font-weight: 700;
  font-size: 26px; color: var(--c-ink); letter-spacing: -0.01em;
  margin-top: 32px;
}
.po-price small {
  font-family: var(--f-sans-jp); font-size: 11px; font-weight: 400;
  color: var(--c-mute); letter-spacing: 0.04em; margin-left: 2px;
}
.po-fees {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.po-fee {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.po-fee-label {
  font-family: var(--f-serif-jp); font-size: 11px;
  color: var(--c-mute); letter-spacing: 0.08em;
}
.po-fee-price {
  font-family: var(--f-serif-en); font-weight: 700;
  font-size: 22px; color: var(--c-ink); letter-spacing: -0.01em;
  line-height: 1;
}
.po-fee-price small {
  font-family: var(--f-sans-jp); font-size: 11px; font-weight: 400;
  color: var(--c-mute); letter-spacing: 0.04em; margin-left: 2px;
}
.po-card.popular .po-fee + .po-fee::before {
  content: "＋"; display: block; color: var(--c-mute);
  font-family: var(--f-serif-en); font-size: 14px; margin-bottom: 6px;
}
.po-card .po-fee + .po-fee::before {
  content: "＋"; display: block; color: var(--c-mute);
  font-family: var(--f-serif-en); font-size: 14px; margin-bottom: 6px;
}
.po-badge {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  background: var(--c-red); color: #fff;
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
  animation: badgeBlink 1.4s ease-in-out infinite;
  box-shadow: 0 4px 12px -2px rgba(230, 0, 18, 0.5);
}
@keyframes badgeBlink {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.55; transform: translateX(-50%) scale(0.92); }
}
@media (max-width: 980px) {
  .pricing-overview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing-overview { grid-template-columns: 1fr; }
}

/* === Plan Quiz (LP Pricing) === */
.plan-quiz {
  margin-top: 72px; padding: 56px 56px 48px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  box-shadow: 0 24px 48px -32px rgba(17,17,17,0.18);
  max-width: 760px; margin-left: auto; margin-right: auto;
  text-align: center; position: relative; overflow: hidden;
}
.plan-quiz::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-red), #d4af37, var(--c-red));
}
.plan-quiz-head { margin-bottom: 36px; }
.plan-quiz-title {
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 26px;
  margin: 0; color: var(--c-ink); letter-spacing: 0.02em;
}
.plan-quiz-title .quiz-sub {
  display: block; font-family: var(--f-serif-jp); font-size: 12px;
  color: var(--c-red); letter-spacing: 0.18em; margin-top: 8px; font-weight: 700;
}
.plan-quiz-lede {
  margin: 16px 0 0; color: var(--c-mute); font-size: 13px; line-height: 1.8;
}
.quiz-flow { position: relative; min-height: 260px; }
.quiz-step, .quiz-result {
  display: none; opacity: 0; transform: translateY(8px);
  transition: opacity 280ms ease, transform 320ms var(--anim-ease);
}
.quiz-step.active, .quiz-result.active {
  display: block; opacity: 1; transform: none;
}
.quiz-q {
  margin-bottom: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.quiz-q-no {
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 14px;
  letter-spacing: 0.18em; color: var(--c-red);
  padding: 6px 16px; border: 1px solid var(--c-red); border-radius: 999px;
}
.quiz-q-text {
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 22px;
  color: var(--c-ink); margin: 0; line-height: 1.6;
}
.quiz-q-text small { display: inline-block; font-size: 12px; color: var(--c-mute); font-weight: 500; margin-top: 6px; }
.quiz-actions {
  display: flex; justify-content: center; gap: 20px;
}
.quiz-btn {
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 17px;
  letter-spacing: 0.1em; padding: 16px 0; width: 140px;
  border: 2px solid var(--c-ink); background: #fff; color: var(--c-ink);
  border-radius: 999px; cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 200ms var(--anim-ease), box-shadow 220ms ease;
}
.quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(17,17,17,0.25);
}
.quiz-btn.yes {
  background: var(--c-red); color: #fff; border-color: var(--c-red);
}
.quiz-btn.yes:hover {
  background: var(--c-red-deep); border-color: var(--c-red-deep);
  box-shadow: 0 12px 24px -8px rgba(230, 0, 18, 0.5);
}
.quiz-btn.no:hover {
  background: var(--c-ink); color: #fff;
}
/* Result */
.quiz-result {
  padding: 12px 0;
}
.result-label {
  display: block; font-family: var(--f-serif-jp); font-size: 12px;
  color: var(--c-mute); letter-spacing: 0.16em; margin-bottom: 14px;
}
.result-name {
  font-family: "Playfair Display", "Cormorant Garamond", serif; font-weight: 700;
  font-size: 56px; color: var(--c-red); line-height: 1; margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.result-tag {
  display: inline-block; vertical-align: 14px;
  background: var(--c-red); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.1em;
  font-family: var(--f-serif-jp); margin-left: 10px;
}
.result-crown { font-size: 36px; vertical-align: 16px; margin-left: 6px; }
.result-target {
  font-family: var(--f-serif-jp); font-size: 14px; line-height: 1.9;
  color: var(--c-ink); margin: 0 0 22px;
}
.result-price {
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 20px;
  color: var(--c-ink); line-height: 1.6; margin-bottom: 30px;
  padding: 18px 24px; background: var(--c-paper-2); border-radius: 8px;
  display: inline-block;
}
.result-price small {
  font-family: var(--f-sans-jp); font-size: 11px; font-weight: 400;
  color: var(--c-mute); margin-left: 2px;
}
.quiz-restart {
  font-family: var(--f-serif-jp); font-size: 13px; color: var(--c-mute);
  background: transparent; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--c-line);
  padding: 6px 12px; transition: color 200ms ease, text-decoration-color 200ms ease;
}
.quiz-restart:hover { color: var(--c-red); text-decoration-color: var(--c-red); }
@media (max-width: 700px) {
  .plan-quiz { padding: 40px 24px 32px; }
  .quiz-q-text { font-size: 18px; }
  .quiz-btn { width: 110px; font-size: 15px; padding: 14px 0; }
  .result-name { font-size: 44px; }
  .result-price { font-size: 16px; padding: 14px 18px; }
}

/* Crown badge for Premium — both LP and pricing page */
.po-crown,
.plan-crown {
  position: absolute; top: -18px; right: -10px;
  width: 64px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #d4af37;
  filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.55));
  z-index: 3;
  transform: rotate(12deg);
  animation: crownGlow 2.4s ease-in-out infinite;
  pointer-events: none;
}
.po-crown svg,
.plan-crown svg { width: 100%; height: 100%; }
@keyframes crownGlow {
  0%, 100% { filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.55)); }
  50% { filter: drop-shadow(0 8px 18px rgba(212, 175, 55, 0.85)) drop-shadow(0 0 6px rgba(255, 215, 0, 0.7)); }
}
.pricing-cta { text-align: center; margin-top: 56px; }
.btn-pricing-detail {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 36px; border-radius: var(--radius);
  background: var(--c-ink); color: #fff;
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 15px; letter-spacing: 0.08em;
  border: 0; cursor: pointer;
  transition: transform 220ms var(--anim-ease), box-shadow 220ms ease, background 200ms ease;
  box-shadow: 0 14px 28px -12px rgba(17,17,17,0.45);
}
.btn-pricing-detail:hover {
  background: var(--c-red); transform: translateY(-3px);
  box-shadow: 0 18px 32px -10px rgba(230, 0, 18, 0.5);
}
.btn-pricing-detail .arr { transition: transform 240ms var(--anim-ease); }
.btn-pricing-detail:hover .arr { transform: translateX(6px); }

/* === FAQ === */
.faq {
  padding: 140px 0;
  background: var(--c-paper) url('images/bg-faq.png') center / cover no-repeat;
  position: relative;
}
.faq::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(250, 250, 248, 0.78);
  pointer-events: none;
}
.faq > .container { position: relative; z-index: 1; }
.faq .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 96px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--c-line); border-radius: 4px; background: #fff; overflow: hidden; transition: border-color 200ms ease; }
.faq-item.open { border-color: var(--c-red); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 28px; width: 100%; background: transparent; border: 0; text-align: left;
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 16px; color: var(--c-ink);
}
.faq-q .q-mark { font-family: var(--f-serif-en); color: var(--c-red); font-size: 22px; margin-right: 14px; }
.faq-toggle {
  width: 32px; height: 32px; border-radius: 50%; background: var(--c-paper-2); display: grid; place-items: center;
  transition: background 200ms ease, transform 200ms ease; flex-shrink: 0;
}
.faq-item.open .faq-toggle { background: var(--c-red); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; width: 12px; height: 1.5px; background: var(--c-ink); transition: transform 240ms var(--anim-ease), background 200ms ease; }
.faq-toggle { position: relative; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item.open .faq-toggle::before, .faq-item.open .faq-toggle::after { background: #fff; }
.faq-item.open .faq-toggle::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--anim-ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { margin: 0; padding: 0 28px 24px; color: var(--c-mute); font-size: 13.5px; line-height: 1.95; }

/* === Contact === */
.contact {
  background: #0a0a0a url('images/bg-contact.png') center / cover no-repeat;
  color: #fff; padding: 130px 0 130px;
  position: relative;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 60%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}
.contact > .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.contact .section-title { color: #fff; }
.contact .lede { color: rgba(255,255,255,0.85); margin: 28px 0 36px; max-width: 28em; }
.contact .btn-pill { font-size: 15px; padding: 16px 32px; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 36px; }
.contact-info .item { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 18px; }
.contact-info .item .lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.contact-info .item .val { font-family: var(--f-serif-en); font-size: 18px; margin-top: 4px; }
.contact-img { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.contact-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.contact .contact-form { display: flex; flex-direction: column; gap: 22px; }
.contact .field label { display: block; font-family: var(--f-serif-jp); font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 8px; letter-spacing: 0.04em; }
.contact .field label .req { color: var(--c-red); margin-left: 6px; font-size: 11px; }
.contact .field input,
.contact .field select,
.contact .field textarea {
  width: 100%; padding: 13px 14px;
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 4px;
  font: inherit; transition: border-color 200ms ease, background 200ms ease;
  box-sizing: border-box;
}
.contact .field input::placeholder,
.contact .field textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact .field select { color: #fff; }
.contact .field select option { color: var(--c-ink); }
.contact .field input:focus,
.contact .field select:focus,
.contact .field textarea:focus {
  outline: none; border-color: var(--c-red); background: rgba(255,255,255,0.10);
}
.contact .field textarea { resize: vertical; min-height: 130px; }
.contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact .submit-row { margin-top: 4px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.contact .submit-row .note { font-size: 12px; color: rgba(255,255,255,0.55); }
.contact .submit-row .btn-pill { border: 0; cursor: pointer; }
.contact .toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(80px);
  background: #fff; color: var(--c-ink);
  padding: 14px 28px; border-radius: 999px;
  opacity: 0; transition: transform 320ms var(--anim-ease), opacity 200ms ease;
  z-index: 99; font-size: 13px; letter-spacing: 0.06em;
  box-shadow: 0 18px 48px -12px rgba(0,0,0,0.35);
}
.contact .toast.show { transform: translateX(-50%); opacity: 1; }

/* === Footer === */
.site-footer { padding: 48px 0 40px; background: var(--c-paper); }
.site-footer .inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer .footer-links { display: flex; gap: 24px; }
.site-footer .footer-links a {
  font-family: var(--f-serif-jp); font-size: 12px; color: var(--c-mute);
  letter-spacing: 0.06em; transition: color 200ms ease;
}
.site-footer .footer-links a:hover { color: var(--c-red); }
.contact .submit-row .note .privacy-link {
  color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.4); transition: color 200ms ease, text-decoration-color 200ms ease;
}
.contact .submit-row .note .privacy-link:hover { color: var(--c-red); text-decoration-color: var(--c-red); }
.site-footer nav a { font-family: var(--f-serif-en); font-size: 14px; letter-spacing: 0.06em; }
.site-footer .copy { font-family: var(--f-serif-en); font-size: 13px; color: var(--c-mute); letter-spacing: 0.06em; }

/* === Page top button === */
.totop {
  position: fixed; right: 28px; bottom: 28px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-red); color: #fff; display: grid; place-items: center; z-index: 60;
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity 240ms ease, transform 240ms var(--anim-ease), background 200ms ease, box-shadow 220ms ease;
  border: 0; cursor: pointer;
  box-shadow: 0 14px 28px -10px rgba(230, 0, 18, 0.5);
}
.totop svg { width: 26px; height: 26px; transform: translateY(1px); }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--c-red-deep); transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(230, 0, 18, 0.6); }

/* === Responsive === */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero::after { width: 100vw; height: 280px; top: auto; bottom: 0; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
  .about .container, .contact .container, .faq .container { grid-template-columns: 1fr; gap: 48px; }
  .contact .row2 { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.25); }
  .service-item:last-child { border-bottom: 0; }
  .process-rail { grid-template-columns: 1fr 1fr; }
  .process-rail::before, .process-rail .progress { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
    padding: 40px 0 80px;
    display: flex; flex-direction: column-reverse;
  }
  .hero::after { display: none; }
  .hero .container {
    min-height: auto;
    padding-top: 24px;
  }
  .hero-mock {
    position: relative; inset: auto;
    width: 100%; height: auto;
    padding: 0 var(--gutter);
    display: flex; justify-content: center;
    margin-bottom: 32px;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-mock .hero-mock-img {
    max-width: 100%; max-height: 60vh;
    width: auto; height: auto;
    object-fit: contain;
  }
  .hero-copy {
    max-width: 100%;
    position: relative; z-index: 2;
  }

  .nav-toggle { display: flex; }
  nav.primary {
    display: none;
  }
  nav.primary.open {
    display: flex;
    position: fixed; top: 0; right: 0;
    width: 80%; max-width: 320px; height: 100vh; height: 100dvh;
    background: #fff; box-shadow: -16px 0 40px -12px rgba(0,0,0,0.25);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 80px 32px 32px;
    z-index: 200;
    overflow-y: auto;
  }
  nav.primary a {
    padding: 16px 0; font-size: 17px;
    border-bottom: 1px solid var(--c-line);
  }
  nav.primary a::after { display: none; }
  nav.primary a.btn-contact {
    margin-top: 24px; padding: 14px 24px; text-align: center;
    border: 0; border-radius: var(--radius);
  }
  .nav-close {
    display: flex; position: absolute; top: 18px; right: 18px;
  }
  .nav-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0; pointer-events: none;
    transition: opacity 280ms ease;
    z-index: 150;
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* ============================================
   Pricing detail page (pricing.html)
   ============================================ */

.pricing-hero {
  position: relative;
  padding: 110px 0 80px;
  background: #e3dcc9;
  overflow: hidden;
}
.pricing-hero .container { position: relative; z-index: 1; max-width: 980px; text-align: center; }
.pricing-hero-title {
  font-family: var(--f-serif-en); font-weight: 700; font-size: clamp(56px, 7vw, 96px);
  margin: 0; color: var(--c-ink); letter-spacing: -0.01em; line-height: 1;
}
.pricing-hero-eyebrow {
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 16px;
  letter-spacing: 0.3em; color: var(--c-red); margin: 14px 0 0;
  position: relative; display: inline-block;
}
.pricing-hero-eyebrow::after {
  content: ""; display: block; width: 36px; height: 2px; background: var(--c-red);
  margin: 14px auto 0;
}
.pricing-hero-lede {
  margin: 28px auto 0; max-width: 640px;
  color: var(--c-ink); line-height: 2; font-size: 14px;
}

/* --- Plan cards --- */
.pricing-plans { padding: 64px 0 100px; background: #e3dcc9; }
.pricing-plans .container { max-width: 1240px; }
.plan-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  align-items: stretch;
}
.plan-row.plan-row-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.plan-row.plan-row-4 .plan-card { padding: 36px 22px 30px; }
.plan-row.plan-row-4 .plan-name { font-size: 30px; }
.plan-row.plan-row-4 .plan-fee-price { font-size: 22px; }
.plan-row.plan-row-4 .plan-icon { width: 64px; height: 64px; margin: 18px auto 18px; }
.plan-row.plan-row-4 .plan-feats li { font-size: 12.5px; padding: 5px 0; }
.plan-card.advance .plan-name { color: var(--c-ink); }
.plan-card.premium .plan-name { color: var(--c-red); font-family: var(--f-serif-jp); font-size: 26px; }
.plan-card.premium .plan-icon { color: var(--c-red); }

/* Comparison table — popular column highlight */
.compare-table.compare-4 thead th.popular-col {
  background: rgba(230,0,18,0.06);
  color: var(--c-red);
}
.compare-table .hd-badge {
  display: inline-block; margin-left: 8px;
  background: var(--c-red); color: #fff;
  font-size: 9px; padding: 2px 7px; border-radius: 999px;
  letter-spacing: 0.1em; vertical-align: 2px;
}
.plan-card {
  position: relative; background: #fff; border-radius: 10px;
  padding: 40px 32px 36px;
  display: flex; flex-direction: column;
  border: 1px solid var(--c-line);
  box-shadow: 0 16px 36px -24px rgba(17,17,17,0.18);
  transition: transform 320ms var(--anim-ease), box-shadow 320ms ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(17,17,17,0.25); }
.plan-card.standard {
  background: var(--c-ink); color: #fff; border-color: var(--c-ink);
}
.plan-card.brand .plan-name { color: var(--c-red); }
.plan-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c-red); color: #fff;
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 12px;
  padding: 6px 18px; border-radius: 4px; letter-spacing: 0.1em;
}
.plan-card-head { text-align: center; }
.plan-name {
  font-family: var(--f-serif-en); font-weight: 700;
  font-size: 38px; margin: 0; line-height: 1.1;
}
.plan-card.brand .plan-name { font-family: var(--f-serif-jp); font-size: 30px; }
.plan-sub {
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 13px;
  margin: 6px 0 0; letter-spacing: 0.04em;
}
.plan-card.standard .plan-sub { color: rgba(255,255,255,0.85); }
.plan-target {
  font-size: 12px; color: var(--c-mute); margin: 18px 0 0;
  line-height: 1.7;
}
.plan-card.standard .plan-target { color: rgba(255,255,255,0.7); }
.plan-icon {
  display: flex; justify-content: center; align-items: center;
  margin: 22px auto 24px; width: 80px; height: 80px;
  color: var(--c-ink);
}
.plan-card.standard .plan-icon { color: #fff; }
.plan-card.brand .plan-icon { color: var(--c-red); }
.plan-icon svg { width: 100%; height: 100%; }

/* Price block */
.plan-fee {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 18px 0; margin: 0 0 20px;
  text-align: center;
}
.plan-card.standard .plan-fee { border-color: rgba(255,255,255,0.18); }
.plan-fee.combo {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px; padding: 16px 0;
}
.plan-fee-label {
  font-family: var(--f-serif-jp); font-size: 11px;
  color: var(--c-mute); margin-bottom: 4px;
}
.plan-card.standard .plan-fee-label { color: rgba(255,255,255,0.6); }
.plan-fee-price {
  font-family: var(--f-serif-en); font-weight: 700;
  font-size: 28px; color: var(--c-red); line-height: 1;
}
.plan-fee-price small {
  font-family: var(--f-sans-jp); font-size: 11px; font-weight: 400;
  color: var(--c-mute); letter-spacing: 0.04em; margin-left: 2px;
}
.plan-card.standard .plan-fee-price small { color: rgba(255,255,255,0.6); }
.fee-plus {
  font-family: var(--f-serif-en); font-size: 22px; color: var(--c-mute);
  font-weight: 400;
}
.plan-card.standard .fee-plus { color: rgba(255,255,255,0.6); }

/* Features */
.plan-feats { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.6; padding: 7px 0;
  color: var(--c-ink);
}
.plan-card.standard .plan-feats li { color: rgba(255,255,255,0.92); }
.plan-feats .chk {
  color: var(--c-red); font-weight: 700; flex-shrink: 0;
  font-size: 14px; line-height: 1.4;
}
.plan-card.standard .plan-feats .chk { color: var(--c-red); }

/* Plan CTA */
.plan-card .plan-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border-radius: 6px;
  border: 1px solid var(--c-ink); color: var(--c-ink);
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 13px;
  background: #fff; transition: background 200ms, color 200ms, transform 200ms var(--anim-ease);
  margin-top: auto; cursor: pointer;
  letter-spacing: 0.04em;
}
.plan-card .plan-cta:hover { background: var(--c-ink); color: #fff; transform: translateY(-2px); }
.plan-card.standard .plan-cta {
  background: var(--c-red); border-color: var(--c-red); color: #fff;
}
.plan-card.standard .plan-cta:hover { background: var(--c-red-deep); border-color: var(--c-red-deep); }
.plan-card.brand .plan-cta { border-color: var(--c-red); color: var(--c-red); }
.plan-card.brand .plan-cta:hover { background: var(--c-red); color: #fff; border-color: var(--c-red); }

/* --- Common section heading --- */
.pricing-h2 {
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 22px;
  margin: 0 0 36px; display: inline-flex; align-items: center; gap: 14px;
  letter-spacing: 0.04em;
}
.pricing-h2 .bar {
  display: inline-block; width: 80px; height: 1px; background: var(--c-ink);
}

/* --- Comparison Table --- */
.pricing-compare { padding: 80px 0; background: #e3dcc9; }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px; text-align: center;
  border: 1px solid var(--c-line);
  vertical-align: middle;
}
.compare-table thead th {
  background: var(--c-paper-2); font-family: var(--f-serif-jp);
  font-weight: 700; font-size: 14px;
  color: var(--c-ink);
}
.compare-table tbody th {
  text-align: left; font-weight: 500; background: #fff;
  color: var(--c-ink);
  white-space: nowrap;
}
.compare-table tbody th .row-icon {
  display: inline-block; margin-right: 10px; color: var(--c-mute);
  width: 18px; text-align: center;
}
.compare-table tbody td { background: #fff; color: var(--c-ink); }
.compare-table tbody td.x { color: var(--c-mute); font-size: 16px; }
.compare-table tbody td.o { color: var(--c-red); font-size: 16px; font-weight: 700; }
.compare-table tbody td small { color: var(--c-mute); font-size: 11px; }

/* --- 保守と運用の違い --- */
.pricing-explain { padding: 80px 0; background: #e3dcc9; }
.explain-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  align-items: stretch;
}
.explain-card, .explain-aside {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: 10px; padding: 32px;
}
.explain-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.explain-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--c-paper-2); color: var(--c-ink);
  border-radius: 8px;
}
.explain-icon svg { width: 24px; height: 24px; }
.explain-head h3 {
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 17px;
  margin: 0; line-height: 1.4;
}
.explain-head h3 small {
  display: block; font-size: 11px; color: var(--c-mute);
  font-weight: 500; margin-top: 4px; letter-spacing: 0.06em;
}
.explain-desc {
  font-size: 12px; color: var(--c-mute); margin: 0 0 18px;
  line-height: 1.7;
}
.explain-list { list-style: none; padding: 0; margin: 0; }
.explain-list li {
  position: relative; padding: 6px 0 6px 18px;
  font-size: 13px; color: var(--c-ink); line-height: 1.6;
}
.explain-list li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--c-red); font-weight: 700;
}
.explain-aside h3 {
  font-family: var(--f-serif-jp); font-weight: 700; font-size: 15px;
  margin: 0 0 16px;
}
.explain-trust { list-style: none; padding: 0; margin: 0; }
.explain-trust li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; line-height: 1.6;
  padding: 10px 0; border-bottom: 1px dashed var(--c-line);
  color: var(--c-ink);
}
.explain-trust li:last-child { border-bottom: 0; }
.explain-trust .trust-icon {
  width: 26px; height: 26px;
  background: var(--c-paper-2); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 13px;
}

/* --- Pricing FAQ --- */
.pricing-faq { padding: 80px 0; background: #e3dcc9; }
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px;
  border-top: 1px solid var(--c-line);
}
.pfaq {
  border-bottom: 1px solid var(--c-line);
}
.pfaq summary {
  list-style: none; cursor: pointer;
  padding: 18px 4px; font-family: var(--f-serif-jp);
  font-size: 14px; color: var(--c-ink);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 200ms ease;
}
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary:hover { color: var(--c-red); }
.pfaq-toggle {
  width: 18px; height: 18px; position: relative; flex-shrink: 0; margin-left: 12px;
}
.pfaq-toggle::before, .pfaq-toggle::after {
  content: ""; position: absolute; background: var(--c-ink);
  transition: transform 220ms ease, background 200ms ease;
}
.pfaq-toggle::before {
  left: 0; right: 0; top: 50%; height: 1px;
}
.pfaq-toggle::after {
  top: 0; bottom: 0; left: 50%; width: 1px;
}
.pfaq[open] .pfaq-toggle::after { transform: scaleY(0); }
.pfaq[open] summary { color: var(--c-red); }
.pfaq[open] .pfaq-toggle::before { background: var(--c-red); }
.pfaq p {
  margin: 0; padding: 0 4px 18px;
  font-size: 13px; color: var(--c-mute); line-height: 1.85;
}

/* --- Bottom CTA --- */
.pricing-cta-bottom {
  padding: 80px 0 100px;
  background: var(--c-ink); color: #fff;
  text-align: center;
}
.pricing-cta-bottom h2 {
  font-family: var(--f-serif-jp); font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 14px; color: #fff; letter-spacing: 0.04em;
}
.pricing-cta-bottom p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px; font-size: 14px;
}
.pricing-cta-bottom .btn-pill { font-size: 15px; padding: 18px 40px; }

/* --- Pricing detail responsive --- */
@media (max-width: 980px) {
  .plan-row { grid-template-columns: 1fr; gap: 36px; }
  .plan-card.standard { transform: none; }
  .pricing-hero::after { width: 100%; opacity: 0.25; }
  .compare-table th, .compare-table td { padding: 10px; font-size: 12px; }
  .compare-table tbody th { white-space: normal; }
  .explain-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
}
