/* Layout: テーマは「記憶」。広い余白の中に、色の薄れた写真と縦書きの短い言葉を置く。
   左右非対称。見出しは小さく、写真と余白に語らせる。日付・天気・場所は日記のように添える。 */
:root {
  --bg: #f3f6f7;            /* 朝の空気 */
  --paper: #e8eef1;         /* 少し色のある面 */
  --ink: #1a2c35;           /* 深い海 */
  --faint: #6f838d;         /* 薄れた文字 */
  --line: #d3dde2;
  --sea: #2f6e8a;           /* 海の青（アクセント） */
  --haze: #a9c6d4;          /* 霞んだ空 */
  --night: #0f1d25;
  --night-ink: #e7eef1;
  --tag-bg: #f2e6c4;
  --tag-ink: #5b4614;
  --latin: "Cormorant Garamond", "Shippori Mincho", Georgia, serif;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d181e; --paper: #132229; --ink: #e2eaee; --faint: #8ea3ad; --line: #22343c;
    --sea: #8cc3da; --haze: #3e6476; --night: #071116; --night-ink: #e7eef1;
    --tag-bg: #4a3b16; --tag-ink: #f2e6c4; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d181e; --paper: #132229; --ink: #e2eaee; --faint: #8ea3ad; --line: #22343c;
  --sea: #8cc3da; --haze: #3e6476; --night: #071116; --night-ink: #e7eef1;
  --tag-bg: #4a3b16; --tag-ink: #f2e6c4; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-tap-highlight-color: transparent; } /* タップしたときに出る四角い影を出さない */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 2; letter-spacing: .04em; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--sea); outline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.tag { display: inline-block; font-family: var(--body); font-size: 10.5px; line-height: 1; letter-spacing: .08em; padding: 4px 6px 3px; border-radius: 2px; background: var(--tag-bg); color: var(--tag-ink); vertical-align: middle; white-space: nowrap; font-style: normal; }
.notice { background: var(--tag-bg); color: var(--tag-ink); font-size: 12px; line-height: 1.6; }
.notice .wrap { padding-block: 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

/* ヘッダー：ごく控えめに */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.logo b { font-family: var(--latin); font-weight: 300; font-size: 22px; letter-spacing: .42em; }
.logo small { font-family: var(--mincho); font-size: 10.5px; letter-spacing: .3em; color: var(--faint); }
nav.main { display: flex; gap: 28px; font-family: var(--latin); font-size: 15px; letter-spacing: .14em; }
nav.main a { text-decoration: none; color: var(--faint); transition: color .4s; }
nav.main a:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; font-family: var(--latin); font-size: 16px; letter-spacing: .16em; color: var(--ink); cursor: pointer; padding: 6px 0; }
@media (max-width: 860px) {
  nav.main { display: none; }
  nav.main.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px)); gap: 14px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-block; }
}

/* ヒーロー：薄れていく記憶の一枚 */
.hero { padding-block: 24px 120px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.memory { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--haze); }
.memory canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.memory::after { /* 記憶の縁がぼやける */ content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px 30px color-mix(in srgb, var(--bg) 70%, transparent); }
.memory .cap { position: absolute; left: 20px; bottom: 16px; z-index: 1; font-family: var(--latin); font-style: italic; font-size: 14px; letter-spacing: .1em; color: #f6f8f9; text-shadow: 0 1px 8px rgba(10,30,40,.35); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vertical { writing-mode: vertical-rl; font-family: var(--mincho); font-size: clamp(17px, 2vw, 22px); line-height: 2.2; letter-spacing: .32em; height: 22em; max-height: 70vw; color: var(--ink); }
.vertical span { color: var(--faint); }
.hero-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 32px; align-items: end; flex-wrap: wrap; }
.hero-foot h1 { font-family: var(--latin); font-weight: 300; font-size: clamp(36px, 6.4vw, 88px); line-height: 1; letter-spacing: .02em; }
.hero-foot h1 em { font-style: italic; color: var(--sea); }
.hero-foot p { color: var(--faint); max-width: 26em; font-size: 13px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 8px 80px; }
  .vertical { height: auto; max-height: none; writing-mode: horizontal-tb; letter-spacing: .14em; line-height: 2; }
  .vertical br { display: none; }
}

/* セクション */
section.block > .wrap { padding-block: 120px; }
@media (max-width: 760px) { section.block > .wrap { padding-block: 80px; } }
.head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 56px; flex-wrap: wrap; }
.head .en { font-family: var(--latin); font-weight: 300; font-style: italic; font-size: clamp(30px, 4vw, 44px); letter-spacing: .04em; line-height: 1; }
.head .ja { font-size: 11px; letter-spacing: .3em; color: var(--faint); }
.quiet { color: var(--faint); }

