:root {
  color-scheme: light;
  --bg: #f3f5f1;
  --surface: #ffffff;
  --surface-soft: #f8f9f6;
  --surface-deep: #e8eee9;
  --ink: #1e2825;
  --muted: #6f7b76;
  --line: #dde4df;
  --brand: #1f5148;
  --brand-dark: #163c35;
  --brand-soft: #dcece6;
  --coral: #e97f62;
  --coral-soft: #fbe8e2;
  --amber: #c98a29;
  --amber-soft: #fff3dc;
  --blue: #5577a5;
  --blue-soft: #e8eff9;
  --danger: #c75555;
  --shadow: 0 12px 38px rgba(30, 55, 47, 0.08);
  --shadow-soft: 0 4px 14px rgba(30, 55, 47, 0.06);
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 264px;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--brand-dark);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 20px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px 14px 14px 5px;
  background: rgba(255, 255, 255, 0.1);
  font-family: serif;
  font-size: 21px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  letter-spacing: 0.18em;
  font-size: 14px;
}

.brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.community-switcher {
  margin: 0 16px 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-switcher > .eyebrow {
  color: rgba(255, 255, 255, 0.48);
}

.community-button {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.community-button strong,
.community-button small {
  display: block;
}

.community-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.community-button small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.community-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  background: var(--coral);
  font-weight: 700;
}

.main-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 14px;
  scrollbar-width: thin;
}

