/* マイライフログ「ワンシーン」サンプルサイト
   色・書体はマイライフログのVI（deploy/onescene/style.css）に合わせる。
   文字を売るサービスなので、見出しの大きさで押さず、書体・字間・行間・余白で階層をつくる。 */

:root {
  --sky-blue: #7EC9F5;
  --ocean-blue: #1D6FB8;
  --deep-navy: #0B2E4D;
  --sand-beige: #F5E9D6;
  --light-gold: #D4AF37;
  --gold-ink: #9C7A1E;
  --cloud-white: #FFFFFF;
  --mist-gray: #E6ECF2;
  --soft-gray: #8FA2B4;
  --text-main: #263544;
  --text-sub: #5B6B7A;
  --paper: #FBF8F2;
  --rule: rgba(11, 46, 77, 0.14);
  --font-mincho: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-main);
  font-family: var(--font-gothic);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .03em;
  /* 日本語の改行を文節単位にする（対応ブラウザのみ） */
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* 見出しだけプロポーショナル詰め。本文は等幅のまま読みやすさを優先 */
/* 短い文は、<wbr>で区切った文節の途中で改行しない */
.section-lead, .story-first, .asks li, .story-more, .phrase { word-break: keep-all; overflow-wrap: anywhere; }

h1, h2, h3, .story-title, .price-amount, .contact-title {
  font-feature-settings: "palt";
  text-wrap: balance;
}

.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.pc { display: none; }
.nw { display: inline-block; }
@media (min-width: 768px) { .pc { display: inline; } }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding: 0 var(--gutter);
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: auto; height: 30px; }
.global-nav { display: flex; align-items: center; gap: 36px; }
.global-nav ul { display: flex; gap: 28px; }
.global-nav ul a {
  position: relative;
  color: var(--deep-navy);
  font-size: 13px;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
}
/* リンク先ができたら、下線がゆっくり伸びる */
.global-nav ul a[href] { cursor: pointer; }
.global-nav ul a[href]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--light-gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-silk, ease);
}
.global-nav ul a[href]:hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 22px;
  background: var(--deep-navy); color: #fff; font-size: 13px; letter-spacing: .14em; text-decoration: none;
  transition: background-color .4s;
}
.nav-cta:hover { background: var(--ocean-blue); }
.nav-toggle { display: none; }

@media (max-width: 1099px) {
  .site-header { height: 60px; }
  .brand img { height: 26px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 0;
    border: 0; background: none; color: var(--deep-navy); font-size: 12px; letter-spacing: .14em; cursor: pointer;
  }
  .nav-toggle-lines, .nav-toggle-lines::before { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .5s var(--ease-silk, ease); }
  .nav-toggle-lines { position: relative; }
  .nav-toggle-lines::before { content: ""; position: absolute; top: 7px; }
  .nav-toggle-lines { transform: translateY(-4px); }
  .nav-open .nav-toggle-lines { transform: translateY(0) rotate(45deg); }
  .nav-open .nav-toggle-lines::before { top: 0; transform: rotate(-90deg); }
  /* 右からゆっくり差し込むメニュー */
  .global-nav {
    position: fixed; top: 60px; right: 0; bottom: 0; width: min(360px, 100%);
    flex-direction: column; align-items: stretch; gap: 32px; padding: 32px var(--gutter) 40px;
    background: #fff; border-left: 1px solid var(--rule);
    transform: translateX(100%); visibility: hidden;
    transition: transform .7s var(--ease-silk, ease), visibility 0s linear .7s;
    overflow-y: auto;
  }
  .nav-open .global-nav { transform: none; visibility: visible; transition: transform .7s var(--ease-silk, ease); }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav ul li { border-bottom: 1px solid var(--rule); }
  .global-nav ul a { display: block; padding: 18px 0; font-family: var(--font-mincho); font-size: 16px; }
  .nav-cta { justify-content: center; min-height: 54px; font-size: 14px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--deep-navy); color: #fff; }
.btn-primary:hover { background: var(--ocean-blue); }
.btn-text { padding: 0 8px; color: var(--deep-navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- 1. ファーストビュー ----------
   唯一、見出しを大きく扱う場所。PCでは縦書きにして、本の扉のように見せる */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(56px, 9vw, 112px); }
/* 背景動画に白80%を重ねる */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .8); }
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}
.hero-title {
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: clamp(30px, 8.4vw, 40px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .08em;
}
.hero-title span { display: inline-block; }
.hero-lead {
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: .1em;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.hero-actions .btn-primary { min-height: 58px; padding: 0 36px; font-size: 15px; }
.hero-actions .btn-text { font-size: 15px; }

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "body title";
    align-items: end;
    gap: 96px;
    min-height: 600px;
  }
  .hero-title {
    grid-area: title;
    writing-mode: vertical-rl;
    font-size: clamp(38px, 3.6vw, 50px);
    line-height: 1.9;
    letter-spacing: .16em;
    align-self: start;
    height: 12.5em;
  }
  .hero-title span { display: block; }
  .hero-title span:nth-child(2) { padding-top: 1em; }
  .hero-title span:nth-child(3) { padding-top: 2em; }
  .hero-body { grid-area: body; justify-self: end; padding-bottom: 12px; }
  .hero-lead { font-size: 22px; line-height: 2.1; }
  .hero-actions { margin-top: 44px; gap: 20px 32px; }
  .hero-actions .btn-primary { min-height: 68px; padding: 0 52px; font-size: 16px; }
  .hero-actions .btn-text { font-size: 16px; }
}