/* About：大きな余白に、一文だけ */
.about { display: grid; grid-template-columns: 5fr 4fr; gap: 8%; align-items: center; }
.about .statement { font-family: var(--mincho); font-size: clamp(22px, 3vw, 34px); line-height: 1.9; letter-spacing: .12em; }
.about .text { display: flex; flex-direction: column; gap: 1.2em; color: var(--faint); max-width: 30em; margin-top: 40px; }
.still { position: relative; background: var(--paper); aspect-ratio: 3 / 4; max-width: 100%; display: grid; place-items: center; color: var(--faint); font-size: 11.5px; letter-spacing: .2em; text-align: center; }
.still.faded { background: linear-gradient(180deg, #cfe0e8, #9fbfcd 60%, #6f98ab); color: #f4f8fa; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 48px; } }

/* 想い：十年後のふたりへ */
.letter { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 56px; border-top: 1px solid var(--line); padding-top: 40px; }
@media (max-width: 860px) { .letter { grid-template-columns: 1fr; gap: 40px; } }
.letter h3 { font-family: var(--mincho); font-size: 17px; letter-spacing: .14em; margin-bottom: 12px; }
.letter .when { font-family: var(--latin); font-style: italic; color: var(--sea); font-size: 15px; letter-spacing: .08em; display: block; margin-bottom: 8px; }
.letter p { color: var(--faint); font-size: 13.5px; }

/* Gallery：アルバムをめくるように、大きさをずらして並べる */
.tabs { display: flex; gap: 28px; margin-bottom: 40px; }
.tabs button { background: none; border: 0; padding: 0 0 6px; font-family: var(--latin); font-size: 20px; letter-spacing: .12em; color: var(--faint); cursor: pointer; border-bottom: 1px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.album { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 32px; align-items: start; }
.album .m { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.album .m:nth-child(1) { grid-column: 1 / 8; }
.album .m:nth-child(2) { grid-column: 9 / 13; margin-top: 18%; }
.album .m:nth-child(3) { grid-column: 2 / 6; }
.album .m:nth-child(4) { grid-column: 7 / 13; margin-top: 8%; }
@media (max-width: 760px) { .album { grid-template-columns: 1fr; gap: 40px; } .album .m:nth-child(n) { grid-column: auto; margin-top: 0; } }
.pic { position: relative; aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; }
.album .m:nth-child(2) .pic, .album .m:nth-child(3) .pic { aspect-ratio: 4 / 5; }
.pic::before { /* 記憶のように霞んでいて、近づくと鮮明になる */ content: ""; position: absolute; inset: 0; background: inherit; background-size: inherit; animation: inherit; filter: saturate(.55) brightness(1.08); transition: opacity 1.2s ease; }
.m:hover .pic::before, .m:focus-within .pic::before { opacity: 0; }
.pic .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.pic .play span { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85); display: grid; place-items: center; }
.pic .play span::before { content: ""; border-left: 10px solid rgba(255,255,255,.95); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.diary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--faint); letter-spacing: .1em; }
.diary .d { font-family: var(--latin); font-style: italic; font-size: 14px; color: var(--ink); }
.c1 { background: linear-gradient(180deg, #b7d8ea 0%, #7fb2cd 45%, #2c6684 100%); }
.c2 { background: linear-gradient(180deg, #eef2ee 0%, #bcd5dc 50%, #6c9cae 100%); }
.c3 { background: linear-gradient(180deg, #f2ead8 0%, #a9cdd5 55%, #3f7b8c 100%); }
.c4 { background: linear-gradient(180deg, #33536f 0%, #6b9bb8 50%, #d3e3ea 100%); }
.c5 { background: linear-gradient(180deg, #c8dccf 0%, #78a493 55%, #2b554c 100%); }
.c6 { background: linear-gradient(180deg, #dce9f0 0%, #92b9cb 45%, #3e6273 100%); }

/* Plan：カードではなく、静かな一覧に */
.plans { border-top: 1px solid var(--line); }
.plan { display: grid; grid-template-columns: 200px 1fr 260px; gap: 32px; padding-block: 40px; border-bottom: 1px solid var(--line); align-items: start; }
.plan .k { font-family: var(--latin); font-style: italic; font-size: 22px; color: var(--sea); line-height: 1.2; }
.plan h3 { font-family: var(--mincho); font-size: 19px; letter-spacing: .12em; margin-bottom: 8px; }
.plan p { color: var(--faint); font-size: 13.5px; max-width: 32em; }
.plan dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 13px; }
.plan dt { color: var(--faint); }
.plan dd { margin: 0; font-variant-numeric: tabular-nums; font-family: var(--latin); font-size: 15px; letter-spacing: .06em; }
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; gap: 14px; } }
.plan-note { margin-top: 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; color: var(--faint); font-size: 13px; }
.link { font-family: var(--latin); font-size: 16px; letter-spacing: .12em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--ink); }
.link:hover { color: var(--sea); }

/* Flow：記憶が積み重なる時間軸 */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.flow li { position: relative; padding-top: 32px; padding-right: 20px; }
.flow li::before { content: ""; position: absolute; top: 3px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--sea); }
.flow li:last-child::before { background: var(--sea); }
.flow .n { font-family: var(--latin); font-style: italic; font-size: 13px; color: var(--sea); letter-spacing: .1em; }
.flow h3 { font-family: var(--mincho); font-size: 15px; letter-spacing: .1em; margin: 4px 0 6px; }
.flow p { color: var(--faint); font-size: 12.5px; line-height: 1.9; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow::before { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow li { padding: 0 0 28px 32px; }
  .flow li::before { top: 8px; }
}

/* Voice */
.voice-empty { max-width: 34em; color: var(--faint); font-family: var(--mincho); font-size: 15px; line-height: 2.1; display: flex; flex-direction: column; gap: 10px; }

/* FAQ */
.faq { max-width: 760px; margin-left: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--mincho); font-size: 15px; letter-spacing: .08em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--latin); font-size: 24px; font-weight: 300; color: var(--faint); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--faint); font-size: 13.5px; }

/* Contact：夜の海 */
section.contact { background: var(--night); color: var(--night-ink); }
section.contact .head .ja, section.contact .quiet { color: color-mix(in srgb, var(--night-ink) 60%, transparent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10%; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 56px; } }
.contact .statement { font-family: var(--mincho); font-size: clamp(20px, 2.4vw, 26px); line-height: 2; letter-spacing: .12em; margin-bottom: 40px; }
.channels { display: flex; flex-direction: column; border-top: 1px solid color-mix(in srgb, var(--night-ink) 18%, transparent); }
.channel { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid color-mix(in srgb, var(--night-ink) 18%, transparent); font-size: 13px; flex-wrap: wrap; }
.channel b { font-family: var(--latin); font-weight: 400; font-size: 16px; letter-spacing: .14em; }
.channel span { color: color-mix(in srgb, var(--night-ink) 65%, transparent); }
form.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
form.inquiry .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.inquiry { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 11px; letter-spacing: .2em; color: color-mix(in srgb, var(--night-ink) 60%, transparent); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; color: var(--night-ink); background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--night-ink) 30%, transparent); padding: 8px 0; border-radius: 0; width: 100%; color-scheme: dark; }
.field select option { background: var(--night); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--night-ink) 35%, transparent); }
.field textarea { min-height: 96px; resize: vertical; }
.send { background: none; border: 1px solid var(--night-ink); color: var(--night-ink); font-family: var(--latin); font-size: 16px; letter-spacing: .2em; padding: 12px 36px; cursor: pointer; transition: background .4s, color .4s; }
.send:hover { background: var(--night-ink); color: var(--night); }
.form-msg { font-size: 12.5px; color: color-mix(in srgb, var(--night-ink) 75%, transparent); }

footer.site { background: var(--night); color: color-mix(in srgb, var(--night-ink) 55%, transparent); border-top: 1px solid color-mix(in srgb, var(--night-ink) 12%, transparent); }
footer.site .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 11.5px; letter-spacing: .1em; }
footer.site .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site .logo b { color: var(--night-ink); font-size: 18px; }

/* オープニング：霞の中からロゴが浮かび、ほどけるように本編へ。JSが動いたときだけ付く */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #e6f0f5 45%, #bcd6e3 100%);
  animation: introOut 1.8s cubic-bezier(.4,0,.2,1) 3.1s forwards; }
.intro .mark { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #1a2c35; text-align: center; padding: 0 20px; }
.intro .word { font-family: var(--latin); font-weight: 300; font-size: clamp(30px, 6vw, 56px); letter-spacing: .5em; margin-right: -.5em; display: flex; }
.intro .word span { opacity: 0; filter: blur(12px); animation: letterIn 1.6s ease forwards; }
.intro .sub { font-family: var(--mincho); font-size: 12px; letter-spacing: .5em; margin-right: -.5em; color: #6f838d; opacity: 0; filter: blur(6px); animation: letterIn 1.6s ease 1.5s forwards; }
.intro .veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at 30% 70%, rgba(150,200,222,.35), transparent 70%), radial-gradient(50% 40% at 75% 30%, rgba(255,248,230,.6), transparent 70%); animation: drift 5s ease-in-out forwards; }
.intro.skip { animation: introOut .7s ease forwards; }
@keyframes letterIn { to { opacity: 1; filter: blur(0); } }
@keyframes introOut { to { opacity: 0; filter: blur(10px); transform: scale(1.04); visibility: hidden; } }
@keyframes drift { from { transform: translate3d(-3%, 2%, 0) scale(1.05); } to { transform: translate3d(3%, -2%, 0) scale(1); } }
/* 本編は、ピントが合うように現れる */
.opening .memory { animation: surface 2.6s cubic-bezier(.2,.6,.2,1) 3.3s both; }
.opening .vertical { animation: surface 2.4s ease 3.9s both; }
.opening .hero-foot { animation: surface 2.4s ease 4.3s both; }
.opening header.site { animation: fadeIn 1.6s ease 4.6s both; }
.opening.skipped .memory, .opening.skipped .vertical, .opening.skipped .hero-foot, .opening.skipped header.site { animation-delay: .3s; }
@keyframes surface { from { opacity: 0; filter: blur(14px); transform: scale(1.02); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ギャラリー：にじむように現れ、波のようにゆっくり息づく */
.album .m { transition: opacity 1.8s cubic-bezier(.2,.6,.2,1), filter 1.8s cubic-bezier(.2,.6,.2,1), transform 1.8s cubic-bezier(.2,.6,.2,1); }
.album .m.await { opacity: .25; filter: blur(12px); transform: translateY(28px); }
.pic { background-size: 100% 135%; animation: tide 16s ease-in-out infinite alternate; transition: transform 1.6s cubic-bezier(.2,.6,.2,1); }
.album .m:nth-child(2n) .pic { animation-duration: 20s; animation-delay: -6s; }
@keyframes tide { from { background-position: 50% 0%; } to { background-position: 50% 100%; } }
.pic::after { /* 水面を渡る光 */ content: ""; position: absolute; inset: -20%; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); transform: translateX(-60%); animation: glint 11s ease-in-out infinite; }
.album .m:nth-child(3n) .pic::after { animation-delay: 3.5s; }
.album .m:nth-child(3n+2) .pic::after { animation-delay: 7s; }
@keyframes glint { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.m:hover .pic, .m:focus-within .pic { transform: scale(1.015); }
.diary .d { transition: color 1.2s; }
.m:hover .diary .d, .m:focus-within .diary .d { color: var(--sea); }
@media (prefers-reduced-motion: reduce) { .album .m.await { opacity: 1; filter: none; transform: none; } }

/* 背景：グラデーションがゆっくり揺れ、触れたところに光が灯る */
#tideBg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
/* ヘッダー：箱をなくし、背景のグラデーションに溶けこませる */
header.site { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
header.site::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 50%, transparent 100%); }
html, body { overflow-x: clip; }
header.site .wrap { padding-block: 22px; }
body::before { background: color-mix(in srgb, var(--bg) 92%, transparent); }
@media (max-width: 860px) { nav.main.open { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 0; } }
/* 仮のお知らせは、画面の角に小さく */
.notice { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; border-radius: 999px; max-width: calc(100% - 24px); box-shadow: 0 4px 20px rgba(20,40,50,.12); }
.notice .wrap { padding: 7px 14px; max-width: none; }
/* 記憶が浮かぶように：文章も、画面に入るとにじむように現れる */
.recall { transition: opacity 2s cubic-bezier(.2,.6,.2,1), filter 2s cubic-bezier(.2,.6,.2,1), transform 2s cubic-bezier(.2,.6,.2,1); }
.recall.await { opacity: .2; filter: blur(8px); transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .recall.await { opacity: 1; filter: none; transform: none; } }

/* ---- 全体をシームレスに ---- */
html { background: var(--bg); }
body { margin: 0; }
#tideBg { z-index: 0; }
main, footer.site { position: relative; z-index: 1; }
header.site::before { opacity: 0; transition: opacity .8s ease; inset: 0 0 -32px 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent 100%); }
header.site.scrolled::before { opacity: 1; }
body::before { background: transparent; }
.notice { font-size: 11px; box-shadow: 0 2px 12px rgba(20,40,50,.10); }
.notice .wrap { padding: 5px 12px 5px 6px; gap: 8px; align-items: center; }
@media (max-width: 600px) { .notice { font-size: 10.5px; left: auto; right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } }

/* ---- メニュー（スマホ）：全画面にふわりと現れる ---- */
html.menu-open { overflow: hidden; }
html.menu-open .notice { opacity: 0; pointer-events: none; }
.notice { transition: opacity .5s; }
.menu-toggle, .logo { position: relative; z-index: 2; }
@media (max-width: 860px) {
  /* コンパクトなすりガラスのパネル。Menuボタンの下から、ふわりと開く */
  nav.main, nav.main.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; z-index: 1;
    top: calc(env(safe-area-inset-top, 0px) + 72px); right: max(16px, env(safe-area-inset-right, 0px)); left: auto; bottom: auto;
    width: min(240px, calc(100% - 32px)); padding: 14px 10px;
    border-radius: 22px; border: 1px solid rgba(255,255,255,.38);
    background: linear-gradient(145deg, color-mix(in srgb, var(--bg) 52%, transparent), color-mix(in srgb, var(--bg) 30%, transparent));
    -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 18px 50px rgba(15,35,45,.18), inset 0 1px 0 rgba(255,255,255,.45);
    font-size: 20px; letter-spacing: .1em;
    transform-origin: top right; transform: translateY(-10px) scale(.94);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1), visibility 0s linear .55s;
  }
  nav.main.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  nav.main a { color: var(--ink); font-style: italic; font-weight: 300; line-height: 1.3; padding: 9px 14px; border-radius: 12px;
    opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease, background .3s; }
  nav.main a:hover, nav.main a:focus-visible { background: color-mix(in srgb, var(--bg) 45%, transparent); }
  nav.main.open a { opacity: 1; transform: none; }
  nav.main.open a:nth-child(1) { transition-delay: .06s; } nav.main.open a:nth-child(2) { transition-delay: .10s; }
  nav.main.open a:nth-child(3) { transition-delay: .14s; } nav.main.open a:nth-child(4) { transition-delay: .18s; }
  nav.main.open a:nth-child(5) { transition-delay: .22s; } nav.main.open a:nth-child(6) { transition-delay: .26s; }
  nav.main.open a:nth-child(7) { transition-delay: .30s; }
  :root[data-theme="dark"] nav.main { border-color: rgba(255,255,255,.14); box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) nav.main { border-color: rgba(255,255,255,.14); box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); }
}

