*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f4f1ea; }
.cs {
  --paper: #f4f1ea; --card: #fffdf8; --ink: #1c1b19; --sub: #6b665d; --line: #d6d0c2;
  --red: #c8402f; --blue: #2b4c7e;
  --mincho: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --gothic: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  background: var(--paper); color: var(--ink); min-height: 100%;
  font-family: var(--gothic); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; font-feature-settings: "palt";
}
.cs-standalone .cs { min-height: 100vh; min-height: 100dvh; }
.cs-wrap { max-width: 440px; margin: 0 auto; padding: 30px 24px calc(34px + env(safe-area-inset-bottom)); }
.cs a { color: inherit; }

.cs-hero { display: block; width: 100%; height: auto; margin: 14px 0 0; border-radius: 22px; mix-blend-mode: multiply; background: #f4f1ea; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 40%; }
.cs-hero.custom { mix-blend-mode: normal; object-position: center; }
.cs-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 700; letter-spacing: .34em; color: var(--sub); }
.cs-eyebrow::before, .cs-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 日めくりカレンダー */
.cs-leaf { position: relative; margin: 16px 6px 0; }
.cs-leaf::before, .cs-leaf::after { content: ""; position: absolute; left: 5px; right: 5px; height: 100%; top: 5px; background: var(--card); border: 1px solid var(--ink); border-radius: 5px; }
.cs-leaf::after { left: 10px; right: 10px; top: 10px; z-index: 0; }
.cs-leaf::before { z-index: 1; }
.cs-leaf-body { position: relative; z-index: 2; background: var(--card); border: 1px solid var(--ink); border-radius: 5px; overflow: hidden; }
.cs-leaf-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 18px 7px; background: var(--red); color: #fff; font-family: var(--mincho); font-weight: 700; letter-spacing: .12em; }
.cs-leaf-head span:first-child { font-size: 17px; }
.cs-leaf-head span:last-child { font-size: 11px; letter-spacing: .3em; opacity: .9; }
.cs-day { font-family: var(--mincho); font-weight: 900; font-size: 84px; line-height: 1; text-align: center; padding: 12px 0 0; letter-spacing: -.02em; font-feature-settings: "lnum"; }
.cs-day.sun { color: var(--red); } .cs-day.sat { color: var(--blue); }
.cs-week { text-align: center; font-family: var(--mincho); font-weight: 700; font-size: 16px; letter-spacing: .4em; text-indent: .4em; padding-bottom: 10px; }
.cs-week small { display: block; font-family: var(--gothic); display: none; }
.cs-time { border-top: 1px dashed var(--ink); padding: 9px 12px; text-align: center; font-size: 17px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.cs-seal { position: absolute; z-index: 3; right: -10px; top: 40px; width: 64px; height: 64px; border: 2.5px solid var(--red); border-radius: 50%; color: var(--red); display: grid; place-items: center; transform: rotate(-13deg); font-family: var(--mincho); font-weight: 800; font-size: 15px; line-height: 1.15; text-align: center; letter-spacing: .06em; background: rgba(255,253,248,.72); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--red); }

