/* ==================================================================
   いつどこ — スタイル
   トンマナ：明るいグレーの地、白い角丸カード、青（情報・選択）と黄（行動）、
   英字の小見出し＋太い和文見出し、黒いフッター。
================================================================== */

/* 英字フォントは自前で配信（OFL）。和文は端末のゴシック体を使う */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/mulish-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --cream: #fffdea;
  --cream-2: #fffef4;
  /* 本文は真っ黒にせず、少しやわらかい濃グレー。見出しはそれより一段濃く */
  --ink: #2b2f33;
  --ink-2: #1c1e21;
  --muted: #646a70;
  --line: #e3e8eb;
  --gray: #5c5d5e;
  --gray-2: #b9b9b9;

  --blue: #156fc6;
  --blue-mark: #4990d5;
  --blue-soft: #e8f3ff;
  /* 白文字を載せる塗りの青 */
  --blue-fill: #156fc6;
  --yellow: #fde04b;
  --yellow-2: #ffee56;
  --teal: #eaf4ff;
  --teal-soft: #eaeef1;
  --teal-green: #c8f1ed;

  --green: #2cb5a7;
  --green-2: #198a7f;

  
  /* 意味づけ */
  --cta-ink: #1c1e21;
  --yes: #156fc6;
  --yes-soft: #e8f3ff;
  --maybe: #8f6b00;
  --maybe-mark: #e0a800;
  --maybe-soft: #fff6c7;
  --no: #8a9096;
  --no-soft: #eef1f3;
  --danger: #d23c3c;
  --focus: #156fc6;
  --sun: #d9363e;
  --sat: #156fc6;
  --open-ink: #0f8a7e;

  /* 白地の上でもカードの輪郭がわかるよう、細い線＋弱い影 */
  --shadow: 0 0 0 1px rgba(23, 45, 70, 0.08), 0 4px 16px rgba(23, 45, 70, 0.05);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Outfit', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Zen Kaku Gothic New', 'Noto Sans JP',
    'Yu Gothic UI', Meiryo, sans-serif;
  --font-body: 'Mulish', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Zen Kaku Gothic New', 'Noto Sans JP',
    'Yu Gothic UI', Meiryo, sans-serif;
  color-scheme: light;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
}
.break {
  word-break: break-all;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-header,
.page,
.site-footer > * {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.site-header {
  display: flex;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 4px;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}
.logo-img {
  display: block;
  width: auto;
  height: 40px;
}
.page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 56px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.hint {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.7;
}
.eyebrow {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
color: var(--blue);
text-align: center;
}
.section-title .muted {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
/* 英字の小見出し＋和文の見出し */
.heading {
  display: flex;
  flex-direction: column;
}
.sub-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 18px;
}
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--cta-ink);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.8;
  vertical-align: 2px;
  letter-spacing: 0.04em;
}
.badge-muted {
  background: var(--surface-2);
  color: var(--muted);
}
.link {
  color: var(--green-2);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.page p a,
.doc a {
  color: var(--green-2);
  font-weight: 600;
  text-underline-offset: 4px;
}
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details[open] > summary.link {
  margin-bottom: 10px;
}
.optional {
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: 2px;
}

/* ------------------------------------------------------------------
   Hero / top
------------------------------------------------------------------ */
.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
/* ヘッダー：街並みの絵の上に、ロゴを大きく中央に置く（全ページ共通） */
.sheet > .site-header {
  max-width: none;
  justify-content: center;
  min-height: 84px;
  padding-top: 8px;
  padding-bottom: 6px;
  /* 絵は左右の端に建物があるので、狭い画面では少し大きくして端を切る */
  background: url(/back.png) center top / max(100%, 640px) auto no-repeat;
}
.site-header .logo-img {
  height: 70px;
}
/* ロゴの「！」：ロゴと同じ大きさの画像をぴったり重ね、ホバーで1回弾ませる */
.logo-mark {
  position: relative;
  display: block;
}

.logo-pin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* ピンの下の点（ロゴ内の位置）を支点にする */
  transform-origin: 90.6% 92.7%;
}
@keyframes logo-pin-bounce {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  15% {
    transform: translateY(0) scale(1.08, 0.9);
  }
  45% {
    transform: translateY(-14%) scale(0.96, 1.06);
  }
  70% {
    transform: translateY(0) scale(1.06, 0.94);
  }
  85% {
    transform: translateY(-3%) scale(1, 1);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}
.logo:hover .logo-pin,
.logo:focus-visible .logo-pin {
  animation: logo-pin-bounce 0.7s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .logo:hover .logo-pin,
  .logo:focus-visible .logo-pin {
    animation: none;
  }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.4vw, 2.3rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.hl {
  color: var(--blue);
}
.lead {
  color: var(--ink-2);
  font-size: 0.98rem;
  font-weight: 600;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: var(--ink);
  counter-increment: step;
  line-height: 1.6;
}
.steps li::before {
  font-family: var(--font-display);
  font-weight: 800;
}
.steps b {
  color: var(--ink-2);
  font-size: 0.86rem;
}

/* ------------------------------------------------------------------
   Forms
------------------------------------------------------------------ */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-2);
}
input[type='text'],
input[type='email'],
input[type='date'],
input[type='time'],
input:not([type]),
textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  border: 1px solid var(--line);
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
}
.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 700;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--blue);
  flex: none;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.chip input,
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.type-chips,
.member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.chip input:checked + span {
  border-color: var(--blue);
  background: var(--blue-fill);
  color: #fff;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* JSが無いときの候補日入力 */
.candidate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.candidate-row {
  display: grid;
  grid-template-columns: 22px 1fr 112px;
  gap: 8px;
  align-items: center;
}
.candidate-num {
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
}
.candidates .btn-ghost {
  margin-top: 8px;
  align-self: flex-start;
}

/* ------------------------------------------------------------------
   何を決めますか？（作成フォームの先頭）
   ラジオボタンを先頭に置き、選ばれた方の入力欄だけを表示する（JS不要）
------------------------------------------------------------------ */
.kind-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.kind-picker {
  display: flex;
  flex-direction: column;
}
.kind-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.kind-card:hover {
  border-color: var(--blue);
}
.kind-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 1.4rem;
}
.kind-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.kind-text b {
  font-size: 1.02rem;
  color: var(--ink-2);
}
.kind-text small {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
/*
  選ぶと他のカードがフェードアウトして消え、選び直すとフェードインで戻る。
  display の切り替えを transition-behavior: allow-discrete と @starting-style でアニメーションさせる
  （対応していないブラウザでは、これまでどおり瞬時に切り替わる）。
*/
.kind-picker {
  gap: 0;
}
.kind-picker > .label {
  margin-bottom: 2px;
}
.kind-item {
  position: relative;
  margin-top: 10px;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    margin-top 0.28s ease,
    max-height 0.28s ease,
    display 0.28s allow-discrete;
  max-height: 200px;
}
@starting-style {
  .kind-item {
    opacity: 0;
    transform: translateY(6px);
  }
}
#kind-date:checked ~ .kind-picker .kind-item:not(.kind-item-date),
#kind-choice:checked ~ .kind-picker .kind-item:not(.kind-item-choice),
#kind-both:checked ~ .kind-picker .kind-item:not(.kind-item-both) {
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  max-height: 0;
}

