/*
 * おくりうた（sound.co-co.info）だけの見た目。site.css のあとに読む（lib/layout.php。sanmei.co-co.info では読まない）。
 * DESIGN.md「おくりうたの作法（2026-10-01 渡邉さんの決定）」。和風の作法（縦書き、太い明朝、朱、落款、漢数字の番号）をやめる。
 *   - 見出しは本文と同じゴシック。太さ 500、字間 0.1em
 *   - 差し色は紺（--surface-inverse）だけ。ボタンは紺の面に生成りの文字。朱は使わない
 *   - 歌詞の見本は白い紙に横書きの細い明朝。罫線を引かない
 *   - 最初の画面は写真を幅いっぱいに置き、その下に横書きの見出し
 * 色と余白の値は site.css の変数だけを使う。新しい色を作らない。
 */

.site-header .site-sub { font-size: var(--fontSize-xs); font-weight: var(--fontWeight-normal); line-height: 1.5; letter-spacing: 0; color: var(--text-primary); }

/* ---- 見出しと明朝を使っていた文字をゴシックにする ---- */
h1, h2, h3, caption,
.price-table caption, .g-fv-sub, .g-step-title, .g-statement, .g-company-name, .qa-mark, .g-steps > li::before {
  font-family: var(--fontFamily-sans);
  font-weight: var(--fontWeight-medium);
  letter-spacing: 0.1em;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
.price { font-family: var(--fontFamily-sans); font-weight: var(--fontWeight-medium); letter-spacing: 0.04em; }
.g-steps > li::before { font-size: 1.5rem; }
.g-statement { font-size: 1.25rem; }

/* ---- ボタン。紺の面に生成りの文字（15.64:1） ---- */
.btn {
  border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-onDark);
  font-family: var(--fontFamily-sans); font-size: 1.125rem; font-weight: var(--fontWeight-medium); letter-spacing: 0.1em;
}
.btn-sub { background: var(--surface-base); color: var(--text-strong); }
.btn-sub:hover { background: var(--surface-raised); }

/* ---- 区切り。番号を置かず、横書きの見出しと罫線1本。広い画面でも縦書きにしない ---- */
.sec-no { display: none; }
.sec-in { display: block; max-width: calc(var(--col) + 2 * var(--gutter)); }
.sec-head {
  display: block; justify-self: auto; margin: 0 0 var(--space-xl); padding: 0 0 var(--space-md);
  border-right: 0; border-bottom: 1px solid var(--border-subtle);
}
.sec-head h2 { -webkit-writing-mode: horizontal-tb; writing-mode: horizontal-tb; max-height: none; font-size: 1.375rem; line-height: 1.6; }
.sec-body > :is(.g-steps, .qa):first-child { border-top: 0; }
.sec-body > :is(.g-steps, .qa):first-child > :first-child { padding-top: 0; }

