:root {
  --wcu-bg: #f4ede0;
  --wcu-bg-deep: #d8d0c0;
  --wcu-surface: rgba(255, 251, 245, 0.78);
  --wcu-surface-strong: #fffdf9;
  --wcu-border: rgba(31, 43, 58, 0.12);
  --wcu-text: #1f2b3a;
  --wcu-text-soft: #52606d;
  --wcu-accent: #b24a2e;
  --wcu-accent-strong: #8f2f16;
  --wcu-shadow: 0 24px 80px rgba(38, 32, 24, 0.14);
  --wcu-radius-xl: 28px;
  --wcu-radius-lg: 20px;
  --wcu-radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html.is-lightbox-open,
html.is-lightbox-open body {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--wcu-text);
  font-family: "BIZ UDPGothic", "Yu Gothic UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(178, 74, 46, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(52, 84, 111, 0.14), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, var(--wcu-bg) 56%, var(--wcu-bg-deep) 100%);
}

.wcu-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.wcu-shell-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.wcu-shell-kicker,
.wcu-shell-panel-kicker {
  margin: 0 0 6px;
  color: var(--wcu-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wcu-shell-title,
.wcu-shell-panel-title,
.wcu-article-title,
.wcu-list-title {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
}

.wcu-shell-title {
  font-size: clamp(2.2rem, 3vw, 3.8rem);
  line-height: 1.05;
}

.wcu-shell-note {
  max-width: 36rem;
  margin: 0;
  color: var(--wcu-text-soft);
  line-height: 1.7;
}

.wcu-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.wcu-shell-tab {
  border: 1px solid rgba(31, 43, 58, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: var(--wcu-text);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.wcu-shell-tab:hover,
.wcu-shell-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(178, 74, 46, 0.28);
}

.wcu-shell-tab.is-active {
  color: #fff9f3;
  background: linear-gradient(135deg, var(--wcu-accent) 0%, var(--wcu-accent-strong) 100%);
  border-color: transparent;
}

.wcu-shell-main {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

body[data-wcu-display-mode="single-region"] .wcu-shell-main {
  grid-template-columns: minmax(0, 1fr);
}

body[data-wcu-display-mode="single-region"][data-wcu-view="list"] .wcu-shell-panel-article {
  display: none;
}

body[data-wcu-display-mode="single-region"][data-wcu-view="article"] .wcu-shell-panel-list {
  display: none;
}

.wcu-shell-panel {
  border: 1px solid var(--wcu-border);
  border-radius: var(--wcu-radius-xl);
  padding: 24px;
  background: var(--wcu-surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--wcu-shadow);
}

.wcu-shell-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.wcu-shell-panel-header.is-back-only {
  justify-content: flex-end;
  margin-bottom: 12px;
}

.wcu-shell-back-button {
  display: none;
  border: 1px solid rgba(31, 43, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--wcu-text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

body[data-wcu-display-mode="single-region"] .wcu-shell-back-button {
  display: inline-flex;
}

.wcu-shell-panel-title {
  font-size: clamp(1.5rem, 2vw, 2.15rem);
}

.wcu-shell-status,
.wcu-shell-empty {
  border-radius: var(--wcu-radius-md);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--wcu-text-soft);
  line-height: 1.7;
}

.wcu-shell-empty[hidden] {
  display: none;
}

.wcu-shell-slot {
  min-height: 140px;
}

.wcu-list-items-standard,
.wcu-list-items-headline {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.wcu-list-item-standard,
.wcu-list-item-headline {
  list-style: none;
  border-radius: var(--wcu-radius-lg);
  border: 1px solid rgba(31, 43, 58, 0.08);
  background: var(--wcu-surface-strong);
  padding: 18px;
}

.wcu-list-link {
  color: inherit;
  text-decoration: none;
}

.wcu-list-link:hover,
.wcu-list-link:focus-visible {
  color: var(--wcu-accent-strong);
}

.wcu-list-item-headline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.wcu-list-title {
  font-size: 1.18rem;
  line-height: 1.35;
}

.wcu-list-date {
  margin: 8px 0 0;
  color: var(--wcu-text-soft);
  font-size: 0.94rem;
}

.wcu-list-summary {
  margin-top: 12px;
  color: var(--wcu-text-soft);
  line-height: 1.7;
}

.wcu-list-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.wcu-list-page-link,
.wcu-list-page-status {
  border-radius: 999px;
  padding: 10px 14px;
}

.wcu-list-page-link {
  text-decoration: none;
  border: 1px solid rgba(31, 43, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
}

.wcu-list-page-link.is-disabled {
  opacity: 0.5;
}

.wcu-list-page-status {
  color: var(--wcu-text-soft);
  background: rgba(255, 255, 255, 0.62);
}

.wcu-event-calendar {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.wcu-event-calendar-header {
  display: grid;
  gap: 10px;
}

.wcu-event-calendar-title {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.42rem;
  font-weight: 700;
  color: #425260;
  text-align: left;
}

.wcu-event-calendar-header .wcu-shell-panel-kicker {
  font-size: 0.78rem;
}

.wcu-event-calendar-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wcu-event-calendar-nav-button {
  min-width: 72px;
  min-height: 36px;
  border: 1px solid rgba(142, 35, 38, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #7a2428;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.wcu-event-calendar-nav-button:hover,
.wcu-event-calendar-nav-button:focus-visible {
  background: rgba(142, 35, 38, 0.06);
}

.wcu-event-calendar-month {
  margin: 0;
  min-width: 8rem;
  text-align: center;
  font-weight: 700;
  color: #425260;
}

.wcu-event-calendar-weekdays,
.wcu-event-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

.wcu-event-calendar-weekday {
  padding: 0;
  text-align: center;
  color: #425260;
  font-size: 0.82rem;
}

.wcu-event-calendar-grid {
  gap: 6px;
}

.wcu-event-calendar-day {
  min-height: 58px;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 2px;
  padding: 4px;
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--wcu-border);
}

.wcu-event-calendar-day.is-outside {
  opacity: 0.45;
}

.wcu-event-calendar-day.is-has-event,
.wcu-event-calendar-day.is-today {
  border-color: rgba(142, 35, 38, 0.45);
  background: rgba(142, 35, 38, 0.06);
}

.wcu-event-calendar-day-header {
  display: flex;
  justify-content: flex-end;
  color: inherit;
}

.wcu-event-calendar-items {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
}

.wcu-event-calendar-item {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #5d1619;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-width: 0;
}

.wcu-shell-panel-list {
  min-width: 0;
}

.wcu-event-calendar-item:hover,
.wcu-event-calendar-item:focus-visible {
  background: transparent;
  color: #7a2428;
}

.wcu-event-calendar-item-title {
  font-weight: 700;
  line-height: 1.25;
}

.wcu-event-calendar-item-place {
  display: none;
}

.wcu-event-calendar-empty {
  margin: 0;
  color: #425260;
}

.wcu-event-calendar.is-compact {
  gap: 10px;
}

.wcu-event-calendar.is-compact .wcu-event-calendar-title {
  font-size: 1rem;
}

.wcu-event-calendar.is-compact .wcu-event-calendar-day {
  min-height: 58px;
  padding: 4px;
}

.wcu-event-calendar.is-compact .wcu-event-calendar-item {
  padding: 0;
}

.wcu-event-calendar.is-compact .wcu-event-calendar-item-title {
  font-size: 0.72rem;
}

.wcu-event-calendar-item-overflow {
  display: block;
  color: #425260;
  font-size: 0.72rem;
  padding: 0;
}

.wcu-article {
  display: grid;
  gap: 20px;
}

.wcu-article[tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}

.wcu-article:focus {
  outline: none;
  box-shadow: none;
}

.wcu-article-page .wcu-article + .wcu-article {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 43, 58, 0.12);
}

.wcu-article-header {
  display: grid;
  gap: 8px;
}

.wcu-article-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.15;
}

.wcu-article-date {
  margin: 0;
  color: var(--wcu-text-soft);
}

.wcu-article-view-switch {
  display: flex;
  justify-content: flex-start;
}

.wcu-article-view-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 43, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--wcu-text);
  text-decoration: none;
}

.wcu-article-view-switch-link:hover,
.wcu-article-view-switch-link:focus-visible {
  color: var(--wcu-accent-strong);
  border-color: rgba(31, 43, 58, 0.16);
}

.wcu-article-content {
  line-height: 1.9;
}

.wcu-article[data-wcu-category="greeting"] .wcu-article-images {
  order: 2;
  grid-template-columns: 1fr;
}

.wcu-article[data-wcu-category="greeting"] .wcu-article-content {
  order: 3;
}

.wcu-article-meta-row {
  margin: 0;
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 10px;
  align-items: baseline;
  color: var(--wcu-text-soft);
}

.wcu-article-meta-label {
  font-weight: 700;
  color: var(--wcu-accent-strong);
}

.wcu-article-meta-value {
  color: var(--wcu-text);
}

.wcu-article-lead-media {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #efe7d8;
  box-shadow: inset 0 0 0 1px rgba(31, 43, 58, 0.08);
}

.wcu-article-image-link-lead {
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.wcu-article-image-link-lead .wcu-article-image {
  width: 100%;
  height: auto;
  max-height: min(52vh, 520px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.wcu-article-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.wcu-article-image-link {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #efe7d8;
  box-shadow: inset 0 0 0 1px rgba(31, 43, 58, 0.08);
}

.wcu-article-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.wcu-article-image-link:hover .wcu-article-image,
.wcu-article-image-link:focus-visible .wcu-article-image {
  transform: scale(1.03);
}

.wcu-greeting-photo {
  margin: 0;
  display: grid;
  gap: 8px;
}

.wcu-greeting-photo-image {
  display: block;
  width: 66.67%;
  max-width: 66.67%;
  margin-inline: auto;
  height: auto;
  border-radius: 18px;
  background: #efe7d8;
  box-shadow: inset 0 0 0 1px rgba(31, 43, 58, 0.08);
}

.wcu-greeting-photo-caption {
  margin: 0;
  color: var(--wcu-text-soft);
  font-size: 1.08rem;
  line-height: 1.5;
  text-align: center;
}

.wcu-article-adjacent {
  display: flex;
  flex-wrap: wrap;
  order: 99;
  gap: 16px;
  margin-top: 10px;
}

.wcu-article-adjacent-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 43, 58, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--wcu-text);
  text-decoration: none;
}

.wcu-article-adjacent-link:hover,
.wcu-article-adjacent-link:focus-visible {
  border-color: rgba(142, 35, 38, 0.28);
  color: var(--wcu-accent-strong);
}

.wcu-article-adjacent-label {
  color: var(--wcu-text-soft);
  white-space: nowrap;
}

.wcu-article-adjacent-title {
  font-weight: 700;
}

.wcu-lightbox[hidden] {
  display: none;
}

.wcu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.wcu-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 22, 0.78);
  backdrop-filter: blur(8px);
}

.wcu-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(92vw, 1280px);
  height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
}

.wcu-lightbox-figure {
  margin: 0;
  display: grid;
  gap: 14px;
}

.wcu-lightbox-image {
  width: 100%;
  max-height: calc(100vh - 164px);
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.wcu-lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #f7efe6;
}

.wcu-lightbox-close,
.wcu-lightbox-nav {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.18);
  color: #fff8f0;
  cursor: pointer;
}

.wcu-lightbox-close {
  position: absolute;
  top: 22px;
  right: 0;
  width: 52px;
  height: 52px;
  font-size: 2rem;
}

.wcu-lightbox-nav {
  width: 58px;
  height: 58px;
  font-size: 2.1rem;
}

.wcu-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 1024px) {
  .wcu-shell-header {
    align-items: start;
    flex-direction: column;
  }

  .wcu-shell-panel-header {
    flex-direction: column;
  }

  .wcu-shell-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wcu-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 20px;
  }

  .wcu-shell-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .wcu-event-calendar-header {
    align-items: start;
    flex-direction: column;
  }

  .wcu-event-calendar-nav {
    width: 100%;
    justify-content: space-between;
  }

  .wcu-event-calendar-nav-button {
    min-width: 56px;
  }

  .wcu-event-calendar-month {
    min-width: 0;
  }

  .wcu-event-calendar-grid {
    gap: 6px;
  }

  .wcu-event-calendar-day {
    min-height: 58px;
    padding: 4px;
  }

  .wcu-event-calendar-item {
    padding: 0;
  }

  .wcu-lightbox-dialog {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    width: min(94vw, 1280px);
    padding: 72px 0 20px;
  }

  .wcu-lightbox-figure {
    width: 100%;
  }

  .wcu-lightbox-nav {
    position: absolute;
    bottom: 32px;
  }

  .wcu-lightbox-nav-prev {
    left: 16px;
  }

  .wcu-lightbox-nav-next {
    right: 16px;
  }

  .wcu-lightbox-meta {
    flex-direction: column;
    gap: 6px;
  }
}