/* 右端のアイコン：選ぶ前は ＋、選んだ後は － */
.kind-card {
  position: relative;
  padding-right: 56px;
}
.kind-card::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: #156fc6
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8m-3-3.2L15.2 11 12 14.2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 26px 26px no-repeat;
  transition: background-color 0.2s ease;
}
#kind-date:checked ~ .kind-picker .kind-card-date,
#kind-choice:checked ~ .kind-picker .kind-card-choice,
#kind-both:checked ~ .kind-picker .kind-card-both {
  border-color: var(--blue);
  background: var(--blue-soft);
}
#kind-date:checked ~ .kind-picker .kind-card-date .kind-icon,
#kind-choice:checked ~ .kind-picker .kind-card-choice .kind-icon,
#kind-both:checked ~ .kind-picker .kind-card-both .kind-icon {
  background: var(--surface);
}
#kind-date:checked ~ .kind-picker .kind-card-date::after,
#kind-choice:checked ~ .kind-picker .kind-card-choice::after,
#kind-both:checked ~ .kind-picker .kind-card-both::after {
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7.6 7.6l6.8 6.8m0-6.8l-6.8 6.8' fill='none' stroke='%23156fc6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 26px 26px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
/* 選んだカードの上に重ねる「選び直す」ボタン（見た目はカードそのもの） */
.kind-reset {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#kind-date:checked ~ .kind-picker .kind-item-date .kind-reset,
#kind-choice:checked ~ .kind-picker .kind-item-choice .kind-reset,
#kind-both:checked ~ .kind-picker .kind-item-both .kind-reset {
  display: block;
}
#kind-none:focus-visible ~ .kind-picker .kind-card-date,
#kind-date:focus-visible ~ .kind-picker .kind-card-date,
#kind-choice:focus-visible ~ .kind-picker .kind-card-choice,
#kind-both:focus-visible ~ .kind-picker .kind-card-both {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .kind-item {
    transition: none;
  }
}

/* 何を選んだかで出し分ける。両方決めるときは日程と候補の両方を出す */
.kind-section {
  display: none !important;
}
#kind-date:checked ~ .kind-common,
#kind-choice:checked ~ .kind-common,
#kind-both:checked ~ .kind-common,
#kind-date:checked ~ .kind-date,
#kind-both:checked ~ .kind-date,
#kind-choice:checked ~ .kind-choice,
#kind-both:checked ~ .kind-choice {
  display: flex !important;
}
.show-date,
.show-choice,
.show-both,
.show-event,
.show-both-block {
  display: none;
}
#kind-date:checked ~ * .show-date,
#kind-choice:checked ~ * .show-choice,
#kind-both:checked ~ * .show-both,
#kind-date:checked ~ * .show-event,
#kind-both:checked ~ * .show-event {
  display: inline;
}
#kind-both:checked ~ * .show-both-block {
  display: flex;
}
.both-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
#kind-both:checked ~ * .both-heading {
  display: block;
}

/* 「どれが良い？」の候補の入力 */
.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
}
.option-row [hidden] {
  display: none;
}
.options .btn-ghost {
  align-self: flex-start;
}