/* ---------- 見出しの共通部品 ----------
   見出しは大きくしすぎない。漢数字の小さな番号と、本文との余白で区切る */
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-index {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-ink);
  font-family: var(--font-mincho);
  font-size: 15px;
  letter-spacing: .2em;
  border-bottom: 1px solid var(--light-gold);
  padding-bottom: 2px;
}
.section-title {
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .1em;
}
.section-lead { margin-top: 14px; color: var(--text-sub); font-size: 15px; }

/* ---------- 2. 物語を、読んでみる。 ---------- */
.stories { padding: clamp(72px, 10vw, 120px) 0; background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.story-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 600px) { .story-list { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (min-width: 1000px) { .story-list { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.story-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.story-cover {
  display: block;
  margin-bottom: 20px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  transition: transform .35s ease, box-shadow .35s ease;
}
.story-cover img { aspect-ratio: 1654 / 2339; width: 100%; object-fit: cover; }
.story-open:hover .story-cover,
.story-open:focus-visible .story-cover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--rule), 0 16px 32px -16px rgba(11, 46, 77, .4);
}
.story-open:focus-visible { outline: 2px solid var(--ocean-blue); outline-offset: 6px; }
.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--text-sub);
  font-size: 12px;
  letter-spacing: .12em;
}
.story-scene { color: var(--gold-ink); }
.story-title {
  display: block;
  margin: 6px 0 12px;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.5;
}
/* 物語の書き出しは、本文と同じ明朝で */
.story-first {
  display: block;
  flex: 1;
  color: var(--text-main);
  font-family: var(--font-mincho);
  font-size: 14px;
  line-height: 2;
  letter-spacing: .06em;
}
.story-read {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  color: var(--deep-navy);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
}
.story-read-link { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.story-read small { color: var(--text-sub); font-size: 11px; font-weight: 400; }
.story-more {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--text-sub);
  font-size: 14px;
  line-height: 2.1;
}

/* ---------- 3. 相談から、物語が届くまで。 ----------
   見出しを左に据え、右に手順を読み下ろす二段組み */
.flow { position: relative; overflow: clip; padding: clamp(80px, 11vw, 136px) 0; }
/* 背景写真（向かい合う2つのカップ）。紙の色を重ねて、手順の文字を読みやすく保つ */
.flow-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.flow-bg img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: 20% 75%;
  will-change: transform;
}
.flow-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 248, 242, .55) 0%, rgba(251, 248, 242, .82) 45%, rgba(251, 248, 242, .9) 100%);
}
.flow .flow-grid { position: relative; z-index: 1; }
@media (max-width: 899px) { .flow-bg::after { background: rgba(251, 248, 242, .86); } }
@media (min-width: 900px) {
  .flow-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
  .flow-head { position: sticky; top: 104px; }
}
.flow-steps > li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.flow-steps > li:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
  color: var(--gold-ink);
  font-family: var(--font-mincho);
  font-size: 30px;
  line-height: 1.2;
}
.flow-steps h3 {
  margin-bottom: 8px;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .1em;
}
.step-note {
  margin-left: 14px;
  color: var(--text-sub);
  font-family: var(--font-gothic);
  font-size: 13px;
  letter-spacing: .08em;
}
.asks {
  margin-top: 20px;
  padding: 20px 24px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--rule);
}
.asks-label { margin-bottom: 8px; color: var(--text-sub); font-size: 12px; letter-spacing: .12em; }
/* かぎ括弧を行頭で半角ぶんぶら下げ、文字の頭をそろえる */
.asks li {
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: 15px;
  line-height: 2;
  text-indent: -.5em;
  font-feature-settings: "palt";
}

