/* yurubo のスタイル。
   考え方：朝の空気のような、あたたかい紙の色の地に、深い緑を1色。強調は「行くかも」の黄だけ。
   スマホ幅（390px 前後）を基準にし、広い画面では中央に寄せる。 */
:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #efece3;
  --fg: #1c2420;
  --muted: #5f6a64;
  --line: #e2ded2;
  --accent: #0f6b4f;
  --accent-strong: #0b5440;
  --accent-soft: #e3f0e9;
  --accent-fg: #ffffff;
  --sun: #ffe9b8;
  --sun-fg: #6b4a00;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --sat: #1f5fbf;
  --sun-day: #c2362b;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(28, 36, 32, 0.05), 0 4px 14px rgba(28, 36, 32, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  font-feature-settings: "palt";
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid rgba(15, 107, 79, 0.35);
  outline-offset: 2px;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0.25rem 0 0.75rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.25rem 0 0.5rem;
}

p {
  margin: 0.75em 0;
}

.muted {
  color: var(--muted);
}

.pre {
  white-space: pre-wrap;
}

.break {
  overflow-wrap: anywhere;
}

/* ---- ヘッダー・フッター ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

/* しるし：緑の丸に、朝日のような黄の点 */
.site-mark {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
}

.site-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f5b83d;
  border: 2px solid var(--bg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
  min-width: 0;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.site-nav a.account {
  max-width: 7.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 4px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-strong);
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 72px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px 44px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.site-footer .footer-legal {
  margin: 14px 0 0;
  font-size: 0.78rem;
}

.site-footer .footer-legal a {
  color: var(--muted);
}

/* 問い合わせ：埋め込んだ Google フォーム */
.contact-form {
  display: block;
  width: 100%;
  height: 1750px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

/* ヘッダー：運営のユーザーにだけ出す入り口 */
.site-nav a.admin-link {
  padding: 4px 9px;
  border: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* 運営の画面の上の切り替え */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 14px;
  padding: 6px 8px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.88rem;
}

.admin-nav-label {
  margin-right: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.admin-nav a {
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
}

.admin-nav a[aria-current="page"] {
  background: var(--accent);
  color: #ffffff;
}

/* 運営トップのカード */
.admin-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--fg);
}

.admin-card-todo {
  border-left: 4px solid #e2a200;
}

.admin-card-title {
  font-size: 1.05rem;
}

.admin-card-line {
  font-size: 0.9rem;
}

.admin-card-note {
  font-size: 0.8rem;
}

/* 取り返しのつかない操作へのリンク（ボタンの形と、文字だけの形） */
a.button.danger {
  background: var(--danger, #b3261e);
  border-color: var(--danger, #b3261e);
  color: #ffffff;
}

a.danger-link {
  color: var(--danger, #b3261e);
}

/* 運営の画面：通報への対応の並び */
.mod-actions {
  margin: 8px 0;
  align-items: center;
}

/* Google カレンダーに登録するリンク */
.calendar-link {
  margin: 8px 0 0;
  font-size: 0.88rem;
}

/* お知らせの一覧：未読は左に線を付け、既読は薄くする */
.notice-all {
  text-align: right;
  margin: 0 0 6px;
}

.item-list li.notice-unread {
  border-left: 3px solid #e2a200;
  padding-left: 12px;
}

.item-list li.notice:not(.notice-unread) strong a,
.item-list li.notice:not(.notice-unread) .comment-body {
  color: var(--muted);
  font-weight: 500;
}

/* お知らせのベル（ヘッダーの右端）。新しいお知らせがあるあいだは、黄色く塗って件数を出す（動かさない） */
.site-nav a.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-left: 2px;
  border: 1px solid transparent;
  color: var(--muted);
}

/* 新しいお知らせあり：「行くかも」と同じ黄色 */
.site-nav a.bell-on,
.site-nav a.bell-on[aria-current="page"] {
  background: #f9cf6b;
  border-color: #e2a200;
  color: #3a2c00;
}

.site-nav a.bell-on svg path:first-child {
  fill: #ffffff;
}

.bell-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: #c62f2f;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

/* そのままコピーして使う文字（URL など） */
.copy-text {
  user-select: all;
  word-break: break-all;
  font-size: 0.9rem;
}

/* 運営の画面：広告の内容の変更の申し込み */
.ad-change {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* 集合場所の地図 */
.map-embed {
  display: block;
  width: 100%;
  height: 260px;
  margin: 10px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.9rem;
}

/* 広告の枠（一覧に1つだけ）。募集のカードとは違う見た目にして、「広告」と出す */
.ad-slot {
  margin: 1.25rem 0;
}

.ad-slot > a,
.ad-slot > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--fg);
  text-decoration: none;
}

.ad-slot > a:hover strong {
  text-decoration: underline;
}

.ad-slot .ad-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
}

.ad-slot .ad-domain {
  font-size: 0.75rem;
  color: var(--muted);
}

.ad-slot .ad-report {
  margin: 4px 2px 0;
  text-align: right;
  font-size: 0.72rem;
}

.ad-slot .ad-report a {
  color: var(--muted);
}

.ad-slot .ad-text {
  flex-basis: 100%;
  font-size: 0.88rem;
  color: var(--muted);
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inline-form input,
.inline-form select {
  width: auto;
  min-width: 0;
}

.input-narrow {
  max-width: 7em;
}

/* 規約などの読みもの */
.prose {
  max-width: 44rem;
  line-height: 1.85;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.05rem;
}

.prose li {
  margin: 0.35em 0;
}

.prose .rule-list dt {
  margin-top: 0.9em;
  font-weight: 700;
}

.prose .rule-list dd {
  margin: 0.15em 0 0;
  color: var(--muted);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 4px;
}

.breadcrumb a {
  color: var(--muted);
}

/* ---- ボタン ---- */

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 8px 20px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

button:active,
.button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.button-secondary,
.button-outline,
button.button-secondary {
  background: var(--surface);
  color: var(--accent-strong);
  border-color: #b9d3c7;
}

.button-secondary:hover,
.button-outline:hover,
button.button-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

button.danger {
  background: var(--danger);
  border-color: var(--danger);
}

.link-button,
.link-button:hover {
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--accent);
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button.danger,
.link-button.danger:hover {
  color: var(--danger);
  background: none;
}

form.inline {
  display: inline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

div.actions,
p.actions {
  margin: 1em 0;
}

/* ---- フォーム ---- */

.form {
  display: grid;
  gap: 18px;
  margin: 16px 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
legend {
  font-weight: 700;
  font-size: 0.9rem;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  font: inherit;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--fg);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.15);
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--accent);
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--danger);
}

.hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.error {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--danger);
}

.error-summary {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 600;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 16px 16px;
  display: grid;
  gap: 12px;
}

legend {
  padding: 0 6px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.checks label,
label.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: normal;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: start;
}

/* 広い画面では、フォームの送信ボタンを横いっぱいにしない */
@media (min-width: 600px) {
  .form > button[type="submit"],
  .form section.step > button[type="submit"] {
    justify-self: start;
    min-width: 200px;
  }
}

/* 開閉できる入力欄（プロフィールの種目・記録、くり返しの設定など） */
details.records {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 16px;
}

details.records summary {
  cursor: pointer;
  font-weight: 700;
}

details.records[open] > summary {
  margin-bottom: 12px;
}

.records-body {
  display: grid;
  gap: 14px;
}

/* プロフィール：ほかの種目はまとめてたたむ。中の種目は地の色にして一段下げる */
.more-sports .records {
  background: var(--bg);
}

.more-sports > summary {
  color: var(--accent-strong);
}

/* ---- お知らせ・メモ ---- */

.notice {
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.note {
  white-space: pre-wrap;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.review {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- 印（バッジ）・チップ・タブ ---- */

.badge {
  display: inline-block;
  justify-self: start;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--muted);
  white-space: nowrap;
}

.badge-open {
  background: var(--accent);
  color: var(--accent-fg);
}

.badge-closed {
  background: #3b423e;
  color: #ffffff;
}

/* まだ募集が始まっていない（始まる日を決めた募集） */
.badge-soon {
  background: #f1ead9;
  color: #6b5a2a;
}

.badge.sport-bike {
  background: #e0ecfb;
  color: #1c4f93;
}

.badge.sport-run {
  background: #fde7d8;
  color: #9a4410;
}

/* 名前のすぐ後ろの印（代表・主催など）とのすき間 */
a + .badge,
strong + .badge,
span + .badge {
  margin-left: 6px;
}

.card-tags .badge {
  margin: 0;
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0.75em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.chip-list a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0;
  overflow-x: auto;
}

.tabs a {
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.tabs a.active {
  background: var(--fg);
  color: #ffffff;
}

/* ---- 一覧 ---- */

.plain-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.item-list {
  list-style: none;
  padding: 0 16px;
  margin: 0.75em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.item-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.item-list li:last-child {
  border-bottom: none;
}

.item-list .inline {
  margin-left: 8px;
  font-size: 0.85rem;
}

.comment-body {
  white-space: pre-wrap;
  margin: 4px 0 0;
}

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin: 12px 2px 0;
  font-size: 0.92rem;
}

/* ---- カード ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.cards-wide {
  grid-template-columns: 1fr;
  gap: 10px;
}

.card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* 終わった・中止した募集のカード：全体を薄くせず、地の色に沈める（開催報告は読めるままにする） */
.card-closed {
  background: var(--bg);
  box-shadow: none;
}

.card-closed .date-block {
  background: var(--surface-2);
  color: var(--muted);
}

.card-closed .date-time,
.card-closed .card-title {
  color: var(--muted);
}

.card-title {
  font-size: 1.02rem;
  line-height: 1.45;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.card-place {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}

.going-count {
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--sun-fg);
  font-weight: 700;
}

/* 募集のカード：左に日付の欄、右に内容 */
.event-card {
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}

.card-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.date-block {
  display: grid;
  justify-items: center;
  padding: 8px 2px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  color: var(--accent-strong);
  line-height: 1.25;
}

.date-year {
  font-size: 0.65rem;
}

.date-md {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.date-dow {
  font-size: 0.75rem;
  font-weight: 700;
}

.date-time {
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg);
}

.dow-6 .date-dow {
  color: var(--sat);
}

.dow-0 .date-dow {
  color: var(--sun-day);
}

.event-facts {
  list-style: none;
  padding: 0;
  margin: 2px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
  margin-bottom: 4px;
}

/* ---- トップ ---- */

/* 冒頭の帯：見出しと英語の一言だけ（ボタンは下の入り口に置く） */
.hero {
  margin: 0 0 8px;
  padding: 28px 22px 26px;
  border-radius: 20px;
  background: linear-gradient(150deg, #0f6b4f 0%, #0b5440 70%, #0a4a39 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* 朝日 */
.hero::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #f9cf6b 0%, #f5b83d 60%, rgba(245, 184, 61, 0) 72%);
  opacity: 0.9;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 12px;
}

/* 英語の一言（飾り） */
.hero .hero-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #f9cf6b;
}

/* 入り口（ゆるぼ・チーム）：スマホでは縦に2枚、広い画面では横に2枚。
   何ができるかを言葉で書き、どちらにも「探す」「募集する」を同じ形で並べる */
.entries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  margin: 12px 0 0;
}

.entries .entry {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px;
}

.entry:hover {
  transform: none;
  border-color: var(--line);
}

.entry .entry-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.entry h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--fg);
}