/* ------------------------------------------------------------------
   Buttons（ピル型。行動は黄、補助は白地＋黄の枠）
------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active {
  transform: scale(0.985);
}
/* 主要な行動：黄色＋青い▶ */
.btn-primary {
  background: var(--green);
  color: var(--surface);
  box-shadow: 0 4px 14px rgba(40, 246, 253, 0.35);
}
.btn-primary::after {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 6.2v7.6l6-3.8z' fill='%232cb5a7'/%3E%3C/svg%3E")
    center / 20px 20px no-repeat;
}
.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(40, 253, 232, 0.5);
}
.btn-secondary {
  background: var(--yellow);
  color: var(--ink-2);
}
.btn-secondary:hover {
  background: var(--yellow-2);
}
.btn-ghost {
  background: transparent;
  color: var(--green-2);
  min-height: 40px;
  padding: 0 12px;
  border: 0;
}
.btn-ghost:hover {
  background: var(--blue-soft);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-lg {
  min-height: 60px;
  font-size: 1.06rem;
}
.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-width: 1.5px;
}
.btn-star {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn-star.is-on {
  color: var(--cta-ink);
  border-color: var(--yellow);
  background: var(--yellow);
}
.btn.is-done {
  background: var(--green-2);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}
.btn.is-done::after {
  display: none;
}

/* ------------------------------------------------------------------
   アコーディオン：閉じているとボタン、開くとそのままカードに広がる
------------------------------------------------------------------ */
.accordion {
  background: var(--surface);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 3px solid var(--yellow);
}
.accordion[open] {
  border-radius: 0;
}
.accordion > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.accordion > summary::after {
  content: '＋';
  flex: none;
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.accordion[open] > summary::after {
  content: '－';
}

.accordion-body {
  padding: 18px;
}
.accordion-primary {
  border: 0;
}
.accordion-primary > summary {
  min-height: 60px;
  background: var(--green);
  color: var(--bg);
  font-size: 1.06rem;
}
.accordion-primary > summary::before {
  order: 2;
}
.accordion-primary > summary::after {
  order: 3;
}
.accordion-primary[open] > summary {
  border-bottom: 0;
}

/* ------------------------------------------------------------------
   候補日カレンダー
------------------------------------------------------------------ */
.candidates.is-enhanced {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cal {
  padding: 12px 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.cal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.cal-nav {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.cal-nav:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}
.cal-grid {
  display: grid;
  gap: 3px;
}
.cal-wd {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 0 6px;
}
.cal-day {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cal-day:hover:not(:disabled):not(.is-on) {
  background: var(--surface);
}
.cal-day:disabled {
  color: var(--muted);
  opacity: 0.35;
  cursor: default;
}
.wd-0 {
  color: var(--sun);
}
.wd-6 {
  color: var(--sat);
}
.cal-day.is-today {
  box-shadow: inset 0 0 0 2px var(--yellow);
}
.cal-day.is-on {
  background: var(--green);
  color: #fff;
  box-shadow: none;
}
.cal-day.is-existing::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--teal);
}
.picked-status {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}
.picked-status.is-warn {
  color: var(--danger);
}
.picked {
  list-style: none;
  margin: 0;
  padding: 0;
}
.picked-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.picked-row:first-child {
  border-top: 1px solid var(--line);
}
.picked-date {
  flex: none;
  width: 6em;
  font-family: var(--font-display);
  font-weight: 700;
}
.picked-time {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.picked-time input[type='time'] {
  width: 104px;
  min-height: 40px;
  padding: 6px 10px;
}
.picked-addtime,
.picked-notime {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  padding: 8px 4px;
  cursor: pointer;
}
.picked-addtime {
  color: var(--green-2);
  font-weight: 700;
}
.picked-notime {
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.picked-remove {
  flex: none;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.picked-remove:hover {
  color: var(--danger);
}

/* ------------------------------------------------------------------
   回答（○△×）
------------------------------------------------------------------ */
.answer-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.answer-legend {
  font-size: 0.8rem;
  color: var(--muted);
}
.answer-row {
  border: 0;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.answer-row:first-of-type {
  border-top: 0;
}
.answer-date {
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.answer-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.choice > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.choice b {
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 700;
}
.choice-yes input:checked + span {
  border-color: var(--yes);
  background: var(--yes-soft);
  color: var(--yes);
}
.choice-maybe input:checked + span {
  border-color: var(--maybe-mark);
  background: var(--maybe-soft);
  color: var(--maybe);
}
.choice-no input:checked + span {
  border-color: var(--no);
  background: var(--no-soft);
  color: var(--ink-2);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
   おすすめ日（青い見出し帯のカード）
------------------------------------------------------------------ */
.rec {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 18px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rec-label {
  margin: 0 -18px;
  padding: 12px 18px;
  background: var(--blue-fill);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.rec-empty {
  padding-top: 20px;
}
.rec-empty .rec-label {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--ink-2);
}
.rec-date {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.rec-time {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue);
}
.counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}
.count {
  padding: 10px 8px;
  border-radius: 14px;
  text-align: center;
}
.count dt {
  font-size: 0.74rem;
  font-weight: 700;
}
.count dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}
.count-yes {
  background: var(--yes-soft);
  color: var(--yes);
}
.count-maybe {
  background: var(--maybe-soft);
  color: var(--maybe);
}
.count-no {
  background: var(--no-soft);
  color: var(--muted);
}
.rec-why {
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 14px;
}
.rec-why ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.rec-why li {
  display: flex;
  gap: 8px;
}
.rec-why li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 800;
}
.warnings {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: var(--muted);
}
.warnings li::before {
  content: '※ ';
}

/* ------------------------------------------------------------------
   集計・一覧表・コメント
------------------------------------------------------------------ */
.leading {
  font-size: 0.95rem;
}
.leading b {
  font-family: var(--font-display);
  color: var(--blue);
}
.tally {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.tally-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.tally-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.tally-row.is-past {
  opacity: 0.55;
}
.tally-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.tally-date {
  font-family: var(--font-display);
  font-weight: 700;
}
.tally-nums {
  display: flex;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  flex: none;
}
.n-yes {
  color: var(--yes);
}
.n-maybe {
  color: var(--maybe);
}
.n-no {
  color: var(--no);
}
.bar {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.bar-track {
  fill: var(--gray-2);
}
.bar-yes {
  fill: var(--blue-mark);
}
.bar-maybe {
  fill: var(--maybe-mark);
}
.tally-names summary {
  font-size: 0.8rem;
  color: var(--blue);
  cursor: pointer;
}
.tally-names p {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  font-weight: normal;
}

.tally-confirm {
  align-self: flex-end;
}

.matrix-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flip-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.flip-label {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.flip-toggle:focus-visible + .flip-label {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.flip-toggle:checked + .flip-label {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.matrix-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.matrix-view.matrix-by-person {
  display: none;
}
.flip-toggle:checked ~ .matrix-view.matrix-by-date {
  display: none;
}
.flip-toggle:checked ~ .matrix-view.matrix-by-person {
  display: flex;
}
.matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.matrix {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  min-width: 100%;
}
.matrix th,
.matrix td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-align: center;
}
.matrix thead th {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.78rem;
  background: var(--surface-2);
}
.matrix tbody th {
  position: sticky;
  left: 0;
  background: var(--surface);
  text-align: left;
  font-weight: 700;
  font-family: var(--font-display);
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 日程ごとの表では日時を省略しない */
.matrix-by-date tbody th {
  max-width: none;
}
/* 本体の最後の行だけ線を消す（見出しの行の下線は残す） */
.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td {
  border-bottom: 0;
}
.matrix .m-count {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-2);
}
.m-yes {
  color: var(--yes);
  font-weight: 800;
}
.m-maybe {
  color: var(--maybe-mark);
  font-weight: 800;
}
.m-no,
.m-none {
  color: var(--no);
}
.matrix thead .m-yes,
.matrix thead .m-maybe,
.matrix thead .m-no {
  font-size: 0.9rem;
}
.matrix tr.is-best th,
.matrix tr.is-best td,
.matrix th.is-best {
  background: var(--cream-2);
}
.csv-link {
  align-self: flex-end;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.comments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}
.comments li {
  padding: 0px;
}
.comment-name {
  font-weight: 700;
  margin-right: 8px;
  color: var(--ink);
}
.comment-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  position: relative;
  display: inline-block;
  border-radius: 22px;
  background: var(--surface);
  padding: 10px 14px;
  width: 100%;
  margin-top: 4px;
}

.comment-body:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 2em;
  border-style: solid;
  border-width: 0 10px 10px 0px;
  border-color: transparent transparent #fff;
  translate: -50% -100%;
}

/* ------------------------------------------------------------------
   イベントページ
------------------------------------------------------------------ */
.event-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-head h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.45;
  letter-spacing: 0.05em;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: center;
}
.notice {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notice-info {
  background: var(--surface);
}
.notice-success {
  background: var(--teal-green);
  color: var(--ink);
  font-weight: 700;
}
.notice-warn {
  background: var(--cream);
  color: var(--ink);
}

.confirmed {
  position: relative;
  text-align: center;
  padding: 15px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.confirmed-badge {
  align-self: center;
  padding: 3px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.confirmed-title {
  font-weight: 700;
  overflow-wrap: anywhere;
  font-size: 1.2em;
}
.confirmed-date {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.confirmed-time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.confirmed-venue {
  margin: 16px 0 4px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.venue-name {
  font-weight: 700;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.venue-address,
.venue-note {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.confirmed-count {
  margin-top: 6px;
}
.confirmed-count b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue);
}
.confirmed-compact {
  padding: 15px 20px;
}
.confirmed-compact .confirmed-date {
  font-size: 1.7rem;
}
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.people li {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--yes-soft);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.people-maybe li {
  background: var(--maybe-soft);
}
.page-share {
  padding-top: 24px;
}

/* ------------------------------------------------------------------
   幹事用 管理ページ
------------------------------------------------------------------ */
.share-panel {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--teal-soft);
}
.share-done {
  color: var(--blue);
  font-weight: 800;
}
.share-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.share-actions [hidden] {
  display: none;
}
.copybox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.copybox-text {
  font-size: 0.88rem !important;
  background: var(--surface) !important;
  border-color: var(--line) !important;
}
.status {
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: var(--surface);
  color: var(--muted);
}
.status-open {
  background: var(--teal-soft);
  color: var(--open-ink);
}
.status-confirmed {
  background: var(--yellow);
  color: var(--cta-ink);
}
.answer-status .big {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--blue);
  margin-right: 2px;
}
.answer-status .muted {
  font-size: 0.86rem;
}
details[data-reminder] > summary {
  margin-bottom: 0;
}
details[data-reminder][open] > summary {
  margin-bottom: 4px;
}

.settings {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.settings > .section-title {
  padding-top: 12px;
}
.setting:last-child {
  border-bottom: 0;
}
.setting > summary {
  font-weight: 700;
  cursor: pointer;
  justify-content: space-between;
}
.setting > form,
.setting > ul,
.setting > p {
  margin-bottom: 16px;
}
.date-list,
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.date-list li,
.member-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.date-list li > span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
}
.date-list li > span:first-child,
.member-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.danger-zone > summary {
  color: var(--danger);
}

/* シーン別ページ：「いつ」を選んでいる間だけ、見出しの代わりに「両方決める」への切り替えリンクを出す */
.pair-switch {
  display: none;
  color: var(--blue);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#kind-date:checked ~ .kind-picker .pair-switch {
  display: inline;
}
#kind-date:checked ~ .kind-picker .pair-switch-alt {
  display: none;
}

/* ------------------------------------------------------------------
   シーン別ページへのリンク
------------------------------------------------------------------ */
.scene-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scene-links a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}
.scene-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ------------------------------------------------------------------
   最近見たイベント
------------------------------------------------------------------ */
.recent-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.recent-list li + li {
  border-top: 1px solid var(--line);
}
.recent-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 52px 14px 18px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
/* 丸に → のアイコン（閲覧履歴・フッター） */
.recent-item::after,
.footer-nav a::before {
  content: '';
  flex: none;
  border-radius: 50%;
  background: #156fc6
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8m-3-3.2L15.2 11 12 14.2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 22px 22px no-repeat;
}
.recent-item::after{
  width: 20px;
  height: 20px;
}
.footer-nav a::before {
  width: 15px;
  height: 15px;
}
.recent-item::after {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.recent-item:hover {
  background: var(--surface-2);
}
.recent-title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.8rem;
  color: var(--ink);
}
/* 状態のラベル：背景付きの角丸（受付中＝青、決定＝緑、開催済み＝グレー） */
.recent-badge {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--no);
  color: #fff;
  font-weight: 700;
  font-size: .9em;
}
.recent-open {
  background: var(--blue);
}
.recent-confirmed {
  background: var(--green);
}

/* ------------------------------------------------------------------
   文書ページ（使い方・規約・ポリシー）
------------------------------------------------------------------ */
.doc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.93rem;
  line-height: 1.9;
}
.doc h2 {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}
.doc ol {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-date {
  margin-top: 16px;
  color: var(--muted);
  text-align: right;
}
.howto {
  list-style: none;
  margin: 0;
  padding: 6px 18px;
  display: flex;
  flex-direction: column;
  counter-reset: howto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.howto li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 0 14px 44px;
  border-top: 1px solid var(--line);
  counter-increment: howto;
}
.howto li:first-child {
  border-top: 0;
}
.howto li::before {
  content: '0' counter(howto);
  position: absolute;
  left: 0;
  top: 13px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
}
.howto span {
  color: var(--muted);
  font-size: 0.88rem;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq .accordion {
  border: 0;
}
.faq .accordion > summary {
  min-height: 56px;
  font-size: 0.94rem;
  line-height: 1.55;
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--ink-2);
}
.faq .accordion-body p {
  font-size: 0.92rem;
  line-height: 1.9;
}
.message-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 40px;
}
.message-page h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ------------------------------------------------------------------
   フッター（黒地）
------------------------------------------------------------------ */
.site-footer {
  background: #000;
  color: #fff;
  padding: 36px 0 44px;
}
.site-footer > * + * {
  margin-top: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #333;
}
.footer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.footer-nav a::before {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8m-3-3.2L15.2 11 12 14.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer p {
  color: #b9bec3;
  font-size: 0.78rem;
}
.footer-copy {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------
   「どれが良い？」の表示
------------------------------------------------------------------ */
.answer-row-choice .answer-choices {
  grid-template-columns: 1fr 1fr 0.7fr;
}
.choice-none > span {
  border-style: dashed;
}
.choice-none input:checked + span {
  border-style: solid;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
}
.count-none {
  background: var(--surface-2);
  color: var(--muted);
}
.n-none {
  color: var(--muted);
}
.rec-choice {
  font-size: 1.6rem;
  overflow-wrap: anywhere;
}
.confirmed-choice {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.decided-note {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px dashed var(--yellow);
}

/* ------------------------------------------------------------------
   複数の決めごと（日程＋どれが良い？）
------------------------------------------------------------------ */
.section-block + .section-block {
  padding-top: 24px;
  border-top: 2px dashed var(--line);
}
.section-block .section-title .badge {
  vertical-align: 4px;
}
/* 先に決まった決めごとの案内 */
.decided-banner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--cream);
}
.decided-banner-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.decided-banner-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.decided-question {
  font-weight: 700;
  color: var(--ink);
}
/* 回答フォームの中の決めごとの見出し */
.answer-section + .answer-section {
  padding-top: 18px;
  border-top: 2px dashed var(--line);
}
.answer-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
/* 次に決めることを追加：見出しと案内文は枠の外。枠の中は決めごとの見出しと、白いカードに入れたフォーム */
.next-panel {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--teal);
  box-shadow: var(--shadow);
}
.next-step .lead {
  font-size: 0.92rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ------------------------------------------------------------------
   背景の飾り（楽しげな雰囲気）
   広い画面：中央に白いシート、外側は淡い青に大きな図形
   スマホ：シートの上部に小さな図形
------------------------------------------------------------------ */
body {
  /* 上のティールから下の淡いティールへ。長いページでもグラデーションが伸びないよう画面に固定する */
  background: linear-gradient(180deg, var(--teal), var(--teal-soft)) fixed;
}
.sheet {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 48px rgba(21, 111, 198, 0.1);
  z-index: 1;
}
.sheet > .site-header,
.sheet > .page {
  position: relative;
  z-index: 1;
}
.site-footer {
  position: relative;
  z-index: 1;
}

/* シートが画面いっぱいになる幅では、外側の図形は見えないので描かない */
@media (max-width: 680px) {
  .sheet {
    box-shadow: none;
  }
}

/* トップページ：見出しの左右に ○ × △ を散らす（回答の記号に合わせる） */
.sheet-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.sheet-deco > * {
  position: absolute;
  display: block;
}
.sd-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7eaae8, #a9cbf5);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
}
.sd-x {
  width: 34px;
  height: 34px;
}
.sd-tri {
  width: 50px;
  height: 50px;
}
.sd-ring-l {
  left: 22px;
  top: 100px;
}
.sd-x-l {
  left: 78px;
  top: 150px;
}
.sd-tri-l {
  left: 46px;
  top: 172px;
  rotate: -28deg;
}
.sd-x-r {
  right: 36px;
  top: 112px;
}
.sd-ring-r {
  right: 76px;
  top: 162px;
}
.sd-tri-r {
  right: 16px;
  top: 168px;
  rotate: 168deg;
}
/* スマホ：見出しに重ならないよう、小さくして端に寄せる */
@media (max-width: 680px) {
  .sd-ring {
    width: 40px;
    height: 40px;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  }
  .sd-x {
    width: 22px;
    height: 22px;
  }
  .sd-tri {
    width: 32px;
    height: 32px;
  }
  .sd-ring-l {
    left: -16px;
    top: 72px;
  }
  .sd-x-l {
    left: 2px;
    top: 168px;
  }
  .sd-tri-l {
    left: -10px;
    top: 206px;
  }
  .sd-x-r {
    right: 4px;
    top: 72px;
  }
  .sd-ring-r {
    right: -16px;
    top: 160px;
  }
  .sd-tri-r {
    right: -4px;
    top: 214px;
  }
  .sheet > .site-header {
    min-height: 66px;
    background-size: max(100%, 560px) auto;
  }
  .site-header .logo-img {
    height: 54px;
  }
}

/* ゆっくり浮かぶ動き（動きを減らす設定では止める） */
@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}
.float {
  animation: float 5s ease-in-out infinite alternate;
}
.float-2 {
  animation-duration: 6.5s;
  animation-delay: -2s;
}
.float-3 {
  animation-duration: 8s;
  animation-delay: -4s;
}
@media (prefers-reduced-motion: reduce) {
  .float {
    animation: none;
  }
}

/* ------------------------------------------------------------------
   何を決めますか？：3つのボタンを「最近見たイベント」のように1つの枠でつなげる
------------------------------------------------------------------ */
.kind-list {
  margin-top: 10px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.kind-list .kind-item {
  margin-top: 0;
}
.kind-list .kind-item + .kind-item {
  border-top: 1px solid var(--line);
}
/* 1つを選んで他が消えたら、残ったボタンの上の区切り線も消す */
#kind-date:checked ~ .kind-picker .kind-list .kind-item,
#kind-choice:checked ~ .kind-picker .kind-list .kind-item,
#kind-both:checked ~ .kind-picker .kind-list .kind-item {
  border-top: 0;
}
.kind-list .kind-card {
  border: 0;
  border-radius: 0;
  padding: 16px 56px 16px 18px;
}
.kind-list .kind-card:hover {
  background: var(--surface-2);
}
.kind-list .kind-reset {
  border-radius: 0;
}

/* ------------------------------------------------------------------
   決定までの流れ：Step 1 > Step 2 > Step 3
------------------------------------------------------------------ */
.steps {
  gap: 22px;
  column-gap: 30px;
}
.steps li {
  position: relative;
}
.steps li::before {
  content: '特長 ' counter(step);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--blue);
}
/* シーン別ページの「〜を決めるコツ」 */
.steps-tips li::before {
  content: 'コツ ' counter(step);
}


/* 決定プロセスのまとまり */
.process {
  background: var(--teal);
  padding: 20px;
  border-radius: 22px;
  margin-top: -20px;
}

/* 「履歴を削除 ✕」：グレーの文字の右に、小さなグレーの丸い ✕ */
.clear-history {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.clear-history::after,
.unconfirm-btn::after {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7.6 7.6l6.8 6.8m0-6.8l-6.8 6.8' fill='none' stroke='%23646a70' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
  box-shadow: inset 0 0 0 1.2px var(--muted);
}
.clear-history:hover {
  color: var(--ink-2);
}
.clear-history:hover::after,
.unconfirm-btn:hover::after {
  background-color: var(--surface-2);
}

/* ------------------------------------------------------------------
   結果ページ：控えめなボタン・URL欄のコピーアイコン
------------------------------------------------------------------ */
/* 細いグレーの線で区切るだけのアコーディオン */
.accordion-plain {
  border: none;
  box-shadow: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.accordion-plain > summary {
  color: var(--ink-2);
  font-weight: 600;
}
.accordion-plain > .accordion-body {
padding: 18px 2px 0;
}

/* 「別の端末から変更するには」は右寄せ */
.edit-url-help > summary {
  display: block;
  text-align: right;
}
.edit-url-help[open] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* URL欄：右端のアイコンでコピー */
.copyfield {
  position: relative;
}
.copyfield .copyfield-text {
  padding-right: 52px;
  font-size: 0.88rem;
  background: var(--surface);
  border-color: var(--line);
  text-overflow: ellipsis;
}
.copy-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 0;
  border-radius: 10px;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='8' y='8' width='11' height='12' rx='2.5' fill='none' stroke='%23156fc6' stroke-width='1.8'/%3E%3Cpath d='M15.5 5.5V5a1.5 1.5 0 0 0-1.5-1.5H7A2.5 2.5 0 0 0 4.5 6v8.5A1.5 1.5 0 0 0 6 16h.5' fill='none' stroke='%23156fc6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 22px 22px no-repeat;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.copy-icon:hover {
  background-color: var(--blue-soft);
}
/* コピーできたら少しの間 ✓ にする */
.copy-icon.is-done {
  background: var(--teal-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230f8a7e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 22px 22px no-repeat;
}

/* 「別の端末から変更するには」は「この表をCSVでダウンロード」と同じ大きさ */
.edit-url-help > summary {
  font-size: 0.82rem;
  font-weight: 700;
}
/* 決めごとが2つあるときの、それぞれの見出し */
.sub-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

/* 日程の参加者用：区切り線をやめ、淡い青の角丸ブロックにする */
.page-share {
  border-top: 0;
  background:var(--teal-soft);
  padding: 20px;
  border-radius: 22px;
}

/* ------------------------------------------------------------------
   幹事メニュー
------------------------------------------------------------------ */
/* 「名前を見る」と「この日に決定」を1行に */
.tally-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tally-actions .tally-names {
  flex: 1;
  min-width: 0;
}
.tally-actions .tally-names > summary {
  line-height: 34px;
}
.tally-actions .tally-confirm {
  flex: none;
  align-self: flex-start;
}

/* おすすめ：青い帯をやめ、おすすめの上に文字で出す */
.rec {
  padding-top: 20px;
}
.rec .rec-label {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--blue);
  font-size: 0.9rem;
}
.rec .rec-label + .rec-date {
  margin-top: -10px;
}

/* 日程・どれが良い？のまとまり：ティールの背景、背景に直接乗る文字は白 */
.section-panel {
  gap: 16px;
  background: var(--teal);
  padding: 20px;
  border-radius: 22px;
  color: #fff;
}
.section-block.section-panel + .section-block.section-panel {
  padding-top: 20px;
  border-top: 0;
}
/* ティールの背景に直接乗るのは見出しと、決定後の「取り消す」リンクだけ */
.section-panel > .heading .section-title,
.section-panel > form .btn-ghost {
  color: var(--ink);
}
.section-panel > form .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}
/* おすすめカードの中に続く、候補ごとの集計と全回答の表 */
.rec-more {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px -18px 0;
  padding: 16px 18px 0;
  border-top: 1px solid var(--line);
}
/* 白いカードの中は通常の文字色のまま */
.section-panel .rec,
.section-panel .card,
.section-panel .confirmed,
.section-panel .matrix-wrap,
.section-panel .comments li {
  color: var(--ink);
}

/* ------------------------------------------------------------------
   設定：見出しは枠の外。＋ で開き、－ で閉じる。
   1つを開くと他の項目はフェードアウトし、閉じるとフェードインで戻る。
------------------------------------------------------------------ */
.settings {
  padding: 0;
  overflow: hidden;
}
.setting {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  opacity: 1;
  transform: none;
}
.setting:first-child {
  border-top: 0;
}
@starting-style {
  .setting {
    opacity: 0;
    transform: translateY(6px);
  }
}
/* 1つ開いたら、他の項目と区切り線を消す */
.settings:has(> .setting[open]) > .setting:not([open]) {
  display: none;
  opacity: 0;
  transform: translateY(-6px);
}
.settings:has(> .setting[open]) > .setting {
  border-top: 0;
}
.setting > summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 18px;
  -webkit-tap-highlight-color: transparent;
}
.setting > summary:hover {
  background: var(--surface-2);
}
.setting[open] > summary {
  background: var(--cream);
}
.setting > summary::after,
.setting[open] > summary::after {
  position: absolute;
  right: 16px;
}
/* 開いた中身の余白 */
.setting > :not(summary) {
  margin: 0 18px 18px;
}
.setting > :not(summary):first-of-type,
.setting > summary + * {
  margin-top: 16px;
}

/* ------------------------------------------------------------------
   選んだ項目がなめらかに移動するアニメーション
   消える項目の高さをフェードと同時に 0 まで縮めるので、選んだ項目が自然に上へ移動する。
   戻るときは高さが広がりながらフェードインする。
------------------------------------------------------------------ */
/* 何を決めますか？：行の高さを grid-template-rows（1fr ⇔ 0fr）で縮める */
.kind-list .kind-item {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  max-height: none;
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    grid-template-rows 0.32s ease,
    display 0.32s allow-discrete;
}
.kind-list .kind-item > .kind-card {
  min-height: 0;
}
@starting-style {
  .kind-list .kind-item {
    opacity: 0;
    grid-template-rows: minmax(0, 0fr);
  }
}
#kind-date:checked ~ .kind-picker .kind-list .kind-item:not(.kind-item-date),
#kind-choice:checked ~ .kind-picker .kind-list .kind-item:not(.kind-item-choice),
#kind-both:checked ~ .kind-picker .kind-list .kind-item:not(.kind-item-both) {
  grid-template-rows: minmax(0, 0fr);
  max-height: none;
}

/* 設定：閉じている項目（見出し1行分）の高さを 0 まで縮める */
.setting:not([open]) {
  max-height: 70px;
  overflow: hidden;
}
.setting {
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    max-height 0.32s ease,
    display 0.32s allow-discrete;
}
@starting-style {
  .setting:not([open]) {
    max-height: 0;
  }
}
.settings:has(> .setting[open]) > .setting:not([open]) {
  max-height: 0;
}
@media (prefers-reduced-motion: reduce) {
  .kind-list .kind-item,
  .setting {
    transition: none;
  }
}

/* 作成直後の幹事用URLの案内（黄色の共有の枠の外） */
.admin-url {
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------
   参加者用ページ：みんなの回答
   見出しは白い背景の上。日程・どれが良い？・コメントは、それぞれ別のティールのブロック
------------------------------------------------------------------ */
.answers {
  gap: 16px;
}
.answers-section {
  gap: 16px;
  background: var(--teal);
  padding: 20px;
  border-radius: 22px;
  color: #fff;
}
.answers-section > .sub-section-title,
.answers-section > .leading,
.answers-section > .leading b,
.answers-section > .muted,
.answers-section .csv-link {
  color: var(--ink);
}
.answers-section .csv-link:hover {
  opacity: 0.85;
}
/* 白いカードの中は通常の文字色 */
.answers-section .matrix-wrap,
.answers-section .accordion,
.answers-section .comments li {
  color: var(--ink);
}
.answers-section .flip-label {
  color: var(--blue);
}

/* ------------------------------------------------------------------
   参加者用ページ（回答する・回答の詳細をみる）と FAQ のアコーディオンは、
   幹事メニュー向けに調整した .accordion の影響を受けないよう、元の形（角丸・余白）を保つ
------------------------------------------------------------------ */
.accordion-primary > summary,
.answers-section .accordion > summary,
.faq .accordion > summary {
  padding-left: 22px;
  padding-right: 22px;
}
.answers-section .accordion-plain {
  border: 1px solid var(--line);
}
.answers-section .accordion-plain > .accordion-body {
  padding: 18px;
}

/* 参加者用ページ・FAQのアコーディオンは、開閉どちらも角丸 22px にそろえる */
.accordion-primary,
.accordion-primary[open],
.answers-section .accordion,
.answers-section .accordion[open],
.answers-section .accordion-plain,
.answers-section .accordion-plain[open],
.faq .accordion,
.faq .accordion[open] {
  border-radius: 22px;
}
/* 表の角丸もそろえる */
.matrix-wrap {
  border-radius: 22px;
}

/* 催促メッセージを作る：参加者ページの「回答の詳細をみる」と同じ見た目（細いグレーの枠・角丸22px・＋） */
.reminder-acc,
.reminder-acc[open] {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: none;
}
.reminder-acc > summary {
  padding-left: 22px;
  padding-right: 22px;
  margin-bottom: 0;
}
.reminder-acc[open] > summary {
  margin-bottom: 0;
}
.reminder-acc > .accordion-body {
  padding: 18px;
}

/* ヘッダー右側の移動ボタン（参加者用ページ ⇔ 幹事用ページ）。幅は文字に合わせる */
.site-header {
  justify-content: space-between;
  gap: 12px;
}
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: var(--blue-fill);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  /* ロゴは中央のまま、ボタンは右端に重ねる */
  position: absolute;
  right: 16px;
  top: 50%;
  translate: 0 -50%;
}
/* 狭い画面では中央のロゴに重なるので、ロゴを左に寄せてボタンと横に並べる */
@media (max-width: 520px) {
  .sheet > .site-header:has(.header-link) {
    justify-content: space-between;
  }
  .site-header:has(.header-link) .logo-img {
    height: 46px;
  }
  .header-link {
    position: static;
    translate: none;
  }
}
.header-link:hover {
  background: color-mix(in srgb, var(--blue-fill) 88%, black);
}
.header-link-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* 設定：右端は → / ✕ ではなく、ほかのアコーディオンと同じ ＋ / － */
.setting > summary::after,
.setting[open] > summary::after {
  content: '＋';
  width: auto;
  height: auto;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink-2);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.setting[open] > summary::after {
  content: '－';
}

/* ＋ / － のアコーディオン（催促メッセージを作る・回答の詳細をみる・FAQ など）：
   設定と同じく、ホバーで見出しを薄いグレー、開いたら淡い青にする（黄色の「回答する」とアイコン付きの項目は除く） */
.accordion:not(.accordion-primary):not(.next-card) > summary {
  transition: background-color 0.15s ease;
}
.accordion:not(.accordion-primary):not(.next-card) > summary:hover {
  background: var(--surface-2);
}
.answers-section .accordion-plain
.accordion:not(.accordion-primary):not(.next-card)[open] > summary {
  background: var(--cream);
}

/* 「別の端末から変更するには」は本文と同じ色 */
.edit-url-help > summary {
  color: var(--ink);
}

/* ------------------------------------------------------------------
   何を決めますか？：選んだボタンの枠の中に入力欄を続けて表示する
   （入力欄は .kind-picker の中に移したので、出し分けも .kind-picker の中で行う）
------------------------------------------------------------------ */
.kind-body {
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 20px 18px 22px;
}
#kind-date:checked ~ .kind-picker .kind-body,
#kind-choice:checked ~ .kind-picker .kind-body,
#kind-both:checked ~ .kind-picker .kind-body {
  display: flex;
}
#kind-date:checked ~ .kind-picker .kind-common,
#kind-choice:checked ~ .kind-picker .kind-common,
#kind-both:checked ~ .kind-picker .kind-common,
#kind-date:checked ~ .kind-picker .kind-date,
#kind-both:checked ~ .kind-picker .kind-date,
#kind-choice:checked ~ .kind-picker .kind-choice,
#kind-both:checked ~ .kind-picker .kind-choice {
  display: flex !important;
}
@starting-style {
  .kind-body {
    opacity: 0;
  }
}
.kind-body {
  transition: opacity 0.32s ease;
}

/* ------------------------------------------------------------------
   何を決めますか？・次に決めることを追加：丸の中の記号を ＋（開く）／－（閉じる）にする
   丸の形と色はそのまま
------------------------------------------------------------------ */
.kind-card::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 6.5v9M6.5 11h9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
#kind-date:checked ~ .kind-picker .kind-card-date::after,
#kind-choice:checked ~ .kind-picker .kind-card-choice::after,
#kind-both:checked ~ .kind-picker .kind-card-both::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11h9' fill='none' stroke='%23156fc6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 決めごとの種類のアイコン（SVG）。文中では文字と同じ大きさ・色で並べる */
.kind-svg {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  flex: none;
}
/* 丸の中に置くとき（何を決めますか？・次に決めることを追加） */
.kind-icon .kind-svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
  vertical-align: middle;
}
/* 文中のアイコンと文字の間を少しあける（丸の中に置くときは不要） */
.kind-svg {
  margin-right: 0.3em;
}
.kind-icon .kind-svg {
  margin-right: 0;
}

