/* =========================================================
   PIONs. Landing Page
   夜の紙と真鍮 ─ 静謐なミッドナイト・エディトリアル
   モバイルファースト / 素のCSS / 外部依存なし
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #0F1B2D;
  --navy-deep:   #0A1322;
  --navy-soft:   #16253B;
  --ivory:       #F3EBDD;
  --ivory-deep:  #E8DECB;
  --rose:        #C8906A;
  --rose-deep:   #B07A54;

  --text:        rgba(243, 235, 221, 0.90);
  --text-dim:    rgba(243, 235, 221, 0.66);
  --text-faint:  rgba(243, 235, 221, 0.44);
  --line:        rgba(200, 144, 106, 0.30);
  --line-soft:   rgba(243, 235, 221, 0.12);

  --ink:         #16253B;
  --ink-dim:     rgba(22, 37, 59, 0.70);

  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --serif-jp: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", serif;
  --sans:     "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;

  --wrap: 1080px;
  --pad: 22px;
  --bar-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.02em;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; color: var(--ivory); }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.55; }

::selection { background: var(--rose); color: var(--navy); }

:focus-visible {
  outline: 1px solid var(--rose);
  outline-offset: 3px;
}

/* ---------- Paper grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  position: relative;
  z-index: 2;
  padding: 68px 0;
}

.section--ivory {
  background: var(--ivory);
  color: var(--ink);
  padding: 72px 0;
}
.section--ivory .h2,
.section--ivory strong { color: var(--ink); }
.section--ivory .label { color: var(--rose-deep); }
.section--ivory .note { color: var(--ink-dim); }

.section--final {
  overflow: hidden;
  padding: 88px 0 96px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

/* ---------- Typography ---------- */
.label {
  margin: 0 0 0.9em;
  font-family: var(--serif-en);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose);
}
.label--rose { color: var(--rose); }

.h2 {
  font-family: var(--serif-jp);
  font-size: clamp(1.4rem, 6.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ivory);
  margin-bottom: 1.1em;
  padding-left: 18px;
  position: relative;
}
.h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  bottom: 0.42em;
  width: 1px;
  background: linear-gradient(180deg, var(--rose), rgba(200, 144, 106, 0.1));
}

.h2--final { padding-left: 0; }
.h2--final::before { display: none; }

.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--serif-en);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #D8A27E;
  text-shadow: 0 1px 0 rgba(255, 240, 224, 0.14), 0 3px 14px rgba(200, 144, 106, 0.12);
}
.wordmark::after {
  content: "✦";
  position: absolute;
  left: 1.39em;
  top: 0.12em;
  font-family: var(--serif-en);
  font-size: 0.27em;
  color: var(--ivory);
  text-shadow: 0 0 8px rgba(243, 235, 221, 0.36);
}

.star {
  color: var(--rose);
  font-size: 0.72em;
  line-height: 1;
  vertical-align: 0.28em;
  margin-right: 0.35em;
}

.lead {
  font-family: var(--serif-jp);
  font-size: 1rem;
  line-height: 2.05;
  color: var(--text);
}

.note {
  font-size: 0.8rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: rgba(243, 235, 221, 0.82);
}
.note--card { margin-top: 0.9em; }
.note--inline { display: block; margin-top: 0.35em; }
.note--type { display: block; margin-top: 0.18em; }
.note--faq { padding-bottom: 1.2em !important; }

.micro {
  margin: 0.9em 0 0;
  font-size: 0.74rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.br-sp { display: none; }

/* ---------- Constellation ---------- */
.constellation {
  position: absolute;
  color: var(--rose);
  opacity: 0.5;
  pointer-events: none;
}
.constellation__line {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: draw 2.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.constellation--hero {
  width: 300px;
  top: 6%;
  right: -70px;
  opacity: 0.42;
}
.constellation--final {
  width: 380px;
  top: 8px;
  right: -110px;
  opacity: 0.35;
}

/* ---------- Buttons ---------- */
.cta { margin-top: 1.9em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid var(--rose);
  background: transparent;
  color: var(--ivory);
  font-family: var(--serif-jp);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  transition: background-color 0.35s ease, color 0.35s ease,
              letter-spacing 0.35s ease, border-color 0.35s ease;
}

.btn--primary {
  width: 100%;
  background: var(--rose);
  color: var(--navy);
  border-color: var(--rose);
  box-shadow: inset 0 0 0 1px rgba(15, 27, 45, 0.14);
}

.btn:hover,
.btn:active {
  background: var(--rose-deep);
  color: var(--navy-deep);
  letter-spacing: 0.12em;
}

/* ---------- 01 Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 92svh;
  padding: 96px 0 54px;
  overflow: hidden;
  background: var(--navy);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
  opacity: 0.62;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 27, 45, 0.94) 0%, rgba(15, 27, 45, 0.42) 34%, rgba(15, 27, 45, 0.86) 72%, var(--navy) 100%),
    linear-gradient(90deg, rgba(15, 27, 45, 0.92) 0%, rgba(15, 27, 45, 0.30) 60%, rgba(15, 27, 45, 0.6) 100%);
}

.hero__inner { position: relative; z-index: 3; }

.hero__brand {
  margin: 0 0 0.5em;
  font-size: 1.9rem;
  color: var(--ivory);
}

.hero__title {
  font-family: var(--serif-jp);
  font-size: clamp(1.72rem, 8.4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.52;
  letter-spacing: 0.04em;
  color: var(--ivory);
  margin: 0 0 1em;
  text-shadow: 0 1px 26px rgba(10, 19, 34, 0.6);
}

.hero__sub {
  font-family: var(--serif-jp);
  font-size: 0.96rem;
  line-height: 2.05;
  color: var(--text);
  margin-bottom: 0;
  max-width: 34em;
}

/* ---------- 02 Empathy ---------- */
.quotes { margin: 0 0 2em; }

.quotes li {
  position: relative;
  padding: 1.05em 0 1.05em 1.9em;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif-jp);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ivory);
}
.quotes li:first-child { border-top: 1px solid var(--line-soft); }
.quotes li::before {
  content: "\2726";
  position: absolute;
  left: 0.15em;
  top: 1.28em;
  font-size: 0.62rem;
  color: var(--rose);
}