/* ---------- 4. 料金 ---------- */
.price { padding: clamp(80px, 10vw, 120px) 0; background: var(--sand-beige); }
.price-inner { max-width: 640px; text-align: center; }
.price-title {
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3em;
}
.price-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 2px 14px;
  border: 1px solid var(--gold-ink);
  color: var(--gold-ink);
  font-size: 12px;
  letter-spacing: .14em;
}
.price-amount {
  margin: 10px 0 36px;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  line-height: 1.2;
}
.yen-num { font-size: clamp(44px, 7vw, 60px); font-weight: 500; letter-spacing: .04em; font-variant-numeric: lining-nums; }
.yen-unit { margin-left: 4px; font-size: 22px; }
.yen-tax { font-family: var(--font-gothic); font-size: 13px; color: var(--text-sub); }
.price-items { text-align: left; border-top: 1px solid rgba(11, 46, 77, .2); }
/* 品書きのように、項目と内容を一行ずつ罫で区切る */
.price-items > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 46, 77, .2);
}
.price-items dt {
  flex: 0 0 auto;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: 16px;
  letter-spacing: .12em;
}
.price-items dd {
  flex: 1;
  text-align: right;
  font-size: 15px;
}
.price-use { margin-top: 24px; color: var(--text-sub); font-size: 13px; }

/* ---------- 5. よくある質問 ---------- */
.faq { padding: clamp(80px, 10vw, 120px) 0; }
.faq-inner { max-width: 760px; }
.faq-title {
  margin-bottom: 32px;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .14em;
}
.faq-list > div { padding: 26px 0; border-top: 1px solid var(--rule); }
.faq-list > div:last-child { border-bottom: 1px solid var(--rule); }
.faq-list dt {
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: 17px;
  letter-spacing: .08em;
  line-height: 1.8;
}
.faq-list dd { margin-top: 8px; font-size: 15px; }

/* ---------- 6. 相談 ----------
   濃い色のベタ塗りは使わない。背景写真（contact-bg.jpg）に紙の色を重ねる。写真が無いときは生成り色のまま */
.contact { position: relative; overflow: clip; padding: clamp(88px, 11vw, 136px) 0; background: var(--sand-beige); border-top: 1px solid var(--rule); }
.contact-bg { position: absolute; inset: 0; z-index: 0; background: url("assets/images/contact-bg.jpg") 15% 60% / cover no-repeat; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: rgba(245, 233, 214, .78); }
.contact-grid { position: relative; z-index: 1; display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; } .contact-copy { position: sticky; top: 120px; } }
.contact-title {
  margin-bottom: 28px;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .12em;
}
.contact-copy p { color: var(--text-main); font-size: 15px; line-height: 2.1; }
.contact-note { margin-top: 16px; color: var(--text-sub) !important; font-size: 13px !important; }

.contact-form {
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 0 1px var(--rule), 0 20px 50px -30px rgba(11, 46, 77, .35);
}
.form-row { display: grid; gap: 0 20px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: block; margin-bottom: 22px; }
.form-field > span { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--deep-navy); font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.form-field em { padding: 1px 8px; border: 1px solid var(--gold-ink); color: var(--gold-ink); font-size: 11px; font-style: normal; font-weight: 400; letter-spacing: .1em; }
.form-field small { color: var(--text-sub); font-size: 11px; font-weight: 400; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(11, 46, 77, .22);
  border-radius: 0;
  background: #fff;
  color: var(--text-main);
  font: 16px/1.7 var(--font-gothic);
  transition: border-color .4s, box-shadow .4s;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field textarea::placeholder { color: #9AA7B3; font-size: 14px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--ocean-blue); box-shadow: 0 0 0 3px rgba(29, 111, 184, .12); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 13px; line-height: 1.9; }
.form-consent input { margin-top: 6px; accent-color: var(--deep-navy); }
.form-consent a { color: var(--ocean-blue); }
.form-status { margin-bottom: 24px; color: var(--text-sub); font-size: 12px; line-height: 1.9; }
.form-submit { width: 100%; min-height: 60px; font-size: 15px; border: 0; cursor: pointer; }
.form-sample-note { margin-top: 14px; color: var(--gold-ink); font-size: 13px; text-align: center; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- フッター ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--rule); color: var(--text-sub); }
.footer-inner {
  width: min(1080px, 100%); margin: 0 auto; padding: 64px var(--gutter) 48px;
  display: grid; gap: 40px;
}
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr 2fr; gap: 64px; } }
.footer-brand img { width: auto; height: 30px; }
.footer-brand p { margin-top: 16px; color: var(--deep-navy); font-family: var(--font-mincho); font-size: 14px; letter-spacing: .1em; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; }
@media (min-width: 600px) { .footer-nav { grid-template-columns: repeat(3, 1fr); } }
.footer-nav li { padding: 6px 0; }
.footer-nav a { color: var(--text-main); font-size: 13px; letter-spacing: .08em; text-decoration: none; cursor: default; }
.footer-nav a[href] { cursor: pointer; }
.footer-nav a[href]:hover { color: var(--ocean-blue); }
.footer-legal a { color: var(--text-sub); font-size: 12px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  width: calc(min(1080px, 100%) - var(--gutter) * 2); margin: 0 auto; padding: 20px 0 28px;
  border-top: 1px solid var(--rule); font-size: 12px; letter-spacing: .08em;
}