/* ---- メニューにも記憶のゆらぎを ---- */
@media (max-width: 860px) {
  nav.main { isolation: isolate; overflow: hidden; filter: blur(14px);
    transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .8s cubic-bezier(.2,.7,.2,1), visibility 0s linear .8s; }
  nav.main.open { filter: none;
    transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .8s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  nav.main::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none;
    background:
      radial-gradient(40% 35% at 25% 30%, rgba(170,210,232,.75), transparent 70%),
      radial-gradient(45% 40% at 75% 65%, rgba(110,170,200,.55), transparent 70%),
      radial-gradient(40% 35% at 40% 85%, rgba(186,216,192,.6), transparent 70%),
      radial-gradient(35% 30% at 80% 15%, rgba(255,248,230,.7), transparent 70%);
    filter: blur(18px); opacity: .7; animation: menuDrift 9s ease-in-out infinite alternate; }
  nav.main a { filter: blur(6px); transition: opacity .7s ease, transform .7s ease, filter .9s ease, background .3s; }
  nav.main.open a { filter: none; }
  main, footer.site { transition: filter .8s ease, opacity .8s ease; }
  html.menu-open main, html.menu-open footer.site { filter: blur(4px); opacity: .75; }
}
@keyframes menuDrift {
  0%   { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(5%, 3%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-2%, 6%, 0) rotate(-6deg) scale(1.02); }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) nav.main::before { opacity: .35; } }
@media (max-width: 860px) { :root[data-theme="dark"] nav.main::before { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { nav.main::before { animation: none; } }

/* ---- メニュー：すりガラスをやめ、記憶のゆらぎのグラデーションそのものをパネルに ---- */
@media (max-width: 860px) {
  nav.main, nav.main.open {
    border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    box-shadow: 0 24px 60px -18px color-mix(in srgb, var(--sea) 35%, transparent);
    border-radius: 28px;
  }
  nav.main::before { opacity: .9; filter: blur(22px); }
  :root[data-theme="dark"] nav.main { border: 0; box-shadow: 0 24px 60px -18px rgba(0,0,0,.5); }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) nav.main { border: 0; box-shadow: 0 24px 60px -18px rgba(0,0,0,.5); }
  :root:not([data-theme="light"]) nav.main::before { opacity: .4; }
}

/* ---- メニュー：枠なし。文字だけが、ぼやけた記憶の中から浮かぶ ---- */
@media (max-width: 860px) {
  nav.main, nav.main.open, :root[data-theme="dark"] nav.main {
    background: none; box-shadow: none; border: 0; border-radius: 0; overflow: visible;
    align-items: flex-end; padding: 8px 4px; width: auto; gap: 4px; font-size: 24px;
  }
  nav.main::before { display: none; }
  nav.main a { text-align: right; padding: 6px 0;
    text-shadow: 0 0 18px var(--bg), 0 0 36px var(--bg); }
  nav.main a:hover, nav.main a:focus-visible { background: none; color: var(--sea); }
  html.menu-open main, html.menu-open footer.site { filter: blur(10px); opacity: .45; }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) nav.main { background: none; box-shadow: none; }
}

/* ---- メニューの移動：白い光のトランジション ---- */
nav.main a.chosen { color: #fff !important; text-shadow: 0 0 12px #fff, 0 0 28px rgba(255,255,255,.9), 0 0 60px rgba(255,250,236,.8) !important; transform: scale(1.04) !important; transition: color .5s ease, text-shadow .6s ease, transform .8s cubic-bezier(.2,.7,.2,1) !important; }
.flash { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 30%), rgba(255,253,246,.7) 0%, rgba(240,248,252,.42) 28%, rgba(190,222,236,.22) 60%, rgba(150,196,218,.12) 100%);
  transition: opacity .9s cubic-bezier(.65,0,.35,1); }
.flash.on { opacity: 1; }
/* 光の間は本文をそっと隠し、背景の青だけが透けて見えるようにする */
main, footer.site { transition: filter .8s ease, opacity .8s ease; }
.flash.off { opacity: 0; transition: opacity 1.6s cubic-bezier(.33,0,.2,1); }

/* ---- 本文はヘッダーの下でふっと消える：背景と同じ絵を描いた固定レイヤーを重ねる（スクロール中は合成だけで済む） ---- */
header.site::before { display: none; }
#veil { position: fixed; left: 0; top: 0; width: 100%; z-index: 8; pointer-events: none; display: block; will-change: opacity; transform: translateZ(0); opacity: 0; }

/* 結婚式当日がメイン */
.plan-main .k { font-size: 26px; }
.plan-main h3 { font-size: 22px; }
.main-tag { display: inline-block; margin-top: 8px; font-family: var(--body); font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--sea); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.plan-main { padding-block: 52px; }

/* ---- トップの全画面ムービー ----
   画面いっぱいに映像を流し、下端はページの色へ溶かして枠を作らない。
   映像が届くまでは空と海の光（canvas）、届いたらゆっくり映像に移り変わる。 */
.film { position: relative; height: 100vh; height: 100svh; min-height: 520px; aspect-ratio: auto; max-width: none;
  margin-top: calc(-1 * var(--hdr, 76px)); overflow: hidden; background: var(--haze); }
/* 下端は映像そのものを透明に溶かし、後ろで揺れる背景のグラデーションへつなぐ（境目の線を作らない） */
.film { background: transparent; }
.film::after { display: none; }
.film canvas, .film video {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.15) 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.15) 88%, transparent 100%); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; filter: blur(10px) saturate(.85); transform: scale(1.03);
  transition: opacity 2.8s cubic-bezier(.2,.6,.2,1), filter 3.2s cubic-bezier(.2,.6,.2,1), transform 6s cubic-bezier(.2,.6,.2,1); }
.film.playing video { opacity: 1; filter: none; transform: none; }
.film-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: clamp(28px, 6vh, 64px);
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.film-foot h1 { font-family: var(--latin); font-weight: 300; font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: .02em; color: var(--ink); }
.film-foot h1 em { font-style: italic; color: var(--sea); }
.film .cap { position: static; color: var(--faint); text-shadow: none; }
/* 縦書きの言葉は映像の右上に、紹介文は見出しの横（スマホでは下）に置く */
.film-copy { position: absolute; left: 0; right: 0; top: calc(var(--hdr, 76px) + 6vh); z-index: 2; display: flex; justify-content: flex-end; pointer-events: none; }
.film .vertical { writing-mode: vertical-rl; height: auto; max-height: none; letter-spacing: .32em; line-height: 2.2;
  color: var(--ink); text-shadow: 0 0 18px color-mix(in srgb, var(--bg) 80%, transparent), 0 0 4px color-mix(in srgb, var(--bg) 60%, transparent); }
.film .vertical br { display: inline; }
.film .vertical span { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.film-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 26em; grid-column: auto; flex-wrap: nowrap; }
.film-side p { color: var(--faint); font-size: 13px; margin: 0; }
.film + section.block > .wrap { padding-top: clamp(40px, 7vh, 80px); }
@media (max-width: 760px) {
  .film { min-height: 560px; }
  .film canvas, .film video {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 34%, rgba(0,0,0,.5) 56%, rgba(0,0,0,.12) 76%, transparent 92%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 34%, rgba(0,0,0,.5) 56%, rgba(0,0,0,.12) 76%, transparent 92%); }
  .film-copy { top: calc(var(--hdr, 64px) + 3vh); }
  .film .vertical { font-size: 15px; letter-spacing: .26em; line-height: 2.1; }
  .film-foot { gap: 18px; }
  .film-foot h1 { font-size: clamp(38px, 11vw, 56px); }
  .film-side p { font-size: 12.5px; }
}

