/* 問い合わせ（2026-11 改修）：トップと同じ紙の地・深緑・赤茶。フォームは箱に入れず、線で組む */
body.cf2 {
  --paper: #ECE8E0; --paper-2: #E4DFD5; --ink: #1d2b33; --ink-2: #5b666c;
  --teal: #4A6B62; --terra: #B0503A; --terra-tx: #B0503A; --line: rgba(29,43,51,.22);
  --field: rgba(255,255,255,.32); --field-f: rgba(255,255,255,.4); --band: 236,232,224; --mark-ink: #1d2b33; --mark-shadow: .13; --ph: rgba(29,43,51,.38);
  background: var(--paper); color: var(--ink);
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
}
html:has(body.cf2) { background: #ECE8E0; }
html[data-day=thu][data-time=dawn]:has(body.cf2) { background: #EFE3DD; }
html[data-day=thu][data-time=dusk]:has(body.cf2) { background: #E7D6C5; }
html[data-tone=dark]:has(body.cf2) { background: #1B232B; }
body.cf2 .hero { height: auto; min-height: 100vh; overflow: visible; background:
  radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.55), transparent 60%), var(--paper); }
body.cf2 .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .37  0 0 0 0 .32  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* 3D の面：画面に固定し、文字の下に置く */
.cf-stage { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.cf-stage.on { opacity: 1; }
.cf-stage canvas { display: block; width: 100%; height: 100%; }
body.cf2 .overlay { position: relative; z-index: auto; height: auto; min-height: 100vh; overflow: visible; }
/* 3D の線は本文の上・共通の道しるべやメニューの下に通す */
.cf-page { z-index: 1; }

.cf-page { pointer-events: auto; position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 110px);
  max-width: 1480px; padding: clamp(120px, 16vh, 168px) clamp(40px, 5vw, 88px) 120px calc(clamp(40px, 5vw, 88px) + 190px); margin: 0 auto; }

/* 左：見出し・リード・コラージュ（ロゴが組み上がる場所を重ねる） */
.cf-title { white-space: nowrap; margin: 0; font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.3; letter-spacing: .06em; color: var(--ink); }
.cf-title::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 18px; background: var(--terra); }
.cf-lead { margin: 20px 0 0; max-width: 30em; font-family: "Noto Sans JP", sans-serif; font-size: 13px; line-height: 2; color: var(--ink-2); }
.cf-visual { position: relative; margin-top: 44px; width: min(100%, 440px, calc((100vh - 380px) * .8)); min-width: 260px; }
.cf-photo { margin: 0; transform: rotate(-2.2deg); transform-origin: 30% 80%; filter: drop-shadow(0 26px 30px rgba(40,30,20,.18)) drop-shadow(0 3px 4px rgba(40,30,20,.12)); }
.cf-photo img { display: block; width: 100%; height: auto; }
.cf-mark { position: absolute; right: -14%; top: -12%; width: 46%; aspect-ratio: 36.16 / 32; }

/* 右：フォーム */
.cf-form { align-self: start; padding-top: 6px; font-family: "Noto Sans JP", sans-serif; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cf-f { position: relative; padding: 16px 0 6px; }
.cf-f > label { display: flex; align-items: baseline; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.cf-f > label em { font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .1em; color: var(--terra-tx); }
.cf-f input:not([type=checkbox]), .cf-f select, .cf-f textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 2px 12px; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 14px/1.6 "Noto Sans JP", sans-serif; letter-spacing: .02em; outline: none;
  transition: border-color .25s ease, background-color .25s ease; appearance: none; -webkit-appearance: none; }
.cf-f textarea { resize: vertical; min-height: 150px; padding: 12px; border: 1.5px solid var(--line); background: var(--field); }
.cf-f input::placeholder, .cf-f textarea::placeholder { color: var(--ph); }
.cf-f input:focus, .cf-f select:focus, .cf-f textarea:focus { border-color: var(--teal); background-color: var(--field-f); }
.cf-f.is-ok input, .cf-f.is-ok select, .cf-f.is-ok textarea { border-color: var(--ink); }
.cf-f.is-err input, .cf-f.is-err select, .cf-f.is-err textarea { border-color: var(--terra); }
.cf-select { position: relative; }
.cf-select::after { content: ""; position: absolute; right: 6px; bottom: 22px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.cf-select select { padding-right: 28px; cursor: pointer; }
.cf-select select:invalid { color: var(--ph); }
.cf-select select option { color: #1d2b33; background: #fff; }
.cf-err { min-height: 18px; margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--terra-tx); }

.cf-check { display: flex; align-items: center; gap: 12px; font-size: 13px; cursor: pointer; }
.cf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-box { flex: 0 0 auto; width: 20px; height: 20px; border: 1.5px solid var(--ink); background: transparent; position: relative; transition: background .2s ease; }
.cf-check input:checked + .cf-box { background: var(--ink); }
.cf-check input:checked + .cf-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(45deg); }
.cf-check input:focus-visible + .cf-box { outline: 2px solid var(--teal); outline-offset: 3px; }
.cf-check a { color: var(--ink); text-underline-offset: 3px; }

.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.cf-send { display: inline-flex; align-items: center; gap: 16px; padding: 18px 30px 18px 34px; border: 0; background: var(--terra); color: #fff;
  font: 700 15px/1 "Noto Sans JP", sans-serif; letter-spacing: .16em; cursor: pointer; transition: background .25s ease, transform .25s ease; }
.cf-send svg { width: 20px; height: 20px; transition: transform .25s ease; }
.cf-send:hover { background: #9a4330; }
.cf-send:hover svg { transform: translateX(4px); }
.cf-send:disabled { opacity: .65; cursor: default; }
.cf-send.is-sending svg { display: none; }
.cf-note { margin: 0; font-size: 12px; }
.cf-note a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.cf-status { min-height: 20px; margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: var(--terra-tx); }

/* 上の道しるべ・左下の共通メニューを紙の地でも読める色に */
body.cf2 .topbar a, body.cf2 .topbar .current { color: var(--ink) !important; text-shadow: none !important; }
body.cf2 .topbar .sep { color: var(--ink-2) !important; }
body.cf2 .nav-jump a { color: var(--ink) !important; text-shadow: none !important; }
body.cf2 .nav-jump a:hover, body.cf2 .nav-jump a.active { color: var(--terra) !important; }

/* PC：左の列を止め、フォームを下まで書いてもロゴが見えるようにする */
@media (min-width: 861px) { .cf-intro { position: sticky; top: min(76px, calc(100vh - 800px)); align-self: start; } }
@media (max-width: 1100px) and (min-width: 861px) {
  .cf-page { gap: 40px; padding-right: 32px; padding-left: 230px; }
}
@media (max-width: 860px) {
  .cf-page { grid-template-columns: 1fr; gap: 40px; padding: 104px 20px 80px; }
  .cf-title { font-size: 26px; }
  .cf-lead { font-size: 13px; }
  .cf-visual { width: 72%; margin-top: 32px; }
  .cf-mark { right: -30%; top: -8%; width: 52%; }
  .cf-row { grid-template-columns: 1fr; }
  .cf-foot { flex-direction: column; align-items: stretch; }
  .cf-send { justify-content: center; }
  .cf-note { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cf-stage { transition: none; } }

/* 送信後のページ：同じ紙の地で、組み上がったロゴがゆっくり回る */
body.cf2.cf-thanks .thanks-wrap { position: relative; z-index: 1; pointer-events: auto; color: var(--ink); }
body.cf2.cf-thanks .cf-mark-done { width: 180px; aspect-ratio: 36.16 / 32; margin: 0 auto 28px; }
body.cf2.cf-thanks .thanks-check { display: none; }
body.cf2.cf-thanks .thanks-title { font-family: "Noto Sans JP", sans-serif; font-weight: 900; color: var(--ink) !important; letter-spacing: .04em; }
body.cf2.cf-thanks .thanks-sub, body.cf2.cf-thanks .thanks-detail { color: var(--ink) !important; font-family: "Noto Sans JP", sans-serif; }
body.cf2.cf-thanks .thanks-detail strong { color: var(--terra-tx) !important; }
body.cf2.cf-thanks .thanks-line { background: var(--line) !important; }
body.cf2.cf-thanks .thanks-cta { background: var(--terra) !important; color: #fff !important; border: 0 !important; font-family: "Noto Sans JP", sans-serif; }
body.cf2.cf-thanks .thanks-detail { background: transparent !important; box-shadow: none !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; backdrop-filter: none !important; }
body.cf2.cf-thanks .nav-jump a[href$="contact.html"] { color: var(--terra) !important; }
/* 上の道しるべは、ほかのページと同じく背景の上に乗せる。帯を敷くと夕・夜に暗い帯が出てヘッダーが浮いて見えた（2026-11-16 吉田さん）。帯は出さない */
.cf-topband { position: fixed; left: 0; right: 0; top: 0; height: 60px; z-index: 55; pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--band)) 0, rgb(var(--band)) 54px, rgba(var(--band),0) 100%); }
body.cf2 .topbar { z-index: 60; }
body.cf2 .nav-hamburger { z-index: 70; }
@media (max-width: 860px) {
  .cf-topband { height: 56px; background: linear-gradient(180deg, rgb(var(--band)) 0, rgb(var(--band)) 50px, rgba(var(--band),0) 100%); }
  /* 画面の四隅の L 字の飾りは、スマホでは入力欄に重なるので出さない */
  body.cf2 .corner { display: none; }
}
body.cf2.cf-thanks .thanks-wrap { padding-top: 56px; }

/* 時刻（朝 5–9 時・昼 9–16 時・夕 16–19 時・夜 19–5 時、日本時間）で絵と色を替える。木曜は紙の地の色を時刻で替え、
   ほかの曜日はトップのその日の絵を敷く。文字の色は、絵の明るさで決めた data-tone（light / dark）で替える */
html[data-day=thu][data-time=dawn] body.cf2 { --paper: #EFE3DD; --band: 239,227,221; }
html[data-day=thu][data-time=dusk] body.cf2 { --paper: #E7D6C5; --band: 231,214,197; --ink-2: #5a5550; }
html[data-tone=dark] body.cf2 { --paper: #1B232B; --band: 27,35,43; --ink: #ECE6DB; --ink-2: #AEB5BA; --line: rgba(236,230,219,.26);
  --teal: #8DB3A8; --terra-tx: #E8A088; --field: rgba(255,255,255,.04); --field-f: rgba(255,255,255,.05); --mark-ink: #E9E2D6; --mark-shadow: .32; --ph: rgba(236,230,219,.42); }
html[data-tone=dark] body.cf2 .hero { background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.05), transparent 60%), var(--paper); }
html[data-tone=dark] body.cf2 .hero::before { opacity: .25; mix-blend-mode: screen; }
html[data-tone=dark] .cf-photo { filter: drop-shadow(0 26px 34px rgba(0,0,0,.5)) drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
html[data-tone=dark] .cf-check input:checked + .cf-box::after { border-color: var(--paper); }
html[data-tone=dark] body.cf2 .topbar .audio-toggle, html[data-tone=dark] body.cf2 .topbar button { color: #1B232B; }

/* 木曜以外：トップのその日の絵を全面に敷き、フォームの側に幕をかける（箱では囲わない） */
.cf-bg { display: none; }
html:not([data-day=thu]) .cf-bg { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cf-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
html[data-day=mon] .cf-bg img { object-position: 64% 50%; }
html[data-day=tue] .cf-bg img { object-position: 70% 30%; filter: blur(16px); transform: scale(1.08); }
html[data-day=wed] .cf-bg img { object-position: 70% 50%; }
html[data-day=sat] .cf-bg img { object-position: 78% 50%; }
html:not([data-day=thu]) body.cf2 { --wash: 244,242,238; --band: 244,242,238; }
html:not([data-day=thu])[data-tone=dark] body.cf2 { --wash: 13,17,22; --band: 13,17,22; }
html:not([data-day=thu]) .cf-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 54% at 20% 25%, rgba(var(--wash),.76), rgba(var(--wash),.32) 58%, rgba(var(--wash),0) 82%),
    radial-gradient(22% 42% at 6% 62%, rgba(var(--wash),.78), rgba(var(--wash),0) 100%),
    linear-gradient(90deg, rgba(var(--wash),0) 46%, rgba(var(--wash),.42) 60%, rgba(var(--wash),.56) 100%); }
/* フォームの後ろだけをぼかして、絵を見せたまま項目を読めるようにする */
html:not([data-day=thu]) .cf-bg::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 60%; z-index: 1;
  -webkit-backdrop-filter: blur(14px) saturate(115%); backdrop-filter: blur(14px) saturate(115%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 18%, #000 40%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 18%, #000 40%); }
html:not([data-day=thu]) body.cf2 .hero { background: transparent; }
html:not([data-day=thu]) body.cf2 .hero::before { display: none; }
html:not([data-day=thu]) .cf-photo { display: none; }
html:not([data-day=thu]) .cf-visual { width: min(100%, 360px); aspect-ratio: 36.16 / 32; margin-top: 56px; }
html:not([data-day=thu]) .cf-mark { position: absolute; inset: 10%; width: auto; top: 10%; right: 10%; }
@media (max-width: 860px) {
  html:not([data-day=thu]) .cf-bg::after { background: linear-gradient(180deg, rgba(var(--wash),.42) 0%, rgba(var(--wash),.6) 45%, rgba(var(--wash),.72) 100%); }
  html:not([data-day=thu]) .cf-bg::before { width: 100%; top: 40%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%); mask-image: linear-gradient(180deg, transparent 0, #000 20%); }
  html:not([data-day=thu]) .cf-visual { width: 62%; margin-top: 28px; }
}
html:not([data-day=thu]) .cf-title, html:not([data-day=thu]) .cf-lead { text-shadow: 0 0 14px rgba(var(--wash),.95), 0 0 2px rgba(var(--wash),.9); }
html:not([data-day=thu]) .cf-f > label, html:not([data-day=thu]) .cf-check, html:not([data-day=thu]) .cf-err { text-shadow: 0 0 10px rgba(var(--wash),.9); }
@media (max-width: 860px) { html:not([data-day=thu]) .cf-visual { margin-bottom: 36px; } }
/* 完了ページ：文は中央にあるので、幕も中央にかける（フォーム用の右半分のぼかしは使わない） */
html:not([data-day=thu]) body.cf-thanks .cf-bg::before { display: none; }
html:not([data-day=thu]) body.cf-thanks .cf-bg::after { background: radial-gradient(36% 58% at 50% 42%, rgba(var(--wash),.82), rgba(var(--wash),.5) 55%, rgba(var(--wash),.12) 100%); }
@media (max-width: 860px) { html:not([data-day=thu]) body.cf-thanks .cf-bg::after { background: radial-gradient(90% 60% at 50% 42%, rgba(var(--wash),.82), rgba(var(--wash),.4) 100%); } }
/* 写真の上でも、左のメニュー・著作権表記・四隅の線を地の明るさに合わせる */
html:not([data-day=thu]) body.cf2 .nav-jump a { text-shadow: 0 0 10px rgba(var(--wash),.95), 0 0 2px rgba(var(--wash),.9) !important; }
body.cf2 .bottom-center, body.cf2 .copy-center { color: var(--ink-2) !important; text-shadow: 0 0 10px rgba(var(--wash, 236,232,224),.9); }
body.cf2 .corner, body.cf2 .corner::before, body.cf2 .corner::after { border-color: var(--ink-2) !important; }
@media (max-width: 860px) { html:not([data-day=thu]) .cf-visual { width: 50%; margin-left: 12%; } }
/* 写真の地では、著作権表記と四隅の線を見出しと同じ濃さにする */
html:not([data-day=thu]) body.cf2 .bottom-center, html:not([data-day=thu]) body.cf2 .copy-center { color: var(--ink) !important; font-weight: 500; }
html:not([data-day=thu]) body.cf2 .corner { border-color: var(--ink) !important; opacity: .7; }
/* スマホ：右上のメニューのボタン（下端 65px）まで帯を伸ばす */
@media (max-width: 860px) { .cf-topband { height: 76px !important; background: linear-gradient(180deg, rgb(var(--band)) 0, rgb(var(--band)) 68px, rgba(var(--band),0) 100%) !important; } }
/* 金曜：水面に映る明るい雲の上でも、フォームの例文が沈まないよう、フォーム側の幕を一段濃くする */
html[data-day=fri] .cf-bg::after { background: radial-gradient(58% 54% at 20% 25%, rgba(var(--wash),.76), rgba(var(--wash),.32) 58%, rgba(var(--wash),0) 82%),
  radial-gradient(22% 42% at 6% 62%, rgba(var(--wash),.78), rgba(var(--wash),0) 100%),
  linear-gradient(90deg, rgba(var(--wash),0) 46%, rgba(var(--wash),.56) 60%, rgba(var(--wash),.7) 100%); }
/* 火曜：人物が画面の中央に来るので、見出しとリードの文の後ろの幕を濃くする */
html[data-day=tue] .cf-bg::after { background: radial-gradient(46% 44% at 22% 22%, rgba(var(--wash),.86), rgba(var(--wash),.5) 60%, rgba(var(--wash),0) 88%),
  radial-gradient(22% 42% at 6% 62%, rgba(var(--wash),.78), rgba(var(--wash),0) 100%),
  linear-gradient(90deg, rgba(var(--wash),0) 46%, rgba(var(--wash),.42) 60%, rgba(var(--wash),.56) 100%); }

.cf-topband { display: none !important; }

/* PC：送信ボタンまで1画面に収める（2026-11-16 吉田さん）。高さ 800 前後の画面で送信ボタンの下端が画面に入るように、
   上の余白・欄の上下・お問い合わせ内容の高さを詰める。スマホ（860 以下）は今のまま */
@media (min-width: 861px) {
  .cf-page { padding-top: clamp(84px, 11vh, 116px); padding-bottom: 64px; }
  .cf-f { padding: 8px 0 0; }
  .cf-f input:not([type=checkbox]), .cf-f select { margin-top: 4px; padding: 8px 2px; }
  .cf-f textarea { margin-top: 6px; min-height: 0; height: 148px; padding: 10px 12px; }
  .cf-err { min-height: 16px; margin: 2px 0 0; }
  .cf-agree { padding-top: 4px; }
  .cf-foot { margin-top: 4px; padding-top: 14px; }
  .cf-send { padding: 14px 26px 14px 30px; }
}