/* ---------- 03 About ---------- */
.split__body p { color: var(--text); }

.origin {
  font-family: var(--serif-en);
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  letter-spacing: 0.06em;
  color: var(--ivory);
  margin-bottom: 0.9em;
}
.origin .star {
  font-size: 0.6em;
  margin: 0 0.6em;
  vertical-align: 0.18em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.2em;
}
.chips li {
  padding: 5px 14px;
  border: 1px solid var(--line);
  font-family: var(--serif-jp);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
}

.message {
  margin: 1.8em 0 0;
  padding: 1.4em 0 1.4em 1.4em;
  border-left: 1px solid var(--rose);
  font-family: var(--serif-jp);
  font-size: clamp(1.1rem, 4.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.figure {
  margin: 2.2em 0 0;
  border: 1px solid var(--line-soft);
  padding: 8px;
}
.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.figure figcaption {
  padding: 0.7em 0.3em 0.2em;
  font-family: var(--serif-jp);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------- 04 Cards ---------- */
.cards { display: grid; gap: 16px; }

.card {
  position: relative;
  padding: 1.8em 1.5em 1.9em;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(22, 37, 59, 0.62) 0%, rgba(15, 27, 45, 0.2) 100%);
}
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--rose);
  opacity: 0.7;
}
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.card__icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 1.1em;
  color: var(--rose);
}
.card__icon svg { width: 100%; height: 100%; stroke-width: 1; }

.card__en {
  margin: 0 0 0.35em;
  font-family: var(--serif-en);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--rose);
}
.card__title {
  font-family: var(--serif-jp);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ivory);
  margin-bottom: 0.6em;
}
.card__text { margin: 0; font-size: 0.88rem; color: var(--text-dim); }

/* ---------- 05 Checklist ---------- */
.checklist { margin-bottom: 1.6em; }

.checklist li {
  position: relative;
  padding: 0.95em 0 0.95em 2.1em;
  border-bottom: 1px solid rgba(22, 37, 59, 0.14);
  font-family: var(--serif-jp);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.35em;
  top: 1.5em;
  width: 11px;
  height: 6px;
  border-left: 1px solid var(--rose-deep);
  border-bottom: 1px solid var(--rose-deep);
  transform: rotate(-45deg);
}

/* ---------- 06 Gift ---------- */
.frame {
  position: relative;
  padding: 1.9em 1.5em;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 37, 59, 0.7) 0%, rgba(15, 27, 45, 0.35) 100%);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(200, 144, 106, 0.16);
  pointer-events: none;
}
.frame > * { position: relative; z-index: 1; }

.frame__head { margin-bottom: 1.4em; }
.frame__en {
  margin: 0 0 0.4em;
  font-family: var(--serif-en);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--rose);
}
.frame__title {
  font-family: var(--serif-jp);
  font-size: clamp(1.25rem, 5.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.types { margin: 1.6em 0 0; }
.types li {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.95em 0;
  border-top: 1px solid var(--line-soft);
}
.types__name {
  font-family: var(--serif-jp);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rose);
}
.types__details { display: grid; gap: 0.18em; }
.types__text { font-size: 0.82rem; line-height: 1.8; color: var(--text-dim); }

.frame__bonus {
  margin-top: 1.6em;
  padding: 1.1em 1.2em;
  border: 1px solid var(--line-soft);
  background: rgba(200, 144, 106, 0.06);
}
.frame__bonus p { margin: 0; font-size: 0.86rem; color: var(--text); }
.frame__bonus-en {
  font-family: var(--serif-en);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--rose);
  margin-bottom: 0.4em !important;
}

/* ---------- 07 Steps ---------- */
.steps { counter-reset: step; }