/* ---- 複数ページ：トップは要約＋View more、詳しくは各ページで ---- */
.more { margin-top: 56px; display: flex; justify-content: flex-end; }
.more .link::after { content: " →"; font-family: var(--body); }
.plans-brief .plan { grid-template-columns: 180px 1fr; }
.plans-brief .plan-main { padding-block: 40px; }
@media (max-width: 760px) { .plans-brief .plan { grid-template-columns: 1fr; } .more { margin-top: 40px; } }
/* 各ページの最初は、ヘッダーの下に少しゆとりを */
main.page > section.block:first-child > .wrap { padding-top: clamp(64px, 12vh, 140px); }
section.cta .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
section.cta .more { margin-top: 24px; }
nav.main a[aria-current="page"] { color: var(--sea); }
/* ページを移るとき：光に包まれ、次のページで光がほどける */

/* ---- Aboutページ：最初の一枚 → ひとこと → 三つの大切なこと（写真と文を左右交互に）→ 撮影する人 → お問い合わせ ---- */
.page-film { position: relative; height: 72vh; height: 72svh; min-height: 420px; margin-top: calc(-1 * var(--hdr, 76px)); }
.page-film .pic { position: absolute; inset: 0; aspect-ratio: auto; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,.5) 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,.5) 72%, transparent 100%); }
.page-film .page-title { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding-bottom: 8px; }
.page-title .en { font-family: var(--latin); font-weight: 300; font-style: italic; font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: .03em; }
.page-title .ja { font-size: 11px; letter-spacing: .3em; color: var(--faint); }
main.page-about > section.block:first-of-type > .wrap { padding-top: clamp(72px, 12vh, 140px); }
.mission .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.eyebrow { font-family: var(--latin); font-style: italic; color: var(--sea); font-size: 16px; letter-spacing: .1em; }
.mission .statement { font-family: var(--mincho); font-size: clamp(24px, 3.4vw, 38px); line-height: 1.9; letter-spacing: .14em; }
.mission .lead { color: var(--faint); font-size: 14px; line-height: 2.2; max-width: 34em; }
.values { display: flex; flex-direction: column; gap: clamp(72px, 12vw, 140px); }
.value { display: grid; grid-template-columns: 7fr 5fr; gap: 8%; align-items: center; }
.value:nth-child(even) { grid-template-columns: 5fr 7fr; }
.value:nth-child(even) .pic { order: 2; }
.value .pic { aspect-ratio: 4 / 3; }
.value-text .when { font-family: var(--latin); font-style: italic; color: var(--sea); font-size: 15px; letter-spacing: .08em; display: block; margin-bottom: 12px; }
.value-text h3 { font-family: var(--mincho); font-size: clamp(19px, 2.2vw, 24px); letter-spacing: .14em; margin-bottom: 16px; }
.value-text p { color: var(--faint); font-size: 13.5px; max-width: 26em; }
.values-note { margin-top: 48px; font-size: 12px; }
.team { display: grid; grid-template-columns: 4fr 6fr; gap: 8%; align-items: center; }
.team .pic.portrait { aspect-ratio: 3 / 4; }
.team-text { display: flex; flex-direction: column; gap: 1.2em; color: var(--faint); max-width: 30em; }
.team-text .name { font-family: var(--mincho); font-size: 20px; letter-spacing: .14em; color: var(--ink); }
.team-text .name small { font-family: var(--body); font-size: 11px; letter-spacing: .2em; color: var(--faint); margin-left: 12px; }
section.cta .head { margin-bottom: 8px; }
section.cta .channels { width: 100%; max-width: 560px; margin-top: 32px; border-top-color: var(--line); }
section.cta .channel { border-bottom-color: var(--line); }
section.cta .channel span { color: var(--faint); }
section.cta .channel a { color: var(--ink); }
section.cta .company { margin-top: 40px; font-size: 12px; }
@media (max-width: 760px) {
  .page-film { height: 58svh; min-height: 360px; }
  .value, .value:nth-child(even), .team { grid-template-columns: 1fr; gap: 28px; }
  .value:nth-child(even) .pic { order: 0; }
}

/* ---- Gallery：作品が波に揺られて、ふわふわ浮かぶ ----
   translate / rotate は transform と別のプロパティなので、にじみ出る動きや触れたときの拡大とぶつからない */
.gallery-lead { color: var(--faint); font-size: 13.5px; margin: -8px 0 56px; max-width: 34em; }
.plan .k .tagline { display: block; margin-top: 10px; font-family: var(--mincho); font-style: normal; font-size: 12px; letter-spacing: .14em; color: var(--faint); line-height: 1.8; }
.plan .k .main-tag { display: table; }

.drift .m { animation: bob 14s ease-in-out infinite; will-change: translate; }
.drift .m:nth-child(4n+2) { animation-duration: 13.5s; animation-delay: -4s; }
.drift .m:nth-child(4n+3) { animation-duration: 12s; animation-delay: -8s; }
.drift .m:nth-child(4n+4) { animation-duration: 14.5s; animation-delay: -2.5s; }
.drift .m:hover, .drift .m:focus-within { animation-play-state: paused; }
@keyframes bob {
  0%   { translate: 0 0;       rotate: 0deg; }
  25%  { translate: 1px -4px;  rotate: .12deg; }
  50%  { translate: 0 -1px;    rotate: 0deg; }
  75%  { translate: -1px -4px; rotate: -.1deg; }
  100% { translate: 0 0;       rotate: 0deg; }
}
@media (max-width: 760px) { @keyframes bob { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -3px; rotate: 0deg; } } }
@media (prefers-reduced-motion: reduce) { .drift .m { animation: none; } }

/* ---- Gallery：記憶の粒。四角をやめて、縁がにじんだ丸で浮かべる ---- */
.sift { display: grid; gap: 18px; margin: 0 0 24px; }
.sift-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.sift-label { width: 64px; font-family: var(--latin); font-style: italic; font-size: 14px; letter-spacing: .12em; color: var(--sea); }
.sift button { position: relative; background: none; border: 0; padding: 4px 0 4px 16px; cursor: pointer; font-family: var(--latin); font-size: 18px; letter-spacing: .12em; color: var(--faint); transition: color 1.2s cubic-bezier(.2,.6,.2,1); -webkit-tap-highlight-color: transparent; }
.sift button small { margin-left: 10px; font-family: var(--body); font-size: 11px; letter-spacing: .14em; }
.sift-row:last-child button { font-family: var(--mincho); font-size: 14px; }
.sift button::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle, var(--sea) 0%, rgba(80,140,170,.35) 45%, transparent 72%); opacity: 0; transform: scale(.4); transition: opacity 1.2s cubic-bezier(.2,.6,.2,1), transform 1.2s cubic-bezier(.2,.6,.2,1); }
.sift button[aria-pressed="true"] { color: var(--ink); }
.sift button[aria-pressed="true"]::before { opacity: 1; transform: scale(1.4); }
.sift button:hover { color: var(--ink); }
@media (max-width: 760px) { .sift-label { width: 100%; } .sift-row { gap: 6px 22px; } .sift button small { display: block; margin: 2px 0 0; } }
.sift-now { min-height: 1.6em; margin: 0 0 40px; color: var(--faint); font-size: 12px; letter-spacing: .14em; }
.sift-empty { text-align: center; color: var(--faint); font-size: 13px; padding: 80px 0; }

.orbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .orbs { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; } }
.orb { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; text-align: center; }
.orb .bubble { position: relative; width: 100%; }
.orb .pic { width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; background-size: 100% 160%;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, rgba(0,0,0,.55) 78%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 58%, rgba(0,0,0,.55) 78%, transparent 100%); }
.orb .pic::before { filter: saturate(.5) brightness(1.1) blur(6px); }
.orbs-brief .orb:nth-child(2) { margin-top: 18%; } .orbs-brief .orb:nth-child(2) .bubble { width: 78%; }
.orbs-brief .orb:nth-child(3) { margin-top: 6%; }  .orbs-brief .orb:nth-child(3) .bubble { width: 88%; }
.orbs-brief .orb:nth-child(4) { margin-top: -4%; } .orbs-brief .orb:nth-child(4) .bubble { width: 74%; }
.orb .play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.orb .play::before { content: ""; border-left: 12px solid rgba(255,255,255,.92); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 4px; filter: drop-shadow(0 0 10px rgba(255,255,255,.7)); }
.orb .diary { flex-direction: column; align-items: center; gap: 4px; }
.orb .diary b { font-family: var(--latin); font-weight: 400; font-size: 14px; letter-spacing: .12em; color: var(--sea); margin-right: 6px; }
.orb:hover .pic, .orb:focus-within .pic { transform: scale(1.03); }
.orb:focus { outline: none; }
.orb:focus-visible .d { color: var(--sea); }

/* 触れると、丸のまわりを波の輪がゆっくり広がっていく（線ではなく、にじんだ光の輪） */
.ripple { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ripple i { position: absolute; inset: 6%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, transparent 70%, rgba(100,160,192,.5) 85%, rgba(150,200,222,.25) 93%, transparent 100%);
  filter: blur(3px); }