/* ---- 歌詞の見本。白い紙に横書きの細い明朝。罫線を引かない ---- */
.letter { padding: var(--space-lg) var(--space-md); }
.letter-text {
  -webkit-writing-mode: horizontal-tb; writing-mode: horizontal-tb;
  height: auto; background-image: none;
  font-weight: 500; line-height: 2; letter-spacing: 0.06em;
}
.g-ex .letter { padding: var(--space-lg) var(--space-md); }
.g-ex .letter-text { height: auto; min-height: 6em; }
.g-ex:nth-child(even) { margin-top: 0; }
/* スマホは1列（横書きの歌詞を2列に詰めると行が折れる）。720px からは2列 */
.g-ex-list { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
@media (min-width: 720px) {
  .g-ex-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-ex .letter { padding: var(--space-lg) var(--space-lg); }
}

/* ---- 最初の画面。写真を幅いっぱいに、その下に横書きの見出し、一言、ボタン ---- */
.g-fv { padding: 0 0 var(--section); }
.g-fv-in {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "copy" "offer";
  row-gap: 0; max-width: none; padding: 0;
}
.g-fv-visual { display: block; margin: 0; }
.g-fv-photo { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.g-fv-copy {
  -webkit-writing-mode: horizontal-tb; writing-mode: horizontal-tb;
  width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: var(--space-xl) auto 0; padding: 0 var(--gutter);
}
.g-fv-sub { margin: 0 0 var(--space-xs); padding: 0; font-size: 0.9375rem; letter-spacing: 0.16em; }
.g-fv-catch { font-size: 1.75rem; line-height: 1.6; letter-spacing: 0.1em; }
.g-fv-catch > span { display: inline; }
.g-fv-catch > span + span::before { content: ""; display: block; }
.g-fv-offer {
  width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: var(--space-lg) auto 0; padding: 0 var(--gutter);
}
.g-fv-free { display: block; margin: 0 0 var(--space-lg); }
.g-fv-free p { margin: 0; }
@media (min-width: 720px) {
  .g-fv-photo { aspect-ratio: 2 / 1; }
  .g-fv-in { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
  .g-fv-copy, .g-fv-offer { padding: 0; }
  .g-fv-catch { font-size: 2.125rem; }
  .g-fv-offer { max-width: calc(var(--col) + 2 * var(--gutter)); }
}
@media (min-width: 960px) {
  .g-fv { padding-top: var(--space-lg); }
  .g-fv-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "copy" "offer"; column-gap: 0; row-gap: 0; }
  .g-fv-copy { justify-self: auto; margin-top: var(--space-2xl); }
  .g-fv-catch { font-size: 2.125rem; }
  .g-fv-offer { align-self: auto; justify-self: auto; max-width: calc(var(--col) + 2 * var(--gutter)); }
}

/* ---- 最後の申し込みの欄 ---- */
.g-final h2 { font-size: 1.375rem; letter-spacing: 0.1em; }

/* ---- 場面の写真（2026-10-01。image2 で作った、顔を写さない写真）。制作例の上と、区切りの頭に置く ---- */
.g-ex-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 var(--space-md); }
.g-sec-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 var(--space-xl); }

/* =====================================================================
   2026-10-01 渡邉さん「まだシンプルすぎる」。広告（紙の吹き出しの版）と同じ世界にそろえる。
   最初の画面は吹き出しの写真と大きな言葉、「感謝」の下に黄色い線。区切りの見出しの上に短い色の線。
   手順は白いカード。960px からは本文の列を広げ、写真と文字を左右に並べる。スマホは1列のまま。
   ===================================================================== */

/* ---- 最初の画面の上。吹き出しの写真に、大きな言葉を重ねる ---- */
.g-hero { margin: 0; }
.g-hero-in { position: relative; overflow: hidden; background: var(--surface-raised); }
.g-hero picture { display: block; }
.g-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.g-hero-catch {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 8%; margin: 0;
  color: var(--text-strong); font-family: var(--fontFamily-sans); font-weight: 800; line-height: 1.25; letter-spacing: 0.02em;
  word-break: keep-all;
}
.g-hero-big { display: block; font-size: clamp(2.5rem, 12.6vw, 3.5rem); }
/* 「感謝」の下半分に黄色い線。黄色は線だけに使い、文字は紺のまま（紺と黄色 10.5:1） */
.g-hl { padding: 0 0.1em 0 0.06em; margin-left: -0.06em; background: linear-gradient(transparent 58%, var(--accent-primary) 58%); }
.g-hero-small { display: block; margin-top: 0.8em; font-size: clamp(1.125rem, 5.4vw, 1.5rem); font-weight: 600; line-height: 1.55; letter-spacing: 0.1em; }
@media (min-width: 720px) {
  .g-hero { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-lg) var(--gutter) 0; }
  .g-hero-img { aspect-ratio: 2.1 / 1; }
  .g-hero-catch { left: 6%; right: 44%; top: 50%; transform: translateY(-50%); }
  .g-hero-big { font-size: clamp(2.75rem, 6.4vw, 4.75rem); }
  .g-hero-small { font-size: clamp(1.25rem, 2.3vw, 1.75rem); }
}

