/* ==========================================================
   MaIA novary — common styles  (see DESIGN.md)
   ========================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f2;
  --ink: #111111;
  --ink-sub: #55534e;
  --line: #e6e3dc;
  --accent: #3d4bf5;
  --accent-2: #7b5cff;
  --lime: #c6f432;
  --sky: #20b8f5;
  --sky-soft: rgba(32, 184, 245, .12);
  --sky-ink: #0a86c7;
  --grad: linear-gradient(95deg, #20b8f5 0%, #3d4bf5 45%, #7b5cff 100%);
  --accent-soft: rgba(61, 75, 245, .1);
  --accent-ink: #ffffff;
  --mark: #ffe066;
  --mark-current: #3d4bf5;
  --glass: rgba(255, 255, 255, .78);
  --radius: 20px;
  --container: 1140px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(56px, 7vw, 96px);
  --font-display: "Bricolage Grotesque", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
@media (max-width: 640px) { body { font-size: 17px; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--soft { background: var(--bg-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--ink); color: var(--bg); padding: 8px 16px; }

/* ---------- background atmosphere ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .55;
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 104, 255, .38), rgba(123, 92, 255, .14) 40%, transparent 65%);
  top: -25vmax; right: -20vmax; filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-8vmax, 10vmax) scale(1.1); } }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-sub);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198, 244, 50, .28); flex: none; }
.h-display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.25; letter-spacing: -.02em;
  margin: 0;
}
.h-section {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.35; letter-spacing: -.01em;
  margin: 18px 0 0;
}
.h-section .en { display: block; font-size: .42em; color: var(--accent); letter-spacing: .02em; margin-bottom: 6px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-sub); max-width: 40em; margin: 16px 0 0; }
.accent { color: var(--accent); }
.num { font-family: var(--font-mono); }
.section-head { margin-bottom: clamp(28px, 3.5vw, 44px); display: grid; gap: 8px; }
.section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink); --t: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 32px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: var(--t);
  font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { border-color: var(--accent); color: #fff; }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn--ghost { --b: transparent; --t: var(--ink); border-color: var(--ink); }
.btn--accent { --b: var(--accent); --t: #fff; }
.btn--accent::before { background: var(--ink); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.header.is-scrolled { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__mark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1;
}
.logo__mark i { font-style: normal; color: var(--accent); }
.logo__kana { font-size: .7rem; color: var(--ink-sub); letter-spacing: .1em; }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; text-decoration: none; font-weight: 700; font-size: .98rem;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  display: grid; place-items: center; transition: border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); transform: rotate(-8deg); }
.icon-btn svg { width: 20px; height: 20px; }
.search-trigger { width: auto; padding: 0 14px 0 14px; border-radius: 999px; gap: 10px; display: flex; }
.search-trigger kbd {
  font-family: var(--font-mono); font-size: .72rem; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink-sub);
}
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center; font-family: var(--font-mono); line-height: 1;
  transform: scale(0); transition: transform .4s var(--ease);
}
.badge.is-on { transform: scale(1); }
.badge.pop { animation: pop .5s var(--ease); }
@keyframes pop { 50% { transform: scale(1.5); } }
.menu-btn { display: none; }
.header-cta { padding: 12px 22px; font-size: .95rem; }

@media (max-width: 1020px) {
  .nav, .header-cta { display: none; }
  .search-trigger kbd, .search-trigger span { display: none; }
  .search-trigger { width: 46px; padding: 0; }
  .menu-btn { display: grid; }
}
.drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .7s var(--ease); visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
.drawer a {
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; text-decoration: none;
  border-bottom: 1px solid var(--line); padding: 12px 0; display: flex; justify-content: space-between; align-items: baseline;
}
.drawer a small { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-sub); font-weight: 400; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { padding: calc(80px + clamp(28px, 4vw, 56px)) 0 clamp(32px, 4vw, 52px); position: relative; }
.crumbs { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-sub); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-hero__en {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1; letter-spacing: -.04em; margin: 0; color: var(--ink);
}
.page-hero__en .dot { color: var(--accent); }
.page-hero__ja { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; margin: 20px 0 0; line-height: 1.4; }

/* ---------- split / home hero ---------- */
.hero { display: flex; align-items: center; padding: calc(80px + clamp(40px, 6vw, 80px)) 0 clamp(48px, 6vw, 80px); position: relative; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero__fade { opacity: 0; animation: fadeUp 1s var(--ease) .6s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero__rotator { display: inline-grid; vertical-align: bottom; color: var(--accent); }
.hero__rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: .7s var(--ease); white-space: nowrap; }
.hero__rotator > span.is-active { opacity: 1; transform: none; }
.hero__rotator > span.is-leaving { opacity: 0; transform: translateY(-40%); }
.hero__meta { display: flex; gap: clamp(20px, 5vw, 64px); margin-top: 64px; flex-wrap: wrap; }
.hero__meta div { border-top: 2px solid var(--ink); padding-top: 12px; min-width: 140px; }
.hero__meta b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; display: block; }
.hero__meta small { color: var(--ink-sub); font-size: .9rem; }
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 28px; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .2em; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; color: var(--ink-sub);
}
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--ink) 50%, transparent 50%); background-size: 1px 200%; animation: cue 2s linear infinite; }
@keyframes cue { to { background-position: 0 -200%; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1.5px solid var(--ink); overflow: hidden; padding: 22px 0; background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 4rem); line-height: 1;
  padding-right: 48px; white-space: nowrap; display: flex; align-items: center; gap: 48px;
}
.marquee__track span::after { content: "✳"; color: var(--accent); font-size: .6em; }
.marquee__track span:nth-child(even) { color: var(--ink-sub); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- service cards (home) ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }
.service {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(32px, 3.4vw, 48px); border: 1px solid var(--line); border-radius: 28px;
  background: var(--bg); text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s, color .4s;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  opacity: 0; transition: opacity .5s var(--ease);
}
.service:hover, .service:focus-visible {
  color: #fff; border-color: transparent; transform: translateY(-8px);
  box-shadow: 0 40px 70px -30px rgba(61, 75, 245, .55);
}
.service:hover::before, .service:focus-visible::before { opacity: 1; }
.service__no { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 1rem; transition: color .4s; }
.service:hover .service__no { color: var(--lime); }
.service__title { font-weight: 900; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.35; margin: 22px 0 4px; }
.service__en { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink-sub); margin: 0 0 22px; transition: color .4s; }
.service__desc { margin: 0 0 26px; color: var(--ink-sub); transition: color .4s; flex: 1; }
.service:hover .service__en, .service:hover .service__desc { color: rgba(255, 255, 255, .88); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .9rem; font-weight: 700; transition: border-color .4s; }
.service:hover .tags li { border-color: rgba(255, 255, 255, .45); }
.service__go {
  align-self: flex-end; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center; transition: transform .5s var(--ease), background .4s, color .4s;
}
.service:hover .service__go { background: #fff; color: var(--accent); border-color: #fff; transform: rotate(-45deg); }
.why {
  margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--bg-soft); border-radius: 24px; padding: 20px 24px; font-weight: 700;
}
.why b { background: var(--lime); color: #111; border-radius: 999px; padding: 8px 20px; font-family: var(--font-display); }

/* ---------- generic cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  position: relative; overflow: hidden; transition: border-color .4s, transform .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%);
}
.card:hover { border-color: var(--ink); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.35rem; line-height: 1.5; margin: 16px 0 10px; }
.card p { margin: 0; color: var(--ink-sub); }
.card__no { font-family: var(--font-mono); font-size: .85rem; color: var(--accent); }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.card__icon svg { width: 30px; height: 30px; }

/* ---------- worry bubbles ---------- */
.worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .worries { grid-template-columns: 1fr; } }
.worry {
  background: var(--bg); border: 1.5px solid var(--ink); border-radius: 24px 24px 24px 4px;
  padding: 30px 28px; font-size: 1.2rem; font-weight: 700; line-height: 1.6; position: relative;
}
.worry::before { content: "“"; font-family: var(--font-display); font-size: 4rem; color: var(--accent); line-height: 0; position: absolute; top: 34px; right: 22px; opacity: .5; }
.answer { margin-top: 56px; text-align: center; font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.5; }
.answer .accent { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan {
  border: 1.5px solid var(--line); border-radius: 24px; padding: 32px 26px 28px; background: var(--bg);
  display: flex; flex-direction: column; position: relative; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.plan.is-featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan.is-featured .plan__for, .plan.is-featured .plan__list li { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.plan.is-recommended { outline: 3px solid var(--accent); outline-offset: 4px; }
.plan__ribbon {
  position: absolute; top: -14px; left: 24px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: .06em;
}
.plan__name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin: 0; display: flex; justify-content: space-between; align-items: center; }
.plan__name small { font-family: var(--font-mono); font-size: .7rem; font-weight: 400; opacity: .6; letter-spacing: .1em; display: block; }
.plan__for { color: var(--ink-sub); font-size: .98rem; margin: 6px 0 20px; min-height: 3.4em; line-height: 1.7; }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: 2.9rem; line-height: 1; letter-spacing: -.02em; }
.plan__price small { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.plan__init { font-size: .85rem; opacity: .7; margin: 8px 0 22px; }
.plan__list { list-style: none; padding: 20px 0 0; margin: 0 0 26px; border-top: 1px dashed currentColor; flex: 1; font-size: .98rem; }
.plan__list li { padding: 5px 0 5px 28px; position: relative; line-height: 1.6; color: var(--ink-sub); }
.plan__list li::before {
  content: ""; position: absolute; left: 2px; top: .7em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.plan__list li.plus { font-weight: 700; color: inherit; }
.plan .btn { width: 100%; padding: 14px 20px; font-size: 1rem; }
.plan.is-featured .btn { --b: var(--accent); --t: #fff; border-color: var(--accent); }
.plan.is-featured .btn::before { background: var(--bg); }
.plan.is-featured .btn:hover { color: var(--ink); border-color: var(--bg); }
.fav-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; cursor: pointer;
  display: grid; place-items: center; opacity: .6; transition: opacity .3s, transform .3s var(--ease), background .3s, border-color .3s;
}
.fav-btn svg { width: 19px; height: 19px; }
.fav-btn:hover { opacity: 1; transform: scale(1.1); }
.fav-btn[aria-pressed="true"] { opacity: 1; background: var(--accent); border-color: var(--accent); color: #fff; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; animation: pop .5s var(--ease); }
.note { font-size: .88rem; color: var(--ink-sub); margin-top: 24px; }

/* ---------- compare table ---------- */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--bg); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 1rem; }
.compare th, .compare td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { font-family: var(--font-display); font-size: 1.15rem; background: var(--bg-soft); position: sticky; top: 0; }
.compare tbody th { text-align: left; font-weight: 500; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare tbody tr:hover { background: var(--accent-soft); }
.compare .yes { color: var(--accent); font-size: 1.3rem; font-weight: 800; }
.compare .no { color: var(--line); }
.compare .col-hl { background: var(--accent-soft); }

/* ---------- diagnosis ---------- */
.diag { border: 1.5px solid var(--ink); border-radius: 28px; background: var(--bg); padding: clamp(28px, 5vw, 60px); position: relative; overflow: hidden; }
.diag__progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 36px; }
.diag__progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.diag__step { display: none; animation: fadeUp .6s var(--ease); }
.diag__step.is-active { display: block; }
.diag__q { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin: 8px 0 28px; line-height: 1.5; }
.diag__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.diag__opt {
  text-align: left; padding: 22px 24px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg-soft);
  cursor: pointer; font-weight: 700; font-size: 1.05rem; line-height: 1.6; transition: .3s var(--ease);
}
.diag__opt:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.diag__result { text-align: center; }
.diag__result .big { font-family: var(--font-display); font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; line-height: 1; color: var(--accent); margin: 10px 0; }
.confetti { position: absolute; width: 10px; height: 14px; top: -20px; pointer-events: none; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(700px) rotate(720deg); opacity: 0; } }

/* ---------- flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; display: grid; gap: 0; }
.flow li {
  counter-increment: flow; display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0;
  border-top: 1px solid var(--line); position: relative;
}
.flow li::before {
  content: counter(flow, decimal-leading-zero); font-family: var(--font-display); font-weight: 800;
  font-size: 3.4rem; line-height: 1; color: var(--line); transition: color .5s;
}
.flow li:hover::before { color: var(--accent); }
.flow h3 { margin: 0 0 6px; font-size: 1.35rem; }
.flow p { margin: 0; color: var(--ink-sub); }
.flow .tag { font-family: var(--font-mono); font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-left: 10px; color: var(--ink-sub); vertical-align: middle; }
@media (max-width: 640px) { .flow li { grid-template-columns: 1fr; gap: 8px; } .flow li::before { font-size: 2.4rem; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 36px 20px 10px 0; }
.stat b { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.stat b sup { font-size: .4em; color: var(--accent); margin-left: 4px; }
.stat p { margin: 8px 0 0; color: var(--ink-sub); font-size: .98rem; }

/* ---------- strengths (home) ---------- */
.strength { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: 28px; border-top: 1px solid var(--line); }
.strength:nth-child(even) .strength__visual { order: -1; }
@media (max-width: 860px) { .strength { grid-template-columns: 1fr; } .strength:nth-child(even) .strength__visual { order: 0; } }
.strength h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.5; margin: 12px 0 16px; }
.strength p { color: var(--ink-sub); margin: 0; }
.strength__visual {
  aspect-ratio: 16 / 10; border-radius: 28px; background: var(--bg-soft); border: 1.5px solid var(--line);
  position: relative; overflow: hidden; display: grid; place-items: center;
}
/* mock browser */
.mock { width: 78%; background: var(--bg); border-radius: 14px; border: 1.5px solid var(--ink); overflow: hidden; box-shadow: 18px 18px 0 var(--accent); transition: transform .8s var(--ease); }
.strength:hover .mock { transform: rotate(-2deg) translateY(-6px); }
.mock__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1.5px solid var(--ink); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.mock__body { padding: 18px; display: grid; gap: 10px; }
.mock__body span { height: 10px; border-radius: 6px; background: var(--line); }
.mock__body span:nth-child(1) { width: 60%; height: 22px; background: var(--ink); }
.mock__body span:nth-child(2) { width: 90%; }
.mock__body span:nth-child(3) { width: 75%; }
.mock__body .blk { height: 70px; border-radius: 10px; background: var(--accent-soft); }
.phone { width: 42%; aspect-ratio: 9 / 18; border: 1.5px solid var(--ink); border-radius: 28px; background: var(--bg); padding: 14px; display: grid; grid-template-rows: auto 1fr; gap: 10px; box-shadow: -16px 16px 0 var(--ink); transition: transform .8s var(--ease); }
.strength:hover .phone { transform: rotate(3deg); }
.phone__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-content: start; }
.phone__grid i { aspect-ratio: 1; border-radius: 4px; background: var(--line); }
.phone__grid i:nth-child(3n+1) { background: var(--accent); opacity: .8; }
.phone__head { display: flex; gap: 8px; align-items: center; }
.phone__head b { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); }
.phone__head span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.chart { width: 70%; display: flex; align-items: flex-end; gap: 10%; height: 55%; border-bottom: 1.5px solid var(--ink); padding: 0 6%; }
.chart i { flex: 1; background: var(--ink); border-radius: 6px 6px 0 0; height: var(--h); transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease); }
.chart i:last-child { background: var(--accent); }
.is-inview .chart i { transform: scaleY(1); }
.chart i:nth-child(2) { transition-delay: .1s; } .chart i:nth-child(3) { transition-delay: .2s; } .chart i:nth-child(4) { transition-delay: .3s; }

