/* サンタプロジェクト：便箋をイメージした温かいデザイン（外部フォント・外部通信なし） */
:root {
  --bg: #fbf6ee;
  --paper: #fffdf8;
  --tint: #f5ece0;
  --ink: #3b2f2a;
  --ink-soft: #6b5c53;
  --line: #d9c8b4;
  --red: #c0392b;
  --red-dark: #9c2b20;
  --red-soft: #fbe6e2;
  --green: #2f6b4f;
  --green-soft: #e3f0e8;
  --gold: #d9a441;
  --blue: #3a6a9a;
  --blue-soft: #e4edf6;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(80, 50, 30, .08);
  --font: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-hand: "Klee One", "Hiragino Maru Gothic ProN", "UD Digi Kyokasho N-R", "BIZ UDPGothic", "Yu Gothic UI", sans-serif;
  --font-en: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 680px; }
br.pc { display: none; }
@media (min-width: 760px) { br.pc { display: inline; } }

/* プレビュー表示 */
.draft-bar {
  background: #4a3b33; color: #fff; text-align: center;
  font-size: .82rem; padding: 6px 16px;
}

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 246, 238, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.25; }
.brand small { display: block; font-size: .7rem; font-weight: 400; color: var(--ink-soft); }
.brand-mark { width: 34px; height: 34px; color: var(--red); flex: none; }
.nav { display: none; gap: 4px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9rem; padding: 6px 10px; border-radius: 999px; }
.nav a:hover { background: var(--tint); }
.nav .nav-cta { background: var(--red); color: #fff; padding: 6px 16px; }
.nav .nav-cta:hover { background: var(--red-dark); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: var(--paper); color: var(--red-dark); border-color: var(--red); }
.btn-ghost:hover { background: var(--red-soft); }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* ヒーロー */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(217,164,65,.18), transparent 40%),
    linear-gradient(180deg, #f3e3d0 0%, var(--bg) 100%);
  padding: 0 0 56px;
}
/* 冒頭：サンタさんの絵の上に手紙カードを重ねる */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  display: block; width: min(100%, 860px); height: auto;
  /* 服のすそを下に向かってふんわり消す */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hero .snow { display: none; }