/* ---- 言葉の下。見出しと一言とボタン、その横（スマホは下）に包む手の写真 ---- */
.g-fv { padding: 0 0 var(--section); }
.g-fv-in {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "offer" "visual";
  row-gap: 0; column-gap: 0; width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.g-fv-copy, .g-fv-offer { width: auto; max-width: none; padding: 0; }
.g-fv-copy { margin: var(--space-xl) 0 0; }
.g-fv-offer { margin: var(--space-lg) 0 0; }
.g-fv-visual { margin: var(--space-2xl) 0 0; }
.g-fv-photo { aspect-ratio: 4 / 3; }
@media (min-width: 720px) {
  .g-fv-in { max-width: calc(var(--col) + 2 * var(--gutter)); padding: 0 var(--gutter); }
  .g-fv-catch { font-size: 2rem; }
  .g-fv-photo { aspect-ratio: 4 / 3; }
}
@media (min-width: 960px) {
  .g-fv { padding-top: 0; }
  .g-fv-in {
    max-width: calc(var(--wide) + 2 * var(--gutter));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy visual" "offer visual";
    column-gap: var(--space-3xl); row-gap: 0; align-items: start; margin-top: var(--space-3xl);
  }
  .g-fv-copy { margin: 0; align-self: end; }
  .g-fv-offer { margin: var(--space-lg) 0 0; align-self: start; max-width: 26em; }
  .g-fv-visual { margin: 0; grid-row: 1 / span 2; }
  .g-fv-catch { font-size: 2.25rem; }
}

/* ---- 区切りの見出し。上に短い色の線（黄色は線だけ）。下の罫線は引かない ---- */
.sec-head { padding-bottom: 0; border-bottom: 0; }
.sec-head h2::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 0 var(--space-md); background: var(--accent-primary); }

/* ---- 手順。白いカードに番号と文（影は付けない。角は 4px） ---- */
.g-steps-card { display: grid; gap: var(--space-sm); border-top: 0; }
.g-steps-card > li { padding: var(--space-lg); background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.sec-body > .g-steps-card:first-child > :first-child, .sec-body .g-steps-card > li:first-child { padding-top: var(--space-lg); }

/* ---- 960px から。本文の列を広げ、写真と文字を左右に並べる ---- */
@media (min-width: 960px) {
  .sec-in { max-width: calc(var(--wide) + 2 * var(--gutter)); }
  .g-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-3xl); align-items: center; }
  .g-split > .g-sec-photo { margin: 0; aspect-ratio: 4 / 3; }
  .g-split-rev > .g-sec-photo { order: 2; }
  .g-split-top { align-items: start; }
  .g-split-top > .price-sheet { margin: 0; }
  .g-split-main > :last-child, .g-split-side > :last-child { margin-bottom: 0; }
  .qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-3xl); }
  .sec-body > .qa:first-child > .qa-item:nth-child(2) { padding-top: 0; }
}

/* =====================================================================
   2026-10-01 場面の写真が横にゆっくり流れる帯（渡邉さん「もっと動きを入れたい」。参考はギフティグループの写真の流れ）
   動きはこの1つだけ。止めるボタンは置かない（渡邉さん「余計なものは削ぎ落とす」）。マウスを置いても止めない（2026-10-02 渡邉さん）。
   動きを減らす設定の人には流さず、止まった写真を横に並べて見せる（指で横に送れる）
   ===================================================================== */
.g-mq { margin: var(--space-2xl) 0 0; overflow: hidden; }
.g-mq-track { display: flex; width: max-content; animation: g-mq 70s linear infinite; }
.g-mq-set { flex: none; display: flex; align-items: flex-start; gap: var(--space-lg); margin: 0; padding: 0 calc(var(--space-lg) / 2); list-style: none; }
.g-mq-set > li { flex: none; width: 200px; margin: 0; }
.g-mq-set > li:nth-child(3n+1) { width: 240px; }
.g-mq-set > li:nth-child(3n+2) { width: 170px; margin-top: var(--space-xl); }
.g-mq-set > li:nth-child(3n) { width: 210px; margin-top: var(--space-sm); }
.g-mq-set img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@keyframes g-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 720px) {
  .g-mq-set > li { width: 280px; }
  .g-mq-set > li:nth-child(3n+1) { width: 340px; }
  .g-mq-set > li:nth-child(3n+2) { width: 240px; }
  .g-mq-set > li:nth-child(3n) { width: 300px; }
  .g-mq-track { animation-duration: 95s; }
}
@media (prefers-reduced-motion: reduce) {
  .g-mq { overflow-x: auto; }
  .g-mq-track { animation: none; }
  .g-mq-set[aria-hidden="true"] { display: none; }
}
@media print { .g-mq-track { animation: none; } .g-mq-set[aria-hidden="true"] { display: none; } }

