/* uni-z.net — 散らばった文字が、言葉になる。
   背景の文字はページ全体で1枚のキャンバス。場面ごとに形を変える */
:root {
  --bg: #0b0a0a;
  --ink: #f4f1ec;
  --ink-2: rgba(244, 241, 236, .72);
  --ink-3: rgba(244, 241, 236, .45);
  --line: rgba(244, 241, 236, .18);
  --pink: #d93964;
  --pink-2: #ef5a83;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  --en: "Outfit", "Zen Kaku Gothic New", sans-serif;
  --pad: clamp(20px, 2.2vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { 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(--jp); font-size: 14px; line-height: 1.9; letter-spacing: .04em;
  font-feature-settings: "palt"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.pc { display: inline; }

.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

/* header — 中央の細い箱 */
.head { position: fixed; top: 12px; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; pointer-events: none; }
.head-box {
  pointer-events: auto; display: flex; align-items: center; gap: 40px;
  width: min(640px, calc(100% - 24px)); padding: 7px 8px 7px 14px;
  border: 1px solid var(--line); background: rgba(11, 10, 10, .55); backdrop-filter: blur(10px);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--en); font-weight: 500; letter-spacing: .2em; font-size: 15px; }
.logo img { width: 34px; height: auto; }
.menu { display: flex; gap: 28px; margin: 0 auto; font-size: 13px; font-weight: 500; }
.menu a:hover { color: var(--pink-2); }
.head-cta { border: 1px solid var(--ink); padding: 4px 16px; font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.head-cta:hover { background: var(--ink); color: var(--bg); }

/* scenes */
.scene { position: relative; min-height: 100svh; padding: 110px var(--pad) 120px; }
.label { font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: var(--ink-3); margin-bottom: 18px; }
.label-center { text-align: center; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* concept */
.concept { display: flex; flex-direction: column; }
.concept-title { font-weight: 300; font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: 1.18; letter-spacing: .02em; }
.concept-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; padding-top: 14px; border-top: 1px solid var(--line); }
.concept-left, .concept-right { max-width: 22rem; font-size: 13px; color: var(--ink-2); }
.keys { margin-top: 22px; font-family: var(--en); font-size: 12px; letter-spacing: .14em; color: var(--ink-2); }
.keys span { margin: 0 14px; color: var(--ink-3); }
.scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-family: var(--en); font-size: 10px; letter-spacing: .35em; color: var(--ink-3); padding-bottom: 54px; }
.scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 44px; background: linear-gradient(var(--ink-3), transparent); }

/* plan */
.plan { display: flex; flex-direction: column; }
.plan-title { text-align: center; font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1.2; }
.plan-sub { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.plan-bar { margin-top: auto; display: flex; justify-content: flex-end; padding-bottom: 14px; }
.fee-btn {
  display: inline-flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 0; font: 500 13px var(--jp); letter-spacing: .06em;
}
.fee-btn span { display: grid; place-items: center; width: 28px; height: 28px; background: var(--pink); color: #fff; }
.fee-btn:hover { background: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.plans li { padding: 22px 28px 0 20px; border-left: 1px solid var(--line); }
.plans li:first-child { border-left: 0; padding-left: 0; }
.plan-name { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.plan-name span { font-family: var(--en); font-size: 10px; letter-spacing: .1em; border: 1px solid var(--line); padding: 0 6px; color: var(--ink-2); }
.plan-term { font-family: var(--en); font-weight: 300; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1.4; }
.plan-term small { font-family: var(--jp); font-size: 11px; color: var(--ink-3); margin-left: 8px; }
.plan-text { margin-top: 6px; font-size: 13px; color: var(--ink-2); max-width: 22rem; }

/* approach */
.approach { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 40px; }
.approach .label, .approach-title, .approach-text { grid-column: 1; }
.approach-title { font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1.18; }
.approach-text { margin-top: 48px; max-width: 24rem; font-size: 13px; color: var(--ink-2); }
.cycle { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; width: min(420px, 100%); }
.cycle li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); border-left: 2px solid transparent; transition: background .5s, border-color .5s; }
.cycle li span { font-size: 16px; font-weight: 500; }
.cycle li small { font-size: 11px; color: var(--ink-3); }
.cycle li.is-on { border-left-color: var(--pink); background: linear-gradient(90deg, rgba(217,57,100,.18), transparent); }

/* contact */
.contact { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-title { font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1.25; }
.contact-text { margin-top: 20px; font-size: 13px; color: var(--ink-2); }
.form { width: min(520px, 100%); margin-top: 40px; padding: 26px; border: 1px solid var(--line); background: rgba(11,10,10,.6); backdrop-filter: blur(6px); text-align: left; display: grid; gap: 14px; }
.field { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 2px; font: 400 14px var(--jp); outline: none; border-radius: 0;
}
.field select option { color: #111; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--pink-2); }
.chips { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); font-size: 12px; cursor: pointer; }
.chips input:checked + span { background: var(--pink); border-color: var(--pink); }
.chips input:focus-visible + span { outline: 2px solid var(--pink-2); }
.submit { margin-top: 8px; padding: 12px; border: 1px solid var(--pink-2); background: transparent; color: var(--pink-2); font: 500 14px var(--jp); letter-spacing: .08em; cursor: pointer; transition: background .2s, color .2s; }
.submit:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.form-note { font-size: 11px; color: var(--ink-3); }

/* footer */
.foot { border-top: 1px solid var(--line); background: rgba(11,10,10,.85); }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 40px var(--pad) 48px; }
.foot-copy { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.foot-small { margin-top: 18px; font-size: 11px; color: var(--ink-3); }
.foot-links { display: flex; gap: 32px; font-size: 13px; }
.foot-links a:hover { color: var(--pink-2); }

/* 右下の固定ボタン */
.float-cta {
  position: fixed; right: var(--pad); bottom: 24px; z-index: 9;
  display: flex; align-items: center; gap: 18px; padding-left: 20px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; transition: opacity .4s;
}
.float-cta span { display: grid; place-items: center; width: 40px; height: 40px; background: var(--pink); color: #fff; font-size: 11px; }
.float-cta.is-hidden { opacity: 0; pointer-events: none; }

/* fee dialog */
.fee { border: 1px solid var(--line); background: #121010; color: var(--ink); padding: 0; width: min(720px, calc(100% - 24px)); max-height: 88vh; }
.fee::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.fee-in { position: relative; padding: 36px clamp(20px, 4vw, 44px); }
.fee-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--ink-2); font-size: 22px; cursor: pointer; }
.fee-title { font-weight: 300; font-size: 2rem; }
.fee-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.fee-list { margin-top: 22px; border-top: 1px solid var(--line); }
.fee-list > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fee-list dt { font-size: 15px; font-weight: 500; }
.fee-list dt small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.fee-list dd { font-family: var(--en); font-size: 1.7rem; font-weight: 300; color: var(--pink-2); align-self: center; }
.fee-list p { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); }
.fee-cta { display: block; margin-top: 24px; text-align: center; padding: 12px; background: var(--ink); color: var(--bg); font-weight: 500; }

@media (max-width: 860px) {
  .head-box { gap: 16px; }
  .menu { display: none; }
  .head-cta { margin-left: auto; }
  .concept-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .plans { grid-template-columns: 1fr; }
  .plans li, .plans li:first-child { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .plans li:first-child { border-top: 0; }
  .plan-bar { justify-content: flex-start; margin-top: 48px; }
  .approach { display: flex; flex-direction: column; }
  .cycle { margin-top: 48px; align-self: stretch; width: 100%; }
  .pc { display: none; }
  .scroll { display: none; }
  .float-cta { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