/* 説明は、文ごとに1行（幅が変わっても、2つの入り口で行の数がそろう） */
.entry .entry-text span {
  display: block;
}

.entry .entry-text {
  margin: 4px 0 14px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}

.entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.entry-actions .button {
  min-height: 44px;
  padding: 6px 4px;
  font-size: 0.92rem;
}

/* 広い画面でも左ぞろえのまま、文字と余白だけ大きくする */
@media (min-width: 600px) {
  .hero {
    padding: 44px 40px 40px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .entries {
    grid-template-columns: 1fr 1fr;
  }
}

/* トップ・探す画面の一覧の見出し */
.feed > h2 {
  margin-top: 1.75rem;
}

.feed > .muted {
  font-size: 0.85rem;
  margin-top: -0.25rem;
}

/* ---- 募集ページ ---- */

.event-head h1 {
  margin: 8px 0 4px;
}

.event-when {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-strong);
  margin: 0;
}

.event-host {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.avatar-large {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.stat-tiles > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
}

.stat-tiles dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.stat-tiles dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.series-line {
  font-size: 0.9rem;
}

.specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  margin: 16px 0;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.specs dt,
.specs dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.specs dt {
  padding-right: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.95;
}

.specs dt:last-of-type,
.specs dd:last-of-type {
  border-bottom: none;
}

/* 「行くかも」の欄：このページでいちばん目立たせる */
.going-panel {
  margin: 20px 0;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--sun);
  background: linear-gradient(180deg, #fff3d6 0%, #ffe9b8 100%);
  border: 1px solid #f1d590;
}

.going-panel h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.going-panel .muted {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #5d5236;
}

.going-panel .form {
  margin: 0;
}

.going-panel fieldset {
  border-color: #ecd9a4;
}

.going-on {
  font-weight: 700;
  color: var(--accent-strong);
}

/* ---- ユーザーのページ ---- */

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.profile-head h1 {
  margin: 0;
}

.profile-head p {
  margin: 0;
  font-size: 0.85rem;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  gap: 8px;
}

.stats li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--muted);
}