/* 帯を入れたので、見出しとボタンの塊から写真を外した。960px からは、見出しを左、一言とボタンを右に並べる */
.g-fv-in { grid-template-areas: "copy" "offer"; }
@media (min-width: 960px) {
  .g-fv-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); grid-template-areas: "copy offer"; align-items: center; }
  .g-fv-copy { align-self: center; }
  .g-fv-offer { margin: 0; align-self: center; justify-self: end; width: 100%; max-width: 24em; }
}

/* =====================================================================
   2026-10-01 現れる動き（渡邉さんの決定）。
   区切りの写真やカードが、画面に入るときに下から少し浮かんで出る（.g-rv は index.php の script が付ける。付かなければ何も隠れない）。
   最初の画面の大きな言葉は、開いたときに1行ずつ出る。動きを減らす設定の人には、どちらも動かさない
   ===================================================================== */
.g-rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
.g-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .g-hero-big, .g-hero-small { animation: g-rise 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; }
  .g-hero-big:nth-child(2) { animation-delay: 0.18s; }
  .g-hero-small { animation-delay: 0.5s; }
}
@keyframes g-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .g-rv { opacity: 1; transform: none; transition: none; } }
@media print { .g-rv { opacity: 1; transform: none; } }

/* ---- 制作例の歌詞の全文（2026-10-01 渡邉さんの決定）。抜粋の下に、開く欄で置く。音声のある例だけ ---- */
.g-ex-full { margin: var(--space-sm) 0 0; }
.g-ex-full > summary { display: inline-block; min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--text-strong); font-size: var(--fontSize-sm); letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 0.3em; list-style: none; }
.g-ex-full > summary::-webkit-details-marker { display: none; }
.g-ex-full > summary::after { content: "を読む"; }
.g-ex-full[open] > summary::after { content: "を閉じる"; }
.g-ex-full > .letter-text { margin: 0; padding: var(--space-lg) var(--space-md); background: var(--surface-raised); border: 1px solid var(--border-subtle); color: var(--text-strong); font-size: 1rem; line-height: 2; }

/* =====================================================================
   2026-10-02 最初の画面を、ギフティグループと同じ組み方にする（渡邉さん「背景的に動かしたほうが、もとのサンプルに近い」）。
   写真の列を上と下に1本ずつ流し（速さを変える）、その間に大きな言葉、見出し、一言、注文のボタンを置く。
   止めるボタンは置かない。マウスを置いても止めない。動きを減らす設定の人には流さない。
   それまでの .g-hero（吹き出しの大きな写真）と .g-fv-in と、見出しの下の1本の帯は、ページから外した
   ===================================================================== */