.orb:hover .ripple i, .orb:focus-within .ripple i { animation: ripple 5.4s cubic-bezier(.25,.6,.3,1) infinite; }
.orb:hover .ripple i:nth-child(2), .orb:focus-within .ripple i:nth-child(2) { animation-delay: 1.8s; }
.orb:hover .ripple i:nth-child(3), .orb:focus-within .ripple i:nth-child(3) { animation-delay: 3.6s; }
@keyframes ripple { 0% { transform: scale(.9); opacity: 0; } 18% { opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ripple { display: none; } }

/* Gallery ページ：横に揃えず、ページごとに五つの記憶を散らして浮かべる */
.orbs-free { display: block; position: relative; aspect-ratio: 6 / 5; }
.orbs-free .orb { position: absolute; }
.orbs-free .orb[data-slot="1"] { left: 3%;  top: 0;   width: 34%; }
.orbs-free .orb[data-slot="2"] { left: 57%; top: 3%;  width: 23%; }
.orbs-free .orb[data-slot="3"] { left: 33%; top: 33%; width: 27%; }
.orbs-free .orb[data-slot="4"] { left: 77%; top: 45%; width: 20%; }
.orbs-free .orb[data-slot="5"] { left: 9%;  top: 60%; width: 22%; }
@media (max-width: 760px) {
  .orbs-free { aspect-ratio: auto; display: flex; flex-direction: column; }
  .orbs-free .orb, .orbs-free .orb[data-slot] { position: relative; left: auto; top: auto; }
  .orbs-free .orb[data-slot="1"] { width: 78%; align-self: flex-start; }
  .orbs-free .orb[data-slot="2"] { width: 58%; align-self: flex-end; margin-top: -10%; }
  .orbs-free .orb[data-slot="3"] { width: 68%; align-self: center; margin-top: -2%; margin-left: -12%; }
  .orbs-free .orb[data-slot="4"] { width: 52%; align-self: flex-end; margin-top: -8%; }
  .orbs-free .orb[data-slot="5"] { width: 64%; align-self: flex-start; margin-top: -4%; }
}
.pager { display: flex; justify-content: center; align-items: baseline; gap: 44px; margin-top: 56px; }
.pager button { background: none; border: 0; padding: 6px 4px; cursor: pointer; font-family: var(--latin); font-style: italic; font-size: 18px; letter-spacing: .14em; color: var(--ink); transition: color 1s, opacity 1s; -webkit-tap-highlight-color: transparent; }
.pager button[data-dir="-1"]::before { content: "←"; margin-right: 12px; font-style: normal; }
.pager button[data-dir="1"]::after { content: "→"; margin-left: 12px; font-style: normal; }
.pager button:hover { color: var(--sea); }
.pager button:disabled { opacity: .25; cursor: default; color: var(--ink); }
.pager-now { font-family: var(--latin); font-size: 14px; letter-spacing: .2em; color: var(--faint); font-variant-numeric: tabular-nums; }
.pager[hidden] { display: none; }
.sift-place { transition: opacity 1.2s cubic-bezier(.2,.6,.2,1), filter 1.2s cubic-bezier(.2,.6,.2,1); }
.sift-place.fog { opacity: 0; filter: blur(8px); }
.sift-row[hidden] { display: none; }

/* 絞り込み：消えるものは霧の中へ、残るものはまた浮かんでくる */
.orbs .m { transition: opacity .9s cubic-bezier(.2,.6,.2,1), filter .9s cubic-bezier(.2,.6,.2,1), transform 1.8s cubic-bezier(.2,.6,.2,1), scale .9s cubic-bezier(.2,.6,.2,1); }
.orbs .m.out { opacity: 0; filter: blur(16px); scale: .92; transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0); }
.orbs .m.await { opacity: .2; filter: blur(14px); transform: translateY(24px); }
.more.two { display: flex; justify-content: flex-end; gap: 36px; flex-wrap: wrap; margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { .orbs .m { transition: none; } }
.orbs .m[hidden] { display: none; }

/* ---- トップの Plan：画面に留まったまま、スクロールにつれて一つの記憶がにじんで、次の記憶が浮かぶ ---- */
.plan-scroll { position: relative; height: 320svh; }
.plan-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--hdr, 76px); box-sizing: border-box; }
.plan-stage-in { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 48px; min-height: min(78svh, 720px); align-items: center; }
.plan-stage .head { grid-column: 1 / -1; align-self: start; }
.plan-panels { grid-column: 1; grid-row: 2; display: grid; }
.plan-panel { grid-area: 1 / 1; --v: 1; --o: 0; opacity: var(--v); filter: blur(calc((1 - var(--v)) * 18px));
  transform: translate3d(0, calc(var(--o) * -56px), 0) scale(calc(1 + (1 - var(--v)) * .05)); transform-origin: 30% 50%; will-change: opacity, filter, transform; }
.plan-panel .no { display: block; font-family: var(--latin); font-style: italic; font-size: 15px; letter-spacing: .16em; color: var(--sea); }
.plan-panel .pname { font-family: var(--latin); font-weight: 300; font-size: clamp(54px, 8vw, 104px); letter-spacing: .08em; line-height: 1.1; margin: 14px 0 8px; color: var(--ink);
  transform: translate3d(0, calc(var(--o) * -28px), 0); }
.plan-panel .pline { font-family: var(--mincho); font-size: 15px; letter-spacing: .2em; color: var(--ink); margin: 0 0 40px; }
.plan-panel h3 { font-family: var(--mincho); font-weight: 400; font-size: 18px; letter-spacing: .16em; margin: 0 0 12px; }
.plan-panel h3 small { margin-left: 14px; font-family: var(--body); font-size: 11px; letter-spacing: .2em; color: var(--sea); }
.plan-panel .ptext { color: var(--faint); font-size: 13.5px; max-width: 28em; margin: 0 0 32px; transform: translate3d(0, calc(var(--o) * 20px), 0); }
.plan-panel[data-off] { pointer-events: none; }
.plan-orb { grid-column: 2; grid-row: 2; position: relative; width: min(38vw, 520px); aspect-ratio: 1; justify-self: center;
  transform: scale(calc(.94 + var(--pp, 0) * .1)) rotate(calc(var(--pp, 0) * 40deg)); }
.po { position: absolute; inset: 0; border-radius: 50%; filter: blur(2px);
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, rgba(0,0,0,.5) 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 50%, rgba(0,0,0,.5) 74%, transparent 100%);
  background-size: 100% 160%; animation: tide 16s ease-in-out infinite alternate; }
.po1 { background-image: linear-gradient(180deg, #33536f 0%, #6b9bb8 50%, #d3e3ea 100%); opacity: var(--v0, 1); }
.po2 { background-image: linear-gradient(180deg, #dce9f0 0%, #9cc2c9 45%, #6f9e8f 100%); opacity: var(--v1, 0); }
.plan-count { grid-column: 1 / -1; grid-row: 3; font-family: var(--latin); font-size: 14px; letter-spacing: .2em; color: var(--faint); font-variant-numeric: tabular-nums; }
.plan-count b { font-weight: 400; color: var(--ink); }
@media (max-width: 760px) {
  .plan-stage-in { grid-template-columns: 1fr; min-height: 82svh; }
  .plan-panels { grid-column: 1; grid-row: 2; position: relative; z-index: 1; }
  .plan-orb { grid-column: 1; grid-row: 2; width: 92vw; opacity: .5; justify-self: center; }
  .plan-panel .pline { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-scroll { height: auto; } .plan-stage { position: static; height: auto; padding-block: 120px; }
  .plan-panels { gap: 72px; } .plan-panel { grid-area: auto; } .plan-count { display: none; }
}

/* ---- Q&A：ETERNO と Flügel に分けて、線や箱を使わずに並べる ---- */
.qa-menu { display: flex; flex-wrap: wrap; gap: 18px 56px; margin: 0 0 96px; }
.qa-menu a { display: inline-flex; align-items: baseline; gap: 14px; color: var(--faint); font-size: 12px; letter-spacing: .16em; text-decoration: none; transition: color 1.2s cubic-bezier(.2,.6,.2,1); }
.qa-menu a b { font-family: var(--latin); font-weight: 400; font-size: 26px; letter-spacing: .12em; color: var(--ink); transition: color 1.2s cubic-bezier(.2,.6,.2,1); }
.qa-menu a::after { content: "→"; font-family: var(--latin); color: var(--sea); opacity: .6; transform: translateX(0); transition: transform 1.2s cubic-bezier(.2,.6,.2,1), opacity 1.2s; }
.qa-menu a:hover b { color: var(--sea); } .qa-menu a:hover::after { transform: translateX(6px); opacity: 1; }
.qa-menu-top { margin: 8px 0 0; flex-direction: column; gap: 28px; }
.qa-group { scroll-margin-top: calc(var(--hdr, 76px) + 32px); }
.qa-group + .qa-group { margin-top: 140px; }
.qa-head { margin-bottom: 48px; }
.qa-en { display: block; font-family: var(--latin); font-style: italic; font-size: 15px; letter-spacing: .12em; color: var(--sea); }
.qa-head h2 { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin: 6px 0 0; font-family: var(--mincho); font-weight: 400; font-size: 14px; letter-spacing: .16em; color: var(--faint); }
.qa-head h2 b { font-family: var(--latin); font-weight: 300; font-size: clamp(36px, 5vw, 52px); letter-spacing: .1em; color: var(--ink); }
.qa-list { display: grid; gap: 52px; max-width: 760px; margin-left: auto; }
.qa .q, .qa .a { display: grid; grid-template-columns: 36px 1fr; margin: 0; }
.qa .q { font-family: var(--mincho); font-size: 16px; letter-spacing: .08em; line-height: 1.8; }
.qa .a { margin-top: 12px; color: var(--faint); font-size: 13.5px; line-height: 2; }
.qa .mk { font-family: var(--latin); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--sea); }
.qa .a .mk { color: var(--faint); opacity: .7; }
@media (max-width: 760px) { .qa-menu { gap: 14px 32px; margin-bottom: 72px; } .qa-list { gap: 40px; } .qa .q, .qa .a { grid-template-columns: 28px 1fr; } }

/* Q&A ページ：左のサイドバーで切り替え、質問は＋で開く */
.qa-layout { display: grid; grid-template-columns: 220px 1fr; gap: 72px; align-items: start; }
.qa-side { position: sticky; top: calc(var(--hdr, 76px) + 48px); display: flex; flex-direction: column; gap: 28px; }
.qa-side a { position: relative; display: block; padding-left: 20px; text-decoration: none; color: var(--faint); transition: color 1.2s cubic-bezier(.2,.6,.2,1); -webkit-tap-highlight-color: transparent; }
.qa-side a b { display: block; font-family: var(--latin); font-weight: 400; font-size: 24px; letter-spacing: .12em; line-height: 1.3; }
.qa-side a small { font-size: 11px; letter-spacing: .16em; }
.qa-side a::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, var(--sea) 0%, rgba(80,140,170,.35) 45%, transparent 72%); opacity: 0; transform: scale(.4); transition: opacity 1.2s cubic-bezier(.2,.6,.2,1), transform 1.2s cubic-bezier(.2,.6,.2,1); }
.qa-side a[aria-selected="true"] { color: var(--ink); }
.qa-side a[aria-selected="true"]::before { opacity: 1; transform: scale(1.4); }
.qa-side a:hover { color: var(--ink); }
.qa-panels .qa-group + .qa-group { margin-top: 0; }
.qa-group[hidden] { display: none; }
.qa-group { transition: opacity .9s cubic-bezier(.2,.6,.2,1), filter .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1); }
.qa-group.fog { opacity: 0; filter: blur(14px); transform: translateY(14px); }
.qa-panels .qa-list { max-width: 760px; margin-left: 0; gap: 8px; }
.qa .q { width: 100%; background: none; border: 0; padding: 18px 0; cursor: pointer; color: var(--ink); text-align: left; grid-template-columns: 36px 1fr 32px; align-items: baseline; -webkit-tap-highlight-color: transparent; }
.qa .q .qt { transition: color 1s; }
.qa .q:hover .qt, .qa.open .q .qt { color: var(--sea); }
.qa .pm { position: relative; width: 14px; height: 14px; justify-self: end; align-self: center; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: currentColor; opacity: .6; transition: transform .9s cubic-bezier(.2,.6,.2,1), opacity .9s; }
.qa .pm::after { transform: rotate(90deg); }
.qa.open .pm::after { transform: rotate(0deg); opacity: 0; }
.qa.open .pm::before { transform: rotate(180deg); }
.a-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; filter: blur(8px); transition: grid-template-rows .9s cubic-bezier(.2,.6,.2,1), opacity .9s cubic-bezier(.2,.6,.2,1), filter .9s cubic-bezier(.2,.6,.2,1); }
.qa.open .a-wrap { grid-template-rows: 1fr; opacity: 1; filter: blur(0); }
.a-in { overflow: hidden; min-height: 0; }
.qa-panels .qa .a { margin: 0; padding: 0 32px 22px 0; }
@media (max-width: 860px) {
  .qa-layout { grid-template-columns: 1fr; gap: 48px; }
  .qa-side { position: static; flex-direction: row; gap: 36px; }
  .qa-side a b { font-size: 22px; }
  .qa-panels .qa .a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .a-wrap, .qa-group { transition: none; } }