/* ---------- FAQ ---------- */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 50px; position: relative;
  font-size: 1.18rem; font-weight: 700; line-height: 1.6; transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 16px; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .5s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--accent-soft); }
.faq summary:hover { color: var(--accent); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq details[open] .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 60px 22px 50px; color: var(--ink-sub); position: relative; }
.faq__a p::before { content: "A"; position: absolute; left: 0; top: -4px; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink-sub); }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink); color: var(--bg); border-radius: clamp(24px, 4vw, 48px); padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px);
  position: relative; overflow: hidden; isolation: isolate;
}
.cta::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; bottom: -220px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .7; animation: drift 12s ease-in-out infinite alternate;
}
.cta .h-display { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.cta p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 34em; }
.cta .btn { --b: var(--bg); --t: var(--ink); }
.cta .btn--ghost { --b: transparent; --t: var(--bg); border-color: var(--bg); }

/* ---------- forms ---------- */
.form { display: grid; gap: 28px; }
.field { display: grid; gap: 10px; }
.field label, .field legend { font-weight: 700; display: flex; align-items: center; gap: 10px; padding: 0; }
.req { font-size: .72rem; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; }
.opt { font-size: .72rem; border: 1px solid var(--line); color: var(--ink-sub); padding: 1px 8px; border-radius: 999px; }
.input {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid transparent; border-radius: 14px; padding: 16px 18px; transition: border-color .3s, background .3s, box-shadow .3s;
}
.input:focus { outline: none; border-color: var(--ink); background: var(--bg); box-shadow: 0 0 0 5px var(--accent-soft); }
textarea.input { min-height: 180px; resize: vertical; }
.field.is-error .input { border-color: var(--accent); }
.field.is-valid .input { border-color: #1f9d55; }
.field__msg { font-size: .88rem; color: var(--accent); min-height: 1.2em; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; }
.chips legend { margin-bottom: 12px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; transition: .3s var(--ease);
}
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.counter { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-sub); text-align: right; }
.form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .form-grid { grid-template-columns: 1fr; } }
.side { position: sticky; top: 110px; display: grid; gap: 20px; }
.fav-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.fav-list li { display: flex; justify-content: space-between; align-items: center; background: var(--bg-soft); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.fav-list button { border: 0; background: none; cursor: pointer; color: var(--ink-sub); font-size: 1.2rem; }
.done { text-align: center; padding: 60px 20px; display: none; }
.done.is-show { display: block; animation: fadeUp .8s var(--ease); }
.done__check { width: 110px; height: 110px; margin: 0 auto 24px; }
.done__check circle { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1s var(--ease) forwards; }
.done__check path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .6s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- search panel ---------- */
.search {
  position: fixed; inset: 0; z-index: 200; display: grid; align-items: start; justify-items: center;
  padding: clamp(16px, 10vh, 120px) 16px 16px; background: rgba(10, 10, 10, .35); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.search.is-open { opacity: 1; visibility: visible; }
.search__box {
  width: min(720px, 100%); background: var(--bg); border: 1.5px solid var(--ink); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); transform: translateY(-16px) scale(.98); transition: transform .45s var(--ease);
  max-height: calc(100svh - 32px); display: flex; flex-direction: column;
}
.search.is-open .search__box { transform: none; }
.search__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search__head svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
.search__input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.3rem; color: var(--ink); outline: none; }
.search__close { border: 1px solid var(--line); background: none; border-radius: 8px; padding: 4px 10px; font-family: var(--font-mono); font-size: .75rem; cursor: pointer; color: var(--ink-sub); }
.search__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 22px; background: var(--bg-soft); font-size: .92rem; }
.search__count { font-family: var(--font-mono); margin-right: auto; }
.search__count b { color: var(--accent); }
.search__nav { display: flex; gap: 6px; margin-left: auto; }
.search__nav button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.search__nav button:disabled { opacity: .35; cursor: default; }
.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .3s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.search__results { overflow-y: auto; padding: 8px 12px 16px; }
.search__group { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--ink-sub); padding: 14px 10px 6px; text-transform: uppercase; }
.search__item { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.search__item:hover, .search__item.is-focus { background: var(--accent-soft); }
.search__item b { display: block; font-size: 1rem; }
.search__item small { display: block; color: var(--ink-sub); font-size: .88rem; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search__item small mark { background: none; color: var(--accent); font-weight: 700; }
.search__empty, .search__hint { padding: 22px; color: var(--ink-sub); font-size: .95rem; }
.search__hint .kws { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.search__hint button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: .9rem; }
.search__hint button:hover { border-color: var(--accent); color: var(--accent); }
mark.hl { background: var(--mark); color: inherit; border-radius: 4px; padding: 0 2px; box-shadow: 0 0 0 2px var(--mark); }
mark.hl.is-current { background: var(--mark-current); color: #fff; box-shadow: 0 0 0 4px var(--mark-current); animation: pop .5s var(--ease); }
[data-section].is-filtered-out { display: none !important; }
.filter-banner {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); z-index: 150;
  background: var(--ink); color: var(--bg); border-radius: 999px; padding: 10px 10px 10px 22px; display: flex; gap: 14px; align-items: center;
  font-size: .95rem; transition: transform .5s var(--ease); width: max-content; max-width: calc(100vw - 32px);
}
.filter-banner.is-show { transform: translate(-50%, 0); }
.filter-banner button { border: 0; border-radius: 999px; background: var(--accent); color: #fff; padding: 8px 16px; cursor: pointer; font-weight: 700; white-space: nowrap; }

/* ---------- toast ---------- */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 300; background: var(--ink); color: var(--bg);
  padding: 14px 20px; border-radius: 14px; font-weight: 700; transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform .5s var(--ease), visibility .5s;
}
.toast.is-show { transform: none; visibility: visible; }

/* ---------- footer ---------- */
.footer { padding: 56px 0 28px; border-top: 1.5px solid var(--ink); margin-top: var(--section); }
.footer__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 11vw, 9rem); line-height: .9; letter-spacing: -.05em; margin: 0 0 32px; }
.footer__big i { font-style: normal; color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer h4 { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; color: var(--ink-sub); margin: 0 0 14px; font-weight: 400; }
.footer__copy { margin-top: 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--ink-sub); font-family: var(--font-mono); }
.to-top { background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: .85rem; color: var(--ink-sub); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-inview { opacity: 1; transform: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 150; width: 100%; transform-origin: left; transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}

/* ---------- small screens ---------- */
.logo { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 640px) {
  .logo__kana { display: none; }
  .logo__mark { font-size: 1.35rem; }
  .header__inner { gap: 10px; height: 68px; }
  .tools { gap: 6px; }
  .icon-btn, .search-trigger { width: 40px; height: 40px; }
  .icon-btn svg { width: 18px; height: 18px; }
  .lead br, .answer br { display: none; }
  .hero { padding-top: 110px; }
  .btn-row .btn { width: 100%; }
  .hero__meta div { min-width: 0; flex: 1 1 40%; }
}

/* ---------- blue gradient accents ---------- */
.bg-glow--lime {
  top: auto; right: auto; bottom: -30vmax; left: -25vmax; width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, rgba(198, 244, 50, .22), transparent 60%);
  animation-duration: 22s; animation-direction: alternate-reverse;
}
.btn--accent, .plan__ribbon, .req, .badge, .filter-banner button, .fav-btn[aria-pressed="true"] {
  background: var(--grad); border-color: transparent;
}
.btn--accent { box-shadow: 0 12px 30px -12px rgba(61, 75, 245, .6); }
.plan.is-featured .btn { background: var(--grad); border-color: transparent; }
.progress { background: var(--grad); }
.chart i:last-child { background: var(--grad); }
.phone__grid i:nth-child(3n+1) { background: var(--grad); }
.cta::after { background: radial-gradient(circle, #7b5cff, #3d4bf5 35%, transparent 68%); }
.plan.is-recommended { outline-color: var(--accent-2); }

/* ---------- gradient atmosphere on every page ---------- */
.page-hero::before, .hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(92, 104, 255, .22), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(198, 244, 50, .14), transparent 70%);
}
.page-hero, .hero { isolation: isolate; }
.section--soft {
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(123, 92, 255, .09), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(198, 244, 50, .1), transparent 70%),
    var(--bg-soft);
}
.cta { background: var(--grad); color: #fff; }
.cta::after { background: radial-gradient(circle, rgba(198, 244, 50, .55), transparent 65%); opacity: .6; }
.cta p { color: rgba(255, 255, 255, .85); }
.cta .eyebrow { color: rgba(255, 255, 255, .85) !important; }
.cta .btn { --b: #fff; --t: var(--accent); border-color: #fff; }
.cta .btn::before { background: #111; }
.cta .btn--ghost { --b: transparent; --t: #fff; border-color: #fff; }
.cta .btn:hover { color: #fff; border-color: #111; }
.card__icon { background: var(--grad); color: #fff; }
.plan.is-featured { background: var(--grad); border-color: transparent; color: #fff; }
.plan.is-featured .plan__for, .plan.is-featured .plan__list li { color: rgba(255, 255, 255, .85); }
.plan.is-featured .plan__list li::before { border-color: var(--lime); }
.plan.is-featured .plan__ribbon { background: var(--lime); color: #111; }
.plan.is-featured .btn { background: #fff; --t: var(--accent); color: var(--accent); }
.plan.is-featured .btn::before { background: #111; }
.plan.is-featured .btn:hover { color: #fff; border-color: #111; }
.stats { border-image: var(--grad) 1; }

@media (max-width: 860px) { .scroll-cue { display: none; } }

/* ---------- solid accent text (gradient kept for surfaces only) ---------- */
.accent, .hero__rotator > span, .page-hero__en .dot, .footer__big i { color: var(--accent); }
.logo__mark i { color: var(--accent); }
.hero__rotator > span:nth-child(2) { color: var(--accent-2); }
.hero__rotator > span:nth-child(3) { color: var(--sky); }
.h-section .en { color: var(--sky-ink); }
.answer .accent { box-shadow: inset 0 -.35em 0 var(--sky-soft); }
.flow li:hover::before { color: var(--accent); }
.cta .accent { color: var(--lime); }
.stat b sup, .card__no, .service__no { color: var(--sky-ink); }

/* ---------- third color: sky ---------- */
.bg-glow { background: radial-gradient(circle, rgba(92, 104, 255, .34), rgba(32, 184, 245, .16) 45%, transparent 65%); }
.section--soft {
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(123, 92, 255, .08), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(32, 184, 245, .09), transparent 70%),
    var(--bg-soft);
}
.tags li { background: var(--sky-soft); border-color: transparent; }
.service:hover .tags li { background: rgba(255, 255, 255, .16); }
.worry::before { color: var(--sky); opacity: .8; }
.compare .yes { color: var(--sky); }
.plan__list li::before { border-color: var(--sky); }
.eyebrow::before { background: var(--lime); }
.card:hover { border-color: var(--sky); }

/* ---------- tighter rhythm ---------- */
.h-section { margin-top: 10px; }
.hero__title { margin-top: 16px !important; }
.worries { gap: 14px; }
.worry { padding: 22px 24px; font-size: 1.1rem; }
.answer { margin-top: 32px; }
.grid, .plans { gap: 18px; }
.plan { padding: 28px 22px 22px; }
.plan__for { margin: 4px 0 14px; min-height: 0; }
.plan__list { padding-top: 14px; margin-bottom: 20px; }
.diag { padding: clamp(24px, 4vw, 44px); }
.diag__progress { margin-bottom: 24px; }
.diag__q { margin: 4px 0 18px; }
.stat { padding: 24px 16px 6px 0; }
.stat b { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.services { gap: 18px; }
.service { padding: clamp(26px, 2.6vw, 36px); }
.service__title { margin-top: 14px; }
.service__en { margin-bottom: 14px; }
.service__desc { margin-bottom: 18px; }
.tags { margin-bottom: 20px; gap: 8px; }
.why { margin-top: 18px; padding: 14px 18px; }
.form { gap: 20px; }
.footer__big { font-size: clamp(2.6rem, 8vw, 6rem); }
.crumbs { margin-bottom: 16px; }
.page-hero__ja { margin-top: 10px; }
.strength h3 { margin: 8px 0 10px; }
@media (max-width: 640px) {
  .hero { padding-top: 104px; }
  .page-hero { padding-top: 100px; }
}

/* ==========================================================
   v4: compact + framed panels + illustrations
   ========================================================== */
:root { --bg-soft: #f4f6fb; --line: #e3e7f2; --section: clamp(40px, 5vw, 68px); --shadow: 0 18px 40px -28px rgba(27, 33, 80, .35); }

/* natural Japanese line breaks */
h1, h2, h3, h4, summary, .lead, .answer, .worry, .service__desc, .card p, .strength p, .flow p, .faq__a p, .plan__for {
  word-break: auto-phrase; text-wrap: pretty; line-break: strict;
}
h1, h2, h3, .answer { text-wrap: balance; }
.lead { max-width: 36em; }

/* section heads as compact rows */
.section-head { margin-bottom: clamp(20px, 2.6vw, 32px); gap: 4px; }
.section-head--split { gap: 12px 40px; }
.eyebrow {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 10px;
  font-size: .74rem; width: fit-content; box-shadow: var(--shadow);
}
.section--soft .eyebrow { background: var(--bg); }
.h-section .en { font-size: .4em; margin-bottom: 2px; }

/* hero layouts with illustration */
.hero__grid, .page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.page-hero__grid { grid-template-columns: 1.2fr .8fr; }
.hero { padding: calc(80px + clamp(20px, 3vw, 40px)) 0 clamp(28px, 4vw, 48px); }
.page-hero { padding: calc(80px + clamp(16px, 2.4vw, 32px)) 0 clamp(24px, 3vw, 40px); }
.illust { margin: 0; position: relative; }
.illust img { width: 100%; height: auto; display: block; }
.illust--hero {
  background: linear-gradient(145deg, #fff, #eef1ff); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(12px, 2vw, 24px); box-shadow: var(--shadow); animation: fadeUp 1s var(--ease) .3s both;
}
.illust--hero::after {
  content: ""; position: absolute; inset: auto -10px -10px auto; width: 70px; height: 70px; border-radius: 22px;
  background: var(--grad); z-index: -1; opacity: .9;
}
@media (max-width: 860px) {
  .hero__grid, .page-hero__grid { grid-template-columns: 1fr; }
  .illust--hero { max-width: 460px; }
  .page-hero .illust--hero { max-width: 340px; }
}

/* frames: make sections feel filled, not empty */
.frame, .worries, .flow, .faq, .stats, .answer-panel, .strength {
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.worries { padding: clamp(14px, 2vw, 22px); gap: 12px; }
.worry { border: 1px solid var(--line); background: var(--bg-soft); padding: 16px 18px 16px 48px; font-size: 1.02rem; border-radius: 16px 16px 16px 4px; }
.worry::before { content: "?"; top: 50%; left: 14px; right: auto; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: .85rem; line-height: 24px; text-align: center; opacity: 1; font-family: var(--font-display); }
.answer-panel { margin-top: 16px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 14px 24px 14px 14px;
  background: linear-gradient(120deg, rgba(32, 184, 245, .08), rgba(123, 92, 255, .08)), var(--bg); }
.answer-panel .illust { background: var(--bg); border-radius: 16px; }
.answer-panel .answer { margin: 0; text-align: left; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
@media (max-width: 640px) { .answer-panel { grid-template-columns: 1fr; text-align: center; } .answer-panel .illust { max-width: 220px; margin: 0 auto; } }

/* strengths: each a framed 2-col card */
.strength + .strength { margin-top: 14px; }
.strength { padding: clamp(16px, 2.4vw, 28px); gap: clamp(16px, 3vw, 40px); border-top: 1px solid var(--line); grid-template-columns: 1.1fr .9fr; }
.strength__visual { aspect-ratio: auto; border: 0; border-radius: 18px; background: linear-gradient(145deg, #f7f9ff, #eaeeff); padding: 10px; overflow: hidden; }
.strength .card__no { display: inline-block; background: var(--sky-soft); padding: 2px 12px; border-radius: 999px; font-weight: 700; }
.strength h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.5; }
#synergy .strength { padding: clamp(18px, 3vw, 32px); }

/* service cards with illustration */
.service__img { margin: 0 0 14px; border-radius: 18px; background: linear-gradient(145deg, #f7f9ff, #eaeeff); padding: 8px; transition: background .4s; }
.service__img img { width: 100%; height: auto; display: block; }
.service:hover .service__img { background: rgba(255, 255, 255, .92); }
.service { box-shadow: var(--shadow); }
.service__title { margin-top: 6px; }

/* flow: framed step cards in a row */
.flow { padding: clamp(12px, 1.6vw, 18px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.flow li { display: block; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--bg-soft); position: relative; }
.flow li::before { display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 10px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: .95rem; margin-bottom: 8px; font-family: var(--font-mono); }
.flow li:hover::before { color: #fff; }
.flow h3 { font-size: 1.1rem; }
.flow p { font-size: .95rem; line-height: 1.7; }
.flow .tag { display: inline-block; margin: 4px 0 0; }

/* faq / stats framed */
.faq { padding: 4px clamp(14px, 2vw, 24px); border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 16px 52px 16px 44px; font-size: 1.05rem; }
.faq summary::before { top: 12px; font-size: 1.4rem; }
.faq summary::after { width: 30px; height: 30px; margin-top: -15px; border-color: var(--line); }
.faq__a p { padding: 0 52px 18px 44px; }
.faq__a p::before { font-size: 1.4rem; }
.stats { border-image: none; padding: 6px clamp(14px, 2vw, 24px); }
.stat { padding: 16px 12px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 18px; }
@media (max-width: 860px) { .stat:nth-child(3) { border-left: 0; padding-left: 12px; } }
.note { margin-top: 12px; }

/* tighter components */
.card { padding: 22px 22px; box-shadow: var(--shadow); }
.card h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.card__icon { width: 48px; height: 48px; border-radius: 14px; }
.card__icon svg { width: 24px; height: 24px; }
.plan { box-shadow: var(--shadow); }
.plan__price { font-size: 2.4rem; }
.table-wrap { border: 1px solid var(--line); box-shadow: var(--shadow); }
.compare th, .compare td { padding: 11px 14px; }
.diag { border: 1px solid var(--line); box-shadow: var(--shadow); }
.diag__opt { padding: 14px 18px; }
.cta { padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px); }
.cta .h-display { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.cta .lead { margin-top: 10px; }
.cta .btn-row { margin-top: 20px; }
.btn { padding: 14px 26px; font-size: 1rem; }
.btn-row { margin-top: 22px; }
.h-display { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
.page-hero__en { font-size: clamp(2.2rem, 5vw, 4rem); }
.footer { padding: 40px 0 24px; margin-top: var(--section); }
.footer__big { font-size: clamp(2.2rem, 6vw, 4.4rem); margin-bottom: 20px; }
.footer__copy { margin-top: 20px; }
.form-grid { gap: clamp(20px, 3vw, 36px); }
#contactForm { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); gap: 16px; }
.side { top: 96px; gap: 14px; }

@media (max-width: 640px) { .eyebrow { letter-spacing: .06em; font-size: .68rem; } .service__img { max-height: 190px; overflow: hidden; } .service__img img { max-height: 174px; object-fit: contain; } }

.worry { margin: 0; }
@media (min-width: 641px) and (max-width: 860px) { .worries { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   v5: white everywhere, strong borders, header band, sage green
   ========================================================== */
:root {
  --bg-soft: #ffffff;
  --sage: #8fb39a;
  --sage-soft: #eaf2ec;
  --sage-ink: #3f6b4f;
  --frame: #1b2150;
  --frame-w: 1.5px;
}

/* search overlay: not rendered at all while closed */
.search { display: none; opacity: 1; visibility: visible; }
.search.is-open { display: grid; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }

/* same white on every page */
body { background: #fff; }
.section--soft {
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(143, 179, 154, .10), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(32, 184, 245, .05), transparent 70%),
    var(--bg);
}
.section--soft + .section, .section + .section--soft { border-top: 1px dashed var(--line); }

/* header band */
.header, .header.is-scrolled {
  background: var(--sage-soft); border-bottom: var(--frame-w) solid var(--frame);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.header .icon-btn { background: #fff; border-color: var(--frame); }
.logo__kana { color: var(--sage-ink); }
.nav a::after { background: var(--sage-ink); }

/* strong, clear borders */
.frame, .worries, .flow, .faq, .stats, .answer-panel, .strength,
.card, .plan, .service, .table-wrap, .diag, #contactForm, .illust--hero, .eyebrow, .cta {
  border: var(--frame-w) solid var(--frame);
}
.plan.is-featured, .service:hover { border-color: var(--frame); }
.worry, .flow li, .diag__opt { border: 1px solid var(--frame); }
.faq details { border-bottom-color: var(--line); }
.faq summary::after { border-color: var(--frame); }
.stat + .stat { border-left-color: var(--frame); }
.compare th, .compare td { border-bottom-color: #cfd4e6; }
.compare thead th { background: var(--sage-soft); border-bottom: var(--frame-w) solid var(--frame); }
.input { border: 1.5px solid #c3c8dc; background: #fff; }
.chip span { border-color: var(--frame); }
.fav-btn { border-color: var(--frame); opacity: .85; }
.plan.is-featured .fav-btn { border-color: #fff; }
.btn--ghost { border-color: var(--frame); }
.search__box { border-color: var(--frame); }

/* sage green accents */
.eyebrow::before { background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.tags li, .strength .card__no { background: var(--sage-soft); color: var(--sage-ink); }
.service:hover .tags li { color: #fff; }
.service:hover .service__no { color: #d6ecdc; }
.plan__list li::before { border-color: var(--sage); }
.compare .yes { color: var(--sage-ink); }
.compare .col-hl { background: rgba(143, 179, 154, .14); }
.worry { background: #fff; }
.worry::before { background: var(--sage); }
.flow li { background: #fff; }
.flow li::before { background: var(--sage-ink); }
.flow li:nth-child(even)::before { background: var(--grad); }
.why b { background: var(--sage); color: #fff; }
.why { background: var(--sage-soft); border: var(--frame-w) solid var(--frame); }
.answer-panel { background: linear-gradient(120deg, var(--sage-soft), rgba(123, 92, 255, .06)), var(--bg); }
.strength__visual, .service__img { background: linear-gradient(145deg, #f3f8f4, #e9eeff); }
.illust--hero { background: linear-gradient(145deg, #f3f8f4, #eef1ff); }
.illust--hero::after { background: linear-gradient(135deg, var(--sage), #20b8f5); }
.card__icon:nth-child(1) { background: var(--grad); }
.grid .card:nth-child(3n+2) .card__icon { background: var(--sage-ink); }
.plan.is-featured .plan__list li::before { border-color: #d6ecdc; }
.plan.is-featured .plan__ribbon { background: var(--sage); color: #fff; border: 1.5px solid #fff; }
.cta .accent { color: #d6ecdc; }
.cta::after { background: radial-gradient(circle, rgba(143, 179, 154, .6), transparent 65%); }
.req { background: var(--sage-ink); }
.field.is-valid .input { border-color: var(--sage-ink); }
.footer { background: var(--sage-soft); border-top: var(--frame-w) solid var(--frame); }
.bg-glow--lime { background: radial-gradient(circle, rgba(143, 179, 154, .22), transparent 60%); }
.card:hover { border-color: var(--frame); }

/* gradient buttons: no odd edges at both ends */
.btn--accent, .plan__ribbon, .badge, .filter-banner button, .fav-btn[aria-pressed="true"], .service::before, .cta {
  background-origin: border-box; background-clip: border-box;
}
.btn--accent { border: 0; padding: 16px 28px; }
.btn--accent::before { inset: 0; border-radius: inherit; }
.header-cta.btn--accent { padding: 12px 22px; }
.header, .header.is-scrolled { background: #d7e6dc; }

/* ==========================================================
   v6: photos + design-image samples
   ========================================================== */
/* home hero photo collage */
.hero-photos { position: relative; aspect-ratio: 5 / 4.4; }
.hero-photos figure { margin: 0; position: absolute; overflow: hidden; border: var(--frame-w) solid var(--frame); background: var(--sage-soft); }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photos__main { inset: 0 12% 16% 0; border-radius: 28px; box-shadow: var(--shadow); }
.hero-photos__sub { width: 36%; aspect-ratio: 5 / 6; border-radius: 22px; box-shadow: 0 20px 40px -24px rgba(27, 33, 80, .5); }
.hero-photos__sub--a { right: 0; bottom: 0; }
.hero-photos__sub--b { right: 2%; top: 8%; width: 24%; transform: rotate(4deg); }
.hero-photos__badge {
  position: absolute; left: 4%; bottom: 4%; margin: 0; background: #fff; border: var(--frame-w) solid var(--frame); border-radius: 18px;
  padding: 10px 16px; font-size: .82rem; line-height: 1.5; color: var(--ink-sub); box-shadow: var(--shadow); max-width: 58%;
}
.hero-photos__badge b { display: block; font-size: 1.25rem; color: var(--accent); font-family: var(--font-display); }
.hero-photos__main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(32, 184, 245, .12), transparent 45%, rgba(143, 179, 154, .18)); }
@media (max-width: 860px) { .hero-photos { max-width: 520px; width: 100%; margin-top: 8px; } }

/* service cards: photo + small illustration badge */
.service__img--photo { position: relative; padding: 0; overflow: visible; background: none; border-radius: 18px; }
.service__img--photo > img:first-child { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; border: var(--frame-w) solid var(--frame); }
.service__badge {
  position: absolute; right: -6px; bottom: -14px; width: 42% !important; height: auto; background: #fff;
  border: var(--frame-w) solid var(--frame); border-radius: 14px; padding: 2px; box-shadow: var(--shadow);
}
.service:hover .service__img--photo { background: none; }
.service__img--photo + .service__no { margin-top: 10px; }
@media (max-width: 640px) { .service__img--photo { max-height: none; overflow: visible; } .service__img--photo img:first-child { max-height: none; } }

/* design-image samples */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1020px) { .samples { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .samples { grid-template-columns: 1fr; } }
.sample { background: var(--bg); border: var(--frame-w) solid var(--frame); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.sample:hover { transform: translateY(-6px); }
.sample__stage { position: relative; padding: 18px 18px 22px; background: linear-gradient(145deg, #f3f8f4, #e9eeff); border-bottom: var(--frame-w) solid var(--frame); }
.browser { background: #fff; border: 1.5px solid var(--frame); border-radius: 10px; overflow: hidden; width: 86%; box-shadow: 0 16px 30px -20px rgba(27, 33, 80, .45); }
.browser__bar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; background: #f1f3f9; border-bottom: 1px solid #d9deeb; }
.browser__bar i { width: 6px; height: 6px; border-radius: 50%; background: #c9cfe0; }
.browser__bar i:first-child { background: #ff8a8a; } .browser__bar i:nth-child(2) { background: #ffd36b; } .browser__bar i:nth-child(3) { background: #8fd19e; }
.browser__bar span { margin-left: 8px; flex: 1; font-family: var(--font-mono); font-size: .56rem; color: #7a809a; background: #fff; border-radius: 4px; padding: 0 6px; line-height: 1.6; overflow: hidden; white-space: nowrap; }
.site { --c: #3d4bf5; }
.site__nav { display: flex; align-items: center; gap: 6px; padding: 6px 10px; }
.site__nav b { font-size: .62rem; margin-right: auto; color: #1b2150; letter-spacing: .02em; white-space: nowrap; }
.site__nav span { width: 18px; height: 3px; border-radius: 2px; background: #c9cfe0; }
.site__hero { position: relative; aspect-ratio: 16 / 8.2; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; }
.site__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 70%); }
.site__hero p { position: relative; margin: 0; color: #fff; font-weight: 700; font-size: .78rem; line-height: 1.4; letter-spacing: .04em; }
.site__hero em { position: relative; font-style: normal; font-size: .5rem; color: #fff; background: var(--c); width: fit-content; padding: 1px 8px; border-radius: 999px; margin-top: 5px; }
.site__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 7px 10px 9px; }
.site__row span { height: 16px; border-radius: 4px; background: #eef1f8; }
.site--cafe { --c: #8a5a3b; } .site--salon { --c: #3d4bf5; } .site--bakery { --c: #c07a2c; }
.site--washoku { --c: #3f6b4f; } .site--seitai { --c: #20a0d8; } .site--atelier { --c: #6b5a45; }
.site--washoku .site__hero p, .site--cafe .site__hero p { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.phone-mock {
  position: absolute; right: 14px; bottom: 12px; width: 27%; aspect-ratio: 9 / 17.5; background: #fff; border: 1.5px solid var(--frame);
  border-radius: 14px; padding: 5px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 16px 30px -16px rgba(27, 33, 80, .55);
}
.phone-mock__hero { aspect-ratio: 1 / 1.05; border-radius: 8px; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 5px; overflow: hidden; }
.phone-mock__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 70%); }
.phone-mock__hero p { position: relative; margin: 0; color: #fff; font-size: .45rem; line-height: 1.35; font-weight: 700; }
.phone-mock > span { height: 5px; border-radius: 3px; background: #e3e7f2; }
.phone-mock > span.short { width: 60%; }
.sample__body { padding: 14px 18px 18px; }
.sample__tag { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; font-size: .78rem; font-weight: 700; }
.sample__tag span { background: var(--sage-soft); color: var(--sage-ink); border-radius: 999px; padding: 2px 10px; }
.sample__tag .sample__plan { background: var(--accent-soft); color: var(--accent); }
.sample h3 { margin: 0 0 4px; font-size: 1.15rem; font-family: var(--font-display); }
.sample__body p:last-child { margin: 0; font-size: .92rem; color: var(--ink-sub); line-height: 1.7; }
#samples .btn-row { margin-top: 20px; }

.hero-photos__badge, .sample__body p, .sample__tag { word-break: auto-phrase; }

/* ==========================================================
   v7: pure white pages, blue gradient header, photo backgrounds
   ========================================================== */
body, .section, .section--soft { background: #fff; }
.bg-grid, .bg-glow { display: none; }
.hero::before, .page-hero::before { content: none; }
.section--soft + .section, .section + .section--soft { border-top: 0; }
.footer { background: #fff; }

/* header: blue gradient band */
.header .logo__mark, .header .nav a { color: #fff; }
.header .logo__mark i { color: #d6ecdc; }
.header .logo__kana { color: rgba(255, 255, 255, .85); }
.header .nav a::after { background: #fff; }
.header .icon-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .24); }
.header .search-trigger kbd { color: #fff; border-color: rgba(255, 255, 255, .6); }
.header .badge { background: #8fb39a; box-shadow: 0 0 0 2px #fff; }
.header .header-cta.btn--accent { background: #fff; color: var(--accent); box-shadow: none; }
.header .header-cta.btn--accent::before { background: #1b2150; }
.header .header-cta.btn--accent:hover { color: #fff; }

/* hero / page hero with background photo (fades to white on the left) */
.has-photo { position: relative; isolation: isolate; background: #fff; overflow: hidden; }
.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #fff 0%, #fff 34%, rgba(255, 255, 255, .82) 48%, rgba(255, 255, 255, .15) 68%, rgba(255, 255, 255, 0) 80%),
    var(--photo) right center / cover no-repeat;
}
.hero.has-photo { min-height: min(680px, 88svh); }
.hero.has-photo .hero__grid, .page-hero.has-photo .page-hero__grid { grid-template-columns: minmax(0, 620px); }
.page-hero.has-photo { min-height: 380px; display: flex; align-items: center; }
.page-hero.has-photo .container { width: min(100% - var(--gutter) * 2, var(--container)); }
@media (max-width: 860px) {
  .has-photo::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .55) 30%, #fff 58%),
      var(--photo) 70% top / auto 62% no-repeat;
  }
  .hero.has-photo { padding-top: calc(80px + 34vw); min-height: 0; }
  .page-hero.has-photo { padding-top: calc(80px + 30vw); min-height: 0; }
}

/* hero feature chips (like tags) */
.hero-chips { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 8px; width: fit-content; }
.hero-chips li {
  display: flex; align-items: center; gap: 8px; background: #fff; border: var(--frame-w) solid var(--frame); border-radius: 12px;
  padding: 8px 14px; font-weight: 700; font-size: .92rem; white-space: nowrap; box-shadow: var(--shadow);
}
.hero-chips b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .75rem; }
@media (max-width: 640px) { .hero-chips { grid-template-columns: 1fr 1fr; width: 100%; } }

/* CTA with photo */
.cta {
  background:
    linear-gradient(100deg, rgba(32, 184, 245, .93), rgba(61, 75, 245, .9) 50%, rgba(123, 92, 255, .86)),
    var(--cta-photo, none) center / cover no-repeat;
}

/* ==========================================================
   v8: background photos as real <img> (robust in all browsers)
   ========================================================== */
.has-photo::after { content: none !important; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg img { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, #fff 30%, rgba(255, 255, 255, .85) 42%, rgba(255, 255, 255, .2) 60%, rgba(255, 255, 255, 0) 72%);
}
@media (max-width: 860px) {
  .hero-bg img { width: 100%; height: 52%; object-position: 65% 30%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 28%, #fff 52%); }
}

.cta { position: relative; isolation: isolate; background: linear-gradient(100deg, rgba(32, 184, 245, .93), rgba(61, 75, 245, .9) 50%, rgba(123, 92, 255, .86)); }
.cta-bg { position: absolute; inset: 0; z-index: -2; border-radius: inherit; overflow: hidden; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(32, 184, 245, .9), rgba(61, 75, 245, .88) 50%, rgba(123, 92, 255, .84)); }
.cta::after { z-index: -1; }

/* ==========================================================
   v9: white header, solid blue (no gradients), brighter photos
   ========================================================== */
/* --- solid blue instead of gradients --- */
.btn--accent, .plan__ribbon, .req, .badge, .filter-banner button, .fav-btn[aria-pressed="true"],
.service::before, .card__icon, .hero-chips b, .progress, .flow li::before, .chart i:last-child,
.phone__grid i:nth-child(3n+1), .phone__head b, .plan.is-featured, .plan.is-featured .btn, .worry::before {
  background-image: none;
}
.btn--accent, .plan__ribbon, .badge, .filter-banner button, .fav-btn[aria-pressed="true"], .hero-chips b, .progress, .card__icon { background-color: var(--accent); }
.service::before { background-color: var(--accent); }
.plan.is-featured { background-color: var(--accent); }
.plan.is-featured .btn { background-color: #fff; }
.flow li::before { background-color: var(--sage-ink); }
.flow li:nth-child(even)::before { background-color: var(--accent); }
.worry::before, .plan__ribbon { background-color: var(--sage-ink); }
.req { background-color: var(--sage-ink); }
.grid .card:nth-child(3n+2) .card__icon { background-color: var(--sage-ink); }
.illust--hero::after { background: var(--accent); }
.cta, .cta-bg::after { background-image: none; background-color: rgba(61, 75, 245, .88); }
.cta { background-color: var(--accent); }
.btn--accent { box-shadow: 0 10px 24px -14px rgba(61, 75, 245, .8); }

/* --- header: white, like the reference --- */
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header .logo__mark { color: var(--ink); }
.header .logo__mark i { color: var(--accent); }
.header .logo__kana { color: var(--ink-sub); }
.header .nav a { color: var(--ink); }
.header .nav a::after { background: var(--accent); }
.header .icon-btn:hover { border-color: var(--accent); }
.header .search-trigger kbd { color: var(--ink-sub); border-color: var(--line); }
.header .badge { background: var(--accent); box-shadow: none; }
.header .header-cta.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -14px rgba(61, 75, 245, .8); }
.header .header-cta.btn--accent::before { background: #1b2150; }
.header .header-cta.btn--accent:hover { color: #fff; }

/* --- keep the page white around the photo --- */
.hero-bg img { filter: brightness(1.07) saturate(1.02); width: 66%; }
.hero-bg::after {
  background: linear-gradient(90deg, #fff 0%, #fff 36%, rgba(255, 255, 255, .92) 46%, rgba(255, 255, 255, .45) 60%, rgba(255, 255, 255, .08) 74%, rgba(255, 255, 255, 0) 84%);
}
.hero.has-photo, .page-hero.has-photo { background: #fff; }
@media (max-width: 860px) {
  .hero-bg img { width: 100%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .5) 26%, #fff 50%); }
}

/* --- soft pastel glow (very light), like the reference --- */
.hero.has-photo::before, .page-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 70% at 96% 0%, rgba(123, 92, 255, .10), transparent 70%),
    radial-gradient(34% 60% at 0% 100%, rgba(198, 244, 50, .10), transparent 70%);
}

/* --- lighter, cleaner surfaces --- */
:root { --shadow: 0 10px 30px -22px rgba(27, 33, 80, .3); }
.strength__visual, .service__img, .illust--hero, .sample__stage { background: #f6f8ff; }
.answer-panel { background: #fff; }
.why { background: var(--sage-soft); }

/* ==========================================================
   v10: white page, light-grey panels
   ========================================================== */
:root { --panel: #f4f5f7; --panel-line: #e6e7ec; }

/* outer blocks: light grey fill */
.card, .plan, .service, .worries, .flow, .faq, .stats, .strength, .answer-panel, .sample,
.diag, #contactForm, .table-wrap, .hero-chips li, .why, .eyebrow, .illust--hero {
  background-color: var(--panel);
}
.sample__stage, .strength__visual, .service__img, .illust--hero { background: var(--panel-line); }
.sample { overflow: hidden; }

/* inner items inside grey panels: white, for contrast */
.worry, .flow li, .diag__opt, .input, .compare, .browser, .fav-list li, .sample__body { background-color: #fff; }
.compare thead th { background: var(--panel); }
.compare tbody tr:hover { background: rgba(61, 75, 245, .06); }
.compare .col-hl { background: rgba(143, 179, 154, .12); }

/* keep accent blocks as they are */
.plan.is-featured { background-color: var(--accent); }
.service:hover { background-color: var(--accent); }
.cta { background-color: var(--accent); }
.card:hover { background-color: #fff; }

/* lighter frame lines so grey panels read softly */
:root { --frame: #cfd2dd; --frame-w: 1.5px; }
.card, .plan, .service, .worries, .flow, .faq, .stats, .strength, .answer-panel, .sample, .diag,
#contactForm, .table-wrap, .illust--hero, .eyebrow, .hero-chips li, .why { border-color: var(--frame); }
.worry, .flow li, .diag__opt { border-color: var(--panel-line); }
.faq details { border-bottom-color: var(--panel-line); }
.stat + .stat { border-left-color: var(--panel-line); }

/* home hero photo: keep the subject visible */
.hero .hero-bg img { object-position: 60% center; }
@media (max-width: 860px) { .hero .hero-bg img { object-position: 62% 28%; } }

/* ---------- header (light only) ---------- */
.header, .header.is-scrolled {
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 0; box-shadow: none; color: var(--ink);
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header .icon-btn { background: #fff; border-color: var(--line); color: var(--ink); }
.header .icon-btn:hover { border-color: var(--accent); }
.header .logo__mark { color: var(--ink); }
.header .logo__mark i { color: var(--accent); }

/* ==========================================================
   v11: full-width hero photo, below the header, tighter left margin
   ========================================================== */
.hero-bg { top: 80px; }                 /* ヘッダーに写真がかからないように */
@media (max-width: 640px) { .hero-bg { top: 68px; } }
.hero-bg img, .hero .hero-bg img { width: 100%; height: 100%; object-position: center; filter: none; }
.hero-bg::after {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .95) 26%, rgba(255, 255, 255, .78) 42%,
    rgba(255, 255, 255, .35) 58%, rgba(255, 255, 255, .06) 72%, rgba(255, 255, 255, 0) 84%);
}
.hero.has-photo, .page-hero.has-photo { background: #fff; }
.hero.has-photo { min-height: min(720px, 92svh); padding-top: calc(80px + clamp(24px, 4vw, 48px)); }

/* left margin: use more of the screen */
.hero .container, .page-hero .container { width: min(100% - var(--gutter) * 1.2, 1320px); }
@media (min-width: 1200px) { .hero .container, .page-hero .container { padding-left: clamp(0px, 2vw, 28px); } }

@media (max-width: 860px) {
  .hero .hero-bg img, .page-hero .hero-bg img { height: 58%; object-position: 62% 22%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .5) 24%, #fff 48%); }
  .hero.has-photo { min-height: 0; padding-top: calc(68px + 36vw); }
}

/* ==========================================================
   v12: home hero shows the whole photo (no cropping)
   ========================================================== */
.hero .hero-bg { top: 80px; bottom: auto; height: auto; }
.hero .hero-bg img { position: static; width: 100%; height: auto; object-fit: contain; }
.hero.has-photo { min-height: calc(80px + 100vw / 1.779); padding-top: calc(80px + clamp(16px, 3vw, 40px)); }
@media (max-width: 640px) { .hero .hero-bg { top: 68px; } }
@media (max-width: 860px) {
  .hero.has-photo { min-height: 0; padding-top: calc(68px + 100vw / 1.779 - 12vw); }
  .hero .hero-bg img { height: auto; object-position: center; }
  .hero .hero-bg::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .25) 42%, rgba(255, 255, 255, .9) 62%, #fff 74%); }
}

/* ==========================================================
   v13: hero text sits higher + quick links at the bottom
   ========================================================== */
.hero.has-photo { align-items: flex-start; padding-top: calc(80px + clamp(12px, 2vw, 24px)); padding-bottom: clamp(20px, 3vw, 36px); }
.hero .eyebrow { margin-top: 0; }
.hero__title { margin-top: 10px !important; }
.hero .lead { margin-top: 12px; }
.hero-chips { margin-top: 14px; }
.hero .btn-row { margin-top: 16px; }

.hero-links { list-style: none; margin: clamp(18px, 3vw, 34px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 760px; }
.hero-links a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 10px;
  background: rgba(255, 255, 255, .86); border: var(--frame-w) solid var(--frame); border-radius: 14px;
  padding: 12px 14px; text-decoration: none; font-weight: 700; backdrop-filter: blur(6px);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.hero-links a:hover { border-color: var(--accent); transform: translateY(-3px); background: #fff; }
.hero-links .num { color: var(--sky-ink); font-size: .8rem; }
.hero-links em { grid-column: 1 / -1; font-style: normal; font-weight: 400; font-size: .84rem; color: var(--ink-sub); }
.hero-links b { color: var(--accent); }
@media (max-width: 860px) { .hero-links { grid-template-columns: 1fr; max-width: none; } .hero-links em { grid-column: 2 / -1; } }

@media (max-width: 860px) {
  .hero.has-photo { padding-top: calc(68px + 100vw / 1.779 + 10px); }
  .hero .hero-bg::after { background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(255,255,255,.7) 88%, #fff 100%); }
}

/* hero quick links: even widths, no awkward wrapping */
.hero-links { max-width: 820px; }
.hero-links a { grid-template-columns: auto 1fr auto; align-content: start; }
.hero-links a > span.num { white-space: nowrap; }
.hero-links a { font-size: .95rem; }
.hero-links a > :not(em):not(.num):not(b), .hero-links a { word-break: keep-all; }
.hero-links em { font-size: .8rem; line-height: 1.6; }
@media (min-width: 861px) { .hero-links { grid-template-columns: 1.15fr 1fr 1fr; } }

/* header logo: a touch bigger (position unchanged) */
.logo__mark { font-size: 1.75rem; }
.logo__kana { font-size: .74rem; }
@media (max-width: 640px) { .logo__mark { font-size: 1.45rem; } }

/* hero lead: a touch smaller (all pages) */
.hero .lead, .page-hero .lead { font-size: clamp(.98rem, 1.4vw, 1.12rem); }

/* ==========================================================
   v14: warm palette — vermilion / orange / yellow / green
   ========================================================== */
:root {
  --accent: #f26522;          /* オレンジ（主役） */
  --accent-2: #e8452b;        /* 朱色 */
  --accent-soft: rgba(242, 101, 34, .10);
  --yellow: #ffd400;
  --yellow-soft: #fff3c4;
  --sky: #fbb03b;             /* 黄みのオレンジ */
  --sky-soft: rgba(251, 176, 59, .14);
  --sky-ink: #0e8f70;         /* 英字ラベル・番号に使う緑 */
  --sage: #12a37f;            /* 緑 */
  --sage-soft: #e4f5ee;
  --sage-ink: #0e7a60;
  --lime: #ffd400;
  --grad: linear-gradient(95deg, #fbb03b 0%, #f26522 55%, #e8452b 100%);
  --mark: #ffe066;
  --mark-current: #f26522;
  --frame: #d8d2c8;
  --panel: #fdf8f3;
  --panel-line: #f0e7dc;
  --line: #e9e3da;
  --shadow: 0 10px 30px -22px rgba(80, 50, 20, .38);
}

/* blue leftovers -> warm */
.btn--accent { box-shadow: 0 10px 24px -14px rgba(242, 101, 34, .85); }
.header .header-cta.btn--accent { box-shadow: 0 10px 24px -14px rgba(242, 101, 34, .85); }
.compare tbody tr:hover { background: rgba(242, 101, 34, .07); }
.compare .col-hl { background: rgba(251, 176, 59, .16); }
.compare .yes { color: var(--sage); }
.plan:hover { box-shadow: 0 30px 60px -30px rgba(120, 60, 20, .32); }
.service:hover, .service:focus-visible { box-shadow: 0 40px 70px -30px rgba(242, 101, 34, .5); }
.hero-links .num { color: var(--sage-ink); }
.sample__tag .sample__plan { background: var(--accent-soft); color: var(--accent-2); }
.hero__rotator > span { color: var(--accent-2); }
.hero__rotator > span:nth-child(2) { color: var(--accent); }
.hero__rotator > span:nth-child(3) { color: var(--sage); }
.h-section .en { color: var(--sage-ink); }
.stat b sup, .card__no, .service__no { color: var(--accent-2); }
.flow li::before { background-color: var(--sage); }
.flow li:nth-child(even)::before { background-color: var(--accent); }
.worry::before, .plan__ribbon, .req { background-color: var(--accent-2); }
.grid .card:nth-child(3n+2) .card__icon { background-color: var(--sage); }
.grid .card:nth-child(3n) .card__icon { background-color: var(--sky); }
.card__icon { background-color: var(--accent); }
.hero-chips b { background-color: var(--accent); }
.hero-chips li:nth-child(2) b { background-color: var(--sage); }
.hero-chips li:nth-child(3) b { background-color: var(--accent-2); }
.hero-chips li:nth-child(4) b { background-color: var(--sky); }
.field.is-valid .input { border-color: var(--sage); }
.illust--hero::after { background: var(--accent); }
.strength__visual, .service__img, .illust--hero, .sample__stage { background: #fff6ee; }
.why b { background: var(--sage); }
.eyebrow::before { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 212, 0, .28); }
.plan.is-featured { background-color: var(--accent); }
.plan.is-featured .plan__ribbon { background: var(--yellow); color: #33302b; }
.plan.is-featured .plan__list li::before { border-color: #ffe9a3; }
.plan.is-featured .btn { color: var(--accent-2); }
.service:hover .service__no { color: var(--yellow); }
.cta, .cta-bg::after { background-color: rgba(242, 101, 34, .9); }
.cta .accent { color: var(--yellow); }
.cta::after { background: radial-gradient(circle, rgba(255, 212, 0, .55), transparent 65%); }
.btn--accent { background-color: var(--accent); }

/* yellow marker highlight, like the reference */
.answer .accent { box-shadow: inset 0 -.32em 0 rgba(255, 212, 0, .75); color: var(--ink); }
.page-hero .lead strong.accent, .hero .lead strong.accent { color: var(--accent-2); }

/* ==========================================================
   v15: PC でも文字側は「完全な白」に（写真の透けを止める）
   ========================================================== */
@media (min-width: 861px) {
  .hero-bg::after {
    background: linear-gradient(90deg,
      #fff 0%, #fff 38%,
      rgba(255, 255, 255, .92) 46%, rgba(255, 255, 255, .55) 58%,
      rgba(255, 255, 255, .18) 70%, rgba(255, 255, 255, 0) 82%);
  }
  .hero-bg img { filter: brightness(1.05); }
}

/* ==========================================================
   v16: 数字は読みやすい書体（Outfit）に統一
   ========================================================== */
:root { --font-num: "Outfit", "Zen Kaku Gothic New", sans-serif; }
.plan__price, .stat b, .compare .num, .compare td, .hero-links .num, .card__no, .service__no,
.sample__tag, .num, .counter, .search__count, .flow li::before, .diag__result .big, .footer__copy span {
  font-family: var(--font-num);
  font-feature-settings: "tnum" 1;
  letter-spacing: .01em;
}
.plan__price { font-weight: 800; letter-spacing: -.01em; }
.stat b { font-weight: 800; }
.compare td, .compare .num { font-size: 1rem; letter-spacing: .02em; }
.card__no, .service__no, .hero-links .num { font-weight: 700; letter-spacing: .06em; }
.flow li::before { font-weight: 700; font-size: 1rem; }
.hero-chips li { font-family: var(--font-body); }
.hero-chips li:first-child { font-family: var(--font-num); font-weight: 700; letter-spacing: .02em; }
.plan__price small, .stat b sup { font-family: var(--font-body); }

/* ==========================================================
   v17: ダークモード（暖色パレット版）
   ========================================================== */
:root[data-theme="dark"] {
  --bg: #16130f;
  --bg-soft: #16130f;
  --ink: #f6f1ea;
  --ink-sub: #b3aaa0;
  --line: #322c25;
  --panel: #1f1a15;
  --panel-line: #2b241d;
  --frame: #453b31;
  --accent: #ff7a3c;
  --accent-2: #ff6a4d;
  --accent-soft: rgba(255, 122, 60, .16);
  --yellow: #ffd400;
  --sky: #f7a94b;
  --sky-soft: rgba(247, 169, 75, .16);
  --sky-ink: #ffb066;
  --sage: #29bb95;
  --sage-soft: rgba(41, 187, 149, .16);
  --sage-ink: #4fd4ad;
  --mark: #7a5c00;
  --mark-current: #ff7a3c;
  --glass: rgba(22, 19, 15, .8);
  --shadow: 0 14px 34px -24px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
:root[data-theme="dark"] body,
:root[data-theme="dark"] .section,
:root[data-theme="dark"] .section--soft { background: var(--bg); }
:root[data-theme="dark"] .header,
:root[data-theme="dark"] .header.is-scrolled { background: rgba(22, 19, 15, .86); color: var(--ink); }
:root[data-theme="dark"] .header .icon-btn { background: #221c16; border-color: var(--frame); color: var(--ink); }
:root[data-theme="dark"] .header .logo__mark { color: var(--ink); }
:root[data-theme="dark"] .footer { background: var(--bg); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .plan, :root[data-theme="dark"] .service,
:root[data-theme="dark"] .worries, :root[data-theme="dark"] .flow, :root[data-theme="dark"] .faq,
:root[data-theme="dark"] .stats, :root[data-theme="dark"] .strength, :root[data-theme="dark"] .answer-panel,
:root[data-theme="dark"] .sample, :root[data-theme="dark"] .diag, :root[data-theme="dark"] #contactForm,
:root[data-theme="dark"] .table-wrap, :root[data-theme="dark"] .hero-chips li, :root[data-theme="dark"] .why,
:root[data-theme="dark"] .eyebrow, :root[data-theme="dark"] .illust--hero { background-color: var(--panel); }
:root[data-theme="dark"] .worry, :root[data-theme="dark"] .flow li, :root[data-theme="dark"] .diag__opt,
:root[data-theme="dark"] .input, :root[data-theme="dark"] .compare, :root[data-theme="dark"] .fav-list li,
:root[data-theme="dark"] .sample__body, :root[data-theme="dark"] .card:hover { background-color: #15110d; }
:root[data-theme="dark"] .compare thead th { background: #241d17; }
:root[data-theme="dark"] .compare th, :root[data-theme="dark"] .compare td { border-bottom-color: #2e2720; }
:root[data-theme="dark"] .compare tbody tr:hover { background: rgba(255, 122, 60, .1); }
:root[data-theme="dark"] .compare .col-hl { background: rgba(247, 169, 75, .12); }
:root[data-theme="dark"] .strength__visual, :root[data-theme="dark"] .service__img,
:root[data-theme="dark"] .sample__stage, :root[data-theme="dark"] .illust--hero { background: #241d17; }
:root[data-theme="dark"] .browser { background: #efe9e2; }
:root[data-theme="dark"] .hero-links a { background: rgba(31, 26, 21, .9); }
:root[data-theme="dark"] .search__box { background: var(--panel); }
:root[data-theme="dark"] .search__bar { background: #241d17; }
:root[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(22, 19, 15, .9) 46%, rgba(22, 19, 15, .5) 60%, rgba(22, 19, 15, .1) 74%, transparent 84%);
}
@media (max-width: 860px) {
  :root[data-theme="dark"] .hero-bg::after,
  :root[data-theme="dark"] .hero .hero-bg::after {
    background: linear-gradient(180deg, transparent 0%, rgba(22, 19, 15, .5) 40%, var(--bg) 62%);
  }
}
:root[data-theme="dark"] .hero-bg img { filter: brightness(.9) saturate(.95); }
:root[data-theme="dark"] .plan.is-featured .btn { background: #fff; }
:root[data-theme="dark"] .btn--ghost { color: var(--ink); }
:root[data-theme="dark"] .fav-btn { color: var(--ink); }
:root[data-theme="dark"] .toast, :root[data-theme="dark"] .filter-banner { background: #2b241d; color: var(--ink); }


/* ==========================================================
   v18: 黄色マーカー＆華やかさの追加
   ========================================================== */
.mk {
  font-weight: 700; color: inherit; padding: 0 .06em;
  background-image: linear-gradient(rgba(255, 212, 0, .72), rgba(255, 212, 0, .72));
  background-repeat: no-repeat; background-position: 0 86%; background-size: 100% 38%;
  transition: background-size .9s var(--ease) .15s;
}
.mk--g { background-image: linear-gradient(rgba(41, 187, 149, .35), rgba(41, 187, 149, .35)); }
.mk--o { background-image: linear-gradient(rgba(242, 101, 34, .28), rgba(242, 101, 34, .28)); }
.reveal:not(.is-inview) .mk { background-size: 0 38%; }
.hero .mk, .page-hero .mk { animation: mkDraw 1s var(--ease) .7s both; }
@keyframes mkDraw { from { background-size: 0 38%; } to { background-size: 100% 38%; } }
:root[data-theme="dark"] .mk { background-image: linear-gradient(rgba(255, 212, 0, .38), rgba(255, 212, 0, .38)); }
:root[data-theme="dark"] .mk--g { background-image: linear-gradient(rgba(41, 187, 149, .32), rgba(41, 187, 149, .32)); }
:root[data-theme="dark"] .mk--o { background-image: linear-gradient(rgba(255, 122, 60, .3), rgba(255, 122, 60, .3)); }
.cta .mk { background-image: linear-gradient(rgba(255, 212, 0, .45), rgba(255, 212, 0, .45)); }
@media (prefers-reduced-motion: reduce) { .mk { background-size: 100% 38% !important; animation: none !important; } }

/* 見出しの英字ラベルに小さな下線アクセント */
.h-section .en { position: relative; display: block; width: fit-content; padding-bottom: 3px; margin-bottom: 6px; }
.h-section .en::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: var(--yellow); opacity: .85; }

/* ==========================================================
   v19: 制作イメージ → サンプルサイトを開く
   ========================================================== */
.sample__link { display: block; position: relative; text-decoration: none; color: inherit; cursor: pointer; }
.sample__link::after {
  content: ""; position: absolute; inset: 0; background: rgba(22, 19, 15, .45);
  opacity: 0; transition: opacity .35s var(--ease);
}
.sample__open {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .92rem;
  border-radius: 999px; padding: 12px 22px; white-space: nowrap; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity .35s var(--ease), translate .35s var(--ease);
}
.sample:hover .sample__link::after, .sample__link:focus-visible::after { opacity: 1; }
.sample:hover .sample__open, .sample__link:focus-visible .sample__open { opacity: 1; translate: -50% -50%; }
.sample__actions { margin: 12px 0 0; }
.btn--xs { padding: 10px 18px; font-size: .9rem; }
@media (hover: none) { .sample__open { opacity: 1; bottom: 10px; top: auto; translate: -50% 0; font-size: .82rem; padding: 9px 16px; } .sample__link::after { opacity: .18; } }

/* ==========================================================
   v20: 4プランの位置づけ（ステップ表示）
   ========================================================== */
.ladder { margin-top: 20px; background: var(--panel); border: var(--frame-w) solid var(--frame); border-radius: 20px; padding: 20px 22px; }
.ladder__ttl { margin: 0 0 14px; font-weight: 700; font-size: 1.02rem; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: ld; }
.ladder li {
  counter-increment: ld; background: #fff; border: 1px solid var(--panel-line); border-radius: 14px;
  padding: 14px 16px; display: grid; gap: 4px; position: relative;
}
.ladder li::after { content: "→"; position: absolute; right: -11px; top: 50%; translate: 0 -50%; color: var(--accent); font-weight: 700; }
.ladder li:last-child::after { content: none; }
.ladder b { font-family: var(--font-num); font-size: .88rem; letter-spacing: .1em; color: var(--accent); }
.ladder span { font-size: .95rem; font-weight: 700; line-height: 1.6; }
:root[data-theme="dark"] .ladder li { background: #15110d; }
@media (max-width: 860px) {
  .ladder ol { grid-template-columns: 1fr; }
  .ladder li::after { content: "↓"; right: 50%; top: auto; bottom: -13px; translate: 50% 0; }
}

/* ==========================================================
   v21: 日本語の改行を自然に（単語の途中で折り返さない）
   ========================================================== */
.plan__list li, .plan__for, .plan__name, .ladder span, .ladder__ttl,
.compare th, .compare td, .tags li, .hero-chips li, .hero-links a, .hero-links em,
.sample__body, .sample__tag, .card h3, .card p, .service__title, .service__desc,
.flow h3, .flow p, .worry, .faq summary, .faq__a p, .why, .note, .lead, .answer,
.field label, .chip span, .search__item b, .search__item small, .stat p {
  word-break: auto-phrase;
  overflow-wrap: normal;
  line-break: strict;
}
/* auto-phrase 非対応ブラウザ向けの保険：単語の途中では折り返さない */
@supports not (word-break: auto-phrase) {
  .plan__list li, .ladder span, .compare th, .compare td, .tags li, .hero-chips li { word-break: keep-all; overflow-wrap: break-word; }
}
.plan__list li { line-height: 1.65; }
.compare th[scope="row"] { text-align: left; }

/* v21b: 短い項目は単語の途中で折り返さない（「ドメイン管／理」対策） */
.plan__list li, .plan__for, .ladder span, .tags li, .hero-chips li,
.compare th, .compare td, .flow h3, .card h3, .sample__tag span, .chip span {
  word-break: keep-all;
  overflow-wrap: normal;
}
.compare thead th, .compare td.num { white-space: nowrap; }
.compare th[scope="row"] { word-break: auto-phrase; }

/* ==========================================================
   v22: ヒーロー下の3リンクをカラーカードに
   ========================================================== */
.hero-links a {
  background: var(--accent); color: #fff; border-color: transparent;
  box-shadow: 0 14px 30px -18px rgba(80, 40, 10, .7);
}
.hero-links li:nth-child(2) a { background: var(--sage); }
.hero-links li:nth-child(3) a { background: var(--accent-2); }
.hero-links .num { color: rgba(255, 255, 255, .78); }
.hero-links em { color: rgba(255, 255, 255, .88); }
.hero-links b { color: #ffd400; }
.hero-links a:hover {
  background: var(--ink); border-color: transparent; transform: translateY(-4px);
  box-shadow: 0 20px 36px -18px rgba(0, 0, 0, .55);
}
.hero-links a:hover .num, .hero-links a:hover em { color: rgba(255, 255, 255, .85); }
:root[data-theme="dark"] .hero-links a { background: var(--accent); }
:root[data-theme="dark"] .hero-links li:nth-child(2) a { background: var(--sage); color: #0f1a15; }
:root[data-theme="dark"] .hero-links li:nth-child(2) a .num,
:root[data-theme="dark"] .hero-links li:nth-child(2) a em { color: rgba(15, 26, 21, .75); }
:root[data-theme="dark"] .hero-links li:nth-child(3) a { background: var(--accent-2); }

/* v22b: 01=朱色 / 02=緑 / 03=黄色 */
.hero-links li:nth-child(1) a { background: var(--accent-2); color: #fff; }
.hero-links li:nth-child(2) a { background: var(--sage); color: #fff; }
.hero-links li:nth-child(3) a { background: var(--yellow); color: #33302b; }
.hero-links li:nth-child(3) a .num { color: rgba(51, 48, 43, .7); }
.hero-links li:nth-child(3) a em { color: rgba(51, 48, 43, .78); }
.hero-links li:nth-child(3) a b { color: #b3410f; }
.hero-links li:nth-child(3) a:hover { background: var(--ink); color: #fff; }
.hero-links li:nth-child(3) a:hover .num, .hero-links li:nth-child(3) a:hover em { color: rgba(255, 255, 255, .85); }
.hero-links li:nth-child(3) a:hover b { color: var(--yellow); }
:root[data-theme="dark"] .hero-links li:nth-child(1) a { background: var(--accent-2); color: #fff; }
:root[data-theme="dark"] .hero-links li:nth-child(3) a { background: var(--yellow); color: #33302b; }

/* ==========================================================
   v23: プランカードの幅を4枚とも均等に
   ========================================================== */
.plans { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.plan { min-width: 0; }
.plan__list li { overflow-wrap: anywhere; }
/* 価格・リストの開始位置を揃える */
.plan__name { min-height: 3.1em; align-items: flex-start; }
.plan__for { min-height: 3.4em; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan__name, .plan__for { min-height: 0; } }
/* SNSページの3枚も同様に */
#plans .plans[style] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 960px) { #plans .plans[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { #plans .plans[style] { grid-template-columns: minmax(0, 1fr) !important; } }

/* ==========================================================
   v24: 文字の縦位置・余白を全ページで整える
   ========================================================== */
/* お悩みカード：アイコンと文字を上下中央で揃える */
.worry { display: flex; align-items: center; min-height: 76px; padding: 16px 20px 16px 52px; }
.worry::before { top: 50%; left: 16px; transform: translateY(-50%); }

/* 解決メッセージ：イラストと文字を中央で揃える */
.answer-panel { grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 26px 18px 18px; align-items: center; }
.answer-panel .illust { display: flex; align-items: center; justify-content: center; padding: 8px; }
.answer-panel .illust img { max-height: 120px; width: auto; object-fit: contain; }
.answer-panel .answer { align-self: center; }
@media (max-width: 640px) { .answer-panel { grid-template-columns: 1fr; padding: 18px; } .answer-panel .illust img { max-height: 140px; } }

/* カード類：高さを揃え、文字の開始位置を統一 */
.grid .card { display: flex; flex-direction: column; }
.grid .card p { margin-top: auto; }
.card h3 { min-height: 0; }
.card__icon { flex: none; }

/* 流れのステップ：見出しと本文の間隔を統一 */
.flow li { display: flex; flex-direction: column; }
.flow h3 { margin-bottom: 6px; }
.flow p { margin-top: auto; }

/* FAQ：Q・Aと本文の行頭を揃える */
.faq summary { display: flex; align-items: center; min-height: 62px; }
.faq summary::before { top: 50%; transform: translateY(-50%); }
.faq__a p::before { top: 0; }

/* 制作イメージカード：説明文の高さを揃える */
.sample { display: flex; flex-direction: column; }
.sample__body { display: flex; flex-direction: column; flex: 1; }
.sample__body p:last-of-type { margin-top: auto; }
.sample__actions { margin-top: 14px; }

/* 数字：単位と数字のベースラインを揃える */
.stat b { display: flex; align-items: baseline; gap: 2px; }
.stat p { margin-top: 6px; }

/* ヒーロー下のリンク：本文の位置を統一 */
.hero-links a { align-content: center; min-height: 86px; }
.hero-links em { margin-top: 2px; }

/* 強み・特徴：文字ブロックを中央で揃える */
.strength > div:first-child { align-self: center; }

/* ==========================================================
   v25: 「4プランの位置づけ」の矢印位置と余白を調整
   ========================================================== */
.ladder { padding: 22px 24px; margin-top: 22px; }
.ladder__ttl { margin: 0 0 16px; }
.ladder ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.ladder li {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  min-height: 104px; padding: 18px 20px; min-width: 0;
}
.ladder li::after {
  right: -22px; top: 50%; translate: 0 -50%;
  width: 14px; text-align: center; font-size: 1.05rem; line-height: 1;
}
.ladder b { line-height: 1.2; }
.ladder span { margin: 0; }
@media (max-width: 860px) {
  .ladder ol { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ladder li { min-height: 0; padding: 16px 18px; }
  .ladder li::after { right: auto; left: 50%; top: auto; bottom: -20px; translate: -50% 0; }
}

/* v25b: ラベルは左上で統一、本文は1行・上下左右均等 */
.ladder li {
  display: grid; grid-template-rows: auto 1fr; gap: 10px;
  padding: 18px 20px; min-height: 104px; align-items: start; text-align: left;
}
.ladder b { align-self: start; justify-self: start; }
.ladder span {
  align-self: center; justify-self: start; white-space: nowrap;
  font-size: clamp(.8rem, 1.05vw, .95rem);
}
@media (max-width: 860px) { .ladder span { white-space: normal; font-size: .95rem; } }

/* v25c: 1行に収まるよう間隔と文字サイズを微調整 */
.ladder ol { gap: 18px; }
.ladder li { padding: 16px 18px; min-height: 96px; gap: 8px; }
.ladder li::after { right: -14px; }
.ladder span { font-size: clamp(.76rem, .95vw, .88rem); letter-spacing: 0; }
.ladder b { font-size: .82rem; }
@media (max-width: 860px) { .ladder span { font-size: .95rem; } }

/* ==========================================================
   v26: Why バーは1行・余白を均等に
   ========================================================== */
.why { display: flex; align-items: center; gap: 18px; padding: 14px 20px; margin-top: 18px; }
.why b { flex: none; padding: 8px 18px; font-size: .86rem; line-height: 1.4; }
.why > span { min-width: 0; white-space: nowrap; font-size: clamp(.84rem, 1.15vw, 1rem); font-weight: 700; }
.why .mk { white-space: nowrap; }
@media (max-width: 900px) {
  .why { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
  .why > span { white-space: normal; font-size: .95rem; }
}

/* ==========================================================
   v27: 制作イメージカード — ホバーの「全画面で見る」を廃止、ボタン位置を調整
   ========================================================== */
.sample__open { display: none !important; }
.sample__link::after { content: none !important; }
.sample__link { cursor: pointer; }
.sample:hover .sample__stage { filter: brightness(1.02); }
.sample__actions { margin: 0; padding: 0 20px 20px; }
.sample__actions .btn { padding: 11px 22px; }
.sample__body { padding: 16px 20px 12px; }
@media (max-width: 640px) { .sample__actions { padding: 0 18px 18px; } }

/* v27b: ボタン周りの背景を本文とつなげ、上下の余白を均等に */
.sample__body { padding: 16px 20px 0; }
.sample__actions { background: #fff; padding: 16px 20px 16px; margin: 0; }
:root[data-theme="dark"] .sample__actions { background: var(--bg); }
.sample__body p:last-of-type { margin-bottom: 0; }

/* ==========================================================
   v28: セクション見出しは1行、右の説明は2行に収める
   ========================================================== */
.h-section--nowrap { white-space: nowrap; font-size: clamp(1.5rem, 2.9vw, 2.5rem); }
.h-section--nowrap .en { white-space: normal; }
@media (max-width: 860px) { .h-section--nowrap { white-space: normal; font-size: clamp(1.8rem, 6vw, 2.4rem); } }

/* 見出しと説明の余白・位置を揃える */
.section-head--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head--split .lead { margin: 0; max-width: 34em; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ==========================================================
   v29: ヒーロー下リンクのホバーは「自分の色の濃いめ」に（黒くしない）
   ========================================================== */
.hero-links a:hover { background: var(--accent-2); }
.hero-links li:nth-child(1) a:hover { background: #cf3a22; color: #fff; }
.hero-links li:nth-child(2) a:hover { background: #0d8a6b; color: #fff; }
.hero-links li:nth-child(3) a:hover { background: #f0c400; color: #33302b; }
.hero-links li:nth-child(3) a:hover .num { color: rgba(51, 48, 43, .7); }
.hero-links li:nth-child(3) a:hover em { color: rgba(51, 48, 43, .78); }
.hero-links li:nth-child(3) a:hover b { color: #b3410f; }
.hero-links li:nth-child(1) a:hover .num, .hero-links li:nth-child(2) a:hover .num { color: rgba(255, 255, 255, .78); }
.hero-links li:nth-child(1) a:hover em, .hero-links li:nth-child(2) a:hover em { color: rgba(255, 255, 255, .88); }
.hero-links li:nth-child(1) a:hover b, .hero-links li:nth-child(2) a:hover b { color: #ffd400; }

/* ==========================================================
   v30: 比較表（文章が入る横長タイプ）
   ========================================================== */
.compare--wide { min-width: 900px; }
.compare--wide td { text-align: left; font-size: .94rem; line-height: 1.7; vertical-align: top; word-break: auto-phrase; }
.compare--wide td.num { font-family: var(--font-num); font-weight: 700; color: var(--accent); white-space: nowrap; }
.compare--wide td.no { text-align: center; color: var(--ink-sub); }
.compare--wide th[scope="row"] { font-weight: 700; white-space: nowrap; background: var(--panel); }
.compare--wide thead th { text-align: left; }
.compare--wide tbody tr:first-child td { padding-top: 18px; }

/* ==========================================================
   v31: 位置づけ・比較表の余白を均一にし、できるだけ1行に収める
   ========================================================== */
/* 4プランの位置づけ */
.ladder li {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 18px 20px; min-height: 0;
}
.ladder b, .ladder span { align-self: stretch; }
.ladder span { white-space: nowrap; font-size: clamp(.78rem, .95vw, .9rem); }

/* 比較表：セルの余白を統一し、1行に収まりやすく */
.compare--wide { min-width: 1040px; table-layout: fixed; }
.compare--wide th, .compare--wide td { padding: 14px 16px; font-size: .9rem; line-height: 1.7; vertical-align: middle; }
.compare--wide thead th { padding: 16px; font-size: 1rem; }
.compare--wide th[scope="row"] { width: 8.5em; }
.compare--wide col, .compare--wide thead th:not(:first-child) { width: auto; }
.compare--wide td { word-break: auto-phrase; }
.compare--wide td.no { text-align: center; }

/* v31b: セル内を1行に収めやすく（文字サイズと余白の微調整） */
.compare--wide th, .compare--wide td { padding: 15px 14px; font-size: .86rem; }
.compare--wide thead th { padding: 15px 14px; font-size: .95rem; }
.compare--wide th[scope="row"] { width: 7.6em; }

/* ==========================================================
   v33: プランカードの各項目を1行に収める
   ========================================================== */
.plan { padding: 24px 18px 20px; }
.plan__list { font-size: .88rem; }
.plan__list li { padding: 5px 0 5px 22px; white-space: nowrap; line-height: 1.6; }
.plan__list li::before { left: 0; width: 12px; height: 7px; }
.plan__name { font-size: 1.45rem; }
.plan__for { font-size: .92rem; }
.plan__price { font-size: 2.1rem; }
.plan .btn { padding: 13px 12px; font-size: .95rem; }
@media (max-width: 1100px) { .plan__list li { white-space: normal; } }

/* v33b: 1行に収まる範囲で項目の文字を最大化 */
.plan { padding: 24px 14px 20px; }
.plan__list li { padding-left: 20px; }
.plan__list { font-size: clamp(.82rem, 1.12vw, .95rem); }

/* v34: セクション見出し横の説明文（行数を整える） */
.section-head--split .lead { font-size: clamp(.84rem, 1.02vw, .95rem); line-height: 1.95; max-width: none; }

/* v34b: 説明文のサイズをそろえる（作成イメージ=3行／料金プラン=2行） */
.section-head--split .lead { font-size: clamp(.9rem, 1.2vw, 1rem); line-height: 1.95; }

/* v36: プレミアムの料金注釈 */
.plan__fine { margin: -10px 0 14px; font-size: .74rem; line-height: 1.6; color: var(--ink-sub); }
.plan.is-featured .plan__fine { color: rgba(255, 255, 255, .85); }
.compare sup { font-size: .7em; color: var(--accent); margin-left: 2px; }

/* v37: プレミアムの※印（金額横）と注釈（リスト下・ボタン上） */
.plan__ast { font-size: .42em; color: var(--accent-2); margin-left: 3px; vertical-align: top; font-family: var(--font-body); }
.plan__fine { margin: 0 0 12px; font-size: .74rem; line-height: 1.6; color: var(--ink-sub); }

/* ==========================================================
   v41: 全ページを明朝体に（和文 Shippori Mincho／欧文 EB Garamond）
   ========================================================== */
:root {
  --font-body: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-display: "EB Garamond", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-num: "EB Garamond", "Shippori Mincho", serif;
  --font-mono: "EB Garamond", "Shippori Mincho", serif;
}
body { font-family: var(--font-body); letter-spacing: .04em; }

/* 明朝は細く見えるため、見出し・強調のウェイトと字間を調整 */
.h-display, .h-section, .page-hero__en, .page-hero__ja, .hero__title,
.service__title, .plan__name, .sample h3, .footer__big, .cta .h-display {
  font-weight: 700; letter-spacing: .05em;
}
.h-display, .footer__big, .page-hero__en { letter-spacing: .03em; }
.plan__price, .stat b, .diag__result .big { font-weight: 700; letter-spacing: .02em; }
.eyebrow, .crumbs, .search-trigger kbd, .footer h4, .card__no, .service__no,
.hero-links .num, .ladder b, .flow li::before, .counter, .search__group {
  font-family: var(--font-num); letter-spacing: .16em; font-weight: 600;
}
.btn, .nav a, .hd__nav, .chip span, .faq summary, .worry, .why, .tags li,
.plan__list li, .compare th, .hero-chips li, .field label, .field legend {
  font-weight: 600;
}
.lead, .card p, .service__desc, .flow p, .faq__a p, .sample__body p, .note, .plan__for {
  font-weight: 400;
}
.logo__mark { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }
.logo__kana { letter-spacing: .14em; }
.mk { font-weight: 700; }

/* 明朝は字幅が広いので、ヘッダー項目を折り返さない。狭いPC幅では余白を詰める */
.nav a, .search-trigger span, .header-cta, .logo__kana { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1180px) {
  .header__inner { gap: 14px; }
  .nav a { padding: 8px 10px; font-size: .92rem; }
  .nav a::after { left: 10px; right: 10px; }
  .search-trigger kbd, .search-trigger span { display: none; }
  .search-trigger { width: 46px; padding: 0; }
  .header-cta.btn--accent { padding: 12px 18px; }
}
/* スマホ：理由カードは1列に（明朝で本文が押し出され、画像列が潰れるため） */
@media (max-width: 640px) {
  .strength { grid-template-columns: minmax(0, 1fr); }
  .strength:nth-child(even) .strength__visual { order: 0; }
  .header__inner { gap: 8px; }
  .tools { gap: 4px; }
  .logo__mark { font-size: 1.3rem; }
}
/* 4プランの位置づけ：明朝だと最長ラベルが1行に収まりきらないため字間をわずかに詰める */
@media (min-width: 861px) { .ladder span { letter-spacing: -.02em; } }
@media (min-width: 861px) and (max-width: 1020px) { .ladder span { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; } }

/* サンプル一覧下の2つ目の注釈は、1つ目に寄せて置く */
.note + .note--sub { margin-top: 4px; }
.note--sub, .note:has(+ .note--sub) { padding-left: 1em; text-indent: -1em; }

/* ==========================================================
   v44: 下層ページの写真は切り抜きのまま、上端そろえで頭が切れないように
   ========================================================== */
.page-hero .hero-bg img { object-position: 60% 0%; }
@media (max-width: 860px) { .page-hero .hero-bg img { object-position: 62% 0%; } }
/* PCでは写真を縮小して右寄せにし、上から3/4までを見せる（頭は切れない）。左端はぼかして文字側へなじませる */
@media (min-width: 861px) {
  .page-hero .hero-bg img {
    left: auto; right: 0; width: auto; max-width: 100%; height: calc(100% / .75); /* 写真の上3/4を表示（下1/4は枠外） */
    aspect-ratio: 2000 / 1124; object-fit: cover; object-position: 60% 0%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
            mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  }
}

/* 英字見出しの g・p などの下が切れないよう、行の下に余白をとる（下の文字は少し下がる） */
.page-hero__en .line { padding-bottom: .2em; }

/* ==========================================================
   v45: ライト／ダーク切り替えはスライドスイッチ（太陽と月、つまみが左右に動く）
   ========================================================== */
.theme-switch {
  position: relative; width: 66px; height: 36px; flex: none; padding: 0; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: space-between; padding-inline: 9px;
  transition: background-color .4s, border-color .4s;
}
.theme-switch:hover { border-color: var(--ink-sub); }
.theme-switch svg, .theme-switch .sun, .theme-switch .moon {
  display: block; position: relative; z-index: 1; width: 16px; height: 16px;
  color: var(--ink-sub); transition: color .4s;
}
.theme-switch__knob {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform .4s var(--ease), background-color .4s;
}
:root:not([data-theme="dark"]) .theme-switch .sun { color: var(--accent); }
:root[data-theme="dark"] .theme-switch__knob { transform: translateX(30px); background: #2a2a2e; }
:root[data-theme="dark"] .theme-switch .moon { color: #ffd66b; }
@media (max-width: 640px) {
  .theme-switch { width: 58px; height: 32px; padding-inline: 7px; }
  .theme-switch__knob { width: 24px; height: 24px; }
  :root[data-theme="dark"] .theme-switch__knob { transform: translateX(26px); }
  .theme-switch svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) { .theme-switch__knob { transition: none; } }

/* ==========================================================
   v47: 事業を6つに。ヒーローのカードは3列×2段、色は赤・緑・黄の系統（文字はすべて黒）
   列ごとに同じ系統：左＝赤（HP制作・動画）／中＝緑（SNS・アプリ）／右＝黄（写真・FP）
   ========================================================== */
.hero-links { --hl-ink: #1d1a16; max-width: 860px; }
@media (min-width: 861px) { .hero-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero-links li:nth-child(1) a { --hl-bg: #e8452b; }
.hero-links li:nth-child(2) a { --hl-bg: #12a37f; }
.hero-links li:nth-child(3) a { --hl-bg: #ffb300; }
.hero-links li:nth-child(4) a { --hl-bg: #f2785f; }
.hero-links li:nth-child(5) a { --hl-bg: #3dbb97; }
.hero-links li:nth-child(6) a { --hl-bg: #ffd400; }
.hero-links li a, .hero-links li a:hover { background: var(--hl-bg) !important; color: var(--hl-ink) !important; border-color: transparent !important; }
.hero-links li a .num, .hero-links li a em, .hero-links li a b,
.hero-links li a:hover .num, .hero-links li a:hover em, .hero-links li a:hover b { color: var(--hl-ink) !important; }
.hero-links li a .num, .hero-links li a em { opacity: .78; }
.hero-links li a:hover { filter: brightness(.94); }
.hero-links a { min-height: 76px; }
@media (max-width: 860px) {
  .hero-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-links a { min-height: 0; padding: 10px 12px; font-size: .9rem; grid-template-columns: auto 1fr; }
  .hero-links a b { display: none; }
  .hero-links em { grid-column: 1 / -1; font-size: .74rem; }
}

/* ヘッダーメニュー：6項目を1行に。屋号（ロゴ）の大きさはそのまま、メニュー文字だけ小さく */
@media (min-width: 1200px) {
  .header__inner { gap: 18px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: .98rem; letter-spacing: .02em; }
  .nav a::after { left: 9px; right: 9px; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .nav a { padding: 8px 7px; font-size: .9rem; }
  .nav a::after { left: 7px; right: 7px; }
}
/* 1行に入りきらない幅では、メニューはハンバーガーにまとめ、無料相談ボタンは残す */
@media (min-width: 1021px) and (max-width: 1199px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
.hero-links li { display: flex; }
.hero-links li > a { flex: 1; }
/* カードは番号＋タイトルだけ（矢印・説明文なし） */
.hero-links a { min-height: 0; padding: 16px 18px; align-items: center; grid-template-columns: auto 1fr; }
@media (max-width: 860px) { .hero-links a { padding: 13px 14px; } }

/* ==========================================================
   v48: トップを6事業の構成に。色は「つくる＝赤」「届ける＝緑」「備える＝黄」の系統
   ========================================================== */
:root {
  --c-web: #e8452b; --c-app: #f2785f;
  --c-sns: #12a37f; --c-photo: #3dbb97; --c-video: #8ccb6e;
  --c-fp: #ffd400;
}
.hero-links li:nth-child(1) a { --hl-bg: var(--c-web); }
.hero-links li:nth-child(2) a { --hl-bg: var(--c-app); }
.hero-links li:nth-child(3) a { --hl-bg: var(--c-sns); }
.hero-links li:nth-child(4) a { --hl-bg: var(--c-photo); }
.hero-links li:nth-child(5) a { --hl-bg: var(--c-video); }
.hero-links li:nth-child(6) a { --hl-bg: var(--c-fp); }

.svc--web, .is-web { --c: var(--c-web); }
.svc--app, .is-app { --c: var(--c-app); }
.svc--sns, .is-sns { --c: var(--c-sns); }
.svc--photo, .is-photo { --c: var(--c-photo); }
.svc--video, .is-video { --c: var(--c-video); }
.svc--fp, .is-fp { --c: var(--c-fp); }
.svc-group--make { --g: var(--c-web); }
.svc-group--send { --g: var(--c-sns); }
.svc-group--keep { --g: var(--c-fp); }

/* 事業内容：分類ごとに1段。左に分類名、右にカード */
.svc-group { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.svc-group:first-of-type { margin-top: 8px; }
.svc-group__label h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.3; font-weight: 700; }
.svc-group__label h3::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 3px; background: var(--g); margin-bottom: 14px; }
.svc-group__label p { margin: 8px 0 0; font-size: .92rem; color: var(--ink-sub); line-height: 1.7; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc-group--make .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-group--keep .svc-grid { grid-template-columns: minmax(0, 1fr); }

.svc {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1.5px solid var(--frame); border-top: 6px solid var(--c);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-4px); border-color: var(--c); }
.svc__img { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--c) 16%, var(--panel)); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 25%; display: block; }
.svc__todo { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: color-mix(in srgb, var(--c) 60%, #1d1a16); }
.svc__todo svg { width: 46px; height: 46px; }
.svc__todo small { font-size: .74rem; letter-spacing: .1em; }
.svc__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.svc__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; }
.svc__no { font-family: var(--font-num); font-weight: 700; letter-spacing: .12em; font-size: .85rem; color: var(--ink-sub); }
.svc__partner { font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 26%, transparent); white-space: nowrap; }
.svc__title { margin: 6px 0 0; font-size: 1.35rem; line-height: 1.4; font-weight: 700; }
.svc__en { margin: 0 0 10px; font-family: var(--font-display); font-size: .9rem; color: var(--ink-sub); }
.svc__desc { margin: 0 0 14px; font-size: .92rem; line-height: 1.85; color: var(--ink-sub); flex: 1; }
.svc__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.svc__tags li { font-size: .78rem; font-weight: 600; border: 1px solid var(--frame); border-radius: 999px; padding: 2px 10px; }
.svc--wide { flex-direction: row; }
.svc--wide .svc__img { flex: 0 0 44%; aspect-ratio: auto; min-height: 220px; }
.svc--wide .svc__body { justify-content: center; padding: 24px 28px; }

/* 組み合わせ例 */
.combos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.combo { background: var(--panel); border: 1.5px solid var(--frame); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.combo h3 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 700; }
.combo__svc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; }
.combo__svc li { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 700; padding: 4px 12px 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.combo__svc li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.combo__svc li + li::after { content: none; }
.combo p { margin: 0; font-size: .92rem; color: var(--ink-sub); line-height: 1.8; }

/* 最後のお問い合わせ：コンパクトな帯 */
.section--cta { padding-block: clamp(28px, 4vw, 48px); }
.cta-mini { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; background: var(--accent); color: #fff; border-radius: 24px; padding: clamp(22px, 3vw, 32px) clamp(22px, 4vw, 44px); }
.cta-mini h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.5; font-weight: 700; color: #fff; }
.cta-mini p { margin: 6px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .9); max-width: 34em; }
.cta-mini__btns { display: grid; justify-items: center; gap: 8px; }
.cta-mini .cta-mini__main { --b: #fff; --t: var(--accent); border-color: #fff; }
.cta-mini .cta-mini__main:hover { color: #fff; border-color: #1d1a16; }
.cta-mini .cta-mini__main::before { background: #1d1a16; }
.cta-mini__sub { color: #fff; font-size: .86rem; text-underline-offset: 4px; }

@media (max-width: 1020px) {
  .svc-group { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .svc-group__label { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .svc-group__label h3::before { display: inline-block; vertical-align: middle; margin: 0 10px 0 0; width: 22px; }
  .svc-group__label p { margin: 0; }
}
@media (max-width: 860px) {
  .svc-grid, .svc-group--make .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .combos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .svc, .svc--wide { flex-direction: row; }
  .svc__img, .svc--wide .svc__img { flex: 0 0 34%; aspect-ratio: auto; min-height: 0; }
  .svc__body, .svc--wide .svc__body { padding: 12px 14px; }
  .svc__title { font-size: 1.1rem; }
  .svc__en, .svc__tags { display: none; }
  .svc__desc { font-size: .82rem; line-height: 1.7; margin: 4px 0 0; }
  .svc__todo svg { width: 32px; height: 32px; }
  .cta-mini { flex-direction: column; align-items: stretch; text-align: left; }
  .cta-mini__btns { justify-items: stretch; }
}

/* 英字見出しが1行のページ（写真撮影・動画・アプリ）は、2行のページと同じ高さになるよう
   ボタンの下に英字1行分の余白を足す（文字の位置はそのまま、写真が下へ伸びる） */
@media (min-width: 861px) {
  .page-hero--oneline .page-hero__text::after { content: ""; display: block; font-size: clamp(2.2rem, 5vw, 4rem); height: 1.2em; }
}

/* ==========================================================
   v51: 写真撮影ページ
   見せ場は「コンタクトシート」：撮影シーンをフィルムのコマのように並べる
   ========================================================== */
.sheet {
  --film: #221e1a; --paper: #f4efe6; --edge: #f2a33a;
  background: var(--film); color: var(--paper); border-radius: 18px;
  padding: 18px clamp(14px, 2.4vw, 26px) 26px; position: relative;
}
/* フィルムの送り穴（上下） */
.sheet::before, .sheet::after {
  content: ""; position: absolute; left: 18px; right: 18px; height: 8px;
  background: repeating-linear-gradient(90deg, rgba(244, 239, 230, .22) 0 12px, transparent 12px 26px);
  border-radius: 2px;
}
.sheet::before { top: 8px; }
.sheet::after { bottom: 9px; }
.sheet__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.sheet__tabs button {
  border: 1.5px solid rgba(244, 239, 230, .4); background: transparent; color: var(--paper);
  border-radius: 999px; padding: 9px 20px; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.sheet__tabs button[aria-selected="true"] { background: var(--paper); color: var(--film); border-color: var(--paper); }
.sheet__tabs button:focus-visible { outline: 3px solid var(--edge); outline-offset: 3px; }
.sheet__strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sheet__strip[hidden] { display: none; }
.frame { position: relative; display: grid; gap: 4px; align-content: start; background: var(--paper); color: #2a241e; border-radius: 6px; padding: 10px 10px 14px; }
.frame__no { position: absolute; top: -1px; left: 10px; translate: 0 -100%; font-family: var(--font-num); font-size: .72rem; letter-spacing: .14em; color: var(--edge); }
.frame__pic { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 3px; margin-bottom: 8px; background: #e8e0d2; color: #6b5f50; }
.frame__pic svg { width: 30%; max-width: 44px; height: auto; }
.frame b { font-size: 1rem; line-height: 1.5; }
.frame__txt { font-size: .8rem; line-height: 1.65; color: #6b5f50; }
.frame--more { background: transparent; color: var(--paper); border: 1.5px dashed rgba(244, 239, 230, .45); }
.frame--more .frame__pic { background: transparent; color: var(--paper); }
.frame--more .frame__txt { color: rgba(244, 239, 230, .75); }
.sheet__strip .frame { margin-top: 12px; }

/* 撮った写真の使いみち */
.uses { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.uses li { border: 1.5px solid var(--frame); background: var(--panel); border-radius: 999px; padding: 8px 18px; font-weight: 600; }
.uses a { text-decoration: underline; text-underline-offset: 4px; color: inherit; }

/* カメラマン：安心の3点（順番ではないので番号なし） */
.partner-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner-points > div { border-top: 3px solid var(--c-photo); padding-top: 14px; }
.partner-points h3 { margin: 0 0 6px; font-size: 1.15rem; }
.partner-points p { margin: 0; color: var(--ink-sub); font-size: .95rem; }

/* 作品例（写真が届くまでの仮枠） */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work-ph { margin: 0; aspect-ratio: 4 / 3; border: 1.5px dashed var(--frame); border-radius: 14px; display: grid; place-items: center; color: var(--ink-sub); font-size: .85rem; background: var(--panel); }

/* 料金の決まり方 */
.factors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.factors li { background: var(--panel); border: 1.5px solid var(--frame); border-radius: 16px; padding: 18px 16px; }
.factors h3 { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.5; }
.factors p { margin: 0; font-size: .86rem; color: var(--ink-sub); line-height: 1.7; }
.free-quote { margin: 20px 0 0; padding: 16px 20px; border-radius: 14px; background: color-mix(in srgb, var(--c-photo) 16%, transparent); }
.free-quote b { font-size: 1.15rem; margin-right: .6em; }

@media (max-width: 1020px) {
  .sheet__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .partner-points, .works { grid-template-columns: minmax(0, 1fr); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .sheet__tabs button { flex: 1; padding: 9px 6px; font-size: .78rem; white-space: nowrap; letter-spacing: 0; }
  .frame { padding: 8px 8px 12px; }
  .frame b { font-size: .9rem; }
  .frame__txt { font-size: .74rem; }
  .factors { grid-template-columns: minmax(0, 1fr); }
}
/* 6ステップの流れは3列×2段 */
@media (min-width: 861px) { .flow.flow--six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==========================================================
   v53: 動画制作ページ
   見せ場は「編集ソフトのタイムライン」：クリップを押すと再生ヘッドが動き、工程の説明が切り替わる
   ========================================================== */
.vtypes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.vtypes__group { background: var(--panel); border: 1.5px solid var(--frame); border-top: 6px solid var(--c-video); border-radius: 20px; padding: 22px 24px; }
.vtypes__group h3 { margin: 0 0 12px; font-size: 1.2rem; }
.vtypes__group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 20px; }
.vtypes__group li { padding: 12px 0; border-top: 1px solid var(--line); }
.vtypes__group h4 { margin: 0; font-size: 1rem; }
.vtypes__group p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-sub); line-height: 1.7; }
.free-quote--video { background: color-mix(in srgb, var(--c-video) 20%, transparent); }

.tl { --ui: #1f2226; --ui-2: #2a2e33; --ui-ink: #eef0f2; --ui-sub: #9aa3ab; background: var(--ui); color: var(--ui-ink); border-radius: 18px; padding: clamp(16px, 2.4vw, 26px); }
.tl__preview { background: var(--ui-2); border-radius: 10px; padding: clamp(18px, 3vw, 32px); min-height: 220px; }
.tl__tc { margin: 0; font-family: var(--font-num); font-size: .85rem; letter-spacing: .1em; color: #f2a33a; }
.tl__step { margin: 4px 0 0; font-size: .85rem; color: var(--ui-sub); }
.tl__preview h3 { margin: 10px 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.5; color: var(--ui-ink); }
.tl__preview > p:not(.tl__tc):not(.tl__step):not(.tl__ask) { margin: 0; max-width: 40em; color: #cfd5da; }
.tl__ask { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .92rem; color: #cfd5da; }
.tl__ask b { color: var(--c-video); font-weight: 700; }
.tl__track { margin-top: 18px; }
.tl__ruler { display: flex; justify-content: space-between; font-family: var(--font-num); font-size: .72rem; color: var(--ui-sub); letter-spacing: .08em; padding: 0 2px 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.tl__clips { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 10px 0; }
.tl__clip {
  --cc: var(--c-video); position: relative; border: 0; border-radius: 6px; padding: 14px 8px; cursor: pointer;
  background: var(--cc); color: #17201a; font-weight: 700; font-size: .95rem; text-align: left;
  transition: filter .25s, box-shadow .25s;
}
.tl__clip:nth-child(2) { --cc: #3dbb97; }
.tl__clip:nth-child(3) { --cc: #12a37f; }
.tl__clip:nth-child(4) { --cc: #6fc1ad; }
.tl__clip:nth-child(5) { --cc: #b6dc8f; }
.tl__clip:hover { filter: brightness(1.08); }
.tl__clip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ui), 0 0 0 4px #fff; }
.tl__clip:focus-visible { outline: 3px solid #f2a33a; outline-offset: 3px; }
.tl__head { --at: 0; position: absolute; top: 0; bottom: -40px; width: 2px; background: #f2a33a; left: calc((var(--at) + .5) * 20%); transition: left .5s var(--ease); pointer-events: none; }
.tl__head::before { content: ""; position: absolute; top: -8px; left: 50%; translate: -50% 0; border: 7px solid transparent; border-top: 9px solid #f2a33a; }
.tl__wave { height: 30px; border-radius: 6px; background: var(--ui-2);
  background-image: repeating-linear-gradient(90deg, rgba(140, 203, 110, .55) 0 2px, transparent 2px 6px);
  -webkit-mask-image: linear-gradient(transparent 0, #000 20%, #000 80%, transparent 100%), repeating-linear-gradient(90deg, #000 0 40px, rgba(0,0,0,.45) 40px 70px);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (prefers-reduced-motion: reduce) { .tl__head { transition: none; } }
@media (max-width: 900px) { .vtypes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .tl__clip { padding: 12px 4px; font-size: .74rem; text-align: center; writing-mode: horizontal-tb; }
  .tl__ruler span:nth-child(even) { visibility: hidden; }
}

/* ==========================================================
   v54: アプリ制作ページ
   見せ場は「スマホ画面の見本」：ボタンで6つのアプリの画面が切り替わる
   ========================================================== */
.appshow { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.appphone { width: 300px; aspect-ratio: 9 / 18.5; background: #1d1a16; border-radius: 42px; padding: 12px; box-shadow: var(--shadow); position: sticky; top: 110px; }
.appphone__screen { height: 100%; background: #fbf8f4; border-radius: 32px; overflow: hidden; padding: 34px 16px 16px; position: relative; color: #2a241e; font-size: 13px; line-height: 1.5; }
.appphone__screen::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 70px; height: 18px; border-radius: 999px; background: #1d1a16; }
.ph__screen[hidden] { display: none; }
.ph__screen { animation: ph-in .35s var(--ease); }
@keyframes ph-in { from { opacity: 0; transform: translateY(6px); } }
.ph__bar { margin: 0 0 12px; font-weight: 700; font-size: 16px; }
.ph__search { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #efe9e1; color: #8a7f72; font-size: 12px; }
.ph__list, .ph__checks, .ph__exp, .ph__menu, .ph__slots { list-style: none; margin: 0; padding: 0; }
.ph__list li { display: grid; grid-template-columns: 30px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #ece4d9; }
.ph__list i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--c-app) 30%, #fff); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; }
.ph__list b { font-size: 13px; }
.ph__list small { grid-column: 2; color: #8a7f72; font-size: 11px; }
.ph__list em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f3e3d9; }
.ph__list em.is-ok { background: color-mix(in srgb, var(--c-sns) 25%, #fff); }
.ph__tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ph__tabs span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; background: #efe9e1; font-size: 12px; }
.ph__tabs span.on { background: var(--c-app); color: #1d1a16; font-weight: 700; }
.ph__checks li { padding: 9px 0 9px 26px; border-bottom: 1px solid #ece4d9; position: relative; }
.ph__checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #b9ab9a; }
.ph__checks li.done::before { background: var(--c-app); border-color: var(--c-app); }
.ph__checks li.done { color: #8a7f72; text-decoration: line-through; }
.ph__photo { margin: 12px 0; padding: 18px 0; text-align: center; border: 1.5px dashed #cdbfae; border-radius: 10px; color: #8a7f72; font-size: 12px; }
.ph__btn { margin: 12px 0 0; padding: 10px; border-radius: 10px; background: var(--c-app); color: #1d1a16; text-align: center; font-weight: 700; font-size: 12.5px; }
.ph__btn--line { background: transparent; border: 1.5px solid var(--c-app); }
.ph__doc { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #ece4d9; display: grid; gap: 2px; }
.ph__doc small { color: #8a7f72; font-size: 11px; }
.ph__doc b { font-size: 22px; }
.ph__doc span { font-size: 12px; }
.ph__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph__sub { margin: 16px 0 6px; font-weight: 700; font-size: 12.5px; }
.ph__exp li, .ph__menu li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #ece4d9; }
.ph__exp b, .ph__menu b { margin-left: auto; }
.ph__menu span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c-app); font-weight: 700; }
.ph__card { padding: 16px; border-radius: 14px; background: var(--c-app); color: #1d1a16; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.ph__card small { font-size: 11px; }
.ph__card b { grid-column: 1; font-size: 15px; }
.ph__qr { grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 4px; background:
  repeating-linear-gradient(90deg, #1d1a16 0 4px, #fff 4px 7px), #fff; background-blend-mode: multiply;
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 4px, rgba(0,0,0,.35) 4px 7px); mask: repeating-linear-gradient(0deg, #000 0 4px, rgba(0,0,0,.35) 4px 7px); }
.ph__stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ph__stamps i { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #cdbfae; }
.ph__stamps i.on { border: 0; background: color-mix(in srgb, var(--c-app) 80%, #fff); }
.ph__coupon { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed var(--c-app); font-size: 12px; font-weight: 700; }
.ph__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.ph__days span { text-align: center; padding: 6px 0; border-radius: 10px; background: #efe9e1; font-size: 11px; }
.ph__days b { display: block; font-size: 15px; }
.ph__days span.on { background: var(--c-app); }
.ph__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph__slots li { text-align: center; padding: 10px 0; border-radius: 8px; border: 1.5px solid #e2d8cb; font-size: 12px; }
.ph__slots li.full { color: #b9ab9a; text-decoration: line-through; background: #f1ece5; }
.ph__slots li.on { border-color: var(--c-app); background: color-mix(in srgb, var(--c-app) 22%, #fff); font-weight: 700; }

.appshow__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.appshow__group { grid-column: 1 / -1; margin: 6px 0 0; font-size: .85rem; font-weight: 700; color: var(--ink-sub); }
.appshow__tabs [role="tab"] {
  display: grid; gap: 2px; text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 14px;
  background: var(--panel); border: 1.5px solid var(--frame); color: var(--ink); font: inherit;
  transition: border-color .25s, background-color .25s;
}
.appshow__tabs [role="tab"] b { font-size: 1rem; }
.appshow__tabs [role="tab"] small { font-size: .76rem; color: var(--ink-sub); line-height: 1.5; }
.appshow__tabs [role="tab"]:hover { border-color: var(--c-app); }
.appshow__tabs [role="tab"][aria-selected="true"] { background: color-mix(in srgb, var(--c-app) 22%, var(--panel)); border-color: var(--c-app); }
.appinfo[hidden] { display: none; }
.appinfo { margin-top: 22px; padding: 22px 24px; border-radius: 18px; background: var(--panel); border: 1.5px solid var(--frame); }
.appinfo h3 { margin: 0; font-size: 1.4rem; }
.appinfo__lead { margin: 4px 0 12px; color: var(--ink-sub); }
.appinfo__list { margin: 0 0 14px; padding-left: 1.2em; }
.appinfo__list li { margin: 4px 0; }
.appinfo__fit { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; }
.appinfo__fit b { margin-right: 1em; color: var(--ink-sub); }
.screen-note { margin: 16px 0 0; font-size: .82rem; color: var(--ink-sub); }

.more-apps { text-align: center; max-width: 760px; margin-inline: auto; }
.more-apps h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.5; }
.more-apps p { margin: 10px 0 18px; color: var(--ink-sub); }
.more-apps__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.more-apps__tags li { border: 1.5px solid var(--frame); background: var(--panel); border-radius: 999px; padding: 6px 16px; font-size: .88rem; font-weight: 600; }

.factors.factors--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.free-quote--app { background: color-mix(in srgb, var(--c-app) 18%, transparent); }
.with-web { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; border: 1.5px solid var(--frame); border-left: 6px solid var(--c-web); background: var(--panel); }
.with-web h2 { margin: 8px 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.with-web p { margin: 0; color: var(--ink-sub); max-width: 38em; }

@media (max-width: 1020px) {
  .appshow { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .appshow__side { width: 100%; }
  .appphone { position: static; width: 260px; }
  .factors.factors--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .appshow__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appshow__tabs [role="tab"] small { display: none; }
  .factors.factors--four { grid-template-columns: minmax(0, 1fr); }
}
/* タブレット・スマホ：ボタン → 画面見本 → 説明の順に並べ、押した結果がすぐ見えるようにする */
@media (max-width: 1020px) {
  .appshow__side { display: contents; }
  .appshow__tabs { order: 1; width: 100%; }
  .appphone { order: 2; aspect-ratio: 9 / 15; }
  #app-panel { order: 3; width: 100%; }
  #app-panel .appinfo { margin-top: 0; }
}

/* ==========================================================
   v57: 制作イメージのカードは、実際のサンプル画面（PC・スマホ）の画像に
   ========================================================== */
.browser__shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone-mock { padding: 4px; overflow: hidden; }
.phone-mock__shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10px; }

/* 料金プランの下：オプション機能 */
.options { margin-top: 24px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; border: 1.5px dashed var(--frame); background: var(--panel); }
.options h3 { margin: 0; font-size: 1.2rem; }
.options > p { margin: 4px 0 12px; color: var(--ink-sub); font-size: .92rem; }
.options ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.options li { border: 1.5px solid var(--frame); background: var(--bg); border-radius: 999px; padding: 5px 14px; font-size: .88rem; font-weight: 600; }
.options .options__more { margin: 14px 0 0; font-size: .88rem; }
.options a { color: var(--accent); }

/* ==========================================================
   v58: スマホのメニューは、ヘッダーの下に開くパネル（ページは後ろに見えたまま）
   ========================================================== */
.drawer {
  inset: 80px 0 auto 0; z-index: 99; max-height: calc(100dvh - 80px); overflow-y: auto;
  padding: 4px var(--gutter) 24px; gap: 0; background: var(--bg);
  border-top: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(30, 20, 10, .35);
  clip-path: none; opacity: 0; transform: translateY(-10px); visibility: hidden;
  transition: opacity .25s ease, transform .35s var(--ease), visibility .35s;
}
.drawer.is-open { clip-path: none; opacity: 1; transform: none; visibility: visible; }
.drawer a {
  display: block; font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em;
  padding: 16px 2px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.drawer a[aria-current="page"] { color: var(--accent); }
.drawer__cta { display: grid; gap: 12px; margin-top: 22px; }
.drawer .drawer__cta a { border: 1.5px solid var(--accent); border-radius: 999px; padding: 14px; text-align: center; font-weight: 700; font-size: 1rem; letter-spacing: .04em; }
.drawer .drawer__sub { background: var(--accent-soft); color: var(--accent); }
.drawer .drawer__main { background: var(--accent); color: #fff; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(20, 15, 10, .28); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open .header { background: var(--bg); box-shadow: 0 1px 0 var(--line); transform: none; }
@media (max-width: 640px) {
  .drawer { inset: 68px 0 auto 0; max-height: calc(100dvh - 68px); }
}
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

/* ==========================================================
   v59: お問い合わせ（メール or フォーム）
   ========================================================== */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.way { display: grid; gap: 2px; padding: 16px 20px; border-radius: 16px; border: 1.5px solid var(--frame); background: var(--panel); text-decoration: none; color: var(--ink); transition: border-color .25s; }
.way:hover { border-color: var(--accent); }
.way b { font-size: 1.05rem; }
.way span { font-size: .9rem; color: var(--ink-sub); word-break: break-all; }
.mail-link { font-weight: 700; color: var(--accent); word-break: break-all; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, #e8452b 12%, transparent); color: var(--ink); font-size: .92rem; }
.form-error a { color: var(--accent); font-weight: 700; }
@media (max-width: 560px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* 送信完了後はフォームを隠す（.form の display 指定より優先） */
#contactForm[hidden] { display: none; }
/* メールのコピー・Gmailボタン */
.way--mail { cursor: default; }
.way--mail .mail-link { font-size: .95rem; }
.mail-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mail-tool { display: inline-flex; align-items: center; border: 1.5px solid var(--frame); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s; }
.mail-tool:hover { border-color: var(--accent); color: var(--accent); }
.mail-tool.is-done { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