.g-fv { padding: var(--space-lg) 0 var(--section); overflow: hidden; }
.g-mq { margin: 0; overflow: hidden; }
.g-mq-track { display: flex; width: max-content; animation: g-mq 80s linear infinite; }
.g-mq-bottom .g-mq-track { animation-duration: 120s; }
.g-mq-set { flex: none; display: flex; align-items: flex-start; gap: var(--space-md); margin: 0; padding: 0 calc(var(--space-md) / 2); list-style: none; }
.g-mq-set > li, .g-mq-set > li:nth-child(n) { flex: none; width: 150px; margin: 0; }
.g-mq-set > li:nth-child(4n+1) { width: 168px; }
.g-mq-set > li:nth-child(4n+2) { width: 126px; margin-top: var(--space-md); }
.g-mq-set > li:nth-child(4n+3) { width: 150px; margin-top: var(--space-2xs); }
.g-mq-set > li:nth-child(4n) { width: 132px; margin-top: var(--space-lg); }
.g-mq-bottom .g-mq-set > li:nth-child(4n+1) { width: 132px; margin-top: var(--space-md); }
.g-mq-bottom .g-mq-set > li:nth-child(4n+2) { width: 168px; margin-top: 0; }
.g-mq-bottom .g-mq-set > li:nth-child(4n+3) { width: 126px; margin-top: var(--space-lg); }
.g-mq-bottom .g-mq-set > li:nth-child(4n) { width: 150px; margin-top: var(--space-2xs); }
.g-mq-set img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.g-top { width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: var(--space-xl) auto; padding: 0 var(--gutter); }
.g-top-catch { margin: 0; color: var(--text-strong); font-family: var(--fontFamily-sans); font-weight: 800; line-height: 1.25; letter-spacing: 0.02em; word-break: keep-all; }
.g-top .g-hero-big { display: block; font-size: clamp(2.5rem, 12.6vw, 3.5rem); }
.g-top .g-hero-small { display: block; margin-top: 0.7em; font-size: clamp(1.125rem, 5.4vw, 1.5rem); font-weight: 600; line-height: 1.55; letter-spacing: 0.1em; }
.g-top-sub { margin: var(--space-lg) 0 0; font-size: var(--fontSize-sm); font-weight: var(--fontWeight-medium); line-height: 1.7; letter-spacing: 0.16em; color: var(--text-densest); }
.g-top-h1 { margin: var(--space-2xs) 0 0; font-size: 1.125rem; line-height: 1.7; letter-spacing: 0.1em; }
.g-top-h1 > span { display: block; }
.g-top-free { margin: var(--space-xs) 0 var(--space-md); font-size: var(--fontSize-sm); line-height: 1.85; color: var(--text-strong); word-break: auto-phrase; }
@media (min-width: 720px) {
  .g-fv { padding-top: var(--space-xl); }
  .g-mq-track { animation-duration: 110s; }
  .g-mq-bottom .g-mq-track { animation-duration: 160s; }
  .g-mq-set { gap: var(--space-xl); padding: 0 calc(var(--space-xl) / 2); }
  .g-mq-set > li:nth-child(4n+1), .g-mq-bottom .g-mq-set > li:nth-child(4n+2) { width: 280px; }
  .g-mq-set > li:nth-child(4n+2), .g-mq-bottom .g-mq-set > li:nth-child(4n+3) { width: 200px; }
  .g-mq-set > li:nth-child(4n+3), .g-mq-bottom .g-mq-set > li:nth-child(4n) { width: 240px; }
  .g-mq-set > li:nth-child(4n), .g-mq-bottom .g-mq-set > li:nth-child(4n+1) { width: 216px; }
  .g-top { margin: var(--space-2xl) auto; }
  .g-top .g-hero-big { font-size: clamp(3rem, 6vw, 4.5rem); }
  .g-top .g-hero-small { font-size: 1.625rem; }
  .g-top .g-hero-small br { display: none; }
  .g-top-h1 { font-size: 1.375rem; }
  .g-top-h1 > span { display: inline; }
  .g-top-free { font-size: 1rem; }
  .g-top #g-hero-cta { max-width: 24em; }
}
@media (prefers-reduced-motion: reduce) {
  .g-mq { overflow-x: auto; }
  .g-mq-track { animation: none; }
  .g-mq-set[aria-hidden="true"] { display: none; }
}

/* =====================================================================
   2026-10-02 歌詞カード（渡邉さん「押したら歌詞がベローンと出て、ださい」）。
   「歌詞の全文を読む」を押すと、画面を少し暗くして、白いカードを重ねて出す。スマホは下から上がり、720px からは中央に出る。
   閉じるのは、右上の「閉じる」、カードの外、Esc キー。開いている間は、後ろのページを送らない
   ===================================================================== */