.nav-section-title {
  margin: 18px 12px 7px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  margin: 2px 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-item.is-active {
  box-shadow: inset 3px 0 var(--coral);
}

.nav-icon {
  display: grid;
  width: 18px;
  flex: 0 0 18px;
  place-items: center;
  font-size: 15px;
}

.nav-badge {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
  font-size: 9px;
}

.sidebar-footer {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-meter {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.13);
}

.plan-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.plan-meter strong {
  color: rgba(255, 255, 255, 0.84);
}

.meter {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter span {
  display: block;
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.profile-card {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px 4px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card strong {
  font-size: 11px;
}

.profile-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
}

.avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.avatar--coral {
  background: var(--coral-soft);
  color: #ae553f;
}

.avatar--blue {
  background: var(--blue-soft);
  color: #476991;
}

.avatar--amber {
  background: var(--amber-soft);
  color: #966715;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(20, 34, 30, 0.42);
  backdrop-filter: blur(4px);
}

.app-main {
  min-height: 100vh;
  margin-left: 264px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 32px;
  border-bottom: 1px solid rgba(211, 220, 214, 0.9);
  background: rgba(243, 245, 241, 0.86);
  backdrop-filter: blur(18px);
}

.topbar-start,
.topbar-actions {
  display: flex;
  align-items: center;
}

.topbar-start {
  gap: 12px;
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.topbar-actions {
  gap: 9px;
}

.global-search {
  display: flex;
  width: min(290px, 30vw);
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.global-search kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font: inherit;
  font-size: 9px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  font-size: 17px;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--coral);
}

.mobile-menu {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 81, 72, 0.16);
}

.button--primary:hover {
  background: var(--brand-dark);
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button--soft {
  background: var(--brand-soft);
  color: var(--brand);
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

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

main#app {
  width: min(1460px, 100%);
  margin: 0 auto;
  padding: 28px 32px 64px;
  outline: 0;
}

.page-stack {
  display: grid;
  gap: 22px;
}

.page-toolbar,
.section-header,
.card-header,
.split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.page-toolbar {
  align-items: flex-end;
}

.page-toolbar h2,
.section-header h2,
.card-header h2,
.card-header h3 {
  margin: 0;
}

.page-toolbar h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.page-toolbar p,
.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.toolbar-actions,
.segmented,
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.segmented button {
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.segmented button.is-active {
  background: var(--brand);
  color: #fff;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card-pad {
  padding: 20px;
}

.card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.card-header h2 {
  font-size: 14px;
}

.card-header h3 {
  font-size: 13px;
}

.card-header a,
.text-link {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.welcome-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 30px;
  border: 0;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.welcome-card::before,
.welcome-card::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.welcome-card::before {
  right: -75px;
  bottom: -125px;
  width: 330px;
  height: 330px;
}

.welcome-card::after {
  right: 55px;
  bottom: -120px;
  width: 240px;
  height: 240px;
}

.welcome-card .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.welcome-card h2 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 12px 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.25;
}

.welcome-card p {
  position: relative;
  z-index: 1;
  max-width: 550px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.8;
}

.welcome-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.welcome-card .button--primary {
  background: var(--coral);
}

.welcome-card .button--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.next-event-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: #fffaf6;
}

.date-tile {
  display: grid;
  width: 54px;
  height: 58px;
  place-items: center;
  border-radius: 15px;
  background: var(--coral-soft);
  color: #a9513c;
}

.date-tile small,
.date-tile strong {
  display: block;
  text-align: center;
}

.date-tile small {
  margin-bottom: -8px;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.date-tile strong {
  font-size: 22px;
}

.next-event-card h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.event-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  color: var(--muted);
  font-size: 10px;
}

.attendance-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 17px;
}

.attendance-button {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.attendance-button.is-active[data-status="参加"] {
  border-color: #a7d4c5;
  background: var(--brand-soft);
  color: var(--brand);
}

.attendance-button.is-active[data-status="未定"] {
  border-color: #efd49c;
  background: var(--amber-soft);
  color: #8c641a;
}

.attendance-button.is-active[data-status="欠席"] {
  border-color: #ebc1c1;
  background: #fbeaea;
  color: #aa4a4a;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 17px;
}

.stat-icon,
.quick-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.stat-card:nth-child(2) .stat-icon {
  background: var(--coral-soft);
  color: #ae553f;
}

.stat-card:nth-child(3) .stat-icon {
  background: var(--amber-soft);
  color: #966715;
}

.stat-card:nth-child(4) .stat-icon {
  background: var(--blue-soft);
  color: #476991;
}

.stat-card strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.stat-card span {
  color: var(--muted);
  font-size: 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
}

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

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row-main {
  min-width: 0;
  flex: 1;
}

.list-row-main strong,
.list-row-main span,
.list-row-main small {
  display: block;
}

.list-row-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  white-space: nowrap;
}

.list-row-main span,
.list-row-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-deep);
  color: var(--brand);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill--coral,
.tag--coral {
  background: var(--coral-soft);
  color: #a9513c;
}

.status-pill--amber,
.tag--amber {
  background: var(--amber-soft);
  color: #8b6115;
}

.status-pill--blue,
.tag--blue {
  background: var(--blue-soft);
  color: #476991;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 15px;
}

.quick-action {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.quick-action:hover {
  border-color: #b7cac1;
  background: var(--brand-soft);
}

.quick-icon {
  width: 33px;
  height: 33px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.calendar-card {
  overflow: hidden;
}

.calendar-head,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.calendar-head span {
  padding: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.calendar-day {
  min-height: 106px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-muted {
  background: #fafbf9;
  color: #b2bab6;
}

.calendar-day.is-today .day-number {
  background: var(--brand);
  color: #fff;
}

.day-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}

.calendar-event {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 5px 6px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.is-coral {
  background: var(--coral-soft);
  color: #a9513c;
}

.agenda-list {
  display: grid;
  gap: 10px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.agenda-date {
  padding-top: 2px;
  color: var(--coral);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.agenda-date small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.agenda-item h3 {
  margin: 0;
  font-size: 11px;
}

.agenda-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.chat-layout {
  display: grid;
  min-height: calc(100vh - 148px);
  grid-template-columns: 270px minmax(0, 1fr);
  overflow: hidden;
}

.chat-rooms {
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.chat-room {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.chat-room.is-active {
  background: var(--brand-soft);
}

.chat-room > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.chat-room strong,
.chat-room small {
  display: block;
}

.chat-room strong {
  font-size: 10px;
}

.chat-room small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.chat-panel-header {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.chat-panel-header h2 {
  margin: 0;
  font-size: 13px;
}

.chat-panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #fbfcfa;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
}

.message.is-me {
  flex-direction: row-reverse;
}

.message-body {
  max-width: min(620px, 76%);
}

.message-name {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
}

.message.is-me .message-name {
  text-align: right;
}

.message-bubble {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px;
  background: #fff;
  font-size: 10px;
  line-height: 1.65;
}

.message.is-me .message-bubble {
  border-color: var(--brand);
  border-radius: 14px 4px 14px 14px;
  background: var(--brand);
  color: #fff;
}

.message-time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.message.is-me .message-time {
  text-align: right;
}

.chat-compose {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-compose input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--surface-soft);
  font-size: 10px;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
}

.board-card {
  padding: 18px;
}

.board-card + .board-card {
  margin-top: 10px;
}

.board-card h3 {
  margin: 9px 0 7px;
  font-size: 14px;
}

.board-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  width: 27px;
  height: 27px;
  margin-left: -7px;
  border: 2px solid #fff;
  border-radius: 9px;
  font-size: 8px;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.compact-card {
  padding: 17px;
}

.compact-card h3 {
  margin: 0 0 12px;
  font-size: 12px;
}

.category-list {
  display: grid;
  gap: 6px;
}

.category-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.category-button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.todo-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.todo-column {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #eef1ed;
}

.todo-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px 11px;
}

.todo-column-header h3 {
  margin: 0;
  font-size: 11px;
}

.todo-column-header span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.todo-card {
  margin-bottom: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(30, 55, 47, 0.04);
}

.todo-card:last-child {
  margin-bottom: 0;
}

.todo-card h4 {
  margin: 8px 0 10px;
  font-size: 10px;
  line-height: 1.55;
}

.todo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}

.todo-move {
  padding: 3px 5px;
  border: 0;
  border-radius: 5px;
  background: var(--surface-soft);
  cursor: pointer;
  color: var(--muted);
}

.mail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.mail-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.mail-row:last-child {
  border-bottom: 0;
}

.mail-row h3 {
  margin: 0;
  font-size: 11px;
}

.mail-row p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row time {
  color: var(--muted);
  font-size: 8px;
}

.delivery-meter {
  padding: 20px;
}

.delivery-meter strong {
  display: block;
  margin-top: 8px;
  font-size: 27px;
}

.delivery-meter p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 9px;
}

.delivery-meter .meter {
  height: 7px;
  background: var(--surface-deep);
}

.delivery-meter .meter span {
  width: 36%;
  background: var(--brand);
}

.survey-grid,
.location-grid,
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.survey-card,
.location-card,
.group-card {
  padding: 18px;
}

.survey-card h3,
.location-card h3,
.group-card h3 {
  margin: 11px 0 7px;
  font-size: 13px;
}

.survey-card p,
.location-card p,
.group-card p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.survey-progress {
  height: 6px;
  margin: 15px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-deep);
}

.survey-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.survey-actions,
.location-actions,
.group-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.survey-actions span,
.group-footer span {
  color: var(--muted);
  font-size: 8px;
}

.bookmark-table,
.accounting-table,
.member-table {
  width: 100%;
  border-collapse: collapse;
}

.bookmark-table th,
.bookmark-table td,
.accounting-table th,
.accounting-table td,
.member-table th,
.member-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  text-align: left;
}

.bookmark-table th,
.accounting-table th,
.member-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.bookmark-table tr:last-child td,
.accounting-table tr:last-child td,
.member-table tr:last-child td {
  border-bottom: 0;
}

.bookmark-title,
.member-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.favicon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.member-name strong,
.member-name small {
  display: block;
}

.member-name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.announcement-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px;
  background: var(--brand-soft);
}

.announcement-hero h2 {
  margin: 8px 0 6px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.announcement-hero p {
  max-width: 700px;
  margin: 0;
  color: #577068;
  font-size: 10px;
  line-height: 1.8;
}

.location-visual {
  position: relative;
  height: 130px;
  overflow: hidden;
  border-radius: 13px;
  background:
    linear-gradient(45deg, rgba(31, 81, 72, 0.06) 25%, transparent 25%) 0 0 / 26px 26px,
    linear-gradient(-45deg, rgba(31, 81, 72, 0.06) 25%, transparent 25%) 0 13px / 26px 26px,
    #edf3ef;
}

.location-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 50% 7px;
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-soft);
  transform: translate(-50%, -60%) rotate(-45deg);
}

.location-pin span {
  transform: rotate(45deg);
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.finance-card {
  padding: 18px;
}

.finance-card span {
  color: var(--muted);
  font-size: 9px;
}

.finance-card strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.finance-card small {
  display: block;
  margin-top: 5px;
  color: var(--brand);
  font-size: 8px;
}

.amount-income {
  color: var(--brand);
  font-weight: 700;
}

.amount-expense {
  color: var(--danger);
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.settings-nav {
  align-self: start;
  padding: 10px;
  position: sticky;
  top: 100px;
}

.settings-nav button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.settings-nav button.is-active,
.settings-nav button:hover {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.settings-stack {
  display: grid;
  gap: 14px;
}

.settings-section {
  padding: 20px;
}

.settings-section h2 {
  margin: 0 0 4px;
  font-size: 14px;
}

.settings-section > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 9px;
}

.setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.setting-row strong,
.setting-row small {
  display: block;
}

.setting-row strong {
  font-size: 10px;
}

.setting-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.switch {
  position: relative;
  width: 38px;
  height: 21px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cdd5d0;
  cursor: pointer;
  transition: 160ms ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  content: "";
  transition: 160ms ease;
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(17px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field > span {
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #85aa9e;
  box-shadow: 0 0 0 3px rgba(31, 81, 72, 0.08);
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 24px;
}

.empty-state h2 {
  margin: 0;
  font-size: 15px;
}

.empty-state p {
  max-width: 440px;
  margin: 7px auto 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.app-dialog {
  width: min(600px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(24, 48, 42, 0.26);
}

.app-dialog::backdrop {
  background: rgba(21, 37, 33, 0.52);
  backdrop-filter: blur(5px);
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}

.dialog-header {
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.dialog-body {
  padding: 20px;
}

.dialog-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.dialog-error {
  min-height: 1em;
  margin: 0 auto 0 0;
  color: var(--danger);
  font-size: 9px;
}

[hidden] {
  display: none !important;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 260px;
  max-width: 380px;
  padding: 12px 14px;
  border: 1px solid #bad0c7;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 10px;
  animation: toast-in 180ms ease both;
}

.toast strong {
  color: var(--brand);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .content-grid,
  .calendar-layout,
  .board-layout,
  .mail-layout {
    grid-template-columns: 1fr;
  }

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

  .survey-grid,
  .location-grid,
  .group-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-layout > aside,
  .board-layout > aside,
  .mail-layout > aside {
    order: -1;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .settings-nav button {
    width: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 12px 16px;
  }

  .global-search,
  .notification-button {
    display: none;
  }

  .topbar-create {
    width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 0;
  }

  .topbar-create span {
    font-size: 17px;
  }

  main#app {
    padding: 20px 15px 50px;
  }

  .page-toolbar,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
    overflow-x: auto;
  }

  .welcome-card {
    padding: 24px;
  }

  .welcome-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .stat-grid,
  .survey-grid,
  .location-grid,
  .group-grid,
  .finance-summary,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .todo-columns {
    grid-template-columns: 86vw 86vw 86vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .todo-column {
    scroll-snap-align: start;
  }

  .chat-layout {
    min-height: 620px;
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .chat-room {
    justify-content: center;
    padding: 11px 8px;
  }

  .chat-room > span:nth-child(2),
  .chat-room > .nav-badge {
    display: none;
  }

  .messages {
    padding: 14px 10px;
  }

  .calendar-card {
    overflow-x: auto;
  }

  .calendar-head,
  .calendar-grid {
    min-width: 720px;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .bookmark-table,
  .accounting-table,
  .member-table {
    min-width: 660px;
  }

  .announcement-hero {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   V3 — ENISHI visual refinement
   ========================================================= */

:root {
  --bg: #f3f5f1;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #f7f9f6;
  --surface-deep: #e7ede9;
  --ink: #17221f;
  --muted: #73807a;
  --line: rgba(29, 66, 57, 0.11);
  --brand: #1e5a4d;
  --brand-dark: #102f29;
  --brand-soft: #dfeee8;
  --coral: #f0785c;
  --coral-soft: #fce9e3;
  --amber-soft: #f9f0dc;
  --blue-soft: #e7eef8;
  --shadow: 0 24px 65px rgba(27, 59, 50, 0.11);
  --shadow-soft: 0 8px 25px rgba(27, 59, 50, 0.065);
  --radius-lg: 24px;
  --radius-md: 17px;
  font-family: Inter, Avenir, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 2%, rgba(240, 120, 92, 0.09), transparent 28rem),
    radial-gradient(circle at 30% 100%, rgba(75, 139, 119, 0.08), transparent 34rem),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background-image: radial-gradient(rgba(23, 56, 48, 0.16) 0.55px, transparent 0.55px);
  background-size: 18px 18px;
  pointer-events: none;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

::selection {
  background: rgba(240, 120, 92, 0.22);
  color: var(--brand-dark);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(30, 90, 77, 0.23);
  background-clip: padding-box;
}

.sidebar {
  inset: 12px auto 12px 12px;
  width: 268px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 27px;
  background:
    radial-gradient(circle at 18% -10%, rgba(110, 186, 157, 0.24), transparent 17rem),
    linear-gradient(160deg, #193f37 0%, #102e28 58%, #0b241f 100%);
  box-shadow: 0 24px 60px rgba(15, 43, 36, 0.22);
}

.sidebar::before {
  position: absolute;
  top: -70px;
  right: -90px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.brand {
  position: relative;
  padding: 25px 24px 21px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50% 50% 50% 10px;
  background: linear-gradient(145deg, #ff9174, #e6684c);
  box-shadow: 0 10px 24px rgba(220, 88, 57, 0.28);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 19px;
}

.brand-mark::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  content: "";
}

.brand strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.brand span {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.community-switcher {
  position: relative;
  margin: 0 14px 13px;
  padding: 14px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.community-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffd5c9;
  font-size: 12px;
}

.main-nav {
  position: relative;
  padding: 2px 10px 15px;
}

.nav-section-title {
  margin: 18px 14px 7px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.nav-item {
  gap: 10px;
  min-height: 40px;
  margin: 3px 0;
  padding: 8px 11px;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateX(2px);
}

.nav-item.is-active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(2, 22, 17, 0.2);
}

.nav-item.is-active::after {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.nav-item.is-active .nav-badge {
  margin-left: auto;
}

.nav-icon {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  transition: 160ms ease;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.nav-item.is-active .nav-icon {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav-badge {
  min-width: 20px;
  margin-left: auto;
  padding: 3px 6px;
  background: var(--coral);
  color: #fff;
  text-align: center;
}

.sidebar-footer {
  position: relative;
  padding: 14px;
  border-top-color: rgba(255, 255, 255, 0.07);
  background: rgba(5, 24, 19, 0.13);
}

.plan-meter {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.14);
}

.profile-card {
  padding-inline: 5px;
}

.profile-card:hover {
  opacity: 0.82;
}

.app-main {
  margin-left: 292px;
}

.topbar {
  min-height: 88px;
  padding: 15px 38px 12px;
  border-bottom: 0;
  background: linear-gradient(to bottom, rgba(243, 245, 241, 0.96), rgba(243, 245, 241, 0.76));
  backdrop-filter: blur(22px) saturate(140%);
}

.topbar h1 {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.055em;
}

.topbar .eyebrow {
  color: var(--coral);
  letter-spacing: 0.18em;
}

.global-search {
  width: min(310px, 29vw);
  padding: 10px 13px;
  border-color: rgba(29, 66, 57, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 18px rgba(29, 66, 57, 0.04);
  transition: 180ms ease;
}

.global-search:focus-within {
  width: min(340px, 32vw);
  border-color: rgba(30, 90, 77, 0.24);
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 66, 57, 0.08);
}

.icon-button {
  border-color: rgba(29, 66, 57, 0.09);
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(29, 66, 57, 0.045);
}

.button {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 13px;
  font-size: 10px;
  letter-spacing: 0.015em;
}

.button--primary {
  background: linear-gradient(135deg, #286f5f, #174b40);
  box-shadow: 0 10px 24px rgba(28, 84, 71, 0.2);
}

.button--primary:hover {
  box-shadow: 0 14px 28px rgba(28, 84, 71, 0.26);
}

main#app {
  padding: 20px 38px 72px;
}

.page-stack {
  gap: 20px;
  animation: page-enter 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

.page-toolbar h2 {
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.055em;
}

.page-toolbar p,
.section-header p {
  color: #82908a;
  line-height: 1.7;
}

.card {
  border-color: rgba(29, 66, 57, 0.085);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 8px 25px rgba(27, 59, 50, 0.052);
  backdrop-filter: blur(10px);
  transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.card:hover {
  border-color: rgba(29, 66, 57, 0.13);
  box-shadow: 0 14px 38px rgba(27, 59, 50, 0.075);
}

.card-header {
  min-height: 60px;
  padding: 17px 20px;
  border-bottom-color: rgba(29, 66, 57, 0.075);
}

.card-header h2,
.card-header h3 {
  font-weight: 750;
  letter-spacing: -0.02em;
}

.welcome-card {
  min-height: 240px;
  padding: 34px;
  background:
    radial-gradient(circle at 87% 23%, rgba(255, 255, 255, 0.16), transparent 5rem),
    linear-gradient(135deg, #225f52 0%, #18483e 44%, #102f29 100%);
  box-shadow: 0 28px 65px rgba(24, 71, 60, 0.22);
}

.welcome-card::before {
  right: -65px;
  bottom: -140px;
  width: 380px;
  height: 380px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.025),
    0 0 0 75px rgba(255, 255, 255, 0.018);
}

.welcome-card::after {
  right: 110px;
  bottom: -125px;
  width: 210px;
  height: 210px;
  border-color: rgba(240, 120, 92, 0.36);
}

.welcome-card h2 {
  max-width: 600px;
  margin-top: 14px;
  font-size: clamp(29px, 3.5vw, 43px);
  font-weight: 680;
  letter-spacing: -0.065em;
}

.welcome-card p {
  color: rgba(255, 255, 255, 0.68);
}

.welcome-card .button--primary {
  background: linear-gradient(135deg, #ff9174, #e8684c);
  box-shadow: 0 12px 25px rgba(211, 82, 51, 0.25);
}

.next-event-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 110% -10%, rgba(240, 120, 92, 0.14), transparent 13rem),
    rgba(255, 252, 249, 0.96);
}

.next-event-card::after {
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 90px;
  height: 90px;
  border: 18px solid rgba(240, 120, 92, 0.055);
  border-radius: 50%;
  content: "";
}

.date-tile {
  border: 1px solid rgba(221, 99, 72, 0.1);
  border-radius: 17px;
  background: linear-gradient(145deg, #fff0eb, #f9dfd7);
  box-shadow: 0 9px 20px rgba(193, 86, 62, 0.09);
}

.stat-grid {
  gap: 13px;
}

.stat-card {
  position: relative;
  min-height: 84px;
  align-items: center;
  padding: 18px;
  overflow: hidden;
}

.stat-card::after {
  position: absolute;
  top: 16px;
  right: -7px;
  width: 34px;
  height: 34px;
  border: 8px solid rgba(30, 90, 77, 0.035);
  border-radius: 50%;
  content: "";
}

.stat-icon,
.quick-icon {
  border-radius: 13px;
  background: linear-gradient(145deg, #e7f2ee, #d7e9e2);
}

.stat-card strong {
  font-size: 24px;
  font-weight: 720;
}

.quick-action {
  min-height: 94px;
  border-color: transparent;
  background: #f7f9f6;
  transition: 180ms ease;
}

.quick-action:hover {
  border-color: rgba(30, 90, 77, 0.1);
  background: #edf5f1;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(27, 59, 50, 0.07);
}

.list-row {
  transition: background 150ms ease;
}

.list-row:hover,
.bookmark-table tbody tr:hover,
.accounting-table tbody tr:hover,
.member-table tbody tr:hover {
  background: rgba(223, 238, 232, 0.28);
}

.status-pill,
.tag {
  padding: 5px 9px;
  letter-spacing: 0.025em;
}

.segmented {
  border-color: rgba(29, 66, 57, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}

.segmented button.is-active {
  background: linear-gradient(135deg, #286f5f, #174b40);
  box-shadow: 0 5px 12px rgba(28, 84, 71, 0.16);
}

.attendance-button {
  border-color: rgba(29, 66, 57, 0.09);
  border-radius: 10px;
  transition: 140ms ease;
}

.attendance-button:hover {
  transform: translateY(-1px);
}

.calendar-card,
.chat-layout {
  box-shadow: 0 15px 45px rgba(27, 59, 50, 0.075);
}

.calendar-head {
  background: linear-gradient(to bottom, #f7f9f6, #f2f6f3);
}

.calendar-day {
  border-color: rgba(29, 66, 57, 0.07);
}

.calendar-day:hover {
  background: #fbfdfa;
}

.calendar-event {
  border-left: 2px solid var(--brand);
  border-radius: 5px 8px 8px 5px;
}

.calendar-event.is-coral {
  border-left-color: var(--coral);
}

.chat-rooms {
  background: linear-gradient(to bottom, #f7f9f6, #f1f5f2);
}

.chat-room {
  border-bottom-color: rgba(29, 66, 57, 0.065);
}

.chat-room.is-active {
  background: rgba(223, 238, 232, 0.82);
  box-shadow: inset 3px 0 var(--brand);
}

.messages {
  background:
    radial-gradient(circle at 85% 0, rgba(240, 120, 92, 0.035), transparent 20rem),
    #fbfcfa;
}

.message-bubble {
  border-color: rgba(29, 66, 57, 0.08);
  box-shadow: 0 5px 15px rgba(27, 59, 50, 0.045);
}

.message.is-me .message-bubble {
  background: linear-gradient(135deg, #286f5f, #174b40);
  box-shadow: 0 8px 18px rgba(28, 84, 71, 0.17);
}

.todo-column {
  border-color: rgba(29, 66, 57, 0.065);
  background: rgba(232, 237, 233, 0.72);
}

.todo-card {
  border-color: rgba(29, 66, 57, 0.075);
  box-shadow: 0 6px 16px rgba(27, 59, 50, 0.05);
  transition: 180ms ease;
}

.todo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(27, 59, 50, 0.08);
}

.survey-card,
.location-card,
.group-card,
.board-card {
  position: relative;
  overflow: hidden;
}

.survey-card::after,
.group-card::after {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(30, 90, 77, 0.035);
  content: "";
}

.location-visual {
  height: 142px;
  background:
    linear-gradient(33deg, rgba(30, 90, 77, 0.055) 25%, transparent 25%) 0 0 / 30px 30px,
    linear-gradient(-33deg, rgba(240, 120, 92, 0.045) 25%, transparent 25%) 0 15px / 30px 30px,
    linear-gradient(145deg, #eef5f1, #e7eeea);
}

.finance-card {
  position: relative;
  overflow: hidden;
}

.finance-card::after {
  position: absolute;
  right: -25px;
  bottom: -40px;
  width: 100px;
  height: 100px;
  border: 16px solid rgba(30, 90, 77, 0.035);
  border-radius: 50%;
  content: "";
}

.settings-nav {
  border-radius: 19px;
}

.settings-nav button {
  border-radius: 10px;
  transition: 140ms ease;
}

.settings-section {
  border-radius: 21px;
}

.field input,
.field select,
.field textarea,
.chat-compose input {
  min-height: 42px;
  border-color: rgba(29, 66, 57, 0.12);
  border-radius: 12px;
  background: rgba(248, 250, 247, 0.9);
  transition: 160ms ease;
}

.field textarea {
  min-height: 108px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-compose input:focus {
  border-color: rgba(30, 90, 77, 0.42);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 90, 77, 0.075);
}

.app-dialog {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 35px 100px rgba(15, 45, 37, 0.3);
  backdrop-filter: blur(22px);
}

.dialog-header {
  padding: 21px 23px;
  background: linear-gradient(to bottom, rgba(247, 250, 248, 0.95), rgba(255, 255, 255, 0.65));
}

.dialog-body {
  padding: 23px;
}

.dialog-footer {
  padding: 17px 23px;
}

.toast {
  border-color: rgba(30, 90, 77, 0.15);
  border-radius: 15px;
  box-shadow: 0 18px 50px rgba(27, 59, 50, 0.16);
}

@media (max-width: 900px) {
  .sidebar {
    inset: 10px auto 10px 10px;
    transform: translateX(calc(-100% - 20px));
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .topbar {
    padding-inline: 22px;
  }
}

@media (max-width: 680px) {
  body::before {
    opacity: 0.18;
  }

  .topbar {
    min-height: 74px;
    padding: 10px 15px;
  }

  .topbar h1 {
    font-size: 19px;
  }

  main#app {
    padding: 16px 14px 50px;
  }

  .welcome-card {
    min-height: 250px;
    padding: 25px;
  }

  .next-event-card {
    min-height: 225px;
  }

  .card {
    border-radius: 19px;
  }
}

/* =========================================================
   V4 — UTAGE reference tone: navy / orange / yellow / green
   ========================================================= */

:root {
  --bg: #fffdf7;
  --surface: #ffffff;
  --surface-soft: #fff9e4;
  --surface-deep: #f4efcf;
  --ink: #29294f;
  --muted: #72728b;
  --line: rgba(35, 39, 97, 0.14);
  --brand: #242865;
  --brand-dark: #181c50;
  --brand-soft: #eeeffb;
  --coral: #ed742c;
  --coral-soft: #fff0e3;
  --amber: #d8a90a;
  --amber-soft: #fff7b8;
  --blue: #3f56a1;
  --blue-soft: #edf0ff;
  --success: #08a92e;
  --success-soft: #e8f8e9;
  --danger: #c84c54;
  --shadow: 0 18px 42px rgba(35, 39, 97, 0.12);
  --shadow-soft: 0 7px 20px rgba(35, 39, 97, 0.075);
  --radius-lg: 19px;
  --radius-md: 15px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

body {
  background:
    radial-gradient(circle at 90% 1%, rgba(245, 245, 86, 0.28), transparent 23rem),
    linear-gradient(180deg, #fff 0, #fffdf7 35%, #fffaf0 100%);
  color: var(--ink);
}

body::before {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(35, 39, 97, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 39, 97, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

::selection {
  background: #f5f556;
  color: var(--brand-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(36, 40, 101, 0.26);
  background-clip: padding-box;
}

.sidebar {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 20% -5%, rgba(237, 116, 44, 0.34), transparent 15rem),
    linear-gradient(165deg, #2f3277 0%, #242865 45%, #171a4a 100%);
  box-shadow: 0 24px 55px rgba(25, 29, 78, 0.3);
}

.sidebar::before {
  top: -90px;
  right: -75px;
  width: 220px;
  height: 220px;
  border: 36px solid rgba(245, 245, 86, 0.07);
}

.brand-mark {
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(245, 245, 86, 0.18), 0 10px 22px rgba(9, 10, 38, 0.25);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 900;
}

.brand strong {
  font-weight: 900;
}

.brand span,
.nav-section-title {
  color: rgba(255, 255, 255, 0.52);
}

.community-switcher {
  border-color: rgba(245, 245, 86, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.community-switcher > .eyebrow {
  color: #f5f556;
}

.community-avatar {
  border-color: rgba(255, 255, 255, 0.35);
  background: #f5f556;
  color: var(--brand-dark);
}

.nav-item {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.nav-item.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 23px rgba(8, 9, 37, 0.24);
}

.nav-item.is-active::after,
.nav-badge {
  background: var(--coral);
}

.nav-item.is-active .nav-icon {
  background: var(--amber-soft);
  color: var(--brand);
}

.meter span {
  background: linear-gradient(90deg, #f5f556, var(--coral));
}

.topbar {
  border-bottom: 1px solid rgba(35, 39, 97, 0.08);
  background: rgba(255, 253, 247, 0.9);
  backdrop-filter: blur(18px) saturate(135%);
}

.topbar h1 {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.topbar .eyebrow,
.eyebrow {
  color: var(--coral);
  font-weight: 900;
}

.global-search,
.icon-button {
  border-color: rgba(35, 39, 97, 0.14);
  background: #fff;
  box-shadow: 0 5px 14px rgba(35, 39, 97, 0.055);
}

.global-search:focus-within {
  border-color: rgba(237, 116, 44, 0.5);
  box-shadow: 0 0 0 4px rgba(237, 116, 44, 0.1);
}

.button {
  border-radius: 999px;
  font-weight: 900;
}

.button--primary {
  background: #08a92e;
  color: #fff;
  box-shadow: 0 8px 0 #087f27, 0 12px 24px rgba(8, 169, 46, 0.2);
}

.button--primary:hover {
  background: #0ab634;
  box-shadow: 0 6px 0 #087f27, 0 10px 22px rgba(8, 169, 46, 0.24);
  transform: translateY(2px);
}

.button--soft {
  background: var(--amber-soft);
  color: var(--brand);
}

.button--ghost,
.button--secondary {
  border-color: rgba(35, 39, 97, 0.2);
  background: #fff;
  color: var(--brand);
}

.page-toolbar h2 {
  color: var(--brand);
  font-weight: 900;
}

.page-toolbar h2::after {
  display: block;
  width: 54px;
  height: 5px;
  margin-top: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--coral) 0 67%, #f5f556 67%);
  content: "";
}

.card {
  border: 1px solid rgba(35, 39, 97, 0.13);
  background: #fff;
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.card:hover {
  border-color: rgba(35, 39, 97, 0.21);
  box-shadow: 0 13px 30px rgba(35, 39, 97, 0.1);
}

.card-header {
  border-bottom-color: rgba(35, 39, 97, 0.1);
  background: linear-gradient(90deg, rgba(255, 247, 184, 0.56), rgba(255, 255, 255, 0));
}

.card-header h2,
.card-header h3 {
  color: var(--brand);
  font-weight: 900;
}

.card-header a,
.text-link {
  color: var(--coral);
}

.welcome-card {
  min-height: 256px;
  border: 2px solid var(--brand);
  background:
    radial-gradient(circle at 88% 50%, rgba(245, 245, 86, 0.92) 0 3.7rem, transparent 3.75rem),
    radial-gradient(circle at 88% 50%, rgba(237, 116, 44, 0.18) 0 7.4rem, transparent 7.45rem),
    linear-gradient(125deg, #fff 0%, #fffdf3 60%, #fff7c6 100%);
  color: var(--brand);
  box-shadow: 9px 9px 0 rgba(35, 39, 97, 0.12);
}

.welcome-card::before {
  top: 22px;
  right: 22px;
  bottom: auto;
  width: auto;
  height: auto;
  padding: 7px 14px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: #fff89b;
  color: var(--brand);
  content: "学び・繋がり・お得な情報";
  font-size: 10px;
  font-weight: 900;
}

.welcome-card::after {
  right: 54px;
  bottom: -70px;
  width: 168px;
  height: 168px;
  border: 28px solid rgba(237, 116, 44, 0.12);
}

.welcome-card .eyebrow {
  color: var(--brand);
}

.welcome-card h2 {
  max-width: 650px;
  color: var(--coral);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.32;
  text-shadow: 2px 2px 0 #fff;
}

.welcome-card h2 span {
  display: inline-block;
  padding: 0 8px 2px;
  background: linear-gradient(transparent 54%, #f5f556 54%);
  color: var(--brand);
}

.welcome-card p {
  max-width: 620px;
  color: #555575;
  font-weight: 600;
}

.welcome-card .button--primary {
  background: #08a92e;
  color: #fff;
}

.welcome-card .button--ghost {
  border-color: rgba(35, 39, 97, 0.25);
  background: #fff;
  color: var(--brand);
}

.next-event-card {
  border: 2px solid rgba(35, 39, 97, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 247, 184, 0.72), transparent 50%),
    #fff;
}

.next-event-card::after {
  border-color: rgba(237, 116, 44, 0.1);
}

.next-event-card h3 {
  color: var(--brand);
  font-weight: 900;
}

.date-tile {
  border-color: rgba(237, 116, 44, 0.2);
  background: var(--coral);
  color: #fff;
  box-shadow: 5px 5px 0 #ffd96b;
}

.stat-card {
  border-top: 5px solid var(--brand);
}

.stat-card:nth-child(2) {
  border-top-color: var(--coral);
}

.stat-card:nth-child(3) {
  border-top-color: #e4b817;
}

.stat-card:nth-child(4) {
  border-top-color: #08a92e;
}

.stat-card::after {
  border-color: rgba(35, 39, 97, 0.04);
}

.stat-icon,
.quick-icon {
  background: var(--amber-soft);
  color: var(--brand);
}

.stat-card strong {
  color: var(--brand);
  font-weight: 900;
}

.quick-action {
  border: 1px solid rgba(35, 39, 97, 0.1);
  background: #fffdf3;
  color: var(--brand);
  font-weight: 800;
}

.quick-action:hover {
  border-color: var(--coral);
  background: var(--amber-soft);
  box-shadow: 0 8px 0 rgba(237, 116, 44, 0.12);
}

.status-pill,
.tag {
  border-radius: 999px;
  font-weight: 900;
}

.segmented {
  border-color: rgba(35, 39, 97, 0.14);
  background: #fff;
}

.segmented button.is-active {
  background: var(--brand);
  box-shadow: none;
}

.attendance-button {
  border-color: rgba(35, 39, 97, 0.14);
  border-radius: 999px;
  font-weight: 900;
}

.attendance-button.is-active[data-status="参加"] {
  border-color: #08a92e;
  background: var(--success-soft);
  color: #087f27;
}

.calendar-head,
.chat-rooms {
  background: #fff9d8;
}

.calendar-event {
  border-left-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.calendar-event.is-coral {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}

.chat-room.is-active {
  background: #fff3a3;
  box-shadow: inset 4px 0 var(--coral);
}

.messages {
  background:
    radial-gradient(circle at 90% 0, rgba(245, 245, 86, 0.17), transparent 18rem),
    #fff;
}

.message.is-me .message-bubble {
  background: var(--brand);
  box-shadow: 0 7px 17px rgba(35, 39, 97, 0.18);
}

.todo-column {
  border-color: rgba(35, 39, 97, 0.1);
  background: #fff9df;
}

.location-visual {
  background:
    linear-gradient(33deg, rgba(35, 39, 97, 0.06) 25%, transparent 25%) 0 0 / 30px 30px,
    linear-gradient(-33deg, rgba(237, 116, 44, 0.07) 25%, transparent 25%) 0 15px / 30px 30px,
    linear-gradient(145deg, #fff8c9, #fff3e1);
}

.field input,
.field select,
.field textarea,
.chat-compose input {
  border-color: rgba(35, 39, 97, 0.16);
  background: #fffdf8;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-compose input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(237, 116, 44, 0.1);
}

.app-dialog {
  border: 2px solid var(--brand);
  background: #fff;
  box-shadow: 12px 12px 0 rgba(35, 39, 97, 0.18), 0 35px 100px rgba(26, 29, 78, 0.25);
}

.dialog-header {
  background: linear-gradient(90deg, #fff6a8, #fff);
}

.toast {
  border-color: rgba(35, 39, 97, 0.2);
  box-shadow: 6px 6px 0 rgba(35, 39, 97, 0.12);
}

@media (max-width: 680px) {
  .welcome-card {
    padding: 27px 23px;
  }

  .welcome-card::before {
    position: static;
    display: inline-flex;
    margin-bottom: 18px;
  }

  .welcome-card h2 {
    font-size: clamp(29px, 10vw, 38px);
  }
}

/* V4.1 — stronger orange, calmer saturation */

:root {
  --bg: #f7f2eb;
  --surface: #fffdf9;
  --surface-soft: #f6eee5;
  --surface-deep: #eadbcb;
  --ink: #3d3942;
  --muted: #7c726e;
  --line: rgba(91, 63, 50, 0.16);
  --brand: #3b3c52;
  --brand-dark: #2b2c3e;
  --brand-soft: #eeecef;
  --coral: #cf6733;
  --coral-soft: #f7e5d9;
  --amber: #ae8439;
  --amber-soft: #f2e7c8;
  --blue: #646779;
  --blue-soft: #eeedf0;
  --success: #52785a;
  --success-soft: #e6eee7;
  --shadow: 0 18px 42px rgba(78, 50, 38, 0.12);
  --shadow-soft: 0 7px 20px rgba(78, 50, 38, 0.075);
}

body {
  background:
    radial-gradient(circle at 90% 1%, rgba(207, 103, 51, 0.13), transparent 24rem),
    linear-gradient(180deg, #fbf8f3 0, #f7f2eb 48%, #f4eee6 100%);
}

body::before {
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(91, 63, 50, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 63, 50, 0.09) 1px, transparent 1px);
}

::selection {
  background: #e9c79d;
}

.sidebar {
  background:
    radial-gradient(circle at 20% -5%, rgba(207, 103, 51, 0.4), transparent 16rem),
    linear-gradient(165deg, #444253 0%, #363747 48%, #292a38 100%);
  box-shadow: 0 24px 55px rgba(35, 30, 29, 0.28);
}

.sidebar::before {
  border-color: rgba(207, 103, 51, 0.09);
}

.brand-mark {
  background: #cf6733;
  box-shadow: 0 0 0 5px rgba(226, 175, 132, 0.15), 0 10px 22px rgba(25, 21, 20, 0.24);
}

.community-switcher {
  border-color: rgba(225, 155, 111, 0.26);
}

.community-switcher > .eyebrow {
  color: #efc09e;
}

.community-avatar {
  background: #e8b58f;
  color: #4a3027;
}

.nav-item.is-active .nav-icon {
  background: #f5e3d6;
  color: #a94d25;
}

.meter span {
  background: linear-gradient(90deg, #e3aa7e, #cf6733);
}

.topbar {
  background: rgba(247, 242, 235, 0.92);
}

.button--primary,
.welcome-card .button--primary {
  background: #c85f2f;
  box-shadow: 0 7px 0 #95421f, 0 12px 24px rgba(164, 73, 32, 0.2);
}

.button--primary:hover {
  background: #d36a36;
  box-shadow: 0 5px 0 #95421f, 0 9px 20px rgba(164, 73, 32, 0.24);
}

.page-toolbar h2::after {
  background: linear-gradient(90deg, var(--coral) 0 76%, #d9b57c 76%);
}

.card {
  border-color: rgba(91, 63, 50, 0.14);
  background: #fffdf9;
}

.card:hover {
  border-color: rgba(207, 103, 51, 0.3);
}

.card-header {
  border-bottom-color: rgba(91, 63, 50, 0.11);
  background: linear-gradient(90deg, rgba(239, 216, 193, 0.62), rgba(255, 253, 249, 0));
}

.welcome-card {
  border-color: #494657;
  background:
    radial-gradient(circle at 88% 50%, rgba(210, 127, 78, 0.36) 0 4.1rem, transparent 4.15rem),
    radial-gradient(circle at 88% 50%, rgba(207, 103, 51, 0.14) 0 8.3rem, transparent 8.35rem),
    linear-gradient(125deg, #fffdf9 0%, #f8eee3 62%, #ead3bd 100%);
  box-shadow: 9px 9px 0 rgba(74, 63, 60, 0.13);
}

.welcome-card::before {
  border-color: #5b4b46;
  background: #efd8c4;
}

.welcome-card::after {
  border-color: rgba(179, 83, 40, 0.14);
}

.welcome-card h2 {
  color: #c75e2e;
  text-shadow: 2px 2px 0 #fffaf4;
}

.welcome-card h2 span {
  background: linear-gradient(transparent 56%, #e7c18f 56%);
  color: #3b3c52;
}

.welcome-card p {
  color: #665d5a;
}

.date-tile {
  background: #c96030;
  box-shadow: 5px 5px 0 #d9ac82;
}

.next-event-card {
  background:
    linear-gradient(135deg, rgba(237, 213, 186, 0.72), transparent 54%),
    #fffdf9;
}

.stat-card:nth-child(3) {
  border-top-color: #b68a42;
}

.stat-card:nth-child(4) {
  border-top-color: #617d65;
}

.quick-action {
  background: #fbf5ed;
}

.quick-action:hover {
  border-color: #cf6733;
  background: #f3e2d4;
}

.attendance-button.is-active[data-status="参加"] {
  border-color: #67836c;
  color: #456149;
}

.calendar-head,
.chat-rooms {
  background: #f2e7d9;
}

.chat-room.is-active {
  background: #f2ddcd;
}

.messages {
  background:
    radial-gradient(circle at 90% 0, rgba(207, 103, 51, 0.08), transparent 18rem),
    #fffdf9;
}

.todo-column {
  background: #f4ece3;
}

.location-visual {
  background:
    linear-gradient(33deg, rgba(59, 60, 82, 0.05) 25%, transparent 25%) 0 0 / 30px 30px,
    linear-gradient(-33deg, rgba(207, 103, 51, 0.08) 25%, transparent 25%) 0 15px / 30px 30px,
    linear-gradient(145deg, #f0e4d8, #f8efe6);
}

.dialog-header {
  background: linear-gradient(90deg, #edd5c1, #fffdf9);
}

/* V4.2 — refined copper luxury */

:root {
  --gold: #b68a48;
  --gold-light: #e4c48d;
  --copper: #c46634;
  --copper-dark: #934524;
  --velvet: #302b2d;
  --cream: #fbf6ee;
  --shadow: 0 24px 60px rgba(66, 42, 34, 0.16);
  --shadow-soft: 0 10px 28px rgba(66, 42, 34, 0.1);
}

body {
  background:
    radial-gradient(circle at 86% 2%, rgba(198, 112, 60, 0.16), transparent 27rem),
    radial-gradient(circle at 38% 100%, rgba(182, 138, 72, 0.09), transparent 32rem),
    linear-gradient(180deg, #fcf8f2 0%, #f6efe7 56%, #f3ebe2 100%);
}

body::before {
  opacity: 0.08;
  background-size: 32px 32px;
}

.sidebar {
  border: 1px solid rgba(228, 196, 141, 0.23);
  background:
    radial-gradient(circle at 16% -4%, rgba(197, 102, 52, 0.48), transparent 16rem),
    radial-gradient(circle at 100% 78%, rgba(182, 138, 72, 0.12), transparent 18rem),
    linear-gradient(160deg, #423638 0%, #302b2d 48%, #211f25 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 70px rgba(35, 27, 27, 0.35);
}

.sidebar::before {
  border-color: rgba(228, 196, 141, 0.1);
  box-shadow: 0 0 0 1px rgba(228, 196, 141, 0.04);
}

.brand::after {
  position: absolute;
  right: 24px;
  bottom: 5px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 196, 141, 0.55), transparent);
  content: "";
}

.brand-mark {
  background: linear-gradient(145deg, #df8a51 0%, #b7562d 55%, #8f3e23 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.42),
    0 0 0 1px rgba(239, 202, 145, 0.65),
    0 0 0 5px rgba(228, 196, 141, 0.1),
    0 13px 28px rgba(20, 15, 16, 0.34);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.brand strong {
  color: #fff9ed;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.community-switcher {
  border-color: rgba(228, 196, 141, 0.25);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.1), rgba(182, 138, 72, 0.05));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.community-switcher > .eyebrow,
.nav-section-title {
  color: #d9b880;
}

.community-avatar {
  border-color: #d7ae78;
  background: linear-gradient(145deg, #f0d3aa, #c9915e);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55);
}

.nav-item {
  color: rgba(255, 249, 238, 0.7);
}

.nav-item:hover {
  background: rgba(228, 196, 141, 0.09);
}

.nav-item.is-active {
  border: 1px solid rgba(182, 138, 72, 0.28);
  background: linear-gradient(135deg, #fffdf8, #f2e4d4);
  color: #3c3031;
  box-shadow: 0 11px 26px rgba(17, 13, 14, 0.28);
}

.nav-item.is-active .nav-icon {
  background: linear-gradient(145deg, #f2dcc5, #e4b98e);
  color: #8f4225;
  box-shadow: inset 0 0 0 1px rgba(147, 69, 36, 0.1);
}

.nav-item.is-active::after {
  background: linear-gradient(#d78a52, #9f4926);
  box-shadow: 0 0 0 3px rgba(196, 102, 52, 0.1);
}

.sidebar-footer {
  border-top-color: rgba(228, 196, 141, 0.13);
  background: rgba(18, 15, 18, 0.14);
}

.topbar {
  border-bottom: 1px solid rgba(182, 138, 72, 0.18);
  background: linear-gradient(180deg, rgba(251, 247, 240, 0.97), rgba(247, 240, 232, 0.9));
  box-shadow: 0 7px 28px rgba(78, 50, 38, 0.055);
}

.topbar h1 {
  color: #363345;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 800;
}

.topbar .eyebrow {
  color: #a67535;
}

.global-search,
.icon-button {
  border-color: rgba(159, 112, 58, 0.2);
  background: rgba(255, 253, 249, 0.96);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.8),
    0 7px 18px rgba(72, 48, 40, 0.08);
}

.button--primary,
.welcome-card .button--primary {
  border: 1px solid rgba(109, 47, 23, 0.35);
  background: linear-gradient(145deg, #d67a43 0%, #bc5b2e 55%, #a64a27 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.38),
    0 6px 0 #873d21,
    0 14px 28px rgba(133, 58, 28, 0.24);
  text-shadow: 0 1px 2px rgba(75, 26, 10, 0.32);
}

.button--primary:hover {
  background: linear-gradient(145deg, #df8750, #c76436 58%, #aa4d29);
}

.button--ghost,
.button--secondary {
  border-color: rgba(159, 112, 58, 0.28);
  background: linear-gradient(180deg, #fff, #faf3eb);
  box-shadow: 0 5px 13px rgba(70, 46, 37, 0.06);
}

.page-toolbar h2 {
  color: #393446;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 800;
}

.page-toolbar h2::after {
  height: 4px;
  background: linear-gradient(90deg, #a94d29 0%, #d48b50 50%, #dcbf85 82%, transparent 100%);
}

.card {
  border-color: rgba(157, 112, 62, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(252, 247, 240, 0.95));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.92),
    0 1px 0 rgba(182, 138, 72, 0.08),
    0 12px 32px rgba(73, 46, 37, 0.1);
}

.card:hover {
  border-color: rgba(182, 127, 66, 0.36);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(73, 46, 37, 0.14);
}

.card-header {
  border-bottom-color: rgba(159, 112, 58, 0.15);
  background:
    linear-gradient(90deg, rgba(223, 189, 145, 0.29), rgba(255, 253, 249, 0) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(244, 232, 219, 0.18));
}

.card-header h2,
.card-header h3 {
  color: #42383b;
}

.welcome-card {
  border: 1px solid rgba(114, 74, 49, 0.7);
  background:
    radial-gradient(circle at 88% 50%, rgba(210, 139, 84, 0.54) 0 4.2rem, transparent 4.25rem),
    radial-gradient(circle at 88% 50%, rgba(182, 138, 72, 0.2) 0 8.5rem, transparent 8.55rem),
    linear-gradient(118deg, #fffdf8 0%, #f8ede1 58%, #dfbea0 100%);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.48),
    inset 0 0 0 5px rgba(182, 138, 72, 0.13),
    10px 11px 0 rgba(78, 55, 47, 0.12),
    0 25px 50px rgba(83, 52, 40, 0.16);
}

.welcome-card::before {
  border-color: rgba(111, 77, 48, 0.75);
  background: linear-gradient(145deg, #f6e6ce, #dcb886);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.7),
    0 6px 16px rgba(89, 56, 40, 0.13);
  color: #493b38;
}

.welcome-card::after {
  border-color: rgba(171, 82, 42, 0.18);
  box-shadow: 0 0 0 18px rgba(182, 138, 72, 0.05);
}

.welcome-card .eyebrow {
  color: #8f642f;
  letter-spacing: 0.18em;
}

.welcome-card h2 {
  color: #b4512c;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 800;
  text-shadow: 0 2px 0 #fffaf3, 0 8px 22px rgba(131, 66, 36, 0.11);
}

.welcome-card h2 span {
  background: linear-gradient(transparent 61%, rgba(214, 173, 107, 0.72) 61%);
  color: #353344;
}

.next-event-card {
  border-color: rgba(157, 112, 62, 0.28);
  background:
    radial-gradient(circle at 105% 100%, rgba(196, 102, 52, 0.1), transparent 11rem),
    linear-gradient(145deg, #fffdf9, #f7ecdf);
  box-shadow: 0 16px 36px rgba(75, 48, 39, 0.12);
}

.date-tile {
  border-color: rgba(111, 52, 26, 0.32);
  background: linear-gradient(145deg, #dc8750, #bd592e 58%, #9d4525);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.42),
    5px 5px 0 #cda66e,
    0 10px 20px rgba(139, 63, 30, 0.18);
}

.stat-card {
  box-shadow: 0 12px 28px rgba(73, 46, 37, 0.1);
}

.stat-icon,
.quick-icon {
  border: 1px solid rgba(182, 138, 72, 0.18);
  background: linear-gradient(145deg, #f5ead7, #e8d2ad);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.quick-action {
  border-color: rgba(159, 112, 58, 0.16);
  background: linear-gradient(145deg, #fffdf9, #f5e9dd);
}

.quick-action:hover {
  border-color: #b56a3c;
  background: linear-gradient(145deg, #f8eadc, #ecd3bc);
  box-shadow: 0 10px 0 rgba(155, 85, 45, 0.1), 0 17px 30px rgba(73, 46, 37, 0.1);
}

.status-pill,
.tag {
  border: 1px solid rgba(159, 112, 58, 0.14);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.65);
}

.segmented,
.attendance-button {
  border-color: rgba(159, 112, 58, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.segmented button.is-active {
  background: linear-gradient(145deg, #49465a, #302e3d);
}

.field input,
.field select,
.field textarea,
.chat-compose input {
  border-color: rgba(159, 112, 58, 0.22);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: inset 0 1px 3px rgba(92, 58, 43, 0.045);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-compose input:focus {
  border-color: #b66a3e;
  box-shadow: 0 0 0 4px rgba(182, 106, 62, 0.11), 0 8px 20px rgba(73, 46, 37, 0.07);
}

.app-dialog {
  border: 1px solid rgba(125, 80, 47, 0.78);
  background: linear-gradient(145deg, #fffefa, #f8eee4);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.58),
    12px 12px 0 rgba(90, 60, 48, 0.16),
    0 38px 100px rgba(42, 29, 28, 0.34);
}

.dialog-header {
  border-bottom: 1px solid rgba(159, 112, 58, 0.16);
  background: linear-gradient(90deg, #ead1b7, #fffaf3 72%);
}

.toast {
  border-color: rgba(159, 112, 58, 0.3);
  background: linear-gradient(145deg, #fffefa, #f6e9dc);
  box-shadow: 7px 7px 0 rgba(92, 57, 44, 0.13), 0 20px 48px rgba(63, 39, 34, 0.18);
}

/* =========================================================
   V5 — authentication, projects and member portal
   ========================================================= */

[hidden] {
  display: none !important;
}

body.is-auth-locked {
  overflow: auto;
}

body.is-auth-locked .app-shell {
  display: none;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.05fr) minmax(430px, 0.95fr);
  overflow: auto;
  background: #f7f0e7;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 76px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 25%, rgba(214, 126, 70, 0.68) 0 7rem, transparent 7.1rem),
    radial-gradient(circle at 82% 25%, rgba(183, 137, 70, 0.2) 0 15rem, transparent 15.1rem),
    linear-gradient(145deg, #49393a 0%, #302b2d 50%, #201e23 100%);
  color: #fffaf1;
}

.auth-visual::before {
  position: absolute;
  right: -9rem;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(228, 196, 141, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(228, 196, 141, 0.025), 0 0 0 10rem rgba(228, 196, 141, 0.018);
  content: "";
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #e8c68d;
  border-radius: 50%;
  background: linear-gradient(145deg, #df8950, #a94d29);
  box-shadow: 0 0 0 5px rgba(228, 196, 141, 0.1), 0 15px 32px rgba(10, 8, 10, 0.28);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 22px;
  font-weight: 800;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  font-size: 17px;
  letter-spacing: 0.22em;
}

.auth-brand span {
  margin-top: 3px;
  color: rgba(255, 250, 241, 0.58);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.auth-message {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding-block: 40px;
}

.auth-kicker {
  color: #dfbd83;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.23em;
}

.auth-message h1 {
  margin: 22px 0 20px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.38;
}

.auth-message h1 em {
  color: #df8650;
  font-style: normal;
}

.auth-message p {
  margin: 0;
  color: rgba(255, 250, 241, 0.66);
  font-size: 13px;
  line-height: 1.9;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-benefits span {
  padding: 9px 14px;
  border: 1px solid rgba(228, 196, 141, 0.23);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #ead3af;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-panel-wrap {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(28px, 6vw, 84px);
  background:
    radial-gradient(circle at 100% 0, rgba(198, 102, 52, 0.11), transparent 22rem),
    #f8f2ea;
}

.auth-panel {
  position: relative;
  width: min(430px, 100%);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(157, 112, 62, 0.25);
  border-radius: 28px;
  background: linear-gradient(145deg, #fffefa, #f8eee4);
  box-shadow: 14px 16px 0 rgba(90, 60, 48, 0.08), 0 35px 90px rgba(64, 42, 36, 0.16);
}

.auth-close {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px auto;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.auth-close span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(139, 93, 61, 0.2);
  border-radius: 50%;
  background: #fffaf4;
  color: #9a4b2a;
  font-size: 14px;
}

.topbar-login {
  min-width: 86px;
}

.auth-panel h2 {
  margin: 10px 0 8px;
  color: #373342;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 30px;
  letter-spacing: -0.055em;
}

.auth-lead {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 24px 0 20px;
  padding: 5px;
  border: 1px solid rgba(157, 112, 62, 0.16);
  border-radius: 14px;
  background: #eee3d7;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.auth-tabs button.is-active {
  background: #fffdf9;
  color: #a34b29;
  box-shadow: 0 6px 16px rgba(77, 49, 39, 0.1);
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field span {
  color: #4b4141;
  font-size: 10px;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(139, 93, 61, 0.22);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  font-size: 12px;
  transition: 160ms ease;
}

.auth-field input:focus {
  border-color: #b66a3e;
  box-shadow: 0 0 0 4px rgba(182, 106, 62, 0.11);
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
}

.auth-error {
  min-height: 16px;
  margin: -4px 0;
  color: var(--danger);
  font-size: 10px;
  font-weight: 700;
}

.demo-account {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 12px 14px;
  border: 1px solid rgba(159, 112, 58, 0.16);
  border-radius: 12px;
  background: rgba(232, 211, 184, 0.3);
  font-size: 9px;
}

.demo-account span {
  grid-column: 1 / -1;
  color: var(--muted);
}

.demo-account strong {
  color: #4d4140;
}

.demo-account code {
  color: #a64d29;
  font-weight: 800;
}

.auth-note,
.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.case-section {
  display: grid;
  gap: 14px;
}

.case-section .section-header h2 {
  margin: 7px 0 0;
  color: #393446;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 20px;
}

.case-section-mark {
  padding: 8px 13px;
  border: 1px solid rgba(156, 93, 54, 0.25);
  border-radius: 999px;
  background: linear-gradient(145deg, #f1dcc5, #dfb184);
  color: #743b27;
  font-size: 9px;
  font-weight: 900;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.case-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border-top: 4px solid #bc5b31;
}

.case-card::after {
  position: absolute;
  top: -50px;
  right: -48px;
  width: 125px;
  height: 125px;
  border: 22px solid rgba(190, 91, 47, 0.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.case-card-top,
.case-publisher,
.case-publisher > div {
  display: flex;
  align-items: center;
}

.case-card-top,
.case-publisher {
  justify-content: space-between;
  gap: 10px;
}

.case-location {
  color: var(--muted);
  font-size: 9px;
}

.case-card h3 {
  position: relative;
  z-index: 1;
  margin: 16px 0 9px;
  color: #373342;
  font-size: 16px;
  line-height: 1.55;
}

.case-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
}

.case-facts > div {
  padding: 11px;
  border: 1px solid rgba(159, 112, 58, 0.14);
  border-radius: 12px;
  background: rgba(239, 222, 202, 0.35);
}

.case-facts small,
.case-facts strong {
  display: block;
}

.case-facts small {
  color: var(--muted);
  font-size: 8px;
}

.case-facts strong {
  margin-top: 5px;
  color: #71402d;
  font-size: 12px;
}

.case-publisher {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 9px;
}

.case-publisher > div {
  min-width: 0;
  gap: 8px;
}

.case-publisher small,
.case-publisher strong {
  display: block;
}

.case-publisher strong {
  max-width: 135px;
  margin-top: 2px;
  overflow: hidden;
  color: #484041;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-apply {
  width: 100%;
  margin-top: 14px;
}

.button:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none !important;
  box-shadow: none;
}

.board-section-header {
  margin-bottom: 11px;
}

.application-confirm {
  padding: 18px;
  border: 1px solid rgba(159, 112, 58, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, #fffaf4, #f1dfce);
}

.application-confirm h3 {
  margin: 12px 0 5px;
  color: #373342;
  font-size: 17px;
}

.application-confirm > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.mypage-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  background:
    radial-gradient(circle at 88% 50%, rgba(204, 122, 72, 0.22), transparent 12rem),
    linear-gradient(135deg, #fffdf9, #f1dfce);
}

.mypage-identity,
.mypage-hero-actions {
  display: flex;
  align-items: center;
}

.mypage-identity {
  gap: 17px;
}

.avatar--large {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  box-shadow: 0 0 0 5px rgba(182, 138, 72, 0.11), 0 12px 28px rgba(89, 54, 41, 0.15);
  font-size: 20px;
}

.mypage-identity h2 {
  margin: 7px 0 4px;
  color: #373342;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 25px;
}

.mypage-identity p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 10px;
}

.mypage-hero-actions {
  gap: 8px;
}

.mypage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.card-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.application-list {
  display: grid;
}

.application-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(159, 112, 58, 0.14);
}

.application-item:last-child {
  border-bottom: 0;
}

.application-item h3 {
  margin: 8px 0 5px;
  color: #3d3744;
  font-size: 13px;
}

.application-item p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.application-status {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 8px;
}

.application-status strong {
  color: #80462e;
  font-size: 11px;
}

.status-pill--success {
  background: var(--success-soft);
  color: #456149;
}

.profile-settings .form-grid {
  padding: 20px;
}

.profile-settings .field small {
  color: var(--muted);
  font-size: 8px;
}

.mypage-empty {
  min-height: 330px;
}

@media (max-width: 1100px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mypage-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 360px;
    padding: 30px;
  }

  .auth-message {
    padding-block: 35px 25px;
  }

  .auth-message h1 {
    font-size: clamp(34px, 8vw, 52px);
  }

  .auth-panel-wrap {
    min-height: auto;
    padding: 35px 20px 60px;
  }
}

@media (max-width: 680px) {
  .auth-visual {
    min-height: 330px;
    padding: 24px 20px;
  }

  .auth-message h1 {
    margin-block: 16px 12px;
    font-size: 32px;
  }

  .auth-benefits span {
    padding: 7px 10px;
  }

  .auth-panel-wrap {
    padding: 24px 14px 45px;
  }

  .auth-panel {
    padding: 24px 19px;
    border-radius: 22px;
    box-shadow: 8px 10px 0 rgba(90, 60, 48, 0.07), 0 25px 60px rgba(64, 42, 36, 0.13);
  }

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

  .case-card {
    min-height: 340px;
  }

  .mypage-hero,
  .mypage-identity,
  .mypage-hero-actions {
    align-items: flex-start;
  }

  .mypage-hero {
    flex-direction: column;
  }

  .mypage-hero-actions {
    width: 100%;
  }

  .mypage-hero-actions .button {
    flex: 1;
  }

  .application-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .application-status {
    width: 100%;
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }
}

/* V5.1 — member and expert directories */

.directory-hero {
  position: relative;
  display: flex;
  min-height: 235px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  overflow: hidden;
}

.directory-hero::after {
  position: absolute;
  right: -55px;
  bottom: -95px;
  width: 270px;
  height: 270px;
  border: 42px solid rgba(196, 102, 52, 0.08);
  border-radius: 50%;
  content: "";
}

.business-directory-hero {
  background:
    radial-gradient(circle at 82% 45%, rgba(213, 145, 94, 0.33), transparent 12rem),
    linear-gradient(125deg, #fffdf8, #f1dfcc);
}

.expert-directory-hero {
  background:
    radial-gradient(circle at 82% 45%, rgba(182, 138, 72, 0.28), transparent 12rem),
    linear-gradient(125deg, #fffdf8, #eee2d2);
}

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

.directory-hero h2 {
  margin: 12px 0 10px;
  color: #393446;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.4;
}

.directory-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.directory-hero-stat {
  display: grid;
  min-width: 150px;
  min-height: 150px;
  place-content: center;
  border: 1px solid rgba(132, 79, 46, 0.23);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.68);
  box-shadow: inset 0 0 0 8px rgba(228, 196, 141, 0.09), 0 18px 40px rgba(83, 52, 40, 0.12);
  text-align: center;
}

.directory-hero-stat strong {
  color: #ae512d;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 48px;
  line-height: 1;
}

.directory-hero-stat span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.expert-seal {
  display: grid;
  min-width: 145px;
  min-height: 145px;
  place-content: center;
  border: 1px solid #a77b3e;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3dfb9, #cda66d);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.25), 0 18px 40px rgba(83, 52, 40, 0.15);
  color: #5d4327;
  text-align: center;
}

.expert-seal strong,
.expert-seal span {
  display: block;
}

.expert-seal strong {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 26px;
}

.expert-seal span {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 900;
}

.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.directory-filters button {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(159, 112, 58, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.directory-filters button.is-active,
.directory-filters button:hover {
  border-color: #a8522e;
  background: linear-gradient(145deg, #d27b46, #a94d29);
  color: #fff;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.directory-card {
  position: relative;
  display: flex;
  min-height: 405px;
  flex-direction: column;
  padding: 21px;
  overflow: hidden;
}

.directory-card::after {
  position: absolute;
  top: -42px;
  right: -42px;
  width: 105px;
  height: 105px;
  border: 18px solid rgba(182, 138, 72, 0.06);
  border-radius: 50%;
  content: "";
}

.business-member-card {
  border-top: 4px solid #bb6136;
}

.expert-card {
  border-top: 4px solid #ae8544;
}

.directory-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.avatar--directory {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  box-shadow: 0 0 0 4px rgba(182, 138, 72, 0.09), 0 10px 24px rgba(83, 52, 40, 0.12);
  font-size: 17px;
}

.directory-card-head h3 {
  margin: 7px 0 3px;
  color: #373342;
  font-size: 15px;
}

.directory-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.directory-company {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 19px;
  padding: 11px 12px;
  border: 1px solid rgba(159, 112, 58, 0.13);
  border-radius: 11px;
  background: rgba(238, 222, 202, 0.28);
}

.directory-company strong {
  color: #594644;
  font-size: 9px;
}

.directory-company span {
  color: var(--muted);
  font-size: 8px;
}

.directory-intro {
  display: -webkit-box;
  margin: 16px 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.directory-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1e5d8;
  color: #76503d;
  font-size: 8px;
  font-weight: 800;
}

.directory-looking {
  display: grid;
  gap: 4px;
  margin-top: 15px;
  padding-left: 11px;
  border-left: 3px solid #c36a3d;
}

.directory-looking small {
  color: var(--muted);
  font-size: 8px;
}

.directory-looking strong {
  color: #4a4041;
  font-size: 9px;
  line-height: 1.55;
}

.directory-action {
  width: 100%;
  margin-top: auto;
}

.expert-card-ribbon {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(150, 103, 46, 0.2);
  border-radius: 999px;
  background: #f0deb9;
  color: #745324;
  font-size: 8px;
  font-weight: 900;
}

.expert-credential {
  display: grid;
  gap: 3px;
  margin-top: 19px;
  padding: 12px;
  border: 1px solid rgba(159, 112, 58, 0.14);
  border-radius: 12px;
  background: rgba(239, 223, 197, 0.3);
}

.expert-credential span,
.expert-credential small {
  color: var(--muted);
  font-size: 8px;
}

.expert-credential strong {
  color: #59443c;
  font-size: 10px;
}

.profile-dialog-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(159, 112, 58, 0.18);
  border-radius: 17px;
  background: linear-gradient(145deg, #fffaf4, #efddca);
}

.profile-dialog-head h3 {
  margin: 8px 0 4px;
  color: #393443;
  font-size: 18px;
}

.profile-dialog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.profile-dialog-body {
  display: grid;
  gap: 14px;
  margin-top: 17px;
}

.profile-dialog-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.profile-dialog-body > small {
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.profile-detail-row {
  display: grid;
  gap: 7px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(159, 112, 58, 0.13);
}

.profile-detail-row > span,
.expert-consult-box span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.profile-detail-row > strong {
  color: #4d4241;
  font-size: 10px;
}

.expert-consult-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border: 1px solid rgba(167, 123, 62, 0.24);
  border-radius: 13px;
  background: linear-gradient(145deg, #f4e5c8, #e5c28d);
}

.expert-consult-box strong {
  color: #644826;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .directory-hero {
    min-height: 300px;
    align-items: flex-start;
    flex-direction: column;
    padding: 25px;
  }

  .directory-hero-stat,
  .expert-seal {
    min-width: 105px;
    min-height: 105px;
  }

  .directory-hero-stat strong {
    font-size: 36px;
  }

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

  .directory-card {
    min-height: 390px;
  }
}

/* V5.2 — admin member rank dashboard */

.rank-admin-hero {
  position: relative;
  display: flex;
  min-height: 245px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 42%, rgba(208, 121, 63, 0.33), transparent 13rem),
    linear-gradient(125deg, #fffaf2, #ead3b8 58%, #d98e55);
}

.rank-admin-hero::before {
  position: absolute;
  right: -78px;
  bottom: -110px;
  width: 290px;
  height: 290px;
  border: 42px solid rgba(119, 66, 36, 0.08);
  border-radius: 50%;
  content: "";
}

.rank-admin-hero h2 {
  position: relative;
  max-width: 590px;
  margin: 9px 0 12px;
  color: #332c2f;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.rank-admin-hero p {
  position: relative;
  max-width: 550px;
  margin: 0;
  color: rgba(61, 49, 45, 0.76);
  font-size: 11px;
  line-height: 1.9;
}

.rank-admin-summary {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 170px;
  place-items: center;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 26px;
  background: rgba(255, 251, 246, 0.68);
  box-shadow: 0 22px 45px rgba(95, 53, 34, 0.14);
  text-align: center;
}

.rank-admin-summary strong {
  color: #773c24;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 52px;
  line-height: 1;
}

.rank-admin-summary span,
.rank-admin-summary small {
  display: block;
}

.rank-admin-summary span {
  margin-top: 7px;
  color: #4b3d3c;
  font-size: 11px;
  font-weight: 900;
}

.rank-admin-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.rank-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-plan-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  overflow: hidden;
  border-top: 4px solid rgba(190, 91, 47, 0.72);
  background:
    radial-gradient(circle at 100% 0%, rgba(219, 140, 76, 0.15), transparent 8rem),
    var(--surface);
}

.rank-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rank-plan-head strong {
  color: #7a402c;
  font-size: 18px;
}

.rank-plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.rank-price {
  color: #352e35;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 28px;
  font-weight: 800;
}

.rank-price small {
  margin-left: 5px;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
}

.rank-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rank-benefits span {
  padding: 6px 9px;
  border: 1px solid rgba(158, 107, 58, 0.17);
  border-radius: 999px;
  background: rgba(244, 230, 212, 0.52);
  color: #6c4932;
  font-size: 8px;
  font-weight: 800;
}

.rank-plan-card > small {
  color: var(--muted);
  font-size: 9px;
}

.rank-management-table {
  overflow: hidden;
}

.rank-table-header {
  padding: 20px 22px 0;
}

.rank-management-table table {
  min-width: 980px;
}

.rank-management-table td {
  vertical-align: middle;
}

.rank-management-table td:last-child {
  white-space: nowrap;
}

.rank-table-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.rank-dialog {
  display: grid;
  gap: 18px;
}

.rank-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rank-dialog-grid > div,
.rank-dialog-note,
.rank-dialog-applications {
  padding: 13px;
  border: 1px solid rgba(159, 112, 58, 0.16);
  border-radius: 14px;
  background: rgba(239, 222, 202, 0.28);
}

.rank-dialog-grid small,
.rank-dialog-note span,
.rank-dialog-applications span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rank-dialog-grid strong {
  display: block;
  margin-top: 5px;
  color: #3d3744;
  font-size: 12px;
}

.rank-dialog-note p,
.rank-dialog-applications p {
  margin: 8px 0 0;
  color: #4c4443;
  font-size: 10px;
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .rank-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .rank-admin-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px;
  }

  .rank-admin-summary {
    width: 100%;
  }

  .rank-plan-grid,
  .rank-dialog-grid {
    grid-template-columns: 1fr;
  }
}

/* V5.3 — schedule calendar first */

.calendar-layout {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-layout > .calendar-card {
  order: 1;
}

.calendar-layout > .schedule-agenda {
  order: 2;
}

.schedule-agenda .agenda-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.schedule-agenda .section-header {
  padding-top: 2px;
}

@media (max-width: 1200px) {
  .schedule-agenda .agenda-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .schedule-agenda .agenda-list {
    grid-template-columns: 1fr;
  }
}

/* V5.4 — mobile schedule polish */

.schedule-month-controls {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.schedule-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(159, 112, 58, 0.28);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.72);
  text-align: center;
}

.schedule-empty span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: rgba(214, 132, 75, 0.16);
  color: #a4552f;
  font-weight: 900;
}

.schedule-empty h3 {
  margin: 10px 0 5px;
  color: #443837;
  font-size: 13px;
}

.schedule-empty p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .app-main,
  main#app {
    width: 100%;
    min-width: 0;
  }

  .sidebar {
    width: min(86vw, 320px);
  }

  .topbar {
    min-height: auto;
    flex-wrap: wrap;
    gap: 9px;
    padding: 10px 14px;
  }

  .topbar-start {
    min-width: 0;
    flex: 1 1 auto;
  }

  .topbar-start > div {
    min-width: 0;
  }

  .topbar h1 {
    max-width: calc(100vw - 180px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .page-stack {
    gap: 16px;
  }

  .page-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .toolbar-actions {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
  }

  .toolbar-actions > .segmented,
  .toolbar-actions > .schedule-month-controls {
    flex: 1 1 100%;
  }

  .toolbar-actions > .button {
    flex: 1 1 150px;
  }

  .schedule-month-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-month-controls .button {
    width: 100%;
    min-height: 40px;
    padding-inline: 8px;
  }

  .calendar-layout {
    gap: 14px;
  }

  .calendar-card {
    width: 100%;
    overflow: hidden !important;
  }

  .calendar-head,
  .calendar-grid {
    min-width: 0 !important;
  }

  .calendar-head span {
    padding: 9px 0;
    font-size: 8px;
  }

  .calendar-day {
    min-height: 82px;
    padding: 6px 4px;
  }

  .day-number {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    font-size: 8px;
  }

  .calendar-event {
    display: -webkit-box;
    max-height: 32px;
    padding: 4px;
    overflow: hidden;
    font-size: 7.5px;
    line-height: 1.25;
    text-overflow: initial;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .schedule-agenda .agenda-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 9px 10px;
  }

  .topbar-start {
    width: 100%;
  }

  .topbar-actions {
    width: 100%;
    gap: 7px;
  }

  .global-search {
    display: flex;
    order: 10;
    width: 100%;
    flex: 1 0 100%;
    padding: 8px 10px;
  }

  .global-search kbd {
    display: none;
  }

  .notification-button {
    display: inline-grid;
  }

  .topbar-login {
    flex: 1 1 auto;
    min-width: 96px;
    padding-inline: 10px;
  }

  .topbar-create {
    flex: 0 0 42px;
  }

  main#app {
    padding: 14px 10px 46px;
  }

  .page-toolbar h2 {
    font-size: 24px;
  }

  .page-toolbar p {
    font-size: 10px;
    line-height: 1.7;
  }

  .toolbar-actions > .button {
    flex-basis: 100%;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1 1 0;
  }

  .calendar-day {
    min-height: 70px;
    padding: 5px 3px;
  }

  .calendar-event {
    margin-top: 4px;
    padding: 3px;
    border-radius: 5px;
    font-size: 7px;
  }

  .schedule-agenda .agenda-list {
    grid-template-columns: 1fr;
  }

  .agenda-item {
    padding: 13px;
  }

  .attendance-row {
    flex-wrap: wrap;
  }

  .attendance-button {
    flex: 1 1 64px;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .calendar-head span {
    font-size: 7px;
  }

  .calendar-day {
    min-height: 64px;
    padding: 4px 2px;
  }

  .day-number {
    width: 20px;
    height: 20px;
    font-size: 7px;
  }

  .calendar-event {
    font-size: 0;
    width: 7px;
    height: 7px;
    min-height: 7px;
    margin-top: 5px;
    padding: 0;
    border-radius: 999px;
  }
}

/* V5.5 — circle and meetup menu item */

.section-hero {
  position: relative;
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  overflow: hidden;
}

.section-hero::after {
  position: absolute;
  right: -68px;
  bottom: -105px;
  width: 265px;
  height: 265px;
  border: 42px solid rgba(198, 106, 52, 0.08);
  border-radius: 50%;
  content: "";
}

.circle-hero {
  background:
    radial-gradient(circle at 82% 42%, rgba(224, 143, 78, 0.3), transparent 12rem),
    linear-gradient(125deg, #fffaf4, #efdcc6);
}

.cases-hero {
  background:
    radial-gradient(circle at 82% 42%, rgba(214, 119, 62, 0.34), transparent 12rem),
    linear-gradient(125deg, #fff8ef, #edcfad);
}

.section-hero h2 {
  position: relative;
  margin: 9px 0 12px;
  color: #352f37;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-hero p {
  position: relative;
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.section-hero-stat {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 145px;
  place-items: center;
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.72);
  box-shadow: 0 22px 45px rgba(95, 53, 34, 0.13);
  text-align: center;
}

.section-hero-stat strong {
  color: #803f26;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 48px;
  line-height: 1;
}

.section-hero-stat span {
  margin-top: 7px;
  color: #4b3d3c;
  font-size: 10px;
  font-weight: 900;
}

.circle-event-list {
  padding: 0 18px 18px;
}

@media (max-width: 680px) {
  .section-hero {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .section-hero-stat {
    width: 100%;
  }

  .circle-event-list {
    padding: 0 14px 14px;
  }
}