/* ------------------------------------------------------------------
   候補日：PC（広い画面）では 左＝カレンダー、右＝選んだ日程 の2カラム
------------------------------------------------------------------ */
@media (min-width: 720px) {
  .candidates.is-enhanced {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'cal status'
      'cal list';
    grid-template-rows: auto 1fr;
    column-gap: 20px;
    row-gap: 8px;
    align-items: start;
  }
  .candidates.is-enhanced > .cal {
    grid-area: cal;
  }
  .candidates.is-enhanced > .picked-status {
    grid-area: status;
  }
  .candidates.is-enhanced > .picked {
    grid-area: list;
  }
  /* 右の列は幅が狭いので、時刻の欄を少し詰める */
  .candidates.is-enhanced .picked-row {
    gap: 6px;
  }
  .candidates.is-enhanced .picked-time input[type='time'] {
    width: 70px;
    padding: 6px 8px;
  }
}

/* カレンダーの日付は列の幅に合わせて縮める（最低40pxの指定で、幅が狭いと右にはみ出していた） */
.cal-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-day {
  min-width: 0;
  min-height: 0;
}

/* 両方決めるときの「いつを決める」「どれを決める」の見出しのアイコン */
.both-heading .kind-svg {
  color: var(--blue);
  height: 34px;
  width: 34px;
  top: 3px;
  position: relative;
}