/* ---------- スマートフォン：カードは小さな表紙と文字を横に並べる ---------- */
@media (max-width: 599px) {
  .story-open { display: grid; grid-template-columns: 96px 1fr; column-gap: 18px; align-items: start; }
  .story-cover { grid-row: 1 / span 4; margin-bottom: 0; }
  .story-meta, .story-title, .story-first, .story-read { grid-column: 2; }
  .story-title { margin: 2px 0 8px; font-size: 20px; }
  .story-read { margin-top: 12px; }
  }


/* ---------- 1.5 リード ---------- */
.intro { padding: clamp(96px, 13vw, 160px) 0; }
.intro-inner { display: grid; gap: 40px; }
.intro-title {
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .12em;
}
.intro-body .line {
  color: var(--text-main);
  font-family: var(--font-mincho);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 2.4;
  letter-spacing: .1em;
}
.intro-body .intro-turn { margin-top: 1.4em; color: var(--deep-navy); }
@media (min-width: 900px) {
  .intro-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
  /* 見出しは縦書きで右に、本文を左に。本のページのような対面の組み */
  .intro-title { order: 2; justify-self: center; writing-mode: vertical-rl; height: 9em; line-height: 2.2; }
  .intro-body { order: 1; justify-self: end; }
}

/* ---------- 読書ポップアップ ---------- */
.vi-modal-open { overflow: hidden; }
.vi-flip-modal[hidden] { display: none; }
.vi-flip-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.vi-flip-backdrop { position: absolute; inset: 0; background: rgba(5, 23, 39, .82); backdrop-filter: blur(6px); }
.vi-flip-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, 96vw);
  height: min(860px, 94vh);
  padding: 22px 28px 16px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
}
.vi-flip-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.vi-flip-kicker { font-size: 10px; letter-spacing: .2em; color: var(--gold-ink); }
.vi-flip-title { margin-top: 2px; color: var(--deep-navy); font-family: var(--font-mincho); font-size: 18px; font-weight: 500; letter-spacing: .12em; }
.vi-flip-close {
  width: 42px; height: 42px; flex: 0 0 auto;
  border: 1px solid rgba(11, 46, 77, .28); border-radius: 50%;
  background: transparent; color: var(--deep-navy); font-size: 24px; line-height: 1; cursor: pointer;
}
.vi-flip-stage { position: relative; flex: 1; min-height: 0; }
.vi-flip-controls { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 12px; }
.vi-flip-controls button {
  min-width: 110px; padding: 9px 16px;
  border: 1px solid var(--deep-navy); background: transparent; color: var(--deep-navy);
  font: 500 12px var(--font-gothic); letter-spacing: .12em; cursor: pointer;
  transition: background-color .4s, color .4s;
}
.vi-flip-controls button:hover:not(:disabled) { background: var(--deep-navy); color: #fff; }
.vi-flip-controls button:disabled { opacity: .3; cursor: default; }
#flip-page-status { min-width: 48px; text-align: center; font-size: 12px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.vi-flip-help { margin-top: 6px; text-align: center; font-size: 11px; color: var(--text-sub); }
/* 読み進めた位置を示す細い線（縦書きは右から左へ伸びる） */
.reader-progress { height: 1px; margin-top: 10px; background: var(--rule); overflow: hidden; }
.reader-progress span { display: block; height: 100%; background: var(--light-gold); transform-origin: right; transform: scaleX(var(--read, 0)); transition: transform .3s linear; }
.is-horizontal ~ .reader-progress, .vi-flip-dialog.is-horizontal .reader-progress, .vi-flip-dialog.is-horizontal .vi-flip-controls { display: none; }

.reader { position: absolute; inset: 0; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.reader-body { color: var(--text-main); font-family: var(--font-mincho); font-feature-settings: normal; }
.reader-kicker { font-size: 11px; letter-spacing: .2em; color: var(--gold-ink); }
.reader-title { color: var(--deep-navy); font-size: 26px; font-weight: 600; letter-spacing: .14em; line-height: 1.5; }
.reader-sub { color: var(--text-sub); font-size: 14px; }
.reader-lead { color: var(--deep-navy); font-size: 15px; }
.reader-rule { border: 0; margin: 0; }
.reader-heading { color: var(--deep-navy); font-size: 18px; font-weight: 600; letter-spacing: .12em; }
.reader-end { color: var(--gold-ink); font-size: 14px; }
.tcy { text-combine-upright: all; -webkit-text-combine: horizontal; }

/* PC：縦書き。右から左へ読み進める */
.reader-v { writing-mode: vertical-rl; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
.reader-v .reader-body {
  writing-mode: vertical-rl;
  height: 100%;
  padding: 48px 56px;
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: .08em;
  line-break: strict;
}
/* 本文の段落は、折り返した行も含めて全行を1文字下げて頭を揃える（text-indent だと2行目以降が天に突き抜ける）。
   「 で始まる段落（.reader-q）は下げずに天に付ける */
.reader-v .reader-body > p { margin: 0; }
.reader-v .reader-body > p:not([class]) { padding-top: 1em; }
.reader-v .reader-kicker { margin-left: 1.2em; }
.reader-v .reader-title { margin-left: .6em; font-size: 30px; }
.reader-v .reader-sub { margin-left: 2.4em; }
.reader-v .reader-lead { padding-top: 3em; }
.reader-v .reader-rule { height: 3em; width: 0; margin: 0 2.4em 0 2.4em; border-right: 1px solid var(--light-gold); }
.reader-v .reader-heading { margin: 0 2.2em 0 1.2em; padding-top: 1em; }
.reader-v .reader-end { margin-right: 2.4em; padding-top: 2em; }

/* スマートフォン：横書き */
.reader-h { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.reader-h .reader-body { max-width: 34rem; margin: 0 auto; padding: 24px 20px 40px; font-size: 16.5px; line-height: 2.1; letter-spacing: .05em; }
.reader-h .reader-body > p { margin-bottom: 1.1em; }
.reader-h .reader-title { margin: 6px 0 4px; font-size: 24px; }
.reader-h .reader-sub { margin-bottom: 16px; }
.reader-h .reader-rule { width: 40px; margin: 20px 0 24px; border-top: 1px solid var(--light-gold); }
.reader-h .reader-heading { margin: 2em 0 .8em; }
.reader-h .reader-end { margin-top: 2em; text-align: right; }

@media (max-width: 700px) {
  .vi-flip-modal { padding: 8px; }
  .vi-flip-dialog { width: calc(100vw - 16px); max-width: 100%; height: 96vh; padding: 12px; }
  .vi-flip-close { width: 38px; height: 38px; }
}

/* ---------- 読書ポップアップの外側：作品ごとの背景イラスト（PCのみ。イラストのない作品は従来の紺のまま） ----------
   イラストは四隅にモチーフがあるので、読む画面を少し細くして左右に見せる。
   重ねる紺はごく薄くし、ぼかさない */
@media (min-width: 701px) {
  .vi-flip-modal:is([data-case="firstjob"], [data-case="graduation"], [data-case="anniv"], [data-case="hatachi"], [data-case="catalyst"], [data-case="shugen"], [data-case="letter"]) .vi-flip-backdrop {
    background: var(--outer-tint, linear-gradient(rgba(11, 46, 77, .22), rgba(11, 46, 77, .22))), var(--outer-img) center / cover no-repeat;
    backdrop-filter: none;
  }
  .vi-flip-modal[data-case="firstjob"]   { --outer-img: url("assets/images/outer/outer-01.webp"); }
  .vi-flip-modal[data-case="graduation"] { --outer-img: url("assets/images/outer/outer-02.webp"); }
  .vi-flip-modal[data-case="anniv"]      { --outer-img: url("assets/images/outer/outer-03.webp"); }
  .vi-flip-modal[data-case="hatachi"]    { --outer-img: url("assets/images/outer/outer-04.webp"); }
  .vi-flip-modal[data-case="catalyst"]   { --outer-img: url("assets/images/outer/outer-05.webp"); }
  .vi-flip-modal[data-case="shugen"]     { --outer-img: url("assets/images/outer/outer-06.webp"); }
  .vi-flip-modal[data-case="letter"]     { --outer-img: url("assets/images/outer/outer-07.webp"); }
  .vi-flip-modal:is([data-case="firstjob"], [data-case="graduation"], [data-case="anniv"], [data-case="hatachi"], [data-case="catalyst"], [data-case="shugen"], [data-case="letter"]) .vi-flip-dialog { width: min(1080px, 76vw); height: min(820px, 88vh); box-shadow: 0 24px 70px rgba(11, 46, 77, .35); }
}

/* ============================================================
   動き：しっとり、ゆっくり。速い動き・跳ねる動きは使わない
   ============================================================ */
:root { --ease-silk: cubic-bezier(.22, .61, .36, 1); }

/* ファーストビュー：縦書きの見出しが一行ずつ、墨がにじむように現れる */
@keyframes ink-in {
  from { opacity: 0; filter: blur(6px); transform: translateY(-10px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slow-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.motion .hero-title span { opacity: 0; animation: ink-in 1.6s var(--ease-silk) forwards; }
.motion .hero-title span:nth-child(1) { animation-delay: .3s; }
.motion .hero-title span:nth-child(2) { animation-delay: .9s; }
.motion .hero-title span:nth-child(3) { animation-delay: 1.5s; }
.motion .hero-lead { opacity: 0; animation: rise-in 1.4s var(--ease-silk) 2.3s forwards; }
.motion .hero-actions { opacity: 0; animation: rise-in 1.4s var(--ease-silk) 2.7s forwards; }
.motion .motion .hero-bg { animation: slow-zoom 14s ease-out forwards; }
.motion .hero-video { opacity: 0; animation: rise-in 2.4s var(--ease-silk) .2s forwards; }

/* スクロールで静かに現れる */
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.4s var(--ease-silk), transform 1.4s var(--ease-silk); transition-delay: var(--d, 0s); }
.motion .reveal.is-in { opacity: 1; transform: none; }

/* 見出しの下に、金の細い罫がゆっくり引かれる */
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 18px;
  background: var(--light-gold);
  transform-origin: left;
}
.motion .section-head.reveal .section-title::after { transform: scaleX(0); transition: transform 1.6s var(--ease-silk) .5s; }
.motion .section-head.reveal.is-in .section-title::after { transform: scaleX(1); }

/* リード：一文ずつ、間を置いて */
.motion .intro-body .line.reveal { transition-duration: 1.6s; }

/* 手順：番号の下から次の手順へ、金の細い線がゆっくり伸びる（PC） */
@media (min-width: 900px) {
  .flow-steps > li { position: relative; }
  .flow-steps > li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 84px;
    bottom: -28px;
    width: 1px;
    background: var(--light-gold);
    opacity: .6;
    transform-origin: top;
  }
  .motion .flow-steps > li.reveal:not(:last-child)::before { transform: scaleY(0); transition: transform 1.8s var(--ease-silk) .6s; }
  .motion .flow-steps > li.reveal.is-in:not(:last-child)::before { transform: scaleY(1); }
  .step-num { width: 30px; text-align: center; }
}

/* 物語の表紙：ゆっくり持ち上がる */
.story-cover { transition: transform .9s var(--ease-silk), box-shadow .9s var(--ease-silk); }

/* ポップアップ：ふわりと開く */
.vi-flip-backdrop { opacity: 0; transition: opacity .6s ease; }
.vi-flip-dialog { opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .6s var(--ease-silk), transform .7s var(--ease-silk); }
.vi-flip-modal.is-open .vi-flip-backdrop { opacity: 1; }
.vi-flip-modal.is-open .vi-flip-dialog { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .vi-flip-backdrop, .vi-flip-dialog { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* スマートフォン：ファーストビューを画面いっぱいに近づけ、動画を見せる */
@media (max-width: 899px) {
  .hero { display: flex; align-items: center; min-height: calc(100svh - 60px); }
  .hero-inner { width: 100%; }
}

/* 料金の下：固定ページ「ワンシーンについて」への案内 */
.price-more { margin-top: 20px; text-align: center; font-size: 14px; letter-spacing: .1em; }
.price-more a { color: var(--deep-navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