.cs-title { font-family: var(--mincho); font-weight: 700; font-size: clamp(21px, 6.4vw, 25px); line-height: 1.55; margin: 38px 0 0; overflow-wrap: anywhere; word-break: auto-phrase; text-wrap: balance; }
.cs-place { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--sub); font-size: 14px; overflow-wrap: anywhere; }
.cs-help { margin: 12px 0 0; font-size: 11.5px; color: var(--sub); line-height: 1.7; }
.cs-top { position: relative; margin-top: 14px; }
.cs-top .cs-hero { margin: 0; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 35% 45%; }
.cs-top .cs-hero.custom { object-position: center; }
/* カレンダーは、絵の右下の角にまたがって置く */
.cs-top .cs-leaf { position: absolute; right: 14px; bottom: -84px; width: 112px; margin: 0; z-index: 3; filter: drop-shadow(0 6px 10px rgba(28,27,25,.18)); }
.cs-top .cs-leaf-head { padding: 6px 8px 5px; justify-content: flex-end; }
.cs-top .cs-leaf-head span:first-child { font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
.cs-top .cs-leaf-head span:last-child { display: none; }
.cs-top .cs-day { font-size: 58px; padding: 8px 0 0; }
.cs-top .cs-week { font-size: 13px; padding-bottom: 6px; letter-spacing: .3em; text-indent: .3em; }
.cs-top .cs-week small { display: none; }
.cs-top .cs-time { font-size: 13px; padding: 7px 4px; letter-spacing: .02em; }
.cs-top .cs-seal { left: -16px; right: auto; top: -14px; width: 46px; height: 46px; font-size: 11px; box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 3px var(--red); }
/* タイトルと場所は、カレンダーの左側に並べる */
.cs-info { padding-right: 130px; min-height: 100px; margin-top: 18px; }
.cs-info .cs-titlerow { margin-top: 0; }
.cs-info .cs-title { font-size: clamp(18px, 5.6vw, 21px); }
.cs-info .cs-place { margin-top: 8px; }
@media (max-width: 350px) {
  .cs-top .cs-leaf { width: 100px; right: 10px; }
  .cs-top .cs-day { font-size: 50px; }
  .cs-info { padding-right: 114px; }
}
.cs-titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 22px; }
.cs-titlerow .cs-title { margin: 0; flex: 1 1 auto; }
.cs-jump { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--red); background: transparent; border: 1.5px solid var(--red); border-radius: 99px; cursor: pointer; }
.cs-jump svg { animation: cs-bob 1.6s ease-in-out infinite; }
@keyframes cs-bob { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .cs-jump svg { animation: none; } }
.cs-lead-detail { margin-top: 34px; scroll-margin-top: 16px; }
.cs-detail { margin-top: 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-place svg { flex: none; margin-top: 4px; }

.cs-lead { margin: 22px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.cs-lead::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.cs-btns { display: grid; gap: 8px; }
.cs-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 9px 14px 9px 14px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .15s ease; }
.cs-btn:active { transform: translateY(1px) scale(.99); }
.cs-btn { box-shadow: 0 3px 0 rgba(28,27,25,.16); }
.cs-btn > svg:first-child { box-sizing: content-box; padding: 8px; border-radius: 50%; background: rgba(200,64,47,.12); color: var(--red); }
.cs-btn.primary { background: var(--red); border-color: #a8321f; color: #fff; box-shadow: 0 4px 0 #8e2818; }
.cs-btn.primary > svg:first-child { background: rgba(255,255,255,.22); color: #fff; }
.cs-btn.primary .cs-btn-text small { opacity: .92; }
.cs-btn:active { box-shadow: none; }
.cs-btn svg { flex: none; }
.cs-btn-text { flex: 1; min-width: 0; }
.cs-btn-text b { display: block; font-size: 16px; line-height: 1.4; }
.cs-btn-text small { display: block; font-size: 11.5px; line-height: 1.5; opacity: .72; margin-top: 1px; }
.cs-reassure { margin: -2px 0 12px; font-size: 12.5px; line-height: 1.8; color: var(--sub); line-break: strict; }
.cs-nw { white-space: nowrap; }
.cs-reassure b { color: var(--ink); font-weight: 700; }
.cs-steps { margin-top: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; line-height: 1.7; }
.cs-steps b { display: block; font-size: 12px; letter-spacing: .06em; margin-bottom: 4px; }
.cs-steps ol { margin: 0; padding-left: 1.5em; color: var(--sub); }
.cs-support { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--sub); }
.cs-support b { display: block; font-size: 12px; letter-spacing: .06em; color: var(--ink); margin-bottom: 2px; }
.cs-other { margin-top: 14px; font-size: 12.5px; color: var(--sub); }
.cs-other summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 8px 0; }
.cs-other p { margin: 4px 0 10px; line-height: 1.8; }
.cs-copy { font: inherit; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }
.cs-copy:active { transform: translateY(1px); }
.cs-flash { margin: 10px 0 0; padding: 10px 14px; background: var(--ink); color: var(--card); border-radius: 8px; font-size: 13px; }
.cs-flash[hidden] { display: none; }

.cs-note { margin-top: 30px; padding: 14px 16px; border-left: 3px solid var(--red); background: rgba(200,64,47,.06); font-size: 13px; }
.cs-note b { display: block; font-size: 14px; }
.cs-note a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; color: var(--red); text-underline-offset: 4px; }
.cs-foot { margin-top: 26px; font-size: 11.5px; color: var(--sub); line-height: 1.8; }
.cs-empty { min-height: inherit; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.cs-empty h1 { font-family: var(--mincho); font-size: 20px; margin: 0 0 8px; }
.cs-empty p { margin: 0; color: var(--sub); font-size: 13px; }
@media (max-width: 350px) {
  .cs-btn { gap: 10px; padding: 9px 10px; }
  .cs-btn > svg:first-child { padding: 6px; width: 22px; height: 22px; }
  .cs-btn-text b { font-size: 14.5px; }
  .cs-btn-text small { font-size: 11px; }
  .cs-wrap { padding-left: 18px; padding-right: 18px; }
}
