@charset "UTF-8";
/* =====================================================================
   みんなの出欠表  スタイルシート
   方針: 大きく・少なく・すぐ分かる ＋ ほんの少しの楽しさ
   ===================================================================== */

:root {
  /* 色（テーマは鮮やかな青） */
  --brand:        #1665f0;
  --brand-dark:   #0b47ad;
  --brand-light:  #dfeaff;
  --brand-pale:   #f1f6ff;
  --brand-accent: #22b8ff;
  --orange:       #f59e0b;
  --orange-dark:  #d97706;
  --red:          #d64545;
  --gray-900:     #22282c;
  --gray-700:     #4a5560;
  --gray-500:     #7b8794;
  --gray-300:     #d5dbe1;
  --gray-100:     #f1f4f6;
  --white:        #ffffff;

  /* 出欠の色 */
  --yes:          #2f9e5e;
  --yes-bg:       #dff3e6;
  --maybe:        #c98a00;
  --maybe-bg:     #fdf3d8;
  --no:           #8a949d;
  --no-bg:        #eceff1;

  /* 大きさ */
  --font-base:    17px;
  --radius:       12px;
  --radius-lg:    18px;
  --tap:          48px;
  --shadow:       0 2px 10px rgba(0, 0, 0, .07);
  --shadow-lg:    0 6px 24px rgba(0, 0, 0, .12);
}

/* ── 基本 ──────────────────────────────────────────── */
* { box-sizing: border-box; }

/* display を指定した要素でも hidden 属性が効くようにする */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: var(--font-base);
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--brand-pale);
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

h1, h2, h3 { line-height: 1.35; }