/* ---- トップは項目どうしの間を少し詰める ---- */
body[data-page="home"] section.block > .wrap { padding-block: 80px; }
body[data-page="home"] .film + section.block > .wrap { padding-top: clamp(40px, 6vh, 64px); }
body[data-page="home"] .more { margin-top: 40px; }
@media (max-width: 760px) { body[data-page="home"] section.block > .wrap { padding-block: 56px; } body[data-page="home"] .more { margin-top: 32px; } }
.plan-scroll { height: 240svh; }
.plan-stage-in { min-height: min(70svh, 640px); }
@media (max-width: 760px) { .plan-stage-in { min-height: 74svh; } }

/* トップのギャラリーは横に揃える（揺れはそのまま） */
.orbs-brief { align-items: start; }
.orbs-brief .orb:nth-child(n) { margin-top: 0; }
.orbs-brief .orb:nth-child(n) .bubble { width: 100%; }

/* 触れた丸から波の輪が広がり、届いた順に周りの丸が押されて揺れる（動きは js で） */
.orb .bubble { will-change: transform; }

/* ---- ページをまたぐ移動：光をページの最初の描画から出しておき、前のページと途切れずにつなぐ ---- */
html::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255,253,246,.7) 0%, rgba(240,248,252,.42) 28%, rgba(190,222,236,.22) 60%, rgba(150,196,218,.12) 100%); }
html.arriving::after { opacity: 1; transition: none; }
html.landing::after { opacity: 0; transition: opacity 1.6s cubic-bezier(.33,0,.2,1); }

/* ---- 移動の光（軽い版）：本文は動かさず、画面全体を覆う一枚の光だけを濃くしたり薄くしたりする ----
   光は背景と同じ空の色で満ちているので、いちばん濃いときに下の画面が入れ替わっても見えない */
.flash, html::after {
  background:
    radial-gradient(circle at 50% 40%, rgba(255,253,246,.96) 0%, rgba(246,250,251,.9) 30%, rgba(255,255,255,0) 72%),
    radial-gradient(120% 90% at 15% 10%, rgba(196,224,238,.9) 0%, rgba(196,224,238,0) 60%),
    radial-gradient(110% 90% at 85% 95%, rgba(198,226,208,.85) 0%, rgba(198,226,208,0) 60%),
    var(--bg);
  will-change: opacity; transform: translateZ(0);
}
.flash { transition: opacity .85s cubic-bezier(.45,0,.25,1); }
.flash.off { transition: opacity 1.5s cubic-bezier(.3,0,.2,1); }
html.landing::after { transition: opacity 1.5s cubic-bezier(.3,0,.2,1); }

/* スマホでは、行の途中で折り返して崩れないよう、文中の改行をやめて自然に流す */
@media (max-width: 560px) {
  .mission .lead br, .team-text p br, .about .text p br { display: none; }
  .mission .statement, #about .statement { font-size: 22px; letter-spacing: .08em; }
}

/* ---- プランページ（ETERNO / Flügel） ---- */
nav.main .nav-k { font-family: var(--latin); font-style: italic; font-size: 12px; letter-spacing: .16em; color: var(--sea); opacity: .8; margin-right: -14px; align-self: center; }
nav.main a[aria-current="page"] { color: var(--ink); }
@media (max-width: 860px) { nav.main .nav-k { margin: 6px 14px -6px; font-size: 13px; } }
footer.site .links a { color: inherit; text-decoration: none; transition: color .6s; }
footer.site .links a:hover { color: var(--night-ink); }

main.page-plan > section.block:first-child > .wrap { padding-top: clamp(48px, 9vh, 110px); }
.plan-pick, .plan-jump { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; }
.plan-pick .sift-label { width: auto; margin-right: 4px; }
.plan-pick a, .plan-jump a { position: relative; padding: 4px 0 4px 16px; text-decoration: none; color: var(--faint); transition: color 1.2s cubic-bezier(.2,.6,.2,1); -webkit-tap-highlight-color: transparent; }
.plan-pick a b, .plan-jump a b { font-family: var(--latin); font-weight: 400; font-size: 20px; letter-spacing: .12em; }
.plan-pick a small, .plan-jump a small { margin-left: 10px; font-size: 11px; letter-spacing: .14em; }
.plan-jump a b { font-size: 16px; font-style: italic; }
.plan-pick a::before, .plan-jump a::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle, var(--sea) 0%, rgba(80,140,170,.35) 45%, transparent 72%); opacity: 0; transform: scale(.4); transition: opacity 1.2s cubic-bezier(.2,.6,.2,1), transform 1.2s cubic-bezier(.2,.6,.2,1); }
.plan-pick a[aria-current="page"], .plan-pick a:hover, .plan-jump a:hover { color: var(--ink); }
.plan-pick a[aria-current="page"]::before { opacity: 1; transform: scale(1.4); }
.plan-jump a:hover::before, .plan-jump a:focus-visible::before { opacity: .7; transform: scale(1.1); }

.plan-title { position: relative; isolation: isolate; margin: clamp(56px, 10vh, 110px) 0 clamp(48px, 8vh, 90px); padding-left: clamp(0px, 4vw, 48px); }
.plan-title::before { content: ""; position: absolute; z-index: -1; pointer-events: none; right: clamp(-80px, 2vw, 40px); top: 50%; width: min(56vw, 520px); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.45) 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.45) 70%, transparent 100%);
  background-size: 100% 160%; opacity: .55; filter: blur(4px); animation: tide 16s ease-in-out infinite alternate, titleIn 2.4s cubic-bezier(.2,.6,.2,1) both; }