html.g-lock { overflow: hidden; }
.g-lyr {
  width: 100%; max-width: 100%; max-height: 86vh; max-height: 86dvh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface-raised); color: var(--text-strong); overflow: hidden;
}
.g-lyr[open] { display: flex; flex-direction: column; animation: g-sheet-in 0.38s cubic-bezier(0.23, 1, 0.32, 1); }
.g-lyr::backdrop { background: rgba(20, 28, 49, 0.55); }
.g-lyr[open]::backdrop { animation: g-fade-in 0.3s ease; }
.g-lyr.is-closing { animation: g-sheet-out 0.22s ease forwards; }
.g-lyr.is-closing::backdrop { animation: g-fade-out 0.22s ease forwards; }
.g-lyr-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) var(--gutter) var(--space-md); border-bottom: 1px solid var(--border-subtle); }
.g-lyr-label { margin: 0; font-size: var(--fontSize-sm); line-height: 1.7; letter-spacing: 0.12em; color: var(--text-densest); }
.g-lyr-title { margin: var(--space-2xs) 0 0; font-size: 1.25rem; line-height: 1.5; letter-spacing: 0.1em; }
.g-lyr-close { flex: none; min-width: 44px; min-height: 44px; margin: -8px -8px 0 0; padding: 8px; border: 0; background: none; cursor: pointer; color: var(--text-strong); font-family: var(--fontFamily-sans); font-size: var(--fontSize-sm); letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 0.3em; }
.g-lyr-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: var(--space-lg) var(--gutter) var(--space-2xl); }
.g-lyr-body .letter-text { margin: 0; font-size: 1.0625rem; line-height: 2.15; letter-spacing: 0.08em; }
@keyframes g-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes g-sheet-out { from { transform: none; } to { transform: translateY(100%); } }
@keyframes g-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes g-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media (min-width: 720px) {
  .g-lyr { max-width: 520px; max-height: 82vh; margin: auto; border-radius: var(--radius-md); }
  .g-lyr[open] { animation-name: g-pop-in; }
  .g-lyr.is-closing { animation-name: g-pop-out; }
  .g-lyr-head { padding: var(--space-xl) var(--space-xl) var(--space-md); }
  .g-lyr-body { padding: var(--space-lg) var(--space-xl) var(--space-2xl); }
}
@keyframes g-pop-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes g-pop-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .g-lyr[open], .g-lyr.is-closing, .g-lyr[open]::backdrop, .g-lyr.is-closing::backdrop { animation: none; } }

/* 試聴を最初の一歩にする。写真と申込み条件はそのまま、再生を画面内へ。 */
.g-top.g-listen-first { margin-top: var(--space-md); }
.g-listen-title { margin: 0; color: var(--text-strong); font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 700; line-height: 1.45; letter-spacing: 0.01em; }
.g-listen-lead { margin: var(--space-xs) 0 var(--space-md); font-size: var(--fontSize-sm); line-height: 1.7; }
.g-preview-card { margin: var(--space-md) 0; }
.g-preview-toggle { min-height: 56px; margin-bottom: var(--space-xs); font-size: 1rem; letter-spacing: 0.02em; }
.g-preview-toggle[hidden], .g-preview-card audio[hidden], .g-preview-status[hidden] { display: none; }
.g-preview-card .g-preview-note, .g-preview-card .g-preview-lyrics { margin: var(--space-xs) 0 0; font-size: var(--fontSize-sm); line-height: 1.65; }
.g-preview-status { margin: var(--space-xs) 0; font-size: var(--fontSize-sm); }
.g-listen-first .g-listen-offer { margin: var(--space-md) 0 var(--space-sm); }
.g-listen-terms { margin: var(--space-xs) 0 0; font-size: var(--fontSize-xs); line-height: 1.65; }
@media (min-width: 720px) {
  .g-top.g-listen-first { margin-top: var(--space-xl); }
  .g-listen-title { font-size: 2.5rem; }
}

@media (max-width: 359px) {
  .g-fv { padding-top: var(--space-md); }
  .g-top.g-listen-first { margin-top: var(--space-xs); }
  .g-listen-title { font-size: 1.5rem; }
  .g-listen-lead { margin-bottom: var(--space-xs); }
  .g-preview-card { margin-top: var(--space-xs); padding: var(--space-sm); }
}

/* 縦が短いスマホ画面では、初回案内の上に試聴ボタンを収める。写真は下側の帯に残す。 */
@media (max-width: 719px) and (max-height: 600px) {
  .g-fv > .g-mq-top { display: none; }
}

/* 冒頭は贈り物の写真1枚。制作例・説明欄の写真を繰り返さない。 */
.g-intro-photo {
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.g-intro-photo img {
  display: block;
  width: 100%;
  height: clamp(144px, 22vw, 280px);
  object-fit: cover;
  object-position: 50% 64%;
}

/* 狭い画面では料金の項目名と説明を縦に並べる。 */
@media (max-width: 479px) {
  .price-table, .price-table caption, .price-table tbody,
  .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table th { padding: var(--space-md) 0 var(--space-xs); border-bottom: 0; }
  .price-table td { padding: 0 0 var(--space-md); border-top: 0; border-left: 0; }
  .price-table .price { font-size: clamp(1.75rem, 9vw, 2.5rem); white-space: nowrap; }
}
