/* /ai-creation/ だけで読むCSS。色は style.css・editorial.css の :root の変数を使う（ここに色の値を書かない） */

/* 最初の画面の背景に入れる墨流し（3D）。
   3D部品が読む --color-brand-* を、サイトの色の変数につなぐ（editorial.css の :root が真実源）。
   3Dが出ない端末では .detail-hero の背景色（生成り）がそのまま見える */
.detail-hero {
  --color-brand-bg: var(--cream);
  --color-brand-surface: var(--paper);
  --color-brand-text: var(--ink);
  --color-brand-primary: var(--navy);
  --color-brand-secondary: var(--line);
  --color-brand-accent: var(--red);
}
.detail-hero .fx-host,
.detail-hero .fx-veil { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* 文字の後ろだけ、背景色をうっすら敷いて読みやすくする（HP工場の HeroFx.tsx の veil と同じ考え方） */
/* このページは見出しが横に長く、右に料金の札があるので、左の文字の幅と札の後ろの2か所に敷く */
.detail-hero .fx-veil {
  background:
    radial-gradient(ellipse 30% 70% at 81% 50%, color-mix(in srgb, var(--color-brand-bg) 88%, transparent) 45%, transparent 78%),
    linear-gradient(90deg, color-mix(in srgb, var(--color-brand-bg) 90%, transparent) 0%, color-mix(in srgb, var(--color-brand-bg) 88%, transparent) 52%, transparent 66%);
}
.detail-hero .detail-hero-inner { z-index: 1; }
/* 1列になる幅では文字が横いっぱいに広がるので、全体に敷く */
@media (max-width: 820px) {
  .detail-hero .fx-veil { background: color-mix(in srgb, var(--color-brand-bg) 74%, transparent); }
}

/* 見本集（/samples/）への案内カード */
.sample-link-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; margin-top: 38px; padding: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.sample-link-card h3 { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.45; }
.sample-link-card p { margin: 10px 0 0; }
/* 文の途中（「です。」だけ等）で行が落ちないよう、文ごとにまとめて折り返す */
.sample-link-card p span { display: inline-block; }
.sample-link-card .text-link { margin-top: 0; padding-top: 0; white-space: nowrap; }

@media (max-width: 820px) {
  .sample-link-card { grid-template-columns: 1fr; gap: 16px; }
  /* 幅が狭いと文ごとのまとまりの中で行が落ちるので、ふつうの流し込みに戻す */
  .sample-link-card p { text-wrap: pretty; }
  .sample-link-card p span { display: inline; }
}
@media (max-width: 560px) {
  .sample-link-card { padding: 20px; }
  .sample-link-card .text-link { white-space: normal; }
}

/* 2026-11-11 作り方を選ぶ（最初の画面）と途中の相談ボタン */
.hp-route { display: grid; gap: 14px; position: relative; z-index: 1; }
.hp-route > p { margin: 0; font-size: .85rem; letter-spacing: .08em; color: #806329; }
.hp-route a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid #c9b48a; border-radius: 10px; background: #fcfaf4; color: var(--ink); text-decoration: none; box-shadow: 4px 5px 0 #d8ccb2; transition: transform .2s, background .2s; }
.hp-route a:hover { transform: translateX(4px); background: #f2ecdf; }
.hp-route a:focus-visible { outline: 3px solid #88652f; outline-offset: 4px; }
.hp-route span { font-weight: 600; font-size: 1rem; }
.hp-route span::after { content: " →"; color: #9b3b2b; }
.hp-route b { font-family: var(--ui-font); font-size: 1.6rem; font-weight: 500; color: #806329; line-height: 1.3; }
.hp-route small { font-size: .8rem; color: #655b4a; }
.detail-cta { margin: 28px 0 0; text-align: center; }
.detail-cta .button { min-width: 260px; }
.detail-cta .button { background: #88652f; color: #fff; border-color: #af905b; }
.detail-cta .button:hover { background: #6f5226; color: #fff; }