.stats strong {
  font-size: 1.1rem;
  color: var(--fg);
}

.current-user {
  color: var(--muted);
}

.danger-zone {
  margin-top: 48px;
}

.danger-zone h2 {
  color: var(--danger);
}

/* ---- 写真 ---- */

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.photos img,
.photo-edit img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
}

.photo-edit {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* ---- 対話式の募集作成（wizard.js が動くときだけ1段ずつ見せる） ---- */

.step-question {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.wizard-on section.step {
  display: none;
}

.wizard-on section.step.step-active {
  display: grid;
  gap: 18px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wizard-on .step-question {
  font-size: 1.35rem;
  margin: 0;
}

.step-count {
  justify-self: start;
  margin: 0;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.step-nav {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.step-nav button:only-child {
  margin-left: auto;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button.chip {
  min-height: 40px;
  padding: 6px 14px;
  background: var(--surface);
  border-color: #b9d3c7;
  color: var(--accent-strong);
  font-weight: 600;
}

button.chip:hover {
  background: var(--accent-soft);
}

button.chip.chip-on,
button.chip.chip-on:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.recent-list {
  margin-bottom: 24px;
}

.recent-list h2 {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.event-head {
  margin-top: 10px;
}

/* 見出しのすぐ下の説明（エリアの市区町村の並びなど）は小さめに */
h1 + p.muted {
  margin-top: -0.25rem;
  font-size: 0.85rem;
}

/* 日付の候補（平日を含む2週間）：1週間を1行にして、曜日が縦にそろうように並べる */
.chips-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 4px;
}

button.chip.chip-day {
  display: grid;
  justify-items: center;
  gap: 0;
  min-height: 52px;
  padding: 6px 0;
  border-radius: var(--radius-s);
  font-size: 0.8rem;
  line-height: 1.3;
}

.chip-day small {
  font-size: 0.72rem;
  color: var(--muted);
}

.chip-day.dow-6 small {
  color: var(--sat);
}

.chip-day.dow-0 small {
  color: var(--sun-day);
}

.chip-day.chip-on small {
  color: inherit;
}

.footer-tagline {
  margin: 4px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

/* ---- 開催報告 ---- */

.report-panel {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.report-panel h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.report-panel img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-s);
  margin-bottom: 8px;
}

.report-panel p {
  margin: 0.5em 0 0;
}

.report-prompt {
  margin: 16px 0;
  padding: 14px 16px;
}

.report-prompt p {
  margin: 0 0 10px;
}

.report-prompt ul {
  margin: 0;
  padding-left: 1.2em;
}

.card-report {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  padding-left: 8px;
  border-left: 3px solid var(--accent-soft);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--fg);
}

.photo-edit li {
  display: grid;
  gap: 4px;
}

/* ---- チームの練習会（体験参加OK） ---- */

.badge-trial {
  background: var(--sun);
  color: var(--sun-fg);
}

.team-line {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

/* 全項目を1画面に並べるフォーム（複製・練習会）でも、段の中の項目の間をあける */
section.step {
  display: grid;
  gap: 16px;
}

/* ---- 通報・ブロック（ページのいちばん下に控えめに） ---- */

.safety-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.safety-links a,
.safety-links .link-button,
.comment-report {
  color: var(--muted);
}

.comment-report {
  font-size: 0.78rem;
}

/* 探す画面のいちばん下に置く「作る」へのリンク */
.create-link {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* 自分が主催の募集・自分が代表のチーム：左に緑の線と印を付ける */
.card-mine {
  border-left: 4px solid var(--accent);
}

.badge-mine {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid #b9d3c7;
}

/* 印のすぐ後ろに太字が続くとき（通報の確認など）のすき間 */
.badge + strong {
  margin-left: 6px;
}

/* スマホ幅：ヘッダーの項目が増えても1行に収まるよう、すき間を詰める（運営のユーザーは「運営」が1つ多い） */
@media (max-width: 430px) {
  .site-header {
    padding-left: 12px;
    padding-right: 10px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 6px 7px;
  }

  .site-nav a.account {
    padding: 6px 10px;
    margin-left: 2px;
  }

  .site-nav a.admin-link {
    padding: 3px 6px;
    margin-left: 3px;
  }

  .site-nav a.bell {
    width: 32px;
    margin-left: 0;
  }
}