.steps li {
  position: relative;
  padding: 0 0 2.1em 3.2em;
  border-left: 1px solid var(--line-soft);
  margin-left: 0.85em;
}
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps li::before {
  content: "\2726";
  position: absolute;
  left: -0.42em;
  top: 0.35em;
  width: 0.84em;
  height: 0.84em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--rose);
  background: var(--navy);
}

.steps__num {
  display: block;
  font-family: var(--serif-en);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--rose);
  margin-bottom: 0.5em;
}
.steps__title {
  font-family: var(--serif-jp);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ivory);
  margin-bottom: 0.4em;
}
.steps__text { margin: 0; font-size: 0.86rem; color: var(--text-dim); }

/* ---------- 08 Profile ---------- */
.profile { display: grid; gap: 1.6em; }

.profile__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  aspect-ratio: 4 / 5;
  max-width: 260px;
  border: 1px dashed rgba(176, 122, 84, 0.7);
  background: rgba(22, 37, 59, 0.05);
}
.profile__photo-en {
  font-family: var(--serif-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--rose-deep);
}
.profile__ph {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.profile__role {
  margin: 0 0 0.5em;
  font-family: var(--serif-en);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.profile__name {
  font-family: var(--serif-jp);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.7em;
  padding-bottom: 0.7em;
  border-bottom: 1px solid rgba(22, 37, 59, 0.14);
}
.profile__bio { color: var(--ink-dim); font-size: 0.9rem; }

/* ---------- 09 FAQ ---------- */
.faq { border-top: 1px solid var(--line-soft); }

.faq__item { border-bottom: 1px solid var(--line-soft); }

.faq__item summary {
  position: relative;
  padding: 1.15em 2.4em 1.15em 1.9em;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif-jp);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--ivory);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "Q";
  position: absolute;
  left: 0.2em;
  top: 1.15em;
  font-family: var(--serif-en);
  font-size: 1rem;
  color: var(--rose);
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.5em;
  top: 1.6em;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--rose);
  border-bottom: 1px solid var(--rose);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }

.faq__item p {
  padding: 0 1.9em 1.4em;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ---------- 10 Final ---------- */
.section--final .lead { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: 46px 0 40px;
  background: var(--navy-deep);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.footer__brand { font-size: 1.5rem; color: var(--ivory); margin-bottom: 0.35em; }
.footer__en {
  font-family: var(--serif-en);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--rose);
  margin-bottom: 1.6em;
}
.footer .note { margin-bottom: 1.4em; }
.footer__copy {
  font-family: var(--serif-en);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin: 0;
}

/* ---------- Fixed CTA bar ---------- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10, 19, 34, 0) 0%, rgba(10, 19, 34, 0.88) 32%, rgba(10, 19, 34, 0.97) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cta-bar .btn { width: 100%; }
.btn--bar { min-height: 54px; font-size: 0.95rem; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
html.js-enabled .reveal { opacity: 0; transform: translateY(8px); }
html.js-enabled .reveal.is-in { opacity: 1; transform: none; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  :root { --pad: 32px; }
  .types li { flex-direction: row; align-items: baseline; gap: 1.1em; }
  .types__name { flex: 0 0 7.2em; }
  .types__details { flex: 1 1 auto; }
  .btn--primary { width: auto; min-width: 320px; }
  .cta-bar { text-align: center; }
  .cta-bar .btn { width: auto; min-width: 360px; }
}

@media (min-width: 860px) {
  body { font-size: 1rem; }
  .section { padding: 104px 0; }
  .section--ivory { padding: 108px 0; }
  .section--final { padding: 128px 0 140px; }

  .br-sp { display: inline; }

  .hero { min-height: 100svh; padding: 120px 0 88px; align-items: center; }
  .hero__media img { object-position: 74% 40%; opacity: 0.7; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(15, 27, 45, 0.9) 0%, rgba(15, 27, 45, 0.30) 40%, rgba(15, 27, 45, 0.55) 100%),
      linear-gradient(90deg, rgba(15, 27, 45, 0.96) 0%, rgba(15, 27, 45, 0.72) 42%, rgba(15, 27, 45, 0.12) 100%);
  }
  .hero__inner { max-width: 620px; }
  .hero__brand { font-size: 2.4rem; }
  .constellation--hero { width: 420px; top: 14%; right: -30px; }

  .split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: start;
  }
  .figure { margin-top: 0.6em; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 2.2em 1.7em 2.3em; }

  .frame { padding: 3em 3em 2.8em; }
  .frame > * { max-width: 620px; }

  .profile {
    grid-template-columns: 260px 1fr;
    gap: 52px;
    align-items: center;
  }

  .constellation--final { width: 560px; top: -20px; right: -60px; }

  .footer { padding: 60px 0 54px; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html.js-enabled .reveal { opacity: 1; transform: none; transition: none; }
  html.js-enabled .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .constellation__line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .btn { transition: none; }
}