.muted  { color: var(--gray-500); }
.small  { font-size: .88em; }
.center { text-align: center; }
.mono   { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.inline { display: inline; }

.big-emoji { font-size: 56px; margin: 0 0 8px; line-height: 1; }

/* ── ヘッダー ──────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand) 45%, var(--brand-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
}
.site-logo__mark { font-size: 26px; }

.site-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: 15px;
}
.site-nav a:hover { background: rgba(255, 255, 255, .3); color: var(--white); }
.site-nav__logout { background: rgba(0, 0, 0, .18) !important; }

/* ── レイアウト ────────────────────────────────────── */
.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.site-footer {
  padding: 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.panel--narrow { max-width: 620px; margin-left: auto; margin-right: auto; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.page-title  { font-size: 26px; margin: 0 0 4px; }
.section-title { font-size: 19px; margin: 0 0 10px; border-left: 6px solid var(--brand); padding-left: 10px; }
.mini-title  { font-size: 16px; margin: 16px 0 6px; color: var(--gray-700); }
.lead        { font-size: 17px; color: var(--gray-700); }
.crumb       { margin: 0 0 10px; font-size: 15px; }

.hero {
  text-align: center;
  padding: 28px 16px 8px;
}
.hero__title { font-size: 30px; margin: 0 0 6px; color: var(--brand-dark); }
.hero__lead  { color: var(--gray-700); margin: 0 0 12px; }

/* ── フラッシュメッセージ ──────────────────────────── */
.flash-area {
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 0 16px;
}
.flash {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: slide-down .25s ease;
}
.flash--success { background: var(--yes-bg);  color: #1e6b40; }
.flash--error   { background: #fdecec;        color: #9b2c2c; }
.flash--info    { background: #e8f1fb;        color: #23527c; }
.flash__icon    { font-size: 20px; line-height: 1.4; }

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ── ボタン ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover  { background: var(--gray-100); color: var(--gray-900); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  box-shadow: 0 3px 0 var(--brand-dark);
}
.btn--primary:hover { background: var(--brand-dark); color: var(--white); }
.btn--primary:active { box-shadow: 0 1px 0 var(--brand-dark); }

.btn--danger { color: var(--red); border-color: #f0c9c9; }
.btn--danger:hover { background: #fdecec; color: var(--red); }

.btn--ghost { background: transparent; border-color: transparent; color: var(--brand-dark); text-decoration: underline; }
.btn--ghost:hover { background: rgba(0, 0, 0, .04); }

.btn--sm  { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.btn--lg  { min-height: var(--tap); font-size: 18px; padding: 12px 26px; }
.btn--xl  { min-height: 60px; font-size: 21px; }
.btn--block { width: 100%; }
.btn--icon { min-height: 38px; width: 40px; padding: 0; font-size: 15px; }

/* ── フォーム ──────────────────────────────────────── */
.field { display: block; margin-bottom: 14px; }
.field--grow { flex: 1 1 220px; }
.field__label { display: block; font-size: 14px; font-weight: 700; color: var(--gray-700); margin-bottom: 4px; }
.req { color: var(--red); font-size: 12px; margin-left: 4px; }

input[type="text"], input[type="search"], input[type="password"],
input[type="date"], textarea, select {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
}
textarea { min-height: 90px; line-height: 1.6; resize: vertical; }

input:focus, textarea:focus, select:focus, .btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.stack-form .btn { margin-top: 8px; }

.row-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.row-form .field { margin-bottom: 0; }

.checkbox, .radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 16px;
}
.checkbox input, .radio input { width: 22px; height: 22px; accent-color: var(--brand); }

.form-error {
  background: #fdecec;
  border: 2px solid #f5c6c6;
  color: #9b2c2c;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 700;
}

.settings-grid { display: grid; gap: 6px; }

.bulk { margin-top: 16px; }
.bulk summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); padding: 8px 0; }

/* ── バッジ・チップ ────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-light);
  color: var(--brand-dark);
  vertical-align: middle;
}
.badge--gray  { background: var(--gray-100); color: var(--gray-500); }
.badge--guest { background: #fff3d6; color: var(--orange-dark); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 15px;
}
.pill--warn { background: #fff3d6; color: var(--orange-dark); }
.pill--gray { background: var(--gray-100); color: var(--gray-500); }

.chip {
  display: inline-block;
  margin: 3px;
  padding: 8px 14px;
  border: 2px solid var(--gray-300);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { background: var(--brand-light); border-color: var(--brand); }
.chip--link { text-decoration: none; color: var(--brand-dark); }

/* ── アバター ──────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 auto;
}
.avatar--sm { width: 28px; height: 28px; font-size: 14px; }
.avatar--lg { width: 60px; height: 60px; font-size: 26px; }

/* ── 進捗バー ──────────────────────────────────────── */
.progress {
  height: 12px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0;
}
.progress--lg { height: 18px; }
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-accent) 100%);
  border-radius: 999px;
  transition: width .6s ease;
}
.all-done { color: var(--brand-dark); font-weight: 700; margin: 4px 0; }

/* ── イベント一覧 ──────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  border-top: 6px solid var(--brand);
}
.event-card__title { font-size: 19px; margin: 0 0 6px; }
.event-card__title a { text-decoration: none; }
.event-card__meta { font-size: 14px; color: var(--gray-500); margin: 2px 0; }
.event-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.event-card__url { display: flex; gap: 6px; margin: 0; }

.url-box {
  font-size: 13px !important;
  min-height: 40px !important;
  background: var(--gray-100) !important;
  color: var(--gray-700);
}

.simple-list { padding-left: 20px; }
.simple-list li { margin: 6px 0; }

/* ── メンバー一覧 ──────────────────────────────────── */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.member-list { list-style: none; margin: 0; padding: 0; }

.member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--white);
}
.member:hover { border-color: var(--brand-light); background: var(--brand-pale); }
.member--deleted { opacity: .65; }
.member.is-dragging { opacity: .5; border-style: dashed; border-color: var(--brand); }

.member__handle { cursor: grab; color: var(--gray-500); font-size: 22px; touch-action: none; }
.member__no     { color: var(--gray-500); font-size: 14px; min-width: 26px; text-align: right; }
.member__body   { flex: 1 1 180px; display: flex; flex-direction: column; }
.member__name   { font-size: 18px; font-weight: 700; }
.member__sub    { font-size: 13px; color: var(--gray-500); }
.member__note   { font-size: 13px; color: var(--gray-500); }
.member__actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.member__edit {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-300);
}
.member__edit input { flex: 1 1 150px; }

/* ── 編集用の並び替えリスト（候補・参加者）─────────── */
.edit-list { list-style: none; margin: 0 0 10px; padding: 0; max-height: 460px; overflow-y: auto; }

.edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 6px;
  background: var(--white);
}
.edit-row:hover { border-color: var(--brand-light); }
.edit-row.is-dragging { opacity: .5; border-style: dashed; border-color: var(--brand); }
.edit-row__handle { cursor: grab; color: var(--gray-500); font-size: 20px; touch-action: none; }
.edit-row input[type="text"] { min-height: 42px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.member-picker { max-height: 220px; overflow-y: auto; padding: 4px; background: var(--gray-100); border-radius: var(--radius); }

/* ── ステップ ──────────────────────────────────────── */
.step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin: 0 0 12px;
  cursor: default;
}
.step__no {
  background: var(--gray-700);
  color: var(--white);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: .08em;
}
details > summary.step__title { cursor: pointer; }

.submit-bar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(180deg, rgba(241,246,255,0) 0%, var(--brand-pale) 40%); }

/* ── カレンダー ────────────────────────────────────── */
.calendar {
  margin-top: 12px;
  background: #fdf9ee;
  border-radius: var(--radius);
  padding: 10px;
  user-select: none;
}
.calendar__head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.calendar__nav {
  border: none;
  background: var(--white);
  border-radius: 8px;
  width: 40px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
}
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar__dow { text-align: center; font-size: 13px; color: var(--gray-500); }
.calendar__day {
  border: none;
  border-radius: 8px;
  background: #d6e6ff;
  color: #123a7a;
  min-height: 38px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.calendar__day:hover { background: var(--brand); color: var(--white); }
.calendar__day.is-today { background: #fde9b5; color: #7a5b00; }
.calendar__day.is-past  { background: var(--gray-100); color: var(--gray-500); }
.calendar__day--empty { background: transparent; cursor: default; }

/* ── 出欠表 ────────────────────────────────────────── */
.event__head {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  border-top: 8px solid var(--brand);
}
.event__title { font-size: 27px; margin: 0 0 8px; }
.event__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.event__memo {
  background: var(--brand-pale);
  border-left: 5px solid var(--brand-light);
  padding: 12px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 12px;
  color: var(--gray-700);
}

.event__table-area {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
}
.table-toolbar .field { margin-bottom: 0; min-width: 220px; }
.table-toolbar__right { display: flex; gap: 8px; flex-wrap: wrap; }

.scroll-hint { margin: 0 0 6px; }

.table-wrap {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.attend-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  background: var(--white);
}
.attend-table th, .attend-table td {
  border-right: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}

.attend-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--brand-light);
  color: var(--brand-dark);
  vertical-align: bottom;
  font-size: 14px;
}

.attend-table .col-option {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--white);
  text-align: left;
  font-weight: 700;
  min-width: 150px;
  max-width: 260px;
  white-space: normal;
}
.attend-table thead .col-option { z-index: 4; background: var(--brand-light); }

.col-count { min-width: 54px; font-weight: 700; color: var(--gray-700); background: var(--brand-pale); }
.col-count small { font-size: 11px; font-weight: 400; color: var(--gray-500); }
.col-yes   { color: var(--yes); }
.col-maybe { color: var(--maybe); }
.col-no    { color: var(--no); }

.col-person { min-width: 92px; max-width: 110px; }
.person-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--brand-dark);
  padding: 4px 2px;
  border-radius: 8px;
}
.person-link:hover { background: rgba(255, 255, 255, .8); }
.person-link__name { font-size: 13px; white-space: normal; word-break: break-word; line-height: 1.3; }

.cell { font-size: 22px; }
.cell--yes   { background: var(--yes-bg);   color: var(--yes); }
.cell--maybe { background: var(--maybe-bg); color: var(--maybe); }
.cell--no    { background: var(--no-bg);    color: var(--no); }
.cell--none  { color: var(--gray-300); }
.cell--comment {
  font-size: 12px;
  white-space: normal;
  color: var(--gray-700);
  min-width: 92px;
  text-align: left;
}
.comment-row th { background: var(--gray-100); }

.crown { font-size: 15px; }

