/* =========================================================
   イスラエルツアー 公開サイト
   iOS 風のすりガラス UI（スカイブルー）＋ エルサレムストーンの金色アクセント
   ========================================================= */
:root {
  color-scheme: light;
  --bg: #eef6fc;
  --text: #0f172a;
  --muted: #475569;
  --light: #94a3b8;
  --primary: #0284c7;
  --primary-deep: #0369a1;
  --primary-ink: #0c4a6e;
  --sky: #0ea5e9;
  --sky-soft: rgba(14, 165, 233, 0.12);
  --gold: #b08d4f;
  --gold-soft: #f6efe2;
  --danger: #dc2626;
  --ok: #059669;
  --grad: linear-gradient(135deg, #0284c7 0%, #0ea5e9 55%, #38bdf8 100%);
  --grad-hover: linear-gradient(135deg, #0369a1 0%, #0284c7 55%, #0ea5e9 100%);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.85);
  --line: rgba(186, 214, 236, 0.75);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-card: 0 2px 10px rgba(2, 132, 199, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-lg: 0 24px 60px rgba(2, 132, 199, 0.14), 0 2px 8px rgba(0, 0, 0, 0.03);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --dock-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 45%, #f1f5f9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- 背景のオーラ ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.orb-1 { width: 340px; height: 340px; background: radial-gradient(circle, #38bdf8, #0284c7 60%, transparent 80%); top: -60px; left: 50%; transform: translateX(-70%); animation: float1 18s ease-in-out infinite alternate; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, #7dd3fc, #0ea5e9 50%, transparent 80%); top: 300px; right: -120px; animation: float2 22s ease-in-out infinite alternate; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, #f5e6c8, #e0c38c 55%, transparent 80%); bottom: 40px; left: -80px; opacity: 0.35; animation: float3 20s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translateX(-55%) translateY(40px) scale(1.08); } }
@keyframes float2 { to { transform: translate(-30px, -50px) scale(1.1); } }
@keyframes float3 { to { transform: translate(30px, 40px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } html { scroll-behavior: auto; } }

/* ---------- アプリ枠 ---------- */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  /* backdrop-filter は付けない（付けると内側の position: fixed が効かなくなるため） */
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}
.shell:has(.dock) { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 12px); }
@media (min-width: 640px) {
  body { padding: 32px 16px; }
  .shell { min-height: auto; border-radius: var(--r-xl); overflow: clip; border: 1px solid var(--glass-border); }
}

.content { padding: 22px 20px 8px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.content-narrow { padding-top: 32px; }

.preview-bar {
  background: repeating-linear-gradient(45deg, #fbbf24, #fbbf24 10px, #f59e0b 10px, #f59e0b 20px);
  color: #422006; font-weight: 800; font-size: 13px; text-align: center; padding: 6px;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(125, 211, 252, 0.55), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(224, 195, 140, 0.45), transparent 55%),
    linear-gradient(160deg, #0284c7 0%, #0369a1 55%, #0c4a6e 100%);
}
.hero.has-image { min-height: 420px; }
.hero.hero-compact { min-height: 0; }
.hero.hero-compact .hero-inner { padding-top: 22px; }
.hero-banner { background: #0c4a6e; }
.hero-banner img { width: 100%; height: auto; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.05) 0%, rgba(3, 105, 161, 0.35) 45%, rgba(12, 74, 110, 0.92) 100%);
}
.hero:not(.has-image)::after { background: linear-gradient(180deg, transparent 40%, rgba(12, 74, 110, 0.5)); }
.hero-inner { position: relative; z-index: 1; padding: 28px 22px 30px; width: 100%; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-tag {
  display: inline-flex; align-items: center;
  padding: 5px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero-sub { margin-top: 8px; font-size: 14.5px; font-weight: 500; opacity: 0.95; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.is-open { background: rgba(16, 185, 129, 0.92); color: #fff; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
.status-pill.is-open::before { background: #d1fae5; animation: pulse 1.8s ease-in-out infinite; }
.status-pill.is-closed { background: rgba(71, 85, 105, 0.85); color: #fff; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- お知らせ ---------- */
.notice {
  display: flex; gap: 12px;
  padding: 15px 20px;
  font-size: 13.5px; line-height: 1.65;
  color: var(--primary-deep);
  background: rgba(240, 249, 255, 0.9);
  border-bottom: 1px solid rgba(186, 230, 253, 0.8);
}
.notice-icon { font-size: 16px; color: var(--primary); line-height: 1.4; }
.notice-closed { background: #f8fafc; color: #334155; border-bottom-color: #e2e8f0; font-weight: 600; }
.notice-extra { margin-top: 8px; }
.notice-extra p + p { margin-top: 4px; }

/* ---------- 基本情報 ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact {
  display: flex; flex-direction: column;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.fact-wide { grid-column: 1 / -1; }
.fact-label { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.fact-value { font-size: 16.5px; font-weight: 800; line-height: 1.45; margin-top: 2px; }
.fact-note { font-size: 12px; color: var(--primary); font-weight: 700; }
.fact-note.is-hot { color: #e11d48; }

/* ---------- 聖句 ---------- */
.verse {
  position: relative;
  padding: 24px 22px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #fffaf0, var(--gold-soft));
  border: 1px solid #eadbc0;
  text-align: center;
  box-shadow: 0 8px 24px rgba(176, 141, 79, 0.12);
}
.verse::before {
  content: "“";
  position: absolute; top: -8px; left: 16px;
  font-family: Georgia, serif; font-size: 64px; line-height: 1; color: rgba(176, 141, 79, 0.35);
}
.verse blockquote { font-family: var(--serif); font-size: 16.5px; line-height: 1.95; color: #4a3b1f; font-weight: 600; }
.verse figcaption { margin-top: 10px; font-size: 12.5px; color: var(--gold); font-weight: 700; letter-spacing: 0.08em; }
.verse figcaption::before { content: "— "; }

.lead { font-size: 15.5px; line-height: 1.95; color: #1e293b; }
.lead p + p { margin-top: 0.8em; }

/* ---------- 本文セクション ---------- */
.t-sec {
  padding: 20px 20px 22px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.t-sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.t-sec-num {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
}
.md { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.md > * + * { margin-top: 0.85em; }
.md h3 { font-size: 16px; font-weight: 800; color: var(--primary-ink); margin-top: 1.4em; }
.md h4 { font-size: 15px; font-weight: 800; color: var(--primary-deep); margin-top: 1.2em; }
.md h5 { font-size: 14px; font-weight: 800; }
.md ul, .md ol { padding-left: 1.35em; }
.md li + li { margin-top: 0.3em; }
.md li::marker { color: var(--primary); }
.md strong { font-weight: 800; background: linear-gradient(transparent 62%, rgba(56, 189, 248, 0.28) 62%); }
.md blockquote {
  font-family: var(--serif);
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: #4a3b1f;
}
.md hr { border: 0; height: 1px; background: var(--line); margin: 1.4em 0; }
.md a { word-break: break-all; }

/* 行程表スタイル: h4（### 見出し）が日ごとのタイムラインになる */
.t-sec-timeline .md { position: relative; padding-left: 22px; }
.t-sec-timeline .md::before {
  content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, #38bdf8, rgba(56, 189, 248, 0.15));
  border-radius: 2px;
}
.t-sec-timeline .md h4 {
  position: relative;
  margin-top: 1.3em;
  font-size: 15px;
  color: var(--primary-ink);
}
.t-sec-timeline .md h4:first-child { margin-top: 0; }
.t-sec-timeline .md h4::before {
  content: ""; position: absolute; left: -22px; top: 0.45em;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.t-sec-timeline .md h4 + * { margin-top: 0.35em; }
.t-sec-timeline .md ul { list-style: none; padding-left: 0; }
.t-sec-timeline .md ul li { position: relative; padding-left: 14px; font-size: 14.5px; }
.t-sec-timeline .md ul li::before { content: "・"; position: absolute; left: -2px; color: var(--light); }

.t-sec-highlight { background: linear-gradient(145deg, rgba(255, 251, 235, 0.92), rgba(254, 243, 199, 0.75)); border-color: #fde68a; }
.t-sec-highlight .t-sec-title { border-bottom-color: #fcd34d; }
.t-sec-highlight .t-sec-num { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35); }
.t-sec-highlight .md li::marker { color: #d97706; }

.contact-card .t-sec-title { border-bottom-style: dashed; }

/* ---------- シェア ---------- */
.share { text-align: center; padding: 6px 0 4px; }
.share-title { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 10px; letter-spacing: 0.06em; }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong); color: var(--text);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.15s;
}
.share-btn:active { transform: scale(0.97); }
.share-line { background: #06c755; color: #fff; border-color: #06c755; }
.share-x { background: #0f172a; color: #fff; border-color: #0f172a; }
.share-fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-copy.is-done { background: #ecfdf5; color: var(--ok); }

/* ---------- 下部固定バー（Dock） ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  max-width: 600px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 -8px 24px rgba(2, 132, 199, 0.09);
}
@media (min-width: 640px) { .dock { bottom: 16px; border-radius: var(--r-lg); border: 1px solid var(--glass-border); padding-bottom: 12px; max-width: 568px; } }
.dock-info { display: flex; flex-direction: column; min-width: 0; }
.dock-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.dock-value { font-size: 14.5px; font-weight: 800; color: var(--primary-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-progress { display: flex; align-items: center; gap: 10px; }
.progress { display: inline-block; width: 90px; height: 6px; border-radius: 6px; background: rgba(14, 165, 233, 0.15); overflow: hidden; }
.progress-bar { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1); }

/* ---------- ボタン ---------- */
.btn-primary {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--grad); color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px -2px rgba(2, 132, 199, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s, background 0.18s;
}
.btn-primary:hover { background: var(--grad-hover); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.96); }
.btn-primary:disabled, .btn-primary.is-disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; color: #fff; }
.btn-primary.is-loading { opacity: 0.8; pointer-events: none; }
.btn-block { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--glass-strong); color: var(--primary-deep);
  font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer;
}
.btn-line {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px; margin-top: 12px;
  border-radius: var(--r-md);
  background: #06c755; color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.35);
}

/* ---------- ページ見出し（トップ） ---------- */
.page-head { padding: 44px 22px 16px; text-align: center; }
.brand-mark {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px; background: var(--grad); color: #fff; font-size: 26px;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.35);
}
.page-head-title { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 0.04em; }
.page-head-lead { margin-top: 8px; color: var(--muted); font-size: 14px; }

.tour-list { display: flex; flex-direction: column; gap: 16px; }
.tour-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}
.tour-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(2, 132, 199, 0.16); }
.tour-card.is-closed { opacity: 0.8; }
.tour-card-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #0284c7, #0c4a6e); }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card-media.is-full { aspect-ratio: auto; }
.tour-card-media.is-full img { height: auto; }
.tour-card-media .status-pill { position: absolute; top: 12px; left: 12px; }
.tour-card-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.9); font-family: var(--serif); font-size: 22px; letter-spacing: 0.1em; }
.tour-card-body { padding: 16px 18px 18px; }
.tour-card-title { font-size: 18px; font-weight: 800; line-height: 1.45; }
.tour-card-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.tour-card-meta { font-size: 13px; color: var(--primary-deep); font-weight: 700; margin-top: 8px; }
.tour-card-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--primary); }

.empty-card {
  text-align: center; padding: 34px 22px;
  border-radius: var(--r-lg); background: var(--glass-strong); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card); color: var(--muted);
}
.empty-card > * + * { margin-top: 10px; }
.empty-title { font-size: 17px; font-weight: 800; color: var(--text); }

/* ---------- 申込フォーム ---------- */
.apply-head {
  padding: 16px 20px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(125, 211, 252, 0.45), transparent 60%),
    linear-gradient(150deg, #0284c7, #0369a1 60%, #0c4a6e);
}
.back-link { display: inline-block; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.9); text-decoration: none; margin-bottom: 12px; }
.apply-head-row { display: flex; gap: 14px; align-items: center; }
.apply-thumb { width: 64px; height: 64px; flex: none; border-radius: 14px; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.apply-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.85; }
.apply-title { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.4; }
.apply-meta { font-size: 12.5px; opacity: 0.9; }

.form { padding: 22px 20px 8px; display: flex; flex-direction: column; gap: 26px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  padding: 13px 16px; border-radius: var(--r-md);
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  font-size: 14px; font-weight: 700;
}
.form-sec { display: flex; flex-direction: column; gap: 14px; }
.form-sec-title { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.step {
  width: 26px; height: 26px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.35);
}
.field { border: 0; min-width: 0; }
.label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.req, .opt { font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 6px; letter-spacing: 0.04em; }
.req { background: #fee2e2; color: #dc2626; }
.opt { background: #f1f5f9; color: #64748b; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.78);
  font-size: 16px; /* iOS のズーム防止のため 16px 以上 */
  font-weight: 600;
  outline: none;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(186, 214, 236, 0.55);
  transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--light); font-weight: 500; }
.input:focus { background: #fff; box-shadow: 0 6px 20px rgba(14, 165, 233, 0.16), 0 0 0 3px rgba(14, 165, 233, 0.35); }
.input[aria-invalid="true"] { background: #fff7f7; box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.5); }
.input.is-valid { box-shadow: 0 2px 8px rgba(2, 132, 199, 0.04), 0 0 0 1px rgba(16, 185, 129, 0.45); }
.input-upper { text-transform: uppercase; letter-spacing: 0.04em; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-wrap .input { padding-right: 30px; }
.hint { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.hint:empty { display: none; }
.hint-list { margin-top: 10px; padding-left: 1.2em; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.hint-list li + li { margin-top: 3px; }
.field-error { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--danger); }
.field-error::before { content: "! "; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; border-radius: var(--r-md); background: rgba(14, 165, 233, 0.08); }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: 12px;
  font-weight: 800; color: var(--muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.seg input:checked + span { background: #fff; color: var(--primary-deep); box-shadow: 0 3px 12px rgba(2, 132, 199, 0.18); }
.seg input:focus-visible + span { outline: 3px solid rgba(14, 165, 233, 0.45); }

.birth-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }

.postal-row { position: relative; display: flex; align-items: center; gap: 8px; }
.postal-mark { font-weight: 800; color: var(--primary); font-size: 18px; }
.postal-row .input { max-width: 180px; }
.postal-status { font-size: 12.5px; font-weight: 700; color: var(--ok); }
.postal-status.is-error { color: var(--muted); }

.emergency-box {
  padding: 16px 16px 4px;
  border-radius: var(--r-lg);
  background: rgba(255, 241, 242, 0.7);
  border: 1px dashed #fda4af;
}
.emergency-title { font-size: 13px; font-weight: 800; color: #be123c; margin-bottom: 12px; }
.emergency-box .field { margin-bottom: 12px; }

.upload {
  position: relative; display: block;
  border-radius: var(--r-lg);
  border: 2px dashed rgba(14, 165, 233, 0.45);
  background: rgba(240, 249, 255, 0.75);
  cursor: pointer; overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.upload:hover, .upload.is-drag { border-color: var(--sky); background: rgba(224, 242, 254, 0.9); }
.upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; z-index: 2; }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; text-align: center; }
.upload-icon { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--primary); box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18); }
.upload-text { font-weight: 800; color: var(--primary-deep); }
.upload-sub { font-size: 12px; color: var(--muted); }
.upload-preview { position: relative; display: block; }
.upload-preview img { width: 100%; max-height: 360px; object-fit: contain; background: #0f172a; }
.upload-change {
  position: absolute; right: 10px; bottom: 10px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.7); color: #fff; font-size: 12px; font-weight: 700;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.upload[aria-invalid="true"], .upload.has-error { border-color: var(--danger); background: #fff7f7; }

.agree-box {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.agree { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.6; }
.agree input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--primary); }

/* ---------- 確認モーダル ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 12px;
}
@media (min-width: 640px) { .modal { align-items: center; } }
.modal-card {
  width: 100%; max-width: 520px; max-height: calc(100vh - 24px); overflow-y: auto;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(2, 132, 199, 0.25);
  animation: sheetIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } }
.modal-title { font-size: 19px; font-weight: 800; }
.modal-lead { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.confirm-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; padding: 14px 16px; border-radius: var(--r-md); background: #f8fafc; border: 1px solid #e2e8f0; }
.confirm-list dt { color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; padding-top: 1px; }
.confirm-list dd { font-weight: 700; overflow-wrap: anywhere; }
.confirm-list img { max-height: 130px; border-radius: 8px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 16px; }
.upload-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--primary-deep); }
.upload-progress .progress { flex: 1; }

/* ---------- 完了 ---------- */
.done-card {
  text-align: center;
  padding: 34px 22px 26px;
  border-radius: var(--r-xl);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.12);
}
.done-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--grad); color: #fff;
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.4);
  animation: pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.done-title { font-size: 21px; font-weight: 800; }
.done-tour { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.done-number { display: inline-flex; flex-direction: column; margin: 18px 0 6px; padding: 10px 26px; border-radius: var(--r-md); background: var(--sky-soft); }
.done-number span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.done-number strong { font-size: 24px; font-weight: 800; color: var(--primary-deep); letter-spacing: 0.04em; }
.done-text { margin-top: 10px; font-size: 14px; }
.done-text p + p { margin-top: 6px; }
.small { font-size: 12.5px; color: var(--muted); }
.done-line { margin: 22px 0 18px; padding: 16px; border-radius: var(--r-md); background: #f0fdf4; border: 1px solid #bbf7d0; text-align: left; font-size: 13.5px; }
.done-line-title { font-weight: 800; color: #047857; margin-bottom: 4px; }

/* ---------- フッター ---------- */
.site-footer { padding: 26px 20px 20px; text-align: center; font-size: 12px; color: var(--muted); }
.footer-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-text { margin-bottom: 6px; }
.copyright { color: var(--light); }

/* ---------- トースト ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 24px); z-index: 60;
  transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.88); color: #fff; font-size: 13.5px; font-weight: 700;
  animation: sheetIn 0.25s ease-out;
}

@media (max-width: 360px) {
  .grid-2, .facts { grid-template-columns: 1fr; }
  .birth-row { grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; }
  .dock .btn-primary { padding: 12px 16px; }
}