.t-eterno::before { background-image: linear-gradient(180deg, #33536f 0%, #6b9bb8 50%, #d3e3ea 100%); }
.t-flugel::before { background-image: linear-gradient(180deg, #dce9f0 0%, #9cc2c9 45%, #6f9e8f 100%); }
@keyframes titleIn { from { opacity: 0; scale: .9; filter: blur(24px); } }
.plan-title > * { animation: fogIn 1.8s cubic-bezier(.2,.6,.2,1) both; }
.plan-title > :nth-child(2) { animation-delay: .12s; } .plan-title > :nth-child(3) { animation-delay: .24s; }
.plan-title > :nth-child(4) { animation-delay: .36s; } .plan-title > :nth-child(5) { animation-delay: .5s; }
@keyframes fogIn { from { opacity: 0; filter: blur(10px); transform: translateY(10px); } }
.plan-title .no { font-family: var(--latin); font-size: 13px; letter-spacing: .24em; color: var(--sea); }
.plan-title .en { margin: 10px 0 0; font-family: var(--latin); font-weight: 300; font-style: italic; font-size: clamp(56px, 9vw, 112px); line-height: 1; letter-spacing: .03em; }
.plan-title .ja { margin-top: 14px; font-family: var(--mincho); font-size: 17px; letter-spacing: .2em; }
.plan-title .tagline { margin-top: 22px; font-family: var(--mincho); font-size: 13px; letter-spacing: .16em; color: var(--faint); }
.plan-title .lead { margin-top: 28px; font-family: var(--mincho); font-size: 15px; line-height: 2.2; letter-spacing: .08em; max-width: 34em; }


.plan-sec .head { margin-bottom: 40px; }
.plan-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.plan-desc { color: var(--faint); font-size: 14px; line-height: 2.1; max-width: 32em; }
.plan-facts, .plan-prices { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; font-size: 13.5px; }
.plan-facts dt, .plan-prices dt { color: var(--sea); font-family: var(--mincho); letter-spacing: .14em; }
.plan-facts dd, .plan-prices dd { margin: 0; }
.plan-prices { margin-top: 56px; padding: 32px clamp(20px, 4vw, 48px); grid-template-columns: 1fr auto; border-radius: 40px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--haze) 26%, transparent), transparent 70%); }
.plan-prices dt { color: var(--ink); }
.plan-prices dd { font-family: var(--latin); font-size: 19px; letter-spacing: .06em; font-variant-numeric: tabular-nums; text-align: right; }
.plan-small { margin-top: 18px; color: var(--faint); font-size: 12px; letter-spacing: .06em; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 72px; }
.plan-list li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; }
.plan-list .n { font-family: var(--latin); font-style: italic; font-size: 15px; color: var(--sea); letter-spacing: .1em; padding-top: 2px; }
.plan-list h3, .plan-opts h3 { font-family: var(--mincho); font-size: 16px; letter-spacing: .1em; margin-bottom: 6px; font-weight: 500; }
.plan-list p, .plan-opts p { color: var(--faint); font-size: 13px; line-height: 2; }
.plan-flow { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 34px; }
.plan-flow li { position: relative; }
.plan-flow li::after { content: ""; position: absolute; left: 6px; top: 34px; bottom: -28px; width: 6px; border-radius: 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--haze) 55%, transparent), transparent); opacity: .5; }
.plan-flow li:last-child::after { display: none; }
.plan-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 72px; }
.plan-opts li { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; align-items: baseline; }
.plan-opts .price { font-family: var(--latin); font-size: 17px; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-cancel { margin-top: 32px; }
.plan-cancel dd { font-family: var(--mincho); font-size: 14px; letter-spacing: .1em; }
.plan-notes { margin: 28px 0 0; padding-left: 1.2em; color: var(--faint); font-size: 12.5px; line-height: 2.1; }
.plan-next .more.two { flex-wrap: wrap; gap: 12px 40px; }

.plan-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 24px; }
.plan-door { position: relative; display: grid; justify-items: start; gap: 10px; padding: clamp(48px, 9vw, 110px) clamp(16px, 4vw, 48px); text-decoration: none; color: var(--ink); isolation: isolate; -webkit-tap-highlight-color: transparent; }
.door-orb { position: absolute; z-index: -1; inset: 0 auto auto 50%; width: min(80%, 420px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background-size: 100% 160%; opacity: .45; filter: blur(4px);
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.45) 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.45) 70%, transparent 100%);
  animation: tide 16s ease-in-out infinite alternate; transition: opacity 1.6s cubic-bezier(.2,.6,.2,1), scale 1.6s cubic-bezier(.2,.6,.2,1); }