/* 選択の色に合わせる：○＝青、△＝黄（--maybe）、×・未回答＝濃いグレー */
.matrix thead .m-yes,
.answer-legend .lg-yes {
  color: var(--blue);
}
.matrix thead .m-maybe,
.answer-legend .lg-maybe {
  color: var(--maybe);
}
.matrix thead .m-no,
.matrix thead .m-unanswered,
.answer-legend .lg-no {
  color: var(--gray);
}

/* 行と列を入れ替えた表でも、一番人気の列のマスに背景色を付ける */
.matrix td.is-best {
  background: var(--cream);
}

/* 回答の詳細の ○ △ × 未 の人数：回答のボタンと同じ色 */
.tally-nums .n-yes {
  color: var(--blue);
}
.tally-nums .n-maybe {
  color: var(--maybe);
}
.tally-nums .n-no,
.tally-nums .n-none {
  color: var(--gray);
}

/* ------------------------------------------------------------------
   どれが良い？の「× いまいち」は、日程の「△ たぶん」と同じ色づかい（日程の × はグレーのまま）
------------------------------------------------------------------ */
.answer-row-choice .choice-no input:checked + span {
  border-color: var(--maybe-mark);
  background: var(--maybe-soft);
  color: var(--maybe);
}
.counts-choice .count-no {
  background: var(--maybe-soft);
  color: var(--maybe);
}
.tally-choice .tally-nums .n-no {
  color: var(--maybe);
}
.matrix-choice thead .m-no {
  color: var(--maybe);
}
.matrix-choice td.m-no {
  color: var(--maybe);
  font-weight: 800;
}