.snow {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(circle, #fff 1.5px, transparent 2px),
    radial-gradient(circle, #fff 1px, transparent 1.5px);
  background-size: 60px 60px, 34px 34px;
  background-position: 0 0, 17px 23px;
}
.hero-inner {
  position: relative; z-index: 2;
  margin-top: calc(-1 * min(12.4vw, 106px));
}
.hero-letter {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  max-width: 680px; margin: 0 auto; text-align: center;
  border-top: 8px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--red) 0 12px, var(--paper) 12px 20px, var(--blue) 20px 32px, var(--paper) 32px 40px) 8;
}
@media (min-width: 600px) { .hero-letter { padding: 40px 40px 36px; } }
.hero-from { font-family: var(--font-en); font-style: italic; color: var(--green); margin-bottom: .4em; font-size: .95rem; }
.hero h1 { font-size: clamp(2rem, 7vw, 2.9rem); color: var(--red-dark); letter-spacing: .02em; }
.hero-lead { font-size: 1.02rem; }
.hero-lead strong { background: linear-gradient(transparent 62%, rgba(217,164,65,.4) 62%); }
.hero-facts { list-style: none; padding: 0; margin: 0 auto 1.4em; display: grid; gap: 6px; width: fit-content; max-width: 100%; text-align: left; }
.hero-facts li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; }
.hero-facts span {
  flex: none; font-size: .75rem; font-weight: 700; color: var(--green);
  background: var(--green-soft); border-radius: 6px; padding: 1px 8px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-actions .btn { flex: 1 1 200px; max-width: 280px; }
@media (max-width: 599px) { .hero-actions .btn { max-width: none; } }

/* セクション */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.eyebrow { font-family: var(--font-en); font-style: italic; color: var(--green); margin-bottom: .2em; letter-spacing: .05em; }
.section-lead { color: var(--ink-soft); max-width: 46em; }

.paper {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 20px;
}
@media (min-width: 600px) { .paper { padding: 40px 44px; } }
.paper-lined {
  background-image: repeating-linear-gradient(transparent 0 calc(1.85em - 1px), rgba(58,106,154,.12) calc(1.85em - 1px) 1.85em);
  background-color: var(--paper);
}
.quote {
  margin: 1.2em 0; padding: 14px 18px;
  font-family: var(--font-hand); font-size: 1.2rem; color: var(--red-dark);
  background: var(--red-soft); border-radius: 10px; border-left: 5px solid var(--red);
}
.points { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li { background: var(--bg); border-radius: 12px; padding: 16px; display: grid; gap: 4px; line-height: 1.7; }
.points svg { width: 32px; height: 32px; color: var(--red); }
.points span { font-size: .92rem; color: var(--ink-soft); }

/* 流れ */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  display: flex; gap: 14px; background: var(--paper); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.step h3 { margin-bottom: .3em; }
.step p { margin-bottom: .5em; font-size: .95rem; }
.step-no {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; font-size: 1.1rem;
  display: grid; place-items: center;
}
.step-who { display: inline-block; font-size: .75rem; font-weight: 700; padding: 0 10px; border-radius: 999px; margin-bottom: .4em !important; }
.who-facility { background: var(--blue-soft); color: var(--blue); }
.who-org { background: var(--green-soft); color: var(--green); }
.who-child { background: #fdf1d9; color: #8a6418; }
.tip { display: flex; gap: 8px; background: #fdf6e6; border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; font-size: .88rem !important; }
.tip svg { flex: none; width: 18px; height: 22px; color: var(--green); margin-top: 3px; }

.schedule { margin-top: 28px; background: var(--paper); border-radius: var(--radius); padding: 20px; border: 2px dashed var(--line); }
.schedule dl { margin: 0; display: grid; gap: 8px; }
.schedule dl div { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.schedule dt { font-weight: 700; min-width: 9em; }
.schedule dd { margin: 0; }
.tbd { display: inline-block; background: #fff3c4; color: #7a5a00; font-size: .8rem; font-weight: 700; padding: 0 8px; border-radius: 6px; }

/* 役割 */
.roles { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .roles { grid-template-columns: 1fr 1fr; } }
.role-card { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 6px solid; }
.role-facility { border-color: var(--blue); }
.role-org { border-color: var(--green); }
.role-card h3 { display: flex; align-items: center; gap: 8px; }
.role-card h3 svg { width: 28px; height: 28px; flex: none; }
.role-facility h3 svg { color: var(--blue); }
.role-org h3 svg { color: var(--green); }
.role-card ul { margin: 0; padding-left: 1.2em; }
.role-card li { margin-bottom: .3em; }

/* AIと人 */
.ai-flow { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .ai-flow { grid-template-columns: repeat(4, 1fr); } }
.ai-flow li { position: relative; background: var(--paper); border-radius: var(--radius); padding: 20px 18px 16px; box-shadow: var(--shadow); }
.ai-flow p { font-size: .93rem; margin: 0; }
.ai-tag { display: inline-block; font-weight: 700; font-size: .8rem; padding: 2px 12px; border-radius: 999px; margin-bottom: 8px; }
.tag-human { background: var(--red-soft); color: var(--red-dark); }
.tag-ai { background: var(--blue-soft); color: var(--blue); }
.note-box { margin-top: 24px; background: var(--paper); border-radius: var(--radius); padding: 20px; border-left: 5px solid var(--gold); }
.note-box p { margin: 0; font-size: .93rem; }

/* 見本 */
.sample { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 900px) {
  .sample { grid-template-columns: 1fr auto 2fr; align-items: start; gap: 16px; }
  .caption { grid-column: 1 / -1; }
}
.sample-arrow { margin: 0; display: flex; justify-content: center; align-items: center; }
.sample-arrow span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--green);
  background: var(--green-soft); border-radius: 999px; padding: 4px 14px;
}
.sample-arrow span::after { content: "↓"; font-size: 1rem; }
@media (min-width: 900px) {
  .sample-arrow { height: 100%; padding-top: 80px; align-items: flex-start; }
  .sample-arrow span { writing-mode: vertical-rl; padding: 12px 6px; letter-spacing: .1em; }
  .sample-arrow span::after { content: "→"; writing-mode: horizontal-tb; }
}
.sample-reply { margin: 0; }
.zoomable { position: relative; display: block; cursor: zoom-in; border-radius: 10px; }
.zoomable:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(59, 47, 42, .85); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 6px 12px 6px 10px; border-radius: 999px; pointer-events: none;
}
.zoom-hint svg { width: 18px; height: 18px; }
.sample-photo { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(80,50,30,.13); }
/* 結びの「ふぉーふぉっふぉ」 */
.sign-ja { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.sign-ja > span:last-child { text-align: right; }
.hohoho {
  display: inline-block; transform: rotate(-14deg);
  font-size: .78rem; font-weight: 700; color: var(--green); white-space: nowrap;
}
/* 拡大表示 */
.zoom-dialog {
  width: min(760px, calc(100% - 20px)); max-width: none;
  max-height: calc(100% - 20px); padding: 0; border: 0; border-radius: 14px;
  background: var(--bg); color: var(--ink); overflow: hidden;
}
.zoom-dialog[open] { display: flex; flex-direction: column; }
.zoom-dialog::backdrop { background: rgba(40, 30, 25, .7); }
.zoom-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 16px; background: var(--paper); border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: .9rem;
}
.zoom-close { font: inherit; font-weight: 700; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--red); background: var(--paper); color: var(--red-dark); cursor: pointer; }
.zoom-body { overflow: auto; padding: 24px 14px 18px; -webkit-overflow-scrolling: touch; }
.zoom-body .reply-letter { font-size: 1.12rem; box-shadow: none; }
.zoom-body .reply-cols [lang="en"] { font-size: 1.12rem; }
.zoom-body .sample-photo { box-shadow: none; }
@media (max-width: 599px) {
  .reply-letter { padding: 24px 16px 18px; border-width: 8px; }
  .sample-child { transform: rotate(-.8deg); }
}
.sample-child { background: #fff; border-radius: 6px; padding: 18px; box-shadow: var(--shadow); transform: rotate(-1.2deg); border: 1px solid var(--line); }
.sample-label { font-size: .78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .4em; }
.handwrite { font-family: var(--font-hand); font-size: 1.05rem; line-height: 2; margin: 0; }
.reply-letter {
  position: relative; background: var(--paper); border-radius: 8px; padding: 28px 22px 22px;
  box-shadow: 0 10px 30px rgba(80,50,30,.13);
  border: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--red) 0 10px, #fff 10px 16px, var(--green) 16px 26px, #fff 26px 32px) 10;
}
.reply-head { font-family: var(--font-en); font-style: italic; color: var(--green); text-align: center; border-bottom: 1px solid var(--line); padding-bottom: .6em; }
.reply-cols { display: grid; gap: 20px; }
.reply-cols > div + div { border-top: 1px dashed var(--line); padding-top: 18px; }
.reply-cols [lang="en"] { font-family: var(--font-en); font-size: 1rem; line-height: 1.7; }
.reply-cols [lang="ja"] { font-family: var(--font-hand); line-height: 2; }
.sign { text-align: right; color: var(--red-dark); font-weight: 700; }
.stamp {
  position: absolute; top: -14px; right: 14px; transform: rotate(8deg);
  border: 3px solid var(--red); color: var(--red); background: var(--paper);
  font-weight: 700; padding: 2px 12px; border-radius: 6px; letter-spacing: .2em;
}
.caption { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* フォーム */
.preview-notice { background: #fff3c4; border-radius: 10px; padding: 12px 16px; font-size: .9rem; margin-bottom: 16px; }
.link-btn { background: none; border: 0; padding: 0; margin-left: 4px; color: var(--blue); text-decoration: underline; font: inherit; cursor: pointer; }
.form .field { margin-bottom: 20px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { font-size: .72rem; background: var(--red); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: none; }
.form [aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.hint { font-size: .82rem; color: var(--ink-soft); margin: 4px 0 0; }
.err { color: var(--red); font-size: .85rem; font-weight: 700; margin: 4px 0 0; min-height: 0; }
.err:empty { display: none; }
.confirm-list { margin: 0 0 20px; }
.confirm-list div { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.confirm-list dt { font-size: .82rem; color: var(--ink-soft); }
.confirm-list dd { margin: 0; font-weight: 700; white-space: pre-wrap; word-break: break-all; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 180px; }
.done { text-align: center; }
.done:focus { outline: none; }
.done-icon { width: 64px; height: 64px; color: var(--red); }
.contact { margin-top: 28px; text-align: center; font-size: .95rem; }
.contact h3 { font-size: 1rem; }
.contact a { word-break: break-all; }

/* フッター */
.site-footer { background: #4a3b33; color: #f3e9dd; text-align: center; padding: 28px 0 96px; font-size: .85rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: .3em 0; }
@media (min-width: 900px) { .site-footer { padding-bottom: 28px; } }

/* スマホ用 下部の申込ボタン */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30;
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
  border-radius: 999px; box-shadow: 0 8px 20px rgba(156,43,32,.35);
  transition: opacity .2s, transform .2s;
}
.sticky-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* スマホ用の目次（冒頭カードの中） */
.quick-toc { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.quick-toc-label { font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px; }
.quick-toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-toc a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 64px; padding: 8px 4px; border-radius: 12px;
  background: var(--bg); border: 1.5px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 700; line-height: 1.3;
}
.quick-toc a:active { background: var(--red-soft); border-color: var(--red); }
.quick-toc svg { width: 24px; height: 24px; color: var(--red); }
@media (min-width: 900px) { .quick-toc { display: none; } }
/* スマホでは冒頭の2つのボタンの代わりに目次を出す（最初の画面に収める） */
@media (max-width: 899px) {
  .hero-actions { display: none; }
  .quick-toc { margin-top: 4px; padding-top: 0; border-top: 0; }
  .quick-toc a.toc-primary { background: var(--red); border-color: var(--red); color: #fff; }
  .quick-toc a.toc-primary svg { color: #fff; }
}

/* 案内役：武田ノラ右衛門 */
.guide { display: flex; align-items: flex-end; gap: 6px; margin-top: 12px; }
.guide img { flex: none; width: 92px; height: auto; filter: drop-shadow(0 4px 6px rgba(80,50,30,.18)); }
.guide-bubble {
  position: relative; flex: 1; margin-bottom: 28px;
  background: #fff; border: 2px solid var(--red); border-radius: 16px;
  padding: 10px 12px; font-family: var(--font-hand); line-height: 1.6;
}
.guide-bubble::before {
  content: ""; position: absolute; left: -11px; bottom: 16px;
  border: 10px solid transparent; border-right-color: var(--red); border-left: 0;
}
.guide-bubble::after {
  content: ""; position: absolute; left: -7px; bottom: 18px;
  border: 8px solid transparent; border-right-color: #fff; border-left: 0;
}
.guide-bubble p { margin: 0 !important; font-size: .9rem !important; word-break: keep-all; overflow-wrap: anywhere; }
/* 案内はカードの幅いっぱい（番号の列の下まで）使う */
.guide { margin-left: -54px; }
/* PCの2〜3列表示：カードを中身の高さに合わせ、吹き出しを上・ノラ右衛門を下に */
@media (min-width: 760px) {
  .steps { align-items: start; }
  .guide { flex-direction: column; align-items: flex-start; gap: 4px; }
  .guide-bubble { order: -1; margin: 0 0 10px; width: 100%; }
  .guide-bubble::before { left: 34px; bottom: -11px; border: 10px solid transparent; border-top-color: var(--red); border-bottom: 0; }
  .guide-bubble::after  { left: 36px; bottom: -7px;  border: 8px solid transparent;  border-top-color: #fff;     border-bottom: 0; }
  .guide img { width: 84px; margin-left: 8px; }
}
.guide-bubble b { color: var(--red-dark); font-size: 1rem; }
.guide-bubble .guide-name { margin-top: 6px !important; font-family: var(--font); font-size: .7rem !important; color: var(--ink-soft); }

/* ===== ポップな飾り ===== */

/* 降る雪 */
.snowfall { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.snowfall i {
  position: absolute; top: -20px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff; box-shadow: 0 0 4px rgba(255,255,255,.9);
  animation: fall var(--d) linear var(--w) infinite;
}
@keyframes fall {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(18px, 450px); }
  100% { transform: translate(-6px, 900px); }
}

.snowfall { z-index: 1; }
.snowfall i { box-shadow: 0 0 3px rgba(150, 110, 70, .45); }
.fly { animation: fly 4s ease-in-out infinite; transform-box: fill-box; }
@keyframes fly {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(6px, -8px) rotate(-1.5deg); }
}

/* セクションの上のガーランド（旗飾り） */
.section { position: relative; }
.section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='30'%3E%3Cpath d='M0 2 Q40 14 80 2 Q120 14 160 2' stroke='%237a4a24' stroke-width='1.5' fill='none'/%3E%3Cpath d='M12 5 L28 9 L18 26Z' fill='%23c0392b'/%3E%3Cpath d='M48 8 L64 8 L56 26Z' fill='%23d9a441'/%3E%3Cpath d='M92 9 L108 5 L102 26Z' fill='%232f6b4f'/%3E%3Cpath d='M128 8 L144 6 L137 25Z' fill='%233a6a9a'/%3E%3C/svg%3E") repeat-x top left;
  pointer-events: none;
}
.section { padding-top: 72px; }
@media (max-width: 599px) { .section { padding: 60px 0 48px; } }

/* 見出し横のイラスト */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sec-head h2 { margin-bottom: .3em; }
.sec-deco { flex: none; width: 76px; height: 64px; overflow: visible; margin-bottom: 6px; }
@media (min-width: 760px) { .sec-deco { width: 120px; height: 96px; } }

/* 「この企画について」：カードからのぞくサンタさん */
.about-paper { position: relative; margin-top: 40px; }
.peek-santa { position: absolute; top: -58px; right: 18px; width: 92px; height: 92px; transform: rotate(10deg); }
.peek-holly { position: absolute; top: -12px; left: -10px; width: 64px; height: 44px; transform: rotate(-18deg); }
@media (min-width: 760px) { .peek-santa { width: 120px; height: 120px; top: -74px; right: 36px; } }

/* お返事見本の柊 */
.reply-letter { overflow: visible; }
.letter-holly { position: absolute; top: -26px; left: -22px; width: 70px; height: 48px; transform: rotate(-20deg); }

/* 広い画面の左右の余白に浮かぶ飾り */
.float-deco { display: none; position: absolute; width: 70px; height: 90px; pointer-events: none; }
.fd-left  { left: max(10px, calc(50% - 640px)); top: 120px; }
.fd-right { right: max(10px, calc(50% - 640px)); top: 46%; }
@media (min-width: 1240px) { .float-deco { display: block; } }

.bob  { animation: bob 3.2s ease-in-out infinite; }
.bob2 { animation: bob 3.8s ease-in-out -1.2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* フッター上の雪景色 */
.footer-scene { background: linear-gradient(var(--tint) calc(100% - 8px), #4a3b33 0); line-height: 0; }
.footer-scene svg { margin-bottom: -1px; }
.site-footer { margin-top: -1px; }
.footer-scene svg { display: block; width: 100%; height: 110px; }
@media (min-width: 760px) { .footer-scene svg { height: 140px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .snowfall { display: none; }
}

/* お返事の言葉（英語＋訳） */
.lang-note { display: inline-block; margin-top: 6px; font-size: .86rem; color: var(--green, #2f6b4f); }
.lang-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lang-chips li { font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink, #4a3a2e); }
.lang-chips b { color: var(--red, #c0392b); }
/* 縦長の見本写真は大きくなりすぎないように */
.sample-reply.is-photo .sample-photo { max-width: 460px; margin: 0 auto; }
.zoom-body .sample-photo { max-width: 100%; }
/* 写真の見本：拡大ボタンを写真の下に出して、結びの文字に重ねない */
.sample-reply.is-photo .zoomable { display: flex; flex-direction: column; align-items: center; }
.sample-reply.is-photo .zoom-hint { position: static; margin-top: 10px; }
@media (min-width: 900px) {
  .sample:has(.sample-reply.is-photo) { grid-template-columns: 1fr auto 1.3fr; }
}
.sample-child .handwrite { word-break: keep-all; overflow-wrap: anywhere; }

/* ブラジルポルトガル語の訳：あり／なし の切り替え */
.pt-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.pt-field legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.switch { display: inline-grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; margin-top: 6px; }
.switch label { position: relative; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { display: block; min-width: 88px; text-align: center; padding: 8px 18px; border-radius: 999px; font-weight: 700; color: var(--ink-soft); transition: background .15s, color .15s; }
.switch input:checked + span { background: var(--green); color: #fff; }
.switch label:last-child input:checked + span { background: var(--red); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.pt-field.is-invalid .switch { border-color: var(--red); }
.pt-box { margin-top: 12px; background: var(--blue-soft); border-radius: 10px; padding: 12px 14px; font-size: .9rem; line-height: 1.8; }
.pt-box p { margin: 0; }
.pt-box .pt-small { margin-top: 6px; font-size: .82rem; color: var(--ink-soft); }
.pt-confirm { margin: 0 0 16px; }
.pt-note { font-size: .88rem; color: var(--ink-soft); background: var(--blue-soft); border-radius: 8px; padding: 8px 10px; margin-top: 8px; }

/* まるポ：①のように、丸の中に「ポ」 */
.maru { display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; margin: 0 .2em; border: .09em solid currentColor; border-radius: 50%; font-size: .95em; letter-spacing: 0; line-height: 1; font-weight: 700; vertical-align: .05em; }

/* 任意の項目・日付 */
.opt { font-size: .72rem; background: var(--ink-soft); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }
.date-input { max-width: 240px; }
#f-note { min-height: 0; }

/* お子さまの参加人数：選べるボタン */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: block; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; color: var(--ink-soft); transition: background .15s, color .15s, border-color .15s; }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.pt-field.is-invalid .chips span { border-color: var(--red); }
/* スケジュール：PCは横並び、スマホは見出しの下に日付 */
.schedule dl div { display: grid; grid-template-columns: 15em 1fr; gap: 4px 16px; padding-bottom: 8px; border-bottom: 1px dotted var(--line); }
.schedule dl div:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 599px) { .schedule dl div { grid-template-columns: 1fr; gap: 2px; } .schedule dt { min-width: 0; font-size: .88rem; color: var(--green); } }
/* スマホ：最初の画面に目次まで収めるため、冒頭カードの文字と余白を少し小さく */
@media (max-width: 599px) {
  .hero-letter { padding: 22px 18px 18px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-lead { font-size: .94rem; }
  .hero-facts { gap: 3px; margin-bottom: 1em; }
  .hero-facts li { font-size: .86rem; gap: 8px; }
  .hero-facts span { font-size: .7rem; padding: 0 6px; }
  .lang-note { font-size: .8rem; margin-top: 2px; }
  .quick-toc-label { margin-bottom: 6px; }
  .quick-toc a { min-height: 56px; padding: 6px 4px; }
}
.nowrap-jp { word-break: keep-all; }

/* 商標マーク（®）を小さく */
.tm { font-size: .55em; vertical-align: super; line-height: 0; margin-left: .05em; font-family: Arial, sans-serif; }

/* スケジュールの注意書き */
.sched-note { display: block; margin-top: 4px; font-size: .82rem; color: var(--ink-soft, #6b5a4e); line-height: 1.6; }

/* スケジュール枠の上の線に載せる見出し（―― 2026年度クリスマス ――） */
.schedule { position: relative; margin-top: 40px; }
.schedule-tag {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%);
  margin: 0; padding: 0 .8em; background: var(--paper); border-radius: 999px;
  color: var(--red, #c0392b); font-weight: 700; font-size: .95rem; letter-spacing: .08em; white-space: nowrap;
}

/* 参加の流れ 2.5 の丸 */
.step-no-half { font-size: .85rem; letter-spacing: -.02em; }

/* 子どもの手紙の見本（画像） */
.sample-letter { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 10px; border-radius: 4px; box-shadow: 0 4px 14px rgba(60,40,30,.15); }

.nowrap { white-space: nowrap; font-style: normal; }
.fact-text { font-style: normal; }
.tbd-list { margin: .4em 0 0; padding-left: 1.3em; color: var(--ink-soft); font-size: .92rem; }
.tbd-list li + li { margin-top: .2em; }

/* フッターの小さな注記 */
.site-footer .footer-note { max-width: 40em; margin: 0 auto 1.2em; text-align: left; font-size: .78rem; line-height: 1.8; opacity: .85; }
.policy-list { margin: .2em 0 1em; padding-left: 1.3em; line-height: 1.8; }
.policy-list li + li { margin-top: .3em; }

.note-box .note-sub { margin-top: 1.2em; }
.note-box .policy-keep { margin-top: -.4em; color: var(--ink-soft); font-size: .88rem; }

/* ===== 受付終了（html.is-closed）：スタンプを押し、申込の入口を閉じる ===== */
.hero-letter { position: relative; }
.season-stamp, .closed-box { display: none; }
.is-closed .season-stamp {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: absolute; z-index: 3; left: 50%; top: 60%;
  padding: 10px 26px 8px; line-height: 1.1; white-space: nowrap;
  color: var(--red); border: 7px double var(--red); border-radius: 14px;
  background: rgba(255, 253, 248, .78);
  box-shadow: inset 0 0 0 2px rgba(192, 57, 43, .25);
  transform: translate(-50%, -50%) rotate(-12deg); opacity: .93; pointer-events: none;
  font-family: var(--font); text-align: center;
  /* かすれたインクの感じ（ごく弱く） */
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.85) 72%, #000 86%);
          mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.85) 72%, #000 86%);
  animation: stamp-in .55s cubic-bezier(.2, 1.6, .4, 1) both;
}
.is-closed .season-stamp b { font-size: clamp(3rem, 15vw, 4.6rem); letter-spacing: .06em; font-weight: 900; }
.is-closed .season-stamp small { font-family: var(--font-en); font-size: clamp(.85rem, 3.6vw, 1.1rem); font-weight: 700; letter-spacing: .14em; }
@keyframes stamp-in { from { transform: translate(-50%, -50%) rotate(-12deg) scale(1.9); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: .93; } }
@media (prefers-reduced-motion: reduce) { .is-closed .season-stamp { animation: none; } }
.is-closed .closed-box {
  display: block; text-align: center; background: var(--paper); border: 3px double var(--red);
  border-radius: var(--radius); padding: 22px 18px; margin: 8px 0 24px;
}
.is-closed .closed-box .closed-title { color: var(--red-dark); font-weight: 700; font-size: 1.15rem; margin-bottom: .4em; }
.is-closed .closed-box p:last-child { margin: 0; }
.is-closed #applyForm, .is-closed .preview-notice, .is-closed .nav-cta,
.is-closed .sticky-cta, .is-closed .hero-actions .btn-primary { display: none !important; }

/* 利用目的への同意と、確認ボタンの「まだ押せない」状態 */
.consent { background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 4px 0 14px; }
.consent p { margin: 0 0 .6em; font-size: .92rem; }
.consent.is-invalid { border-color: var(--red); }
.consent-check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.consent-check input { width: 24px; height: 24px; margin: 0; accent-color: var(--red); flex: none; cursor: pointer; }
.consent .err { margin-top: 6px; }
.submit-hint { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: 0 0 8px; }
.btn-primary.is-waiting { background: #e9d6cf; color: #fffaf6; cursor: not-allowed; box-shadow: none; }
.btn-primary.is-waiting:hover { background: #e9d6cf; }

/* そりのサンタさんのセリフ（下の絵の、そりの真上あたりに吹き出しを出す） */
.santa-says-row { background: var(--tint); padding: 8px 16px 0; display: flex; justify-content: flex-end; }
.santa-says {
  position: relative; margin: 0 0 4px; max-width: 270px;
  background: #fff; border: 2px solid var(--red); border-radius: 16px;
  padding: 10px 14px; font-family: var(--font-hand); font-size: .9rem; line-height: 1.65; color: var(--ink);
  box-shadow: var(--shadow);
}
.santa-says-who { display: block; font-size: .72rem; font-weight: 700; color: var(--red-dark); font-family: var(--font); }
/* 吹き出しのしっぽ（下向き、そりのほうへ） */
.santa-says::after, .santa-says::before {
  content: ""; position: absolute; right: 64px; border: 10px solid transparent; border-bottom: 0;
}
.santa-says::before { bottom: -12px; border-top-color: var(--red); }
.santa-says::after { bottom: -9px; border-top-color: #fff; }
@media (min-width: 760px) {
  .santa-says-row { justify-content: center; }
  .santa-says { max-width: 340px; transform: translateX(150px); }
  .santa-says::before, .santa-says::after { right: auto; left: 90px; }
}

/* 送信できなかったとき・受付結果がわからないとき */
.send-error { background: var(--red-soft); border: 2px solid var(--red); border-radius: 12px; padding: 14px 16px; margin: 16px 0 4px; }
.send-error:focus { outline: none; }
.send-error-title { color: var(--red-dark); font-weight: 700; margin: 0 0 .4em; }
.send-error p:last-child { margin: 0; font-size: .92rem; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ===== 受付開始前（html.is-before-open）：フォームの代わりに開始日時を知らせる ===== */
.before-open-box { display: none; }
.is-before-open .before-open-box {
  display: block; text-align: center; background: var(--paper); border: 3px double var(--green, #2e6b4f);
  border-radius: var(--radius); padding: 22px 18px; margin: 8px 0 24px;
}
.is-before-open .before-open-box .closed-title { color: var(--red-dark); font-weight: 700; font-size: 1.15rem; margin-bottom: .4em; }
.is-before-open .before-open-box p:last-child { margin: 0; }
.is-before-open #applyForm, .is-before-open .preview-notice { display: none !important; }
