/* ===== 色・基本設定 ===== */
:root {
  --bg: #f6f1e7;          /* 生成り */
  --bg-sand: #ece3d2;     /* 砂色 */
  --surface: #fffdf8;
  --ink: #2b2a27;
  --ink-soft: #5d5a53;
  --sea: #1f3a5a;         /* 深い海の藍 */
  --sea-soft: #3f6480;
  --sun: #c8553d;         /* 夕日の朱 */
  --sun-dark: #a9432e;
  --line: #ddd2bf;
  --radius: 14px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --font-serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

*, *::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-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.pc-only { display: none; }
.nb { display: inline-block; }
section[id] { scroll-margin-top: 64px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===== ヘッダー（スクロールすると小さくなり、背景がつく） ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 231, 0.94);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.js .site-header:not(.is-scrolled) { background: rgba(246, 241, 231, 0); border-color: transparent; }
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(31, 58, 90, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; transition: height .35s ease; }
.is-scrolled .header-inner { height: 52px; }
.logo {
  font-family: var(--font-serif); font-weight: 700; font-size: 18px;
  color: var(--sea); text-decoration: none; line-height: 1.3;
}
.logo-sub { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.08em; }
.header-cta {
  flex-shrink: 0;
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: #fff; background: var(--sun);
  padding: 8px 16px; border-radius: 999px;
  transition: background-color .2s;
}
.header-cta:hover { background: var(--sun-dark); }

/* ===== ボタン ===== */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--sun); color: #fff; }
.btn-primary:hover { background: var(--sun-dark); }
.btn-outline { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); }
.btn-outline:hover { background: var(--sea); color: #fff; }
.btn-large { font-size: 18px; padding: 18px 32px; }
.btn:focus-visible, .header-cta:focus-visible, summary:focus-visible { outline: 3px solid var(--sea-soft); outline-offset: 3px; }

/* 「相談する」ボタンの呼吸するような動き */
.btn-breathe { position: relative; animation: breathe 3.6s ease-in-out infinite; }
.btn-breathe::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--sun); opacity: 0; pointer-events: none;
  animation: ring 3.6s ease-out infinite;
}
.section-contact .btn-breathe::after { border-color: #f2b89a; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes ring {
  0% { opacity: .55; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.06, 1.35); }
}