.door-orb.d1 { background-image: linear-gradient(180deg, #33536f 0%, #6b9bb8 50%, #d3e3ea 100%); }
.door-orb.d2 { background-image: linear-gradient(180deg, #dce9f0 0%, #9cc2c9 45%, #6f9e8f 100%); }
.plan-door:hover .door-orb, .plan-door:focus-visible .door-orb { opacity: .75; scale: 1.06; }
.plan-door .no { font-family: var(--latin); font-size: 13px; letter-spacing: .24em; color: var(--sea); }
.plan-door .en { font-family: var(--latin); font-weight: 300; font-style: italic; font-size: clamp(44px, 6vw, 76px); line-height: 1; }
.plan-door .ja { font-family: var(--mincho); font-size: 15px; letter-spacing: .2em; }
.plan-door .tagline { font-family: var(--mincho); font-size: 12.5px; letter-spacing: .14em; color: var(--faint); }
.plan-door .link { margin-top: 18px; }
.plan-door .link::after { content: " →"; font-family: var(--body); }

@media (max-width: 760px) {
  .plan-body, .plan-list, .plan-opts, .plan-doors { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .plan-pick { gap: 6px 24px; } .plan-pick .sift-label { width: 100%; }
  .plan-pick a b { font-size: 18px; }
  .plan-jump { gap: 4px 22px; } .plan-jump a small { display: none; }
  .plan-title { margin-top: 48px; } .plan-title::before { width: 86vw; right: -24vw; }
  .plan-title .lead br { display: none; }
  .plan-prices { border-radius: 28px; padding: 24px 20px; gap: 14px 16px; }
  .plan-prices dd { font-size: 16px; }
  .plan-facts { grid-template-columns: 1fr; gap: 4px; } .plan-facts dd { margin-bottom: 12px; }
  .plan-cancel { grid-template-columns: 1fr; gap: 2px; } .plan-cancel dd { text-align: left; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .plan-title > *, .plan-title::before { animation: none; } }
/* ETERNO の中の「撮って出しエンドロール／記録ムービー」切り替え */
.page-plan [data-menu][hidden] { display: none !important; }
.plan-list { counter-reset: step; }
.plan-list li { counter-increment: step; }
.plan-list .n::before { content: counter(step, decimal-leading-zero); }
.page-plan .menu-fade { transition: opacity .9s cubic-bezier(.2,.6,.2,1), filter .9s cubic-bezier(.2,.6,.2,1); }
.page-plan.menu-swap .menu-fade { opacity: 0; filter: blur(12px); }

/* プランページの余白：8の倍数で、近いものは近く、区切りは広く */
main.page-plan > section.block:first-child > .wrap { padding-top: 40px; padding-bottom: 24px; }
.plan-controls { display: grid; gap: 14px; }
.plan-pick, .plan-menu { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 40px; padding-left: 72px; line-height: 1.7; }
.plan-menu { column-gap: 32px; }
.plan-pick .sift-label, .plan-menu .sift-label { flex: 0 0 72px; width: 72px; margin: 0 -40px 0 -72px; font-family: var(--latin); font-style: italic; font-size: 14px; letter-spacing: .12em; color: var(--sea); }
.plan-menu .sift-label { margin-right: -32px; }
.plan-pick a, .plan-menu button { line-height: 1.7; }
.plan-jump a { padding-left: 0; }
.plan-jump a::before { left: -14px; }
.plan-menu button { position: relative; background: none; border: 0; padding: 4px 0 4px 16px; cursor: pointer; font-family: var(--mincho); font-size: 14.5px; letter-spacing: .14em; color: var(--faint); transition: color 1.2s cubic-bezier(.2,.6,.2,1); -webkit-tap-highlight-color: transparent; }
.plan-menu button::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle, var(--sea) 0%, rgba(80,140,170,.35) 45%, transparent 72%); opacity: 0; transform: scale(.4); transition: opacity 1.2s cubic-bezier(.2,.6,.2,1), transform 1.2s cubic-bezier(.2,.6,.2,1); }
.plan-menu button[aria-pressed="true"], .plan-menu button:hover { color: var(--ink); }
.plan-menu button[aria-pressed="true"]::before { opacity: 1; transform: scale(1.4); }
.plan-title { margin: 88px 0 64px; padding-left: 0; }
.plan-title .en { margin-top: 12px; }
.plan-title .ja { margin-top: 16px; }
.plan-title .tagline { margin-top: 12px; }
.plan-title .lead { margin-top: 32px; }
.plan-jump { gap: 8px 32px; }
.plan-jump a b { font-size: 15px; }
section.plan-sec > .wrap { padding-block: 72px; }
.plan-sec .head { margin-bottom: 32px; }
.plan-prices { margin-top: 40px; }
.plan-small { margin-top: 16px; }
section.plan-next > .wrap { padding-block: 80px 96px; }
@media (max-width: 760px) {
  main.page-plan > section.block:first-child > .wrap { padding-top: 24px; padding-bottom: 24px; }
  .plan-controls { gap: 10px; }
  .plan-pick, .plan-menu { padding-left: 56px; column-gap: 24px; row-gap: 0; }
  .plan-pick .sift-label, .plan-menu .sift-label { flex-basis: 56px; width: 56px; margin: 0 -24px 0 -56px; font-size: 13px; }
  .plan-jump { gap: 4px 18px; } .plan-jump a b { font-size: 14px; }
  .plan-pick a b { font-size: 17px; }
  .plan-menu button { font-size: 14px; }
  .plan-title { margin: 56px 0 44px; }
  .plan-title .lead { margin-top: 24px; }
  .plan-jump { gap: 4px 20px; }
  section.plan-sec > .wrap { padding-block: 56px; }
  .plan-sec .head { margin-bottom: 28px; }
  section.plan-next > .wrap { padding-block: 64px 80px; }
}
.plan-prices dd small, .plan-opts .price small { margin-left: 4px; font-family: var(--latin); font-size: 11.5px; letter-spacing: .1em; color: var(--faint); }
/* プラン内容・オプションのサイドバー */
.plan-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; }
.plan-layout .qa-panels { min-height: 420px; }
.plan-layout .plan-facts { margin-top: 32px; }
.plan-layout .plan-desc { max-width: 40em; }
.plan-price { margin-top: 40px; padding: 28px clamp(20px, 4vw, 40px) 26px; border-radius: 36px;
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--haze) 32%, transparent), transparent 72%); }
.plan-price + .plan-price { margin-top: 16px; }
.pp-name { font-family: var(--mincho); font-size: 14px; letter-spacing: .16em; color: var(--sea); }
.pp-total { margin-top: 6px; font-family: var(--latin); font-size: clamp(34px, 4vw, 44px); letter-spacing: .04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pp-total small { margin-left: 6px; font-size: 13px; letter-spacing: .12em; color: var(--faint); }
.pp-break { margin-top: 8px; font-size: 12.5px; letter-spacing: .08em; color: var(--faint); }
.plan-layout .plan-opts { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 760px; }
/* Menu の帯：背景をほんのり色づけて、上の Plan と見分ける */
.plan-menu { width: fit-content; max-width: calc(100% + 28px); margin: 6px 0 0 -28px; padding: 10px 28px 10px 100px; border-radius: 999px;
  background: radial-gradient(140% 220% at 0% 50%, color-mix(in srgb, var(--haze) 38%, transparent), color-mix(in srgb, var(--haze) 10%, transparent) 70%, transparent); }
.plan-menu .sift-label { margin-left: -72px; }
@media (max-width: 760px) {
  .plan-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .plan-layout .qa-panels { min-height: 0; }
  .plan-side { gap: 28px; }
  .plan-side a b { font-size: 20px; }
  .plan-price { border-radius: 28px; padding: 22px 20px; }
  .plan-menu { width: auto; max-width: none; margin-left: -12px; margin-right: -12px; padding: 10px 12px 10px 68px; border-radius: 24px; }
  .plan-menu .sift-label { margin-left: -56px; }
}
.page-plan .plan-title { margin-bottom: 32px; }
.plan-layout .qa-panels { min-height: 520px; }
@media (max-width: 760px) {
  .page-plan .plan-title { margin-bottom: 16px; }
  .plan-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .plan-side a { padding-left: 16px; }
  .plan-side a b { font-size: 18px; }
  .plan-side a small { font-size: 10px; }
  .plan-side a::before { top: 10px; }
  .plan-layout .qa-panels { min-height: 0; }
}
.plan-layout .qa-group > .plan-price:first-child { margin-top: 0; }
.plan-layout .qa-group > .plan-small + .plan-desc { margin-top: 40px; }
/* プランページ：項目は縦に並べ、サイドバーは今いる場所を示す */
.plan-layout .qa-panels { min-height: 0; }
.plan-block + .plan-block { margin-top: 104px; }
.plan-block .head { margin-bottom: 32px; }
.plan-block { scroll-margin-top: calc(var(--hdr, 76px) + 32px); }
.plan-side a { cursor: pointer; }
@media (max-width: 760px) {
  .plan-block + .plan-block { margin-top: 72px; }
  .plan-layout { gap: 8px; }
  .plan-side { position: static; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 24px; padding: 0; }
  .plan-side::-webkit-scrollbar { display: none; }
  .plan-side a { flex: 0 0 auto; padding-left: 14px; }
  .plan-side a b { font-size: 17px; }
  .plan-side a small { display: none; }
  .plan-side a::before { top: 9px; }
}
/* プランページ：項目どうしの間をしっかりあける（Q&A 側の詰めを打ち消す） */
.qa-panels .plan-block + .plan-block { margin-top: 128px; }
.plan-block .head { margin-bottom: 40px; }
@media (max-width: 760px) {
  .qa-panels .plan-block + .plan-block { margin-top: 88px; }
  .plan-block .head { margin-bottom: 28px; }
}
/* サービス：番号のかわりに内容を表す小さな印 */
.plan-serv li { grid-template-columns: 44px 1fr; }
.plan-serv .ic { width: 28px; height: 28px; color: var(--sea); opacity: .85; margin-top: -1px; }
.plan-serv .ic svg { width: 100%; height: 100%; display: block; }
.plan-ext { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.9; color: var(--faint); opacity: .85; }
/* オプション：押すと詳しい説明がひらく */
.plan-layout .plan-opts { gap: 4px; }
.plan-opts li.opt { display: block; }
.opt-q { width: 100%; background: none; border: 0; padding: 16px 0; margin: 0; cursor: pointer; color: var(--ink); text-align: left; font: inherit;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: 0 24px; align-items: baseline; -webkit-tap-highlight-color: transparent; }
.opt-n { font-family: var(--mincho); font-size: 16px; letter-spacing: .1em; font-weight: 500; transition: color 1s; }
.opt-q:hover .opt-n, .opt.open .opt-n { color: var(--sea); }
.opt .pm { position: relative; width: 14px; height: 14px; justify-self: end; align-self: center; }
.opt .pm::before, .opt .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: currentColor; opacity: .6; transition: transform .9s cubic-bezier(.2,.6,.2,1), opacity .9s; }
.opt .pm::after { transform: rotate(90deg); }
.opt.open .pm::after { transform: rotate(0deg); opacity: 0; }
.opt.open .pm::before { transform: rotate(180deg); }
.opt.open .a-wrap { grid-template-rows: 1fr; opacity: 1; filter: blur(0); }
.plan-opts .opt .a-in p { margin: 0; padding: 0 56px 22px 0; }
@media (max-width: 600px) {
  .opt-q { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "n pm" "p pm"; gap: 4px 12px; }
  .opt-n { grid-area: n; font-size: 15px; }
  .opt-q .price { grid-area: p; font-size: 15px; }
  .opt .pm { grid-area: pm; }
  .plan-opts .opt .a-in p { padding-right: 0; }
}
/* Gallery：Flügel の写真の丸と、押すと開く写真の画面（枠なし・霞からゆっくり浮かぶ） */
.orb .pic.photo { background-size: cover; background-position: center; animation: none; }
.orb .pic.photo::after { display: none; }
.orb .pic.photo::before { filter: saturate(.5) brightness(1.08); opacity: .8; }
.orb:hover .pic.photo::before, .orb:focus-within .pic.photo::before { opacity: 0; }
.orb[data-photos] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vw-lock, .vw-lock body { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 50; opacity: 0; transition: opacity .9s cubic-bezier(.2,.6,.2,1);
  background: radial-gradient(120% 90% at 50% 40%, var(--bg), color-mix(in srgb, var(--haze) 45%, var(--bg)) 100%) var(--bg);
  display: grid; grid-template-rows: 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 64px) 16px calc(env(safe-area-inset-bottom, 0px) + 20px); }
.viewer.open { opacity: 1; }
.viewer[hidden] { display: none; }
.vw-stage { position: relative; min-height: 0; }
.vw-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: blur(10px); transform: scale(1.015);
  transition: opacity 1.1s cubic-bezier(.2,.6,.2,1), filter 1.3s cubic-bezier(.2,.6,.2,1), transform 2.4s cubic-bezier(.2,.6,.2,1); }
.vw-img.on { opacity: 1; filter: none; transform: none; }
.vw-bar { display: flex; justify-content: center; align-items: baseline; gap: 40px; padding-top: 18px; }
.vw-bar button, .vw-close { background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--faint); font-family: var(--latin); font-size: 17px; letter-spacing: .14em; transition: color 1s; -webkit-tap-highlight-color: transparent; }
.vw-bar button:hover, .vw-close:hover { color: var(--ink); }
.vw-now { font-family: var(--latin); font-size: 15px; letter-spacing: .16em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vw-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); right: max(20px, env(safe-area-inset-right, 0px)); }
.vw-cap { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 26px); left: max(20px, env(safe-area-inset-left, 0px)); margin: 0; font-size: 12px; letter-spacing: .12em; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .viewer, .vw-img { transition: none; } }

/* 実際の写真を入れた面（背景の揺れや光の筋は止め、写真そのものを見せる） */
.pic.photo { background-size: cover; background-position: center; animation: none; }
.pic.photo::after { display: none; }
/* ETERNO：押すとその場で映像（16:9、枠なし） */
.vw-film { display: none; position: absolute; inset: 0; place-items: center; }
.viewer.is-film .vw-film { display: grid; }
.viewer.is-film .vw-img, .viewer.is-film .vw-bar { display: none; }
.vw-film iframe { width: min(100%, calc((100svh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; display: block; background: #000; }
.orb[data-video] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.orb .pic.yt { background-size: cover, cover; }
/* Gallery の丸：ふだんは白黒、触れる・選ぶ（スマホは画面の真ん中に来る）と色が戻る */
.orb .pic.photo::before { filter: grayscale(1) brightness(1.04); opacity: 1; transition: opacity 1.4s cubic-bezier(.2,.6,.2,1); }
.orb:hover .pic.photo::before, .orb:focus-within .pic.photo::before, .orb:focus .pic.photo::before, .orb.lit .pic.photo::before { opacity: 0; }
.page-film .pic.photo::before { display: none; }