.is-saved { background: #fff8e1 !important; }
tbody .is-saved { animation: pop-cell .7s ease; }

@keyframes pop-cell {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.is-hidden-col { display: none !important; }

.unanswered { margin-top: 12px; font-size: 15px; }

/* ── かんたん表示 ──────────────────────────────────── */
.simple-view { display: grid; gap: 12px; }
.simple-card {
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 12px;
}
.simple-card__title { margin: 0 0 8px; font-size: 18px; color: var(--brand-dark); }
.simple-card__row { margin: 4px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.simple-card__label { font-weight: 700; min-width: 110px; }
.simple-card__row--yes   .simple-card__label { color: var(--yes); }
.simple-card__row--maybe .simple-card__label { color: var(--maybe); }
.simple-card__row--no    .simple-card__label { color: var(--no); }
.simple-card__names { flex: 1 1 200px; color: var(--gray-700); }

/* ── 入力への導線 ──────────────────────────────────── */
.event__actions {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 16px;
  margin-bottom: 16px;
  text-align: center;
}

.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--brand-accent) 0%, var(--brand) 55%, var(--brand-dark) 100%);
  color: var(--white);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 0 #093a8c, var(--shadow-lg);
  transition: transform .15s ease, box-shadow .15s ease;
}
.round-btn:hover  { transform: translateY(-3px); color: var(--white); box-shadow: 0 9px 0 #093a8c, var(--shadow-lg); }
.round-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #093a8c; }

.guest-box { margin-top: 20px; text-align: left; }
.guest-box summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); padding: 10px; }
.guest-box--open { border-top: 1px dashed var(--gray-300); padding-top: 12px; }

.event__url {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
}

/* ── 名前えらび ────────────────────────────────────── */
.name-grid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.name-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-900);
  background: var(--white);
  min-height: 110px;
  justify-content: center;
  transition: transform .12s ease;
}
.name-card:hover { border-color: var(--brand); background: var(--brand-pale); transform: translateY(-2px); color: var(--gray-900); }
.name-card__name  { font-size: 17px; font-weight: 700; text-align: center; }
.name-card__state { font-size: 12px; color: var(--gray-500); }
.name-card.is-answered { border-color: var(--brand-light); background: var(--brand-pale); }
.name-card.is-answered .name-card__state { color: var(--brand-dark); font-weight: 700; }

/* ── 出欠の入力 ────────────────────────────────────── */
.who { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }

.bulk-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 16px;
}
.bulk-set__label { font-size: 14px; font-weight: 700; color: var(--gray-700); }

.answer-list { list-style: none; margin: 0; padding: 0; }

.answer-item {
  padding: 14px 0;
  border-bottom: 2px dashed var(--gray-100);
}
.answer-item__label { font-size: 19px; font-weight: 700; margin: 0 0 8px; }

.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }

.choice {
  flex: 1 1 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border: 3px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__mark { font-size: 26px; line-height: 1; }
.choice__text { font-size: 16px; }
.choice:hover { background: var(--gray-100); }

.choice--yes.is-selected   { border-color: var(--yes);   background: var(--yes-bg);   color: var(--yes); }
.choice--maybe.is-selected { border-color: var(--maybe); background: var(--maybe-bg); color: var(--maybe); }
.choice--no.is-selected    { border-color: var(--no);    background: var(--no-bg);    color: var(--no); }
.choice--none { flex: 0 1 100px; color: var(--gray-500); }
.choice--none.is-selected  { border-color: var(--gray-500); background: var(--gray-100); }
.choice.is-selected::after { content: "✔"; font-size: 15px; }
.choice.is-bounce { animation: stamp .18s ease; }

@keyframes stamp {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.save-bar {
  position: sticky;
  bottom: 0;
  padding: 12px 0 16px;
  background: linear-gradient(180deg, rgba(241,246,255,0) 0%, var(--brand-pale) 35%);
}

/* ── 紙吹雪 ────────────────────────────────────────── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ── スマートフォン ────────────────────────────────── */
@media (max-width: 768px) {
  :root { --font-base: 16px; }

  .two-col { grid-template-columns: 1fr; gap: 16px; }
  .page-title { font-size: 22px; }
  .hero__title { font-size: 24px; }
  .panel { padding: 16px 12px; }
  .site-main { padding: 12px 10px 70px; }
  .round-btn { width: 150px; height: 150px; font-size: 20px; }
  .name-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .choice { flex: 1 1 100%; }
  .choice--none { flex: 1 1 100%; }
  .table-wrap { max-height: 64vh; }
  .event-card__actions .btn { flex: 1 1 auto; }
}

/* ── 印刷 ──────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .event__actions, .event__url,
  .table-toolbar, .scroll-hint, .flash-area, .btn { display: none !important; }

  body { background: var(--white); font-size: 12px; }
  .panel, .event__head, .event__table-area { box-shadow: none; border: 1px solid #999; }
  .table-wrap { overflow: visible; max-height: none; border: none; }
  .attend-table { font-size: 11px; }
  .cell { font-size: 14px; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* ── 動きを減らす設定を尊重 ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