/* ===== 写真枠（画像差し替え前の仮表示） ===== */
.photo {
  position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-note {
  position: relative; z-index: 1;
  margin: 12px;
  font-size: 12px; line-height: 1.5;
  color: #fff; background: rgba(31, 58, 90, 0.6);
  padding: 4px 10px; border-radius: 999px;
}
.photo-sea  { background: linear-gradient(170deg, #cfdde3 0%, #8fb0c0 55%, #4f7a93 100%); }
.photo-sand { background: linear-gradient(160deg, #efe6d4 0%, #dccbab 60%, #c4ad86 100%); }
.photo-dusk { background: linear-gradient(170deg, #f1dcc6 0%, #e0a98a 55%, #b8745d 100%); }
.photo-img { width: 100%; object-fit: cover; border-radius: var(--radius); }

/* ===== ヒーロー ===== */
.hero { padding: 32px 0 64px; }
.hero-inner { display: grid; gap: 32px; }
.eyebrow { font-size: 14px; color: var(--sun); font-weight: 700; letter-spacing: 0.12em; margin-bottom: 12px; }
.hero-title { font-size: clamp(24px, 7vw, 46px); color: var(--sea); margin-bottom: 20px; letter-spacing: 0.04em; }
.hero-lead { color: var(--ink-soft); margin-bottom: 28px; }
.hero-photo { aspect-ratio: 4 / 3; }

/* 風景イラスト */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: #f3dcc4;
  box-shadow: 0 24px 48px -28px rgba(31, 58, 90, .55);
}
.hero-svg { display: block; width: 100%; height: 100%; }
.hero-svg [data-depth] { will-change: transform; }

.h-cloud { animation: cloud-drift var(--dur) linear var(--delay) infinite; }
@keyframes cloud-drift { from { transform: translateX(var(--from)); } to { transform: translateX(var(--to)); } }

.h-sun-glow { transform-box: fill-box; transform-origin: center; animation: glow 5s ease-in-out infinite alternate; }
@keyframes glow { from { transform: scale(1); opacity: .35; } to { transform: scale(1.14); opacity: .6; } }

.h-shimmer { animation: shimmer 2.8s ease-in-out infinite alternate; }
@keyframes shimmer { from { opacity: .45; } to { opacity: 1; } }

.h-wave-1 { animation: wave-shift 7s linear infinite; }
.h-wave-2 { animation: wave-shift 9s linear infinite reverse; }
.h-wave-3 { animation: wave-shift 12s linear infinite; }
@keyframes wave-shift { from { transform: translateX(0); } to { transform: translateX(-60px); } }

.h-boat { animation: boat-sail 56s linear -22s infinite; }
@keyframes boat-sail { from { transform: translateX(-320px); } to { transform: translateX(420px); } }
.h-boat-bob { transform-box: fill-box; transform-origin: 50% 90%; animation: bob 3.2s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-1.5px) rotate(-2.5deg); } to { transform: translateY(1.5px) rotate(2.5deg); } }

.h-birds { animation: birds-drift 16s ease-in-out infinite alternate; }
@keyframes birds-drift { from { transform: translate(0, 0); } to { transform: translate(80px, -22px); } }
.h-bird { transform-box: fill-box; transform-origin: center; animation: flap .9s ease-in-out infinite alternate; }
.h-bird-2 { animation-delay: -.3s; }
.h-bird-3 { animation-delay: -.6s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.3); } }

/* キャッチコピーを1文字ずつ表示（script.js が文字を分けたときだけ） */
.title-pending .hero-title,
.title-pending .hero-fade { opacity: 0; animation: force-show 0s linear 1.5s forwards; }
@keyframes force-show { to { opacity: 1; } }
.motion-ok .hero-title .char { display: inline-block; }
.motion-ok:not(.show-loader) .hero-title .char {
  display: inline-block;
  animation: char-in .8s var(--ease-out) both;
  animation-delay: calc(var(--i) * 60ms + 150ms);
}
@keyframes char-in {
  from { opacity: 0; transform: translateY(.45em) rotate(4deg); }
  to { opacity: 1; transform: none; }
}
.motion-ok:not(.show-loader) .hero-fade { animation: fade-up .9s var(--ease-out) var(--fd, 0ms) both; }
.motion-ok:not(.show-loader) .btn-breathe.hero-fade { animation: fade-up .9s var(--ease-out) var(--fd, 0ms) both, breathe 3.6s ease-in-out 2.4s infinite; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ===== 流れる帯 ===== */
.marquee { overflow: hidden; padding: 14px 0; }
.marquee-sea { background: var(--sea); color: #f6f1e7; padding-bottom: 36px; }
.marquee-light { background: var(--bg); color: var(--sea); border-top: 1px solid var(--line); padding-bottom: 38px; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-reverse { animation-direction: reverse; animation-duration: 55s; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  position: relative; white-space: nowrap;
  font-family: var(--font-serif); font-size: 18px; letter-spacing: .2em;
  padding: 0 26px;
}
.marquee li::after {
  content: ""; position: absolute; right: -3px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--sun);
}
.marquee-sea li::after { background: #e9906f; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== セクション共通 ===== */
.section { position: relative; padding: 72px 0 64px; --section-bg: var(--bg); background: var(--section-bg); }
.section > .container { position: relative; z-index: 2; }
.section-title {
  font-size: clamp(22px, 6vw, 30px); color: var(--sea);
  text-align: center; margin-bottom: 32px;
}
.section-title::after {
  content: ""; display: block; width: 36px; height: 2px;
  background: var(--sun); margin: 14px auto 0;
}
.section-title-left { text-align: left; }
.section-title-left::after { margin-left: 0; }
.section-lead { text-align: center; color: var(--ink-soft); margin-bottom: 32px; }

/* セクションの境目：動く波 */
.wave-top {
  position: absolute; left: 0; right: 0; top: -23px; height: 24px;
  overflow: hidden; pointer-events: none; z-index: 3;
}
.wave-top svg {
  display: block; width: 200%; height: 100%;
  fill: var(--section-bg);
  animation: wave-slide 22s linear infinite;
}
.section:nth-of-type(even) .wave-top svg { animation-direction: reverse; animation-duration: 26s; }
@keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 背景の小物 */
.deco {
  position: absolute; z-index: 1; pointer-events: none;
  color: var(--sea-soft); opacity: .22;
  animation: deco-float 7s ease-in-out infinite alternate;
}
.deco-light { color: #fff; opacity: .2; }
.deco-tl { top: 32px; left: 4%; }
.deco-tr { top: 32px; right: 4%; }
.deco-bl { bottom: 28px; left: 5%; animation-delay: -2s; }
.deco-br { bottom: 28px; right: 5%; animation-delay: -4s; }
@keyframes deco-float { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }

/* スクロールで下からふわっと出る（script.js が準備できたときだけ隠す） */
.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s var(--ease-out), box-shadow .35s ease;
  transition-delay: var(--d, 0ms);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

.card-grid { display: grid; gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card-title { font-size: 20px; color: var(--sea); margin-bottom: 12px; }
.card-num { font-family: var(--font-serif); color: var(--sun); font-size: 14px; letter-spacing: 0.15em; margin-bottom: 4px; }

/* お悩み */
.section-worries { --section-bg: var(--bg-sand); }
.worry-list { list-style: none; padding: 0; margin: 0 auto 32px; max-width: 640px; display: grid; gap: 12px; }
.worry-list li {
  background: var(--surface); border-radius: 10px;
  padding: 14px 18px 14px 46px; position: relative;
}
.worry-list li::before {
  content: ""; position: absolute; left: 18px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  border: 2px solid var(--sea-soft); border-radius: 3px;
}
.worries-answer { text-align: center; font-family: var(--font-serif); font-size: 18px; color: var(--sea); }

/* できること */
.service-card { transition: transform .35s var(--ease-out), box-shadow .35s ease; }
.service-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--bg-sand);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.service-icon svg { width: 58px; height: 58px; overflow: visible; }
.ic-sun, .ic-wave, .ic-heart, .ic-play, .ic-bar { transform-box: fill-box; transition: transform .5s var(--ease-out); }
.ic-heart, .ic-play { transform-origin: center; }
.ic-bar { transform-origin: left center; transform: scaleX(.4); }
@media (hover: hover) {
  .service-card:hover,
  .reveal-ready .service-card.is-visible:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px -20px rgba(31, 58, 90, .45);
  }
  .service-card:hover .ic-sun { animation: ic-sun 1.4s ease-in-out infinite alternate; }
  .service-card:hover .ic-wave { animation: ic-wave 1.2s linear infinite; }
  .service-card:hover .ic-heart { animation: ic-heart 1s ease-in-out infinite; }
  .service-card:hover .ic-play { animation: ic-play 1s ease-in-out infinite; }
  .service-card:hover .ic-bar { transform: scaleX(1); transition-duration: 2.4s; }
}
@keyframes ic-sun { from { transform: translateY(2px); } to { transform: translateY(-4px); } }
@keyframes ic-wave { from { transform: translateX(0); } to { transform: translateX(-8px); } }
@keyframes ic-heart { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3) translateY(-2px); } }
@keyframes ic-play { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.services-more {
  margin-top: 28px; text-align: center; color: var(--ink-soft);
  border-top: 1px dashed var(--line); padding-top: 20px;
}

/* デザインサンプル */
.section-works { --section-bg: var(--bg-sand); }
.works-disclaimer { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.works-notice {
  max-width: 640px; margin: -8px auto 18px; text-align: center;
  font-weight: 700; color: var(--sun-dark);
  background: var(--surface); border: 1.5px solid rgba(200, 85, 61, .45); border-radius: 12px;
  padding: 10px 16px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sample-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 10px; max-width: 760px; }
.sample-filters[hidden] { display: none; }
.filter-btn {
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  color: var(--sea); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 16px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter-btn:hover { border-color: var(--sea-soft); }
.filter-btn[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.filter-btn:focus-visible { outline: 3px solid var(--sea-soft); outline-offset: 2px; }
.sample-count { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; min-height: 1.5em; }

.sample-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.sample-card[hidden] { display: none; }
.sample-link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.sample-link:focus-visible { outline: 3px solid var(--sea-soft); outline-offset: 3px; }
.sample-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sand); }
.sample-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease-out); }
.sample-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.45), rgba(255,255,255,0) 55%); }
.sample-flag {
  position: absolute; left: 10px; top: 10px;
  font-size: 12px; line-height: 1.5; font-weight: 700;
  color: #fff; background: rgba(31, 58, 90, .72); padding: 2px 10px; border-radius: 999px;
}
.sample-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.sample-cat { font-size: 14px; color: var(--ink-soft); margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sample-cat-tag { font-size: 12px; font-weight: 700; color: var(--sea); background: var(--bg-sand); border-radius: 6px; padding: 1px 8px; }
.sample-name { font-size: 19px; color: var(--sea); margin: 0 0 8px; }
.sample-tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sample-tags li { font-size: 13px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.sample-cta { margin-top: auto; font-weight: 700; color: var(--sun); display: inline-flex; align-items: center; gap: 6px; }
.sample-cta-arrow { display: inline-block; transition: transform .3s var(--ease-out); }
@media (hover: hover) {
  .sample-link:hover { box-shadow: 0 18px 32px -20px rgba(31, 58, 90, .45); border-color: var(--sea-soft); }
  .sample-link:hover .sample-thumb img { transform: scale(1.05); }
  .sample-link:hover .sample-glare { opacity: 1; }
  .sample-link:hover .sample-cta-arrow { transform: translate(3px, -3px); }
}
.sample-card.is-entering .sample-link { animation: sample-in .5s var(--ease-out) both; }
@keyframes sample-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.sample-more-wrap { text-align: center; margin-top: 22px; }
.sample-more[hidden] { display: none; }

@media (max-width: 599px) {
  .sample-grid { gap: 12px; }
  .sample-link { flex-direction: row; }
  .sample-thumb { flex: 0 0 40%; aspect-ratio: auto; min-height: 150px; }
  .sample-thumb img { position: absolute; inset: 0; }
  .sample-flag { top: auto; bottom: 8px; left: 8px; font-size: 11px; padding: 1px 8px; }
  .sample-thumb img { object-position: 55% top; }
  .sample-body { padding: 12px 14px 14px; }
  .sample-cat { font-size: 13px; }
  .sample-name { font-size: 17px; margin-bottom: 6px; }
  .sample-tags { margin-bottom: 10px; }
  .sample-tags li { font-size: 12px; padding: 0 8px; }
}
@media (min-width: 600px) { .sample-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sample-grid { grid-template-columns: repeat(3, 1fr); } }

/* 仕事の流れ */
.flow-list { list-style: none; padding: 0; margin: 0 auto; max-width: 680px; position: relative; }
.flow-item { display: flex; gap: 18px; position: relative; padding-bottom: 28px; }
.flow-item:last-child { padding-bottom: 0; }
.flow-item:not(:last-child)::before {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px;
  width: 2px; background: var(--line);
}
/* スクロールに合わせて描かれる線（script.js が長さと進み具合を入れる） */
.motion-ok .flow-list::after {
  content: ""; position: absolute; left: 19px; top: 20px; z-index: 0;
  width: 2px; height: var(--line-h, 0px);
  background: var(--sun);
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.flow-step {
  position: relative; z-index: 1;
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sea); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700;
  transition: background-color .4s ease, color .4s ease, transform .4s var(--ease-out), box-shadow .4s ease;
}
.motion-ok .flow-item .flow-step { background: var(--surface); color: var(--sea); box-shadow: inset 0 0 0 2px var(--sea-soft); }
.motion-ok .flow-item.is-active .flow-step { background: var(--sea); color: #fff; box-shadow: 0 0 0 5px rgba(200, 85, 61, .18); transform: scale(1.06); }
.flow-title { font-size: 18px; color: var(--sea); margin: 6px 0 6px; }
.flow-item p { color: var(--ink-soft); }

/* 料金 */
.section-price { --section-bg: var(--bg-sand); }
.price-note { text-align: center; color: var(--ink-soft); margin-top: 32px; }

/* 主役：おまかせプラン */
.plan-main {
  position: relative; max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 2px solid var(--sea);
  border-radius: 22px; padding: 36px 22px 28px;
  box-shadow: 0 24px 44px -30px rgba(31, 58, 90, .6);
  text-align: center;
}
.plan-label {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  margin: 0; white-space: nowrap;
  background: var(--sea); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .1em;
  padding: 4px 18px; border-radius: 999px;
}
.plan-name { font-size: clamp(22px, 6vw, 30px); color: var(--sea); margin-bottom: 22px; }
.plan-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.plan-step {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  background: var(--bg); border-radius: 12px; padding: 10px 18px;
}
.plan-step-when { font-weight: 700; color: var(--ink-soft); }
.plan-step-price { font-family: var(--font-serif); color: var(--sun); font-size: 20px; white-space: nowrap; }
.plan-step-price strong { font-size: 44px; line-height: 1.1; margin: 0 2px; }
.plan-step.is-monthly { background: var(--sea); }
.plan-step.is-monthly .plan-step-when { color: #dbe4ea; }
.plan-step.is-monthly .plan-step-price { color: #fff; }
.plan-step.is-monthly .plan-step-price strong { font-size: 36px; }
.plan-term {
  margin: 0 auto 24px; display: inline-block;
  font-size: 18px; font-weight: 700; color: var(--sea);
  border: 1.5px solid var(--sea-soft); border-radius: 10px; padding: 8px 18px;
}
.plan-term strong { font-size: 22px; color: var(--sun); }
.plan-sub { font-size: 17px; color: var(--sea); margin-bottom: 10px; }
.plan-includes { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 8px; }
.plan-includes li { position: relative; padding-left: 30px; }
.plan-includes li::before {
  content: ""; position: absolute; left: 4px; top: .45em;
  width: 16px; height: 16px; border-radius: 50%; background: var(--sun);
}
.plan-includes li::after {
  content: ""; position: absolute; left: 9px; top: calc(.45em + 4px);
  width: 6px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.plan-note { color: var(--ink-soft); }

/* 先着5店舗 モニター価格 */
.plan-monitor {
  position: relative; max-width: 760px; margin: 28px auto 0;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  background: linear-gradient(135deg, #fbe7d9 0%, #f6d5c2 100%);
  border: 2px dashed var(--sun); border-radius: 18px; padding: 22px 20px;
  overflow: hidden;
}
.plan-monitor::after { /* ゆっくり通り過ぎる光 */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-120%); animation: shine 5s ease-in-out 1s infinite; pointer-events: none;
}
@keyframes shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(300%); } }
.monitor-badge {
  margin: 0; width: 84px; height: 84px; border-radius: 50%;
  background: var(--sun); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; line-height: 1.1; font-size: 13px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.7);
  animation: breathe 3.6s ease-in-out infinite;
}
.monitor-badge strong { font-family: var(--font-serif); font-size: 32px; line-height: 1; }
.monitor-title { font-size: 20px; color: var(--sun-dark); margin-bottom: 2px; }
.monitor-price { font-weight: 700; color: var(--sea); margin-bottom: 8px; }
.monitor-price strong { font-family: var(--font-serif); font-size: 30px; color: var(--sun); margin: 0 2px; }
.monitor-cond-title { font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
.monitor-cond { margin: 0; padding-left: 1.2em; color: var(--ink); }

/* SNS・動画／お得になる仕組み */
.price-heading {
  font-size: 20px; color: var(--sea); text-align: center; margin: 48px 0 18px;
}
.price-heading small { display: block; font-family: var(--font-sans); font-size: 16px; font-weight: 400; color: var(--ink-soft); }
.addon-grid, .perk-grid { display: grid; gap: 14px; max-width: 960px; margin: 0 auto; }
.addon-grid { grid-template-columns: 1fr; }
@media (max-width: 767px) {
  .addon-card {
    display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; text-align: left;
  }
  .addon-card .addon-name { grid-column: 1; grid-row: 1; margin: 0; }
  .addon-card .addon-desc { grid-column: 1; grid-row: 2; }
  .addon-card .addon-price { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
.addon-card, .perk-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px;
}
.addon-card { text-align: center; }
.addon-name { font-size: 16px; color: var(--sea); margin-bottom: 4px; }
.addon-price { font-family: var(--font-serif); color: var(--sun); margin-bottom: 6px; white-space: nowrap; }
.addon-price strong { font-size: 24px; margin: 0 2px; }
.addon-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.7; }
.perk-card { border-left: 4px solid var(--sun); }
.perk-name { font-size: 17px; color: var(--sea); margin-bottom: 4px; }
.perk-card p { color: var(--ink-soft); }
.perk-card strong { color: var(--sun-dark); }

@media (max-width: 380px) {
  .addon-price strong { font-size: 22px; }
  .plan-step-price strong { font-size: 38px; }
}
@media (min-width: 768px) {
  .plan-main { padding: 44px 48px 36px; }
  .plan-steps { grid-template-columns: 1fr 1fr 1.3fr; }
  .plan-step { flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; }
  .addon-grid { grid-template-columns: repeat(4, 1fr); }
  .perk-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-monitor { padding: 24px 32px; gap: 28px; }
  .monitor-badge { width: 100px; height: 100px; }
}

/* プロフィール */
.profile-inner { display: grid; gap: 28px; }
.photo-profile {
  width: 200px; height: 200px; border-radius: 50%; margin: 0 auto;
  justify-content: center; align-items: flex-end;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line);
}
.profile-illust { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-profile .photo-note { margin: 0 0 22px; }
.profile-img { width: 200px; height: 200px; border-radius: 50%; margin: 0 auto; }
.profile-area { color: var(--sea); font-weight: 700; }

/* FAQ */
.section-faq { --section-bg: var(--bg-sand); }
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 16px 48px 16px 20px; position: relative;
  font-weight: 700; color: var(--sea);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q. "; color: var(--sun); font-family: var(--font-serif); }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--sea-soft); font-weight: 400;
  transition: transform .3s ease;
}
.faq-item[open] summary::after { content: "−"; transform: translateY(-50%) rotate(180deg); }
.faq-item p { padding: 0 20px 18px; color: var(--ink-soft); }
.faq-item[open] p { animation: fade-up .45s var(--ease-out) both; }

/* お問い合わせ */
.section-contact { --section-bg: var(--sea); color: #f6f1e7; }
.section-contact .section-title { color: #fff; }
.section-contact .section-lead { color: #dbe4ea; }
.contact-inner { text-align: center; }
.contact-buttons { display: grid; gap: 16px; max-width: 460px; margin: 0 auto; }
.contact-buttons .btn-large { width: 100%; }
.contact-sub { display: grid; gap: 12px; }
.section-contact .btn-outline { color: #fff; border-color: rgba(255,255,255,0.7); }
.section-contact .btn-outline:hover { background: #fff; color: var(--sea); }

/* フッター */
.site-footer { position: relative; --section-bg: #182e47; background: var(--section-bg); color: #c9d4dc; padding: 44px 0 32px; text-align: center; }
.footer-name { font-family: var(--font-serif); font-size: 18px; color: #fff; }
.footer-name span { display: block; font-family: var(--font-sans); font-size: 12px; color: #a9b8c3; }
.footer-sns { list-style: none; padding: 0; margin: 16px 0; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-sns a { color: #e8eef2; text-decoration: none; font-size: 15px; }
.footer-sns a:hover { text-decoration: underline; }
.copyright { color: #8fa1ae; }

/* ===== PC・タブレット ===== */
@media (min-width: 600px) {
  .contact-sub { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  body { font-size: 17px; }
  .pc-only { display: inline; }
  .section { padding: 96px 0 88px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 56px 0 96px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .hero-title { font-size: clamp(28px, 3.4vw, 40px); }
  .profile-inner { grid-template-columns: 240px 1fr; align-items: start; gap: 48px; }
  .photo-profile, .profile-img { width: 240px; height: 240px; }
  .wave-top { height: 32px; top: -31px; }
  .marquee li { font-size: 20px; }
  .deco { opacity: .28; }
}

/* ===== 動きを減らす設定の人には、動きを止めて全部を最初から見せる ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn-breathe::after { display: none; }
  .title-pending .hero-title, .title-pending .hero-fade,
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media (min-width: 768px) {
  .marquee-sea, .marquee-light { padding-bottom: 46px; }
}

/* =====================================================================
   追加の大きな動き（背景の映像・回る丸バッジ・3Dカルーセル・流れる大文字）
   ===================================================================== */

/* ヘッダー下のスクロール進み具合の線 */
.scroll-progress { display: none; }
.js .scroll-progress {
  display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--sun); transform-origin: left center; transform: scaleX(var(--sp, 0));
}

/* トップ：背景の映像（canvas）を全面に敷く。ヘッダーの下まで回り込ませる */
.hero { position: relative; overflow: hidden; margin-top: -64px; padding-top: 96px; }
.hero > .container { position: relative; z-index: 2; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* JSなし・映像が描かれるまでの代わり */
  background: linear-gradient(180deg, #efd3bd 0%, #f6e3cf 52%, #9fb8c6 60%, #3f6480 100%);
}
.hero-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero-canvas.is-ready { opacity: 1; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(246,241,231,.86) 0%, rgba(246,241,231,.74) 42%, rgba(246,241,231,.08) 72%, rgba(246,241,231,0) 100%);
}

/* 回る文字の丸バッジ */
.hero-visual { position: relative; }
.spin-badge {
  position: absolute; z-index: 3; top: -34px; left: -10px;
  width: 96px; height: 96px; border-radius: 50%;
  box-shadow: 0 10px 24px -12px rgba(31, 58, 90, .5);
}
.spin-badge svg { display: block; width: 100%; height: 100%; }
.spin-badge text { font-family: var(--font-sans); }
.spin-badge-text { transform-box: view-box; transform-origin: 60px 60px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* PCでマウスに合わせてイラストが少し傾く（script.js が値を入れる） */
.hero-tilt { will-change: transform; }

/* 3Dで回る風景カルーセル（JSなしでは2列・3列に並ぶだけ） */
.section-scenes { --section-bg: var(--bg); overflow: hidden; }
.carousel-ring { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.scene-card {
  position: relative; margin: 0;
  border-radius: 16px; overflow: hidden;
  background: var(--bg-sand);
  box-shadow: 0 16px 30px -18px rgba(31, 58, 90, .5);
}
.scene-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.scene-card figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 13px; line-height: 1.4; font-weight: 700;
  color: var(--sea); background: rgba(255, 253, 248, .9);
  padding: 4px 12px; border-radius: 999px;
}
.carousel-controls { display: none; }

.carousel.is-3d { --cw: 150px; }
.carousel.is-3d .carousel-stage {
  position: relative; height: calc(var(--cw) * 1.25 + 64px);
  perspective: 1000px; perspective-origin: 50% 40%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.carousel.is-3d .carousel-stage.is-dragging { cursor: grabbing; }
.carousel.is-3d .carousel-ring {
  display: block; position: absolute; left: 50%; top: 28px;
  width: var(--cw); height: calc(var(--cw) * 1.25); margin-left: calc(var(--cw) / -2);
  transform-style: preserve-3d; will-change: transform;
}
.carousel.is-3d .scene-card {
  position: absolute; inset: 0;
  transform: rotateY(calc(var(--n) * 60deg)) translateZ(var(--r, 160px));
}
.carousel.is-3d .carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px;
}
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--sea); background: var(--surface); color: var(--sea);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 0 0 3px;
  transition: background-color .2s, color .2s;
}
.carousel-btn:hover { background: var(--sea); color: #fff; }
.carousel-btn:focus-visible { outline: 3px solid var(--sea-soft); outline-offset: 3px; }
.carousel-hint { font-size: 14px; color: var(--ink-soft); }

/* スクロールで横に流れる大きな文字 */
.scroll-type { overflow: hidden; background: var(--bg); padding: 12px 0 52px; }
.scroll-type-line {
  margin: 0; white-space: nowrap; will-change: transform;
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(44px, 11vw, 128px); line-height: 1.25; letter-spacing: .04em;
  color: #e6dac4;
}
.scroll-type-line.is-outline { color: transparent; -webkit-text-stroke: 1.2px rgba(63, 100, 128, .55); }

@media (min-width: 768px) {
  .hero { margin-top: -64px; padding-top: 120px; }
  .hero-veil {
    background: linear-gradient(90deg, rgba(246,241,231,.9) 0%, rgba(246,241,231,.72) 38%, rgba(246,241,231,.1) 68%, rgba(246,241,231,0) 100%);
  }
  .spin-badge { width: 120px; height: 120px; top: -44px; left: -44px; }
  .carousel-ring { grid-template-columns: repeat(3, 1fr); }
  .carousel.is-3d { --cw: 210px; }
  .scroll-type { padding: 24px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas { opacity: 1; }
}

/* =====================================================================
   完成版の仕上げ：読み込み演出・ナビ・慣性スクロール・仕事の流れの固定表示・
   独自カーソル・上へ戻るボタン・見出しの分割表示
   ===================================================================== */

/* 読み込み演出（JSが動く人だけ。JSが止まっても3秒で必ず消える） */
.loader { display: none; }
.show-loader .loader, .loader.is-leaving {
  display: flex; position: fixed; inset: 0; z-index: 1000;
  flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
}
.show-loader .loader { animation: loader-failsafe .01s linear 3s forwards; }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }
.loader.is-leaving { clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }
.loader.is-gone { display: none !important; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader-mark { width: 96px; height: 96px; }
.loader-ring { stroke-dasharray: 340; stroke-dashoffset: 340; animation: loader-draw 1.2s cubic-bezier(.6, 0, .2, 1) .1s forwards; transform-origin: 60px 60px; transform: rotate(-90deg); }
.loader-mark text { opacity: 0; animation: loader-fade .6s ease .35s forwards; }
.loader-wave { width: 160px; height: 16px; }
.loader-wave path { stroke-dasharray: 280; stroke-dashoffset: 280; animation: loader-draw 1.1s ease .45s forwards; }
.loader-text { margin: 0; font-family: var(--font-serif); color: var(--sea); letter-spacing: .3em; opacity: 0; animation: loader-fade .6s ease .7s forwards; }
.loader-skip { position: absolute; bottom: 28px; margin: 0; font-size: 13px; color: var(--ink-soft); opacity: 0; animation: loader-fade .5s ease .9s forwards; }
@keyframes loader-draw { to { stroke-dashoffset: 0; } }
@keyframes loader-fade { to { opacity: 1; } }

/* ヘッダーのページ内ナビ（PCのみ） */
.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav { display: flex; gap: 26px; margin-left: auto; margin-right: 24px; }
  .site-nav a {
    position: relative; font-size: 15px; font-weight: 700; color: var(--sea); text-decoration: none; padding: 4px 0;
  }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--sun);
    transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
  }
  .site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
}

/* 慣性スクロール（Lenis）用 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* 見出しの分割表示（motion.js が文字を分ける） */
.split-char { display: inline-block; will-change: transform, opacity; }

/* 仕事の流れ：PCでは左に絵、右にステップ。固定表示でステップが切り替わる */
.flow-visual { display: none; }
@media (min-width: 960px) {
  .flow-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px; align-items: center; max-width: 1000px; margin: 0 auto;
  }
  .flow-visual { display: block; position: sticky; top: 110px; }
  .flow-frame {
    position: relative; width: 100%; max-width: 400px; margin: 0 auto; aspect-ratio: 4 / 5;
    border-radius: 24px; overflow: hidden; background: var(--bg-sand);
    box-shadow: 0 30px 60px -36px rgba(31, 58, 90, .6);
  }
  .flow-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    clip-path: inset(100% 0 0 0); transform: scale(1.08);
    transition: clip-path .9s cubic-bezier(.7, 0, .2, 1), transform 1.2s var(--ease-out);
  }
  .flow-img[data-step="0"], .flow-img.is-shown { clip-path: inset(0 0 0 0); transform: scale(1); }
  .flow-counter { text-align: center; margin: 14px 0 0; font-family: var(--font-serif); color: var(--ink-soft); letter-spacing: .1em; }
  .flow-counter-now { color: var(--sun); font-size: 22px; }
  .flow-list.is-pinned .flow-item { opacity: .38; transition: opacity .45s ease; }
  .flow-list.is-pinned .flow-item.is-active:not(.is-past) { opacity: 1; }
  .flow-list.is-pinned .flow-item.is-past { opacity: .6; }
}

/* 上へ戻るボタン（円が読んだ量を示す） */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 253, 248, .92); box-shadow: 0 10px 24px -12px rgba(31, 58, 90, .5);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s var(--ease-out);
}
.to-top svg { width: 44px; height: 44px; }
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.to-top:focus-visible { outline: 3px solid var(--sea-soft); outline-offset: 3px; }

/* 独自カーソル（PC・マウス操作のときだけ） */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s ease; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--sun); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(31, 58, 90, .55);
  transition: opacity .3s ease, width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background-color .3s ease, border-color .3s ease;
}
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.has-cursor.cursor-out .cursor-dot, .has-cursor.cursor-out .cursor-ring { opacity: 0; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(200, 85, 61, .1); border-color: rgba(200, 85, 61, .6); }
.cursor-ring.is-drag { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor .carousel-stage { cursor: none; }

/* デザインサンプルの並べ替え（View Transitions 対応ブラウザ） */
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  .loader, .cursor-dot, .cursor-ring { display: none !important; }
  .flow-img { clip-path: none !important; transform: none !important; }
}
