/* 指示24：カレンダー内だけの配色・レイアウト。本文・他ページを変更しません。 */
.calendar-section { padding: 56px 0; }
.calendar-section .wrap > h2 { margin: 0 0 22px; color: #D4A947; font-size: 26px; line-height: 1.8; font-weight: 400; letter-spacing: .12em; }
.association-calendar {
  --cal-text: #E8E3D8;
  --cal-muted: #CFC8B8;
  --cal-past: #BDB5A8;
  --cal-type-text: #D4A947;
  --cal-row: #121C2E;
  --cal-line: #A8823F;
  --cal-training: #A8823F;
  --cal-motsu: #7D8460;
  --cal-other: #9C5B3E;
  color: var(--cal-text);
  width: 100%; min-width: 0; margin: 24px 0 40px;
  font-family: "Shippori Mincho", "游明朝", YuMincho, "ヒラギノ明朝 ProN", serif;
}
body.earth-theme .association-calendar {
  --cal-text: #3B2F25; --cal-muted: #6B5A48; --cal-past: #6B5A48; --cal-row: #F3ECDF; --cal-type-text: #8A6A22;
}
.association-calendar *, .association-calendar *::before, .association-calendar *::after { box-sizing: border-box; }
.association-calendar .calendar-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.association-calendar .calendar-month-title { margin: 0; color: var(--cal-text) !important; font: 400 26px/1.6 "Shippori Mincho", "游明朝", YuMincho, serif; letter-spacing: .06em; text-align: center; }
.association-calendar .calendar-month-button {
  border: 1px solid var(--cal-line); color: var(--cal-text) !important; background: transparent;
  font: inherit; font-size: 16px; line-height: 1.6; padding: 9px 14px; min-height: 44px; cursor: pointer;
}
.association-calendar .calendar-month-button:hover { background: rgba(168, 130, 63, .12); }
.association-calendar .calendar-month-button:disabled { opacity: .5; cursor: default; }
.association-calendar button:focus-visible, .association-calendar .calendar-day-group:focus-visible { outline: 2px solid var(--cal-line); outline-offset: 3px; }
.association-calendar .calendar-state { margin: 0 0 16px; color: var(--cal-muted) !important; font-size: 16px; line-height: 1.8; }
.association-calendar .calendar-grid { table-layout: fixed; border-collapse: collapse; width: 100%; margin: 0; background: #F3ECDF; color: #3B2F25; }
.association-calendar .calendar-grid th { padding: 10px 0; font-weight: 400; font-size: 16px; color: #3B2F25 !important; border: 1px solid #DCCBAF; text-align: center; }
.association-calendar .calendar-grid td { width: calc(100% / 7); padding: 0; border: 1px solid #DCCBAF; vertical-align: top; }
.association-calendar .calendar-grid th.calendar-sunday, .association-calendar .calendar-sunday .calendar-day-number { color: #9C5B3E !important; }
.association-calendar .calendar-grid th.calendar-saturday, .association-calendar .calendar-saturday .calendar-day-number { color: #7D8460 !important; }
.association-calendar .calendar-date {
  display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; min-width: 0; min-height: 114px;
  padding: 8px 3px; color: #3B2F25 !important; background: transparent; border: 0; border-radius: 0; font: inherit; text-align: center;
}
.association-calendar button.calendar-date { cursor: pointer; }
.association-calendar button.calendar-date:hover, .association-calendar button.calendar-date[aria-pressed="true"] { background: #E9DFCD; }
.association-calendar .calendar-day-number { display: inline-grid; place-items: center; width: 1.85em; height: 1.85em; border: 1px solid transparent; border-radius: 50%; font-size: 20px; line-height: 1; color: #3B2F25 !important; }
.association-calendar .calendar-date.is-today .calendar-day-number { border-color: #A8823F; }
.association-calendar .calendar-date.is-past-date .calendar-day-number { opacity: .74; }
.association-calendar .calendar-outside { background: #E9DFCD; }
.association-calendar .calendar-day-marks { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.association-calendar .calendar-day-mark { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: #3B2F25 !important; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.association-calendar .calendar-dot { display: inline-block; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--cal-other); }
.association-calendar .category-training .calendar-dot { background: var(--cal-training); }
.association-calendar .category-motsu .calendar-dot { background: var(--cal-motsu); }
.association-calendar .calendar-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 12px 0 30px; color: var(--cal-muted); font-size: 15px; }
.association-calendar .calendar-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.association-calendar .calendar-list-title { margin: 18px 0 12px; color: var(--cal-text) !important; font-size: 22px; font-weight: 400; line-height: 1.7; letter-spacing: .08em; }
.association-calendar .calendar-day-group { margin: 0 0 24px; scroll-margin-top: 110px; }
.association-calendar .calendar-list-date { margin: 0 0 12px; color: var(--cal-text) !important; font-size: 20px; font-weight: 400; line-height: 1.8; letter-spacing: .04em; }
.association-calendar .calendar-event-row { margin: 0 0 12px; padding: 22px 24px; border: 1px solid rgba(168, 130, 63, .52); background: var(--cal-row); transition: background-color .3s ease; }
.association-calendar .calendar-event-type { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--cal-type-text) !important; font-size: 16px; font-weight: 400; line-height: 1.8; }
.association-calendar .calendar-event-title { margin: 0 0 10px; color: var(--cal-text) !important; font-size: 22px; line-height: 1.8; font-weight: 400; letter-spacing: .04em; overflow-wrap: anywhere; }
.association-calendar .calendar-detail { color: inherit !important; text-underline-offset: .22em; }
.association-calendar .calendar-event-summary { margin: 0 0 16px; color: var(--cal-text) !important; font-size: 18px; line-height: 2; max-width: none; white-space: pre-line; overflow-wrap: anywhere; }
.association-calendar .calendar-event-row.is-past .calendar-event-title, .association-calendar .calendar-event-row.is-past .calendar-event-summary, .association-calendar .calendar-event-row.is-past .calendar-event-type { color: var(--cal-past) !important; }
.association-calendar .calendar-event-row.is-past { border-color: rgba(168, 130, 63, .3); }
.association-calendar .calendar-event-row.is-past .calendar-dot { opacity: .6; }
.association-calendar .calendar-day-highlight .calendar-event-row { background: #253044; border-color: #A8823F; }
body.earth-theme .association-calendar .calendar-day-highlight .calendar-event-row { background: #E9DFCD; }
.association-calendar .calendar-add { max-width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid #9C5B3E; background: #9C5B3E; color: #FFFFFF !important; font: inherit; font-size: 16px; line-height: 1.6; cursor: pointer; white-space: normal; }
.association-calendar .calendar-add:hover { background: #844C34; }
.association-calendar .calendar-download-status { margin: 8px 0 0; font-size: 15px; line-height: 1.8; color: var(--cal-muted) !important; }
.association-calendar .calendar-download-status:empty { display: none; }
.association-calendar .calendar-empty { color: var(--cal-muted) !important; font-size: 18px; line-height: 2; }
@media (max-width: 640px) {
  .association-calendar { margin: 18px 0 28px; }
  .association-calendar .calendar-controls { gap: 5px; }
  .association-calendar .calendar-month-title { font-size: 20px; letter-spacing: .02em; }
  .association-calendar .calendar-month-button { padding: 8px 7px; font-size: 14px; }
  .association-calendar .calendar-date { min-height: 94px; padding: 5px 1px; gap: 3px; }
  .association-calendar .calendar-day-number { font-size: 18px; }
  .association-calendar .calendar-day-mark { font-size: 11px; gap: 3px; }
  .association-calendar .calendar-dot { width: 4px; height: 4px; }
  .association-calendar .calendar-legend { gap: 8px 12px; font-size: 14px; }
  .association-calendar .calendar-event-row { padding: 18px 14px; }
  .association-calendar .calendar-event-title { font-size: 20px; }
  .association-calendar .calendar-event-type { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .association-calendar .calendar-event-row { transition: none; }
}
