/*
 * 「サービスについて」固定ページ（/about-onescene/）の追加スタイル。マイライフログとは何かを伝えるページ。
 * 共通部分（ヘッダー・ボタン・質問例・相談フォーム・フッター）は site.css を使う。原稿は 08_サイト原稿/サービスについて.md
 */
.sp { display: inline; }
@media (min-width: 768px) { .sp { display: none; } }

.about-page p { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 1. マイライフログとは（背景画像に紙の色を重ねて文字を読みやすく） ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 14vw, 180px) 0 clamp(88px, 12vw, 160px);
  background: var(--paper);
  text-align: center;
}
.page-head-bg { position: absolute; inset: 0; z-index: 0; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.page-head-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(251, 248, 242, .88) 0%, rgba(251, 248, 242, .62) 70%, rgba(251, 248, 242, .45) 100%); }
.page-head-inner { position: relative; z-index: 1; }
.page-kicker { color: var(--gold-ink); font-size: 13px; letter-spacing: .24em; }
.page-title {
  margin: 16px 0 0;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .14em;
}
.page-lead {
  margin: clamp(24px, 3vw, 32px) auto 0;
  color: var(--text-main);
  font-family: var(--font-mincho);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2.1;
  letter-spacing: .08em;
}

/* ---------- 2〜4. 考え方（画像と短い言葉を交互に） ---------- */
.idea { padding: clamp(72px, 10vw, 128px) 0; background: #fff; border-top: 1px solid var(--rule); }
.idea--three { background: var(--paper); }
.idea-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .idea-grid { grid-template-columns: 7fr 5fr; gap: 72px; }
  .idea--reverse .idea-figure { order: 2; }
}
.idea-figure { margin: 0; }
.idea-figure img, .media-list img, .writer-figure img, .plan-figure img, .maker-figure img { display: block; width: 100%; height: auto; }
.idea-num { margin-bottom: 12px; color: var(--gold-ink); font-family: var(--font-mincho); font-size: 26px; line-height: 1; }
.idea-title {
  margin: 0;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .1em;
}
.idea-text { margin-top: 20px; font-family: var(--font-mincho); font-size: 16px; line-height: 2.1; letter-spacing: .05em; }
.idea-copy--center, .idea-text--center { text-align: center; }
.media-list { display: grid; gap: 20px; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .media-list { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.media-list li { background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.media-list p { padding: 16px 18px 18px; font-size: 14px; letter-spacing: .06em; text-align: center; }
.media-list b { display: block; margin-bottom: 4px; color: var(--deep-navy); font-family: var(--font-mincho); font-size: 18px; font-weight: 500; letter-spacing: .2em; }
.media-list .is-ours { box-shadow: 0 0 0 1px var(--light-gold); }
.media-list .is-ours b { color: var(--gold-ink); }

/* ---------- 5. プロのライターが聞く ---------- */
.writer { padding: clamp(72px, 10vw, 128px) 0; background: #fff; border-top: 1px solid var(--rule); }
.writer-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .writer-inner { grid-template-columns: 5fr 6fr; gap: 64px; } }
.writer-figure { margin: 0; }
.writer-copy > p { margin-top: 18px; font-size: 15px; line-height: 2.1; }
.writer-asks { margin: 24px 0 0; background: var(--paper); }
.writer-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 700px) { .writer-steps { grid-template-columns: repeat(4, 1fr); } }
.writer-steps li {
  padding: 22px 12px;
  background: #fff;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: 18px;
  letter-spacing: .14em;
  text-align: center;
}
.writer-steps span { display: block; margin-bottom: 6px; color: var(--gold-ink); font-size: 13px; }

/* ---------- 6. 3つのかたち ---------- */
.plans { padding: clamp(80px, 11vw, 136px) 0; background: var(--paper); }
.plan-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .plan-list { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.plan { display: flex; flex-direction: column; padding: 0 0 28px; background: #fff; border: 1px solid var(--rule); }
.plan > *:not(.plan-figure) { margin-left: 24px; margin-right: 24px; }
.plan-figure { position: relative; margin: 0 0 22px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.plan-figure img { height: 100%; object-fit: cover; }
.plan-figure--cover img { position: absolute; top: 16px; left: 50%; width: auto; height: calc(100% - 32px); transform: translateX(-50%); box-shadow: 0 0 0 1px var(--rule), 0 10px 24px -14px rgba(11, 46, 77, .4); }
.plan-figure figcaption { position: absolute; right: 10px; bottom: 8px; color: var(--text-sub); font-size: 11px; letter-spacing: .1em; }
.plan-status { align-self: flex-start; padding: 3px 12px; border: 1px solid var(--rule); color: var(--text-sub); font-size: 12px; letter-spacing: .12em; }
.plan.is-open .plan-status { border-color: var(--deep-navy); background: var(--deep-navy); color: #fff; }
.plan-name { margin-top: 14px; margin-bottom: 6px; color: var(--deep-navy); font-family: var(--font-mincho); font-size: 19px; font-weight: 500; letter-spacing: .06em; white-space: nowrap; }
.plan-catch { flex: 1; color: var(--gold-ink); font-family: var(--font-mincho); font-size: 15px; letter-spacing: .06em; }
.plan-price { margin-top: 12px; color: var(--text-sub); font-size: 12px; }
.plan-price strong { color: var(--deep-navy); font-family: var(--font-mincho); font-size: 22px; font-weight: 500; }
.plan-link, .text-link {
  align-self: flex-start;
  margin-top: 18px;
  color: var(--deep-navy);
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.plan-link:hover, .text-link:hover { color: var(--gold-ink); }

/* ---------- 7. こんなときに ---------- */
.scenes { padding: clamp(80px, 11vw, 136px) 0; background: #fff; border-top: 1px solid var(--rule); }
.scene-list { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .scene-list { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.scene img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.scene-label {
  margin: 20px 0 8px;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: 19px;
  letter-spacing: .1em;
}
.scene p:not(.scene-label) { font-size: 14px; line-height: 2; }

/* ---------- 8. つくっている会社 ---------- */
.maker { padding: clamp(72px, 10vw, 128px) 0; background: #fff; border-top: 1px solid var(--rule); }
.maker-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .maker-inner { grid-template-columns: 5fr 6fr; gap: 64px; } }
.maker-figure { margin: 0; }
.maker-body > p { margin-top: 18px; font-size: 15px; line-height: 2.1; }

/* ---------- 8.5 締め ---------- */
.closing { padding: clamp(72px, 10vw, 112px) 0; background: var(--sand-beige); text-align: center; }
.closing-title {
  margin: 0;
  color: var(--deep-navy);
  font-family: var(--font-mincho);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .12em;
}
.closing-actions { justify-content: center; }

/* スマホでも「写真・映像・言葉」は3枚を横に並べて比べる */
@media (max-width: 699px) {
  .media-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .media-list p { padding: 10px 4px 12px; font-size: 10.5px; letter-spacing: 0; }
  .media-list b { font-size: 15px; letter-spacing: .12em; }
}

/* ワンシーンの価格：「開始記念モニター価格 33,000円（税込）」を1行に収める */
.plan-price { font-size: 11px; letter-spacing: 0; white-space: nowrap; }
.plan-price strong { font-size: 20px; }

/* 考え方一：切り抜きの絵を白地にそのまま大きく置く。道の端がセクションの下端に接するよう、絵を最下段に置く */
.idea--cutout { padding-bottom: 0; overflow: hidden; }
.idea--cutout .idea-grid { gap: 32px; }
.idea--cutout .idea-copy { order: -1; }
.idea--cutout .idea-figure { align-self: end; }
.idea--cutout .idea-figure img { width: min(100%, 520px); margin: 0 auto; }
@media (min-width: 900px) {
  .idea--cutout .idea-grid { grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
  .idea--cutout .idea-copy { order: 0; align-self: center; padding-bottom: clamp(24px, 4vw, 56px); }
  .idea--cutout .idea-figure img { width: 100%; max-width: 720px; margin: 0 0 0 auto; }
}

/* 考え方二：写真・映像・言葉の絵をコラージュで置く（見本 asset/screenshot_order/image_order09251535.png）。
   PCは舞台の中に位置を％で決めて重ね、スマホは縦に積む */
.media-stage { position: relative; }
.media-stage img { display: block; height: auto; }
.media-head { text-align: center; }
.media-lead { margin-top: 12px; font-family: var(--font-mincho); font-size: 16px; letter-spacing: .06em; text-align: center; }
.media-camera { width: 62%; margin: 32px 0 0 2%; }
.media-8mm { width: 52%; margin: -4% 0 0 44%; }
.media-book { width: 92%; margin: 4% auto 0; }
@media (min-width: 900px) {
  .media-stage { aspect-ratio: 1150 / 500; }
  .media-stage > * { position: absolute; margin: 0; }
  .media-head { top: 0; left: 50%; right: 0; }
  .media-camera { left: 3.5%; top: 11%; width: 28%; }
  .media-8mm { left: .7%; top: 60%; width: 23.6%; }
  .media-book { left: 24.8%; top: 19%; width: 44%; }
  .media-lead { left: 55%; right: 0; bottom: 6%; }
  /* 見出しと下の一文は右詰めにし、右端を「残る。」の位置（右半分の中央寄せだったときの位置）に揃える。
     「言葉には気持ちが残る。」の幅は約12.07em（字間込み）なので、右端から 25% − 5.97em が「。」の端 */
  .media-head, .media-lead { --media-right: calc(25% - clamp(22px, 2.6vw, 30px) * 5.97); left: auto; right: var(--media-right); text-align: right; }
  .media-head .idea-title { margin-right: -.1em; }
  .media-lead { width: min-content; margin-right: -.06em; } /* 幅を最小にして「残すのは、」の後で改行する */
  .media-lead .nw { white-space: nowrap; }
}

/* 考え方三：アルバムの絵を右に大きく置き、右端と上下をはみ出させる（見本 asset/screenshot_order/image_order_section03.png） */
.idea--album { position: relative; overflow: hidden; padding-bottom: 0; }
.album-figure { margin: 0; }
.album-figure img { display: block; height: auto; }
.idea--album .album-copy { position: relative; z-index: 1; }
@media (max-width: 899px) {
  .idea--album { display: flex; flex-direction: column-reverse; }
  .album-figure { margin: 32px -22% -8% 8%; }
  .album-figure img { width: 100%; }
}
@media (min-width: 900px) {
  .idea--album { display: flex; align-items: center; min-height: clamp(460px, 40vw, 640px); padding: 0; }
  .album-figure { position: absolute; top: 50%; right: -9vw; width: 72vw; max-width: 1180px; transform: translateY(-50%); }
  .album-figure img { width: 100%; }
  .idea--album .wrap { width: min(1080px, 100%); }
  .idea--album .album-copy { max-width: 44%; }
}
.album-figure img { opacity: .5; }

/* ライターが聞く：額縁の絵を右上に傾けて重ね、質問の例を下に横いっぱいに置く（見本 asset/screenshot_order/image_oder_09251601.png） */
.writer-inner { display: block; max-width: 880px; margin: 0 auto; }
.writer-lay { position: relative; }
.writer-frame { width: 78%; margin: 28px auto 8px; transform: rotate(4deg); }
.writer-frame img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(11, 46, 77, .22)); }
.writer-asks { margin-top: 32px; padding: 24px 28px; }
.writer-asks li { font-size: 16px; }
@media (min-width: 900px) {
  .writer-copy { max-width: 58%; min-height: 250px; }
  .writer-frame { position: absolute; top: -12px; right: -2%; width: 40%; margin: 0; transform: rotate(6deg); }
  .writer-asks { margin-top: 40px; padding: 32px 36px; }
}
.writer-steps { max-width: calc(880px - var(--gutter) * 2); margin-left: auto; margin-right: auto; }
@media (min-width: 900px) {
  .writer-copy { max-width: 50%; }
  .writer-frame { top: -24px; right: -6%; width: 54%; }
}

/* 運営会社：アワードのロゴ。濃い赤なので控えめな大きさで、枠の中央に置く */
.maker-figure--logo { display: grid; place-items: center; }
.maker-figure--logo img { width: clamp(120px, 16vw, 180px); height: auto; }

/* 考え方一：絵を大きくし、上の冒頭セクションに覆いかぶさるように上へはみ出させる。見出しと文章は下寄せ */
.idea--cutout { position: relative; overflow: hidden; border-top: 1px solid var(--rule); }
@media (max-width: 899px) {
  .idea--cutout .idea-figure { margin-top: 0; }
}
@media (min-width: 900px) {
  .idea--cutout { padding-top: clamp(40px, 5vw, 64px); }
  .idea--cutout .idea-grid { grid-template-columns: 6fr 5fr; gap: 32px; align-items: end; }
  .idea--cutout .idea-figure { margin-top: 0; }
  .idea--cutout .idea-figure img { max-width: 780px; width: 106%; margin: 0 0 0 -6%; }
  .idea--cutout .idea-copy { align-self: end; padding-bottom: clamp(56px, 7vw, 96px); }
}

/* 背景を交互にする：ライター（生成り）→ 3つのかたち（白）→ こんなときに（生成り）→ 運営会社（白） */
.writer { background: var(--paper); border-top: 0; }
.writer-asks { background: #fff; }
.plans { background: #fff; border-top: 0; }
.plan { background: var(--paper); }
.scenes { background: var(--paper); border-top: 0; }

/* 3つのかたち：カードは白地＋細い枠。3枚を同じ大きさで揃え、受付中のワンシーンだけ1.05倍に拡大して目立たせる */
.plan { background: #fff; }
@media (min-width: 900px) {
  .plan-list { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan.is-open { position: relative; z-index: 1; transform: scale(1.05); box-shadow: 0 16px 36px -24px rgba(11, 46, 77, .35); }
}

/* 受付中のワンシーンだけ外枠を金茶に */
.plan.is-open { border-color: var(--gold-ink); }

/* 書かなくていい：背景に「書きかけて丸めた便箋」の絵。机が下端に来るよう下揃えで敷き、紙の色をごく薄く重ねる。
   絵は .writer-bg に置き、スクロールに合わせて文字よりゆっくり動かす（パララックス。上下に余裕を持たせる） */
.writer { position: relative; overflow: hidden; background: var(--paper); padding-bottom: clamp(140px, 16vw, 220px); }
.writer-bg {
  position: absolute; left: 0; right: 0; top: -10%; bottom: -10%; z-index: 0;
  background:
    linear-gradient(rgba(251, 248, 242, .2), rgba(251, 248, 242, .2)),
    url("assets/images/about/writer-bg.webp") center bottom / cover no-repeat;
  will-change: transform;
}
.writer > .wrap { position: relative; z-index: 1; }
@media (max-width: 899px) {
  .writer-bg { background-position: 0 0, 12% bottom; background-size: auto, auto 420px; }
}

/* ワンシーンの商品画像：白紙の読み物の絵に、実際の本文を縦書きで重ねる（紙の位置は画像に合わせた％） */
.plan-figure--pages { container-type: inline-size; }
.pages-text {
  position: absolute;
  left: 25%; top: 27%; width: 50%; height: 47%;
  overflow: hidden;
  writing-mode: vertical-rl;
  color: var(--text-main);
  font-family: var(--font-mincho);
  font-size: 2.6cqw;
  line-height: 1.9;
  letter-spacing: .08em;
}
.pages-text p { margin: 0; padding-top: 1em; }
.pages-text .pages-title { margin-left: 1.2em; padding-top: 0; color: var(--deep-navy); font-size: 1.5em; font-weight: 500; letter-spacing: .16em; }

/* 考え方の見出しの行間を詰める */
.idea-title { line-height: 1.5; }

/* ---------- エフェクト（html.motion のときだけ。動きを減らす設定では最初から表示） ---------- */
/* 一日は：絵が下から伸びるように、ふわっと現れる */
.motion .fx-grow { clip-path: inset(100% 0 0 0); opacity: 0; transform: translateY(24px); transition: clip-path 1.8s var(--ease-silk), opacity 1.2s ease, transform 1.8s var(--ease-silk); }
.motion .fx-grow.is-in { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
/* ふわっと現れる（3枚の絵は --d で順番をずらす） */
.motion .fx-fade { opacity: 0; translate: 0 18px; transition: opacity 1.3s ease var(--d, 0s), translate 1.5s var(--ease-silk) var(--d, 0s); }
.motion .fx-fade.is-in { opacity: 1; translate: 0 0; }
/* ワンシーンの本文：タイプライターのように一文字ずつ */
.motion .fx-type .tw-c { opacity: 0; transition: opacity .25s ease; }
.motion .fx-type .tw-c.on { opacity: 1; }

/* 冒頭：パララックスで下へずらす分、背景の絵を上に長めに敷く */
.page-head-bg { top: -30%; will-change: transform; }