/* 回答の詳細の名前の前の記号：人数と同じ色 */
.tally-names .n-yes {
  color: var(--blue);
  font-weight: 800;
}
.tally-names .n-maybe {
  color: var(--maybe);
  font-weight: 800;
}
.tally-names .n-no,
.tally-names .n-none {
  color: var(--gray);
  font-weight: 800;
}
.tally-choice .tally-names .n-no {
  color: var(--maybe);
}

/* 選んだ日程 ◯件 の件数 */
.picked-count {
font-size: 1.4em;
font-weight: bold;
color: var(--blue);
}

/* 「◯人が回答済み」の上下の間隔を、ページの通常の間隔（32px）の半分にする */
.answer-status {
  margin: -16px 0;
}

/* 一番人気・おすすめのアイコン（🥇・🎯の代わり）。文字と同じ大きさで並べる */
.medal-svg {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.25em;
  vertical-align: -0.22em;
  color: var(--maybe-mark);
}

/* 見出しに付く決めごとのアイコン（日程・どれが良い？）：文字の1.2倍・青 */
.answer-section-title .kind-svg,
.sub-section-title .kind-svg,
.decided-banner-label .kind-svg,
.section-title .kind-svg {
  font-size: 1.2em;
  color: var(--blue);
}

/* ------------------------------------------------------------------
   ○△× の記号：public/marks/*.svg をマスクにして文字色で塗る。
   記号の文字（○△×）はHTMLに残し、見た目だけ枠の外に送って隠す
------------------------------------------------------------------ */
.mk {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 200%;
  background-color: currentColor;
  -webkit-mask: var(--mk) center / contain no-repeat;
  mask: var(--mk) center / contain no-repeat;
}
.mk-yes {
  --mk: url('/marks/yes.svg');
}
.mk-maybe {
  --mk: url('/marks/maybe.svg');
}
.mk-none {
  --mk: url('/marks/none.svg');
}
.mk-no {
  --mk: url('/marks/no.svg');
}

/* 幹事用ページのおすすめカードの中の「回答の詳細をみる」は、ホバーで色を変えない */
.rec-more .accordion.accordion-plain > summary:hover {
  background: none;
}

/* 決定後のページ：場所をGoogleマップで確認 → */
.map-link {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}
.map-link a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 場所のピン（📍の代わり）。文字と同じ高さに並べる */
.pin-svg {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.2em;
  vertical-align: -0.2em;
  color: var(--blue);
}

/* 決定後のページ：「日程調整の結果を見る」などは右寄せ・本文の色 */
.results-toggle > summary.link {
  text-align: right;
  color: var(--ink);
}

/* 自動で入った既定値（終了予定＝開始時刻）は、プレースホルダーと同じ色にする。自分で入力したら通常の色 */
input.is-default,
input.is-default::-webkit-datetime-edit {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

/* 決定後のページ：幹事用ページの決めごと（.section-panel）と同じ青い枠の中に、白いカードを置く */
.confirmed-panel {
  padding: 20px;
  border-radius: 22px;
  background: var(--teal);
}

/* 開催済みのラベルはグレー（閲覧履歴の「開催済み」と同じ） */
.confirmed-badge.is-ended {
  background: var(--no);
}

/* 開催決定の日付：年と曜日は小さく */
.confirmed-date .date-sub {
  font-size: 0.8em;
}
.confirmed-date .date-main {
  white-space: nowrap;
}

/* 共有・LINEで送る：右端の ▶ の代わりにアイコンを置く。色はボタンの文字色 */
.btn-icon {
  flex: none;
  width: 22px;
  height: 22px;
}
.share-actions .btn {
  white-space: nowrap;
}
.share-actions .btn::after {
  content: none;
}

/* 同じ日に時間違いの候補が複数あるときの数（日付の右上） */
.cal-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  pointer-events: none;
}

/* 決定後のページ：Googleカレンダーに追加する */
.calendar-btn {
  align-self: center;
  margin-top: 12px;
}
.calendar-btn .kind-svg {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0;
  color: var(--blue);
}
