:root {
  --ink: #173229;
  --ink-soft: #40584f;
  --muted: #5b6f67;
  --green: #164e3b;
  --green-deep: #0d382a;
  --green-light: #e8f2ed;
  --mint: #f1f7f3;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #d9e3dd;
  --orange: #a54016;
  --orange-pale: #fff1e8;
  --red: #a33a32;
  --shadow: 0 18px 48px rgba(22, 54, 42, 0.1);
  --serif: ui-serif, "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.archive-status-bar {
  min-height: 46px;
  padding-block: 10px;
  background: #7b3318;
}

.archive-status-bar strong {
  letter-spacing: 0.08em;
}

.archive-status-bar span {
  color: #ffdfcc;
}

.portfolio-archive .site-header {
  top: 0;
}

.portfolio-overview-grid,
.archive-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-overview-grid article,
.archive-feature-grid article {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.portfolio-overview-grid article > span,
.archive-feature-grid article > span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.portfolio-overview-grid h3,
.archive-feature-grid h2 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.45;
}

.portfolio-overview-grid p,
.archive-feature-grid p {
  margin: 0;
  color: var(--muted);
}

.portfolio-demo-card {
  position: relative;
  border-color: #c8d8cf;
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.portfolio-demo-card::before {
  content: "FICTIONAL";
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 8px;
  color: #fff;
  background: var(--orange);
  border-radius: 0 7px 0 7px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.portfolio-card-note,
.archive-modal-warning {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 13px 14px;
  border-left: 3px solid var(--orange);
  color: var(--ink-soft);
  background: var(--orange-pale);
  font-size: 12px;
}

.portfolio-card-note strong,
.archive-modal-warning strong {
  color: var(--orange);
}

.portfolio-history-card {
  overflow: hidden;
}

.portfolio-history-visual {
  min-height: 116px;
  display: grid;
  place-items: center;
  margin: 16px 0 20px;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, var(--green), var(--green-deep));
}

.portfolio-history-visual span {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.portfolio-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.portfolio-facts li {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-light);
  font-size: 10px;
  font-weight: 700;
}

.portfolio-detail-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.portfolio-detail-list div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.portfolio-detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.portfolio-detail-list dd {
  margin: 0;
}

.archive-page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 70vh;
  margin-inline: auto;
  padding: clamp(58px, 8vw, 96px) 0 88px;
}

.archive-page-hero {
  max-width: 840px;
  margin-bottom: 42px;
}

.archive-page-hero h1 {
  margin-bottom: 18px;
}

.archive-page-hero > p {
  color: var(--muted);
  font-size: 16px;
}

.archive-callout {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 4px solid var(--orange);
  background: var(--orange-pale);
}

.archive-callout p {
  margin: 6px 0 0;
}

.archive-footer-note {
  grid-column: 1 / -1;
  width: 100%;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: inherit;
  opacity: 0.78;
  font-size: 11px;
}

.case-study {
  background: #f4f7f3;
}

body,
button,
input,
select,
textarea {
  font-family: var(--sans);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--green-deep);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* The focus ring is the only thing a keyboard user has to locate themselves, so
   it must clear WCAG 1.4.11 (3:1) against every page background. The former
   #e6a36d measured 1.97-2.14:1 on white/paper/mint. */
:focus-visible {
  outline: 3px solid #a85a20;
  outline-offset: 3px;
}

.emergency-bar {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 7px 24px;
  color: #fff;
  background: var(--green-deep);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.emergency-bar p {
  margin: 0;
  text-align: center;
}

.emergency-bar span {
  margin-left: 12px;
  color: #c7dbd2;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(215, 226, 220, 0.9);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50% 50% 48% 52% / 54% 46% 54% 46%;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

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

.brand strong {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.site-header nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.site-header nav a {
  height: 100%;
  display: flex;
  align-items: center;
  color: #52675e;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--green);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login,
.text-link,
.filter-reset {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

a.login {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.primary,
.secondary {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 22px rgba(22, 78, 59, 0.16);
}

.primary:hover {
  border-color: var(--green-deep);
  background: var(--green-deep);
  transform: translateY(-1px);
}

.primary.compact {
  min-height: 44px;
  padding: 9px 15px;
  font-size: 11px;
}

.secondary {
  border: 1px solid #afbeb6;
  color: var(--ink);
  background: transparent;
}

.secondary:hover {
  border-color: var(--green);
  color: var(--green);
  background: #fff;
}

a.primary,
a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.menu {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 23px;
}

.mobile-nav {
  position: absolute;
  z-index: 45;
  top: 75px;
  right: 0;
  left: 0;
  padding: 14px 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 14px 28px rgba(18, 46, 35, 0.14);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a,
.mobile-nav button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 8px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.mobile-nav .primary {
  justify-content: center;
  margin-top: 8px;
  color: #fff;
  background: var(--green);
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 7vw, 112px);
  padding: clamp(72px, 8vw, 118px) clamp(28px, 8vw, 128px);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 14%, rgba(184, 211, 195, 0.5) 0, rgba(184, 211, 195, 0) 24%),
    linear-gradient(120deg, #f7f8f2 0%, #eef5ef 100%);
}

.hero::before {
  content: "熊本";
  position: absolute;
  right: -0.03em;
  bottom: -0.27em;
  color: rgba(22, 78, 59, 0.035);
  font-family: var(--serif);
  font-size: clamp(150px, 24vw, 360px);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 1;
  pointer-events: none;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--orange);
}

h1,
.creator-quote {
  font-family: var(--serif);
}

h1 {
  margin: 22px 0 24px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.35;
  letter-spacing: 0.025em;
}

.hero-phrase {
  white-space: nowrap;
}

h1 em {
  position: relative;
  color: var(--green);
  font-style: normal;
}

h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4px;
  bottom: 2px;
  left: -4px;
  height: 10px;
  background: #f0c3a6;
  opacity: 0.72;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2.05;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 28px;
}

.hero-buttons button {
  min-width: 210px;
}

.hero-buttons .primary span,
.final-cta .primary span {
  margin-left: 18px;
}

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

.hero-assurances li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.hero-assurances li span {
  width: 26px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
}

.hero-panel {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2px 34px 2px 34px;
  color: #fff;
  background: var(--green);
  box-shadow: var(--shadow);
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c6ddd2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.panel-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef9a64;
  box-shadow: 0 0 0 5px rgba(239, 154, 100, 0.12);
}

.hero-panel h2 {
  margin: 17px 0 16px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.65;
}

.hero-panel > p {
  margin: 0;
  color: #c9ded4;
  font-size: 12px;
  line-height: 1.9;
}

.panel-rule {
  margin: 24px 0 20px;
  padding: 17px 18px;
  border-left: 3px solid #ed9560;
  background: rgba(255, 255, 255, 0.08);
}

.panel-rule strong,
.panel-rule span {
  display: block;
}

.panel-rule strong {
  font-size: 13px;
}

.panel-rule span {
  margin-top: 5px;
  color: #c9ded4;
  font-size: 10px;
  line-height: 1.8;
}

.hero-panel > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.hero-panel > a span {
  margin-left: 14px;
}

.principle {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 15px 24px;
  color: #d9e8e1;
  background: var(--green-deep);
  text-align: center;
}

.principle p {
  margin: 0;
  font-size: 12px;
}

.principle span {
  margin-right: 13px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hub-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: center;
  gap: 42px;
  background: #eef5f1;
}

.hub-promo h2 {
  margin: 9px 0 12px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.45;
}

.hub-promo p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.hub-promo-actions {
  display: grid;
  gap: 10px;
}

.hub-role-guide {
  border-top: 1px solid var(--line);
  background: #fff;
}

.hub-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.hub-role-grid article {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.hub-role-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-light);
  font-size: 11px;
  font-weight: 800;
}

.hub-role-badge.relay {
  color: #65500b;
  background: #fff4cf;
}

.hub-role-badge.dispatch {
  color: #6e3d23;
  background: var(--orange-pale);
}

.hub-role-grid h3 {
  margin: 15px 0 7px;
  font-size: 17px;
}

.hub-role-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hub-relay-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-deep);
}

.hub-relay-flow span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--green-deep);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.hub-relay-flow .optional {
  color: #654707;
  background: #fff4cf;
}

.hub-relay-flow b {
  color: #a9c9ba;
}

.hub-role-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.hub-role-note strong {
  color: var(--green-deep);
}

.section-shell,
.traffic,
.creator {
  padding: clamp(72px, 8vw, 112px) clamp(24px, 8vw, 128px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.kicker {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-heading h2,
.traffic h2,
.flow h2,
.rules-heading h2 {
  margin: 9px 0 8px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.45;
}

.section-heading p,
.flow-intro p,
.rules-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.role-guide {
  background:
    radial-gradient(circle at 100% 0, rgba(232, 137, 76, 0.11), transparent 30%),
    #fff;
}

.role-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.role-guide-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(22, 78, 59, 0.07);
}

.role-guide-card.requester {
  border-top-color: var(--orange);
}

.role-guide-card.hub {
  border-top-color: #9b731d;
}

.role-guide-label {
  display: flex;
  align-items: center;
  gap: 13px;
}

.role-guide-label > span {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-deep);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.requester .role-guide-label > span {
  background: var(--orange);
}

.hub .role-guide-label > span {
  background: #8a671e;
}

.role-guide-label small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.role-guide-label h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
}

.role-guide-summary {
  min-height: 66px;
  margin: 19px 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.role-guide-card ol {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: role-step;
}

.role-guide-card li {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 0 14px 34px;
  border-top: 1px solid var(--line);
  counter-increment: role-step;
}

.role-guide-card li::before {
  content: counter(role-step, decimal-leading-zero);
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
}

.role-guide-card li b {
  font-size: 12px;
}

.role-guide-card li span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.role-guide-actions {
  display: grid;
  gap: 13px;
  align-items: center;
  margin-top: auto;
}

.role-guide-actions .primary {
  width: 100%;
  min-height: 48px;
  padding-right: 16px;
  padding-left: 16px;
}

.role-guide-actions .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.role-guide-note {
  margin: 18px 0 0;
  padding: 17px 20px;
  border-left: 4px solid var(--orange);
  color: var(--muted);
  background: var(--orange-pale);
  font-size: 12px;
  line-height: 1.8;
}

.role-guide-note strong {
  color: var(--ink);
}

.connection-guide {
  background: #f6f9f7;
}

.connection-board-flows {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.connection-board-flows article {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(220px, 0.9fr) 40px minmax(260px, 1.1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.connection-origin {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-deep);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
}

.connection-origin.requester {
  background: var(--orange);
}

.connection-origin.hub {
  background: #8a671e;
}

.connection-board-flows small,
.connection-board-flows p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.connection-board-flows h3 {
  margin: 3px 0 5px;
  font-family: var(--serif);
  font-size: 20px;
}

.connection-board-flows p {
  margin: 0 0 5px;
}

.connection-board-flows article > div > strong {
  color: var(--green);
  font-size: 15px;
}

.connection-arrow {
  color: var(--orange);
  font-size: 24px;
  text-align: center;
}

.connection-result {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 12px;
  padding: 15px 17px;
  border-left: 3px solid var(--green);
  background: var(--green-light);
  font-size: 11px;
  line-height: 1.65;
}

.connection-result span {
  min-width: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.hub-connection-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 18px 22px;
  border: 1px solid #eadfbe;
  background: #fffaf0;
}

.hub-connection-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.hub-connection-note strong {
  color: var(--ink);
}

.text-link span {
  margin-left: 12px;
}

.hub-board {
  background: #fbfcfa;
}

.hub-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.hub-board-grid article {
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  background: #fff;
}

.hub-board-grid article > span {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.hub-board-grid h3 {
  margin: 14px 0 8px;
  font-size: 15px;
}

.hub-board-grid p,
.hub-board-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.hub-board-notice {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr) auto;
  gap: 18px 26px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border-left: 4px solid var(--orange);
  background: var(--orange-pale);
}

.hub-board-notice > strong {
  font-size: 13px;
  line-height: 1.65;
}

.hub-board-notice > div {
  display: grid;
  gap: 9px;
}

.hub-board-notice .primary,
.hub-board-notice .secondary {
  width: 100%;
  min-width: 220px;
}

.filter-panel {
  margin-top: 34px;
  padding: 0 22px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 9px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.filters button {
  position: relative;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.filters button.selected {
  color: var(--green);
  background: var(--green-light);
}

.filter-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.6fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.filter-fields label span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.filter-fields input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #becdc5;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.filter-reset {
  white-space: nowrap;
}

.filter-result {
  min-height: 19px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 16px rgba(23, 50, 41, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-top,
.card-bottom,
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 3px;
  color: var(--green);
  background: var(--green-light);
  font-size: 9px;
  font-weight: 800;
}

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

.card h3,
.history-card h3 {
  overflow-wrap: anywhere;
}

.card h3 {
  margin: 16px 0 9px;
  font-size: 16px;
  line-height: 1.65;
}

.location {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 11px;
}

.conditions {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
  padding: 15px 0;
  border-top: 1px solid #edf1ee;
  border-bottom: 1px solid #edf1ee;
}

.condition-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.condition-row b {
  color: var(--ink);
}

.condition-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.network-method,
.fulfillment-callout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  margin: 10px 0;
  padding: 9px 11px;
  color: var(--ink-soft);
  background: var(--green-light);
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.network-publisher {
  margin: 10px 0 -6px;
  color: #805d18;
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.fulfillment-callout {
  margin: 18px 0;
  font-size: 12px;
}

.simple-support-condition {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #f8faf8;
}

.simple-support-condition strong,
.simple-support-condition p {
  display: block;
  overflow-wrap: anywhere;
}

.simple-support-condition p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.support-ready-check span,
.support-ready-check strong,
.support-ready-check small {
  display: block;
}

.support-ready-check strong {
  color: var(--ink);
  font-size: 13px;
}

.support-ready-check small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.simple-match-note {
  display: grid;
  gap: 3px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: var(--green-light);
  font-size: 12px;
  line-height: 1.7;
}

.simple-match-note span {
  color: var(--muted);
}

.local-preview-form-note {
  margin: 12px 0 0;
  color: #654815;
  font-size: 11px;
  line-height: 1.7;
}

.support-path-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.support-path-list section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: #fff;
}

.support-path-list p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.support-path-list .modal-submit {
  margin-top: 0;
}

.support-action-hint {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-left: 3px solid #d69b2d;
  color: #6b542b;
  background: #fff8e8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.support-stage-note {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 13px 14px;
  border: 1px solid #ead49d;
  color: #6b542b;
  background: #fff8e8;
}

.support-stage-note strong {
  color: var(--ink);
  font-size: 12px;
}

.support-stage-note span {
  font-size: 11px;
  line-height: 1.75;
}

.support-next-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.support-next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce8e1;
  background: #f7fbf8;
}

.support-next-steps li > span {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.support-next-steps strong,
.support-next-steps small {
  display: block;
  overflow-wrap: anywhere;
}

.support-next-steps strong {
  font-size: 13px;
  line-height: 1.5;
}

.support-next-steps small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.board-process {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(0, 2fr);
  gap: 28px;
  align-items: start;
  margin-top: -10px;
  margin-bottom: 28px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(232, 244, 237, 0.92), rgba(255, 255, 255, 0.94));
}

.board-process h2 {
  margin: 5px 0 0;
  color: var(--green-dark);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.board-process > div > p {
  max-width: 32rem;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.board-process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-process li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(17, 74, 55, 0.07);
}

.board-process li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.board-process li strong,
.board-process li small {
  display: block;
  overflow-wrap: anywhere;
}

.board-process li strong {
  margin: 4px 0 5px;
  color: var(--green-dark);
  font-size: 0.91rem;
}

.board-process li small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.offer-public-card .network-publisher {
  margin-bottom: 8px;
}

.report-link {
  min-height: 44px;
  align-self: flex-end;
  margin: 6px 0 2px;
  padding: 8px 0 8px 14px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
}

.card-bottom {
  margin-top: auto;
  padding-top: 10px;
}

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

.slots strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
}

.card-bottom button {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.empty-state,
.error-state,
.loading-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px 24px;
  border: 1px dashed #bbc9c2;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-align: center;
}

.error-state strong,
.error-state span {
  display: block;
}

.error-state strong {
  color: var(--ink);
  font-size: 14px;
}

.error-state span {
  margin-top: 6px;
}

.retry-button {
  min-height: 44px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  background: #fff;
  font-weight: 700;
}

.traffic {
  color: #fff;
  background: var(--green);
}

.traffic .kicker {
  color: #bcd8ca;
}

.traffic-heading {
  display: flex;
  align-items: center;
  gap: 17px;
}

.traffic-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
}

.traffic h2 {
  color: #fff;
}

.traffic-lead {
  max-width: 970px;
  margin: 24px 0 30px;
  color: #cfe1d8;
  font-size: 13px;
  line-height: 2;
}

.traffic-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.traffic-rules article {
  min-width: 0;
  display: flex;
  gap: 13px;
  padding: 22px;
  background: var(--green);
}

.traffic-rules article > b {
  color: #f1a372;
  font-size: 10px;
}

.traffic-rules strong {
  font-size: 12px;
}

.traffic-rules p {
  margin: 6px 0 0;
  color: #c8ddd3;
  font-size: 10px;
  line-height: 1.8;
}

.traffic-caution {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 3px solid #ee9863;
  color: #d8e8e0;
  background: rgba(0, 0, 0, 0.1);
  font-size: 11px;
}

.traffic-caution strong {
  color: #fff;
}

.traffic-caution a {
  color: #fff;
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.flow {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
  background: #f4f1e9;
}

.flow-intro {
  position: sticky;
  top: 110px;
}

.flow-intro p {
  margin-top: 14px;
  line-height: 1.9;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cdd8d2;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(120px, 0.65fr) minmax(0, 1.35fr);
  gap: 15px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid #cdd8d2;
}

.steps li > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.steps li > b {
  font-size: 14px;
}

.steps li > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.history {
  background: #fff;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.network-latest { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
.latest-heading { align-items: end; gap: 24px; }
.latest-heading > div:first-child { max-width: 780px; }
.latest-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.network-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.network-column { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 36px rgba(24, 48, 38, .07); }
.network-column.needs { border-top: 5px solid #b85b45; }
.network-column.hubs { border-top: 5px solid var(--green); }
.network-column.offers { border-top: 5px solid #b88925; }
.network-column-head { display: flex; gap: 13px; align-items: center; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.network-column-head > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-family: var(--serif); font-weight: 700; }
.network-column.needs .network-column-head > span { background: #a94f3c; }
.network-column.offers .network-column-head > span { background: #a87818; }
.network-column-head h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.5; }
.network-column-head p { margin: 0; color: var(--muted); font-size: 12px; }
.network-feed { display: grid; gap: 0; }
.network-card { min-width: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.network-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.network-card-top > span { color: var(--green); }
.network-card h4 { margin: 9px 0 7px; overflow-wrap: anywhere; font-size: 16px; line-height: 1.6; }
.network-place,.network-condition { margin: 0 0 10px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.network-condition { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.network-items { display: grid; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.network-items li { display: flex; justify-content: space-between; gap: 10px; min-width: 0; padding: 6px 8px; border-radius: 7px; background: var(--cream); font-size: 12px; }
.network-items li span { min-width: 0; overflow-wrap: anywhere; }
.network-items li span small { display: block; margin-bottom: 1px; color: var(--muted); font-size: 9px; font-weight: 700; }
.network-items li strong { flex: 0 0 auto; }
.network-items-more { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.network-card-action,.network-more { min-height: 44px; display: inline-flex; align-items: center; margin-top: 4px; border: 0; color: var(--green); background: transparent; font: inherit; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.network-more { margin: 4px 20px 14px; }
.network-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; }
.network-card-actions .report-link { margin-left: auto; }
.live-test-label {
  flex: 1 0 100%;
  margin-top: 10px;
  color: var(--green);
  font-size: 11px;
  line-height: 1.5;
}

.local-preview-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #b7832f;
  border-radius: 14px;
  background: #fff7df;
  color: #563c12;
}
.local-preview-notice strong { flex: 0 0 auto; }
.local-preview-notice span { line-height: 1.65; }
.local-preview-notice code { font-size: .9em; }
.local-preview-card { border-color: #b7832f; box-shadow: 0 8px 24px rgba(125, 85, 20, .08); }
.local-preview-action {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #dac8a6;
  color: #654815;
  font-size: .88rem;
  line-height: 1.55;
}
.local-preview-action strong {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #8b5f18;
  color: #fff;
  font-size: .76rem;
}
.local-preview-action .primary { margin-left: auto; }
.network-empty { margin: 0; padding: 22px 20px; color: var(--muted); font-size: 13px; line-height: 1.9; }
@media (max-width: 900px) { .network-columns { grid-template-columns: 1fr; } }

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

.requests-page { min-height: 70vh; }
.requests-intro { padding-top: clamp(58px, 8vw, 96px); padding-bottom: 34px; }
.requests-intro h1 { max-width: 880px; margin: 12px 0 14px; font-family: var(--serif); font-size: clamp(34px, 6vw, 68px); line-height: 1.28; letter-spacing: -.03em; }
.requests-intro > p { max-width: 780px; margin: 0; color: var(--muted); line-height: 2; }
.requests-back { min-height: 44px; display: inline-flex; align-items: center; margin-bottom: 18px; color: var(--green); font-size: 12px; font-weight: 800; text-decoration: none; }
.requests-search { padding-top: 0; padding-bottom: 28px; }
.requests-filter-details { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(23, 50, 41, .05); }
.requests-filter-details > summary { display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 12px 16px; color: var(--green-dark); cursor: pointer; list-style: none; }
.requests-filter-details > summary::-webkit-details-marker { display: none; }
.requests-filter-details > summary::after { content: '＋'; margin-left: auto; font-size: 22px; line-height: 1; }
.requests-filter-details[open] > summary::after { content: '−'; }
.requests-filter-details > summary span { color: var(--muted); font-size: 12px; }
.requests-filter-panel { position: relative; padding: 0 16px 16px; }
.requests-filter-panel > .filter-reset { display: block; min-height: 44px; margin: 0 0 6px auto; }
.requests-filter-form { display: grid; grid-template-columns: minmax(140px, .75fr) minmax(180px, 1.2fr) minmax(145px, .8fr) minmax(145px, .8fr) auto; gap: 12px; align-items: end; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(23, 50, 41, .05); }
.requests-filter-form .field { min-width: 0; }
.requests-filter-submit { min-width: 126px; }
.requests-result-status { min-height: 24px; margin: 12px 2px 0; color: var(--muted); font-size: 12px; }
.requests-results { padding-top: 0; padding-bottom: 42px; }
.requests-public-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.request-public-card .network-items { margin-bottom: 14px; }
.request-public-card .conditions { margin-top: auto; }
.request-public-actions { flex-wrap: wrap; align-items: center; }
.request-public-actions .primary { flex: 1 1 180px; justify-content: center; }
.request-public-actions .report-link { flex: 0 0 auto; }
.requests-empty { grid-column: 1 / -1; padding: 42px 22px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; color: var(--muted); background: #fff; }
.requests-empty strong { display: block; margin-bottom: 8px; color: var(--ink); }
.requests-empty p { margin: 0; }
.requests-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; margin-top: 28px; }
.requests-pagination button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); background: #fff; font-weight: 800; }
.requests-pagination button[aria-current="page"] { border-color: var(--green); color: #fff; background: var(--green); }
.requests-pagination button:disabled { cursor: not-allowed; }
.requests-pagination span { color: var(--muted); }
.requests-safety { margin-bottom: clamp(60px, 8vw, 96px); padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.requests-safety strong { color: var(--red); }
.requests-safety p { max-width: 900px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }

@media (max-width: 1050px) {
  .requests-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .requests-filter-submit { grid-column: 1 / -1; }
  .requests-public-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-item-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-item-name { grid-column: span 2; }
}

@media (max-width: 680px) {
  .local-preview-notice,.local-preview-action { align-items: flex-start; flex-direction: column; }
  .requests-intro { padding-top: 44px; }
  .requests-search-heading { align-items: center; }
  .requests-filter-form,.requests-public-grid { grid-template-columns: 1fr; }
  .requests-filter-submit { grid-column: auto; width: 100%; }
  .request-public-actions .primary,.request-public-actions .report-link { width: 100%; flex-basis: 100%; justify-content: center; }
  .request-item-fields { grid-template-columns: 1fr; }
  .request-item-name { grid-column: auto; }
  .request-items-editor-heading { display: grid; }
  .request-item-add { width: 100%; }
}

.history-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.history-card h3 {
  margin: 14px 0 8px;
  font-size: 15px;
  line-height: 1.65;
}

.history-card > .secondary {
  width: 100%;
  margin-top: 10px;
}

.feedback-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.feedback {
  padding: 13px;
  background: var(--mint);
}

.feedback strong {
  color: var(--green);
  font-size: 10px;
}

.feedback img {
  width: 100%;
  max-height: 230px;
  display: block;
  margin-top: 9px;
  border-radius: 3px;
  object-fit: cover;
}

.relay-history-card { grid-column: span 2; }
.relay-history-photo { width: 100%; max-height: 360px; display: block; margin: 14px 0; border-radius: 10px; object-fit: cover; }
.relay-summary { white-space: pre-wrap; overflow-wrap: anywhere; }
.relay-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.relay-facts div { padding: 9px; border-radius: 7px; background: var(--cream); }
.relay-facts dt { color: var(--muted); font-size: 10px; }
.relay-facts dd { margin: 4px 0 0; font-size: 12px; font-weight: 700; }
.relay-item-table { overflow-x: auto; }
.relay-item-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 11px; }
.relay-item-table th,.relay-item-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
@media (max-width: 760px) { .relay-history-card { grid-column: auto; } .relay-facts { grid-template-columns: 1fr; } }

.feedback p {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.history-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.creator {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  overflow: hidden;
  background: #eaf2ed;
}

.creator::after {
  content: "結";
  position: absolute;
  right: 4vw;
  bottom: -0.38em;
  color: rgba(22, 78, 59, 0.045);
  font-family: var(--serif);
  font-size: clamp(170px, 25vw, 360px);
  line-height: 1;
}

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

.creator .kicker {
  position: absolute;
  top: clamp(48px, 6vw, 78px);
  left: clamp(24px, 8vw, 128px);
}

.creator-quote {
  margin: 22px 0 0;
  font-size: clamp(25px, 3.3vw, 43px);
  line-height: 1.7;
}

.creator > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2.2;
}

.rules {
  background: var(--paper);
}

.rules-heading {
  max-width: 760px;
}

.rules-heading p {
  margin-top: 12px;
  color: var(--red);
  font-weight: 600;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.rules-grid article {
  position: relative;
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.rule-number {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
}

.rules-grid h3 {
  margin: 8px 0 14px;
  font-family: var(--serif);
  font-size: 18px;
}

.rules-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.rules-grid article > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.rules-grid li,
.rules-note {
  overflow-wrap: anywhere;
}

.rules-note a,
.consents a,
.modal .lead a,
.modal-contact-note a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.rules-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  color: #775740;
  background: var(--orange-pale);
  font-size: 10px;
  line-height: 1.8;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(60px, 7vw, 90px) clamp(24px, 8vw, 128px);
  color: #fff;
  background: var(--green-deep);
}

.final-cta > div > span {
  color: #abcbbd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.final-cta h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.6;
}

.primary.light {
  flex: 0 0 auto;
  border-color: #fff;
  color: var(--green-deep);
  background: #fff;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
  padding: 46px clamp(24px, 8vw, 128px);
  color: var(--muted);
  background: #f1f1eb;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand p {
  margin: 0;
  font-size: 10px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

footer > small {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid #d5ddd8;
  font-size: 9px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 24, 17, 0.7);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100dvh - 36px);
  padding: 34px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #667970;
  background: #f1f5f2;
  font-size: 24px;
}

.modal h2 {
  margin: 8px 48px 10px 0;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.modal h3 {
  margin-top: 24px;
  font-size: 15px;
}

.modal .lead {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

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

.request-items-editor { min-width: 0; }
.request-items-editor-heading { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 12px; }
.request-items-editor-heading > div { min-width: 0; }
.request-item-rows { display: grid; gap: 10px; }
.request-item-row { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
.request-item-row-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 9px; font-size: 11px; }
.request-item-fields { display: grid; grid-template-columns: minmax(105px, .7fr) minmax(0, 1.8fr) minmax(85px, .55fr) minmax(85px, .65fr); gap: 10px; align-items: end; }
.request-item-fields .field { min-width: 0; }
.request-item-add,.request-item-remove { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); background: #fff; font-size: 11px; font-weight: 800; }
.request-item-add { flex: 0 0 auto; padding: 8px 12px; }
.request-item-remove { min-width: 64px; padding: 6px 10px; }
.request-item-remove:disabled { visibility: hidden; }
.request-items-status { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 10px; }

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.7;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  /* The border is the only thing that defines the field, so it must clear the
     WCAG 1.4.11 3:1 floor for a UI component boundary. #b8c8bf was 1.74:1. */
  border: 1px solid #6f867c;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

/* iOS Safari force-zooms the whole page whenever a focused control renders
   below 16px, and the user then has to pinch back out on every field. Phones
   are the primary target, so form controls take the full 16px there. */
@media (max-width: 680px) {
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}

/* A persistent, screen-reader-announced message for auth errors. A toast alone
   disappears after 4.5s, which is not enough for a consumed verification code
   where the member has to act on the instruction. */
.form-message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: #fdf3f2;
  color: #7d2b25;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.form-message.info {
  border-left-color: var(--green);
  background: var(--green-light);
  color: var(--green-deep);
}

.form-message[hidden] {
  display: none;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.75;
}

.field textarea.large-input {
  min-height: 150px;
}

.email-option,
.feedback-consent {
  min-height: 48px;
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  background: var(--mint);
  font-weight: 400 !important;
  line-height: 1.7;
}

.email-option input,
.feedback-consent input,
.consents input,
.checklist input {
  width: 20px !important;
  min-width: 20px;
  height: 20px;
  min-height: 20px !important;
  margin: 1px 0 0;
}

.email-option span,
.email-option strong,
.email-option small {
  display: block;
}

.email-option strong {
  font-size: 11px;
}

.email-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.consents,
.checklist {
  display: grid;
  gap: 9px;
}

.consents label,
.checklist label {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e9e5;
  background: #f7f9f7;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.75;
}

.modal-submit {
  width: 100%;
  margin-top: 22px;
}

.modal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.schema-warning,
.modal-contact-note {
  padding: 12px 14px;
  color: #76542d;
  background: var(--orange-pale);
  font-size: 12px;
  line-height: 1.8;
}

.contact-result {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #cfe0d7;
  background: var(--mint);
}

.contact-result strong {
  font-size: 11px;
}

.contact-result p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.owned-list {
  display: grid;
  gap: 12px;
  margin-top: 19px;
}

.owned-list article {
  padding: 17px;
  border: 1px solid var(--line);
}

.owned-list article > strong {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.owned-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.status-line small {
  color: var(--muted);
  font-size: 9px;
}

.status-action {
  width: 100%;
  margin-top: 12px;
}

.waiting {
  padding: 11px;
  color: #735522 !important;
  background: #fff7e9;
}

.member-form-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px 15px;
  border-left: 3px solid var(--green);
  color: var(--ink-soft);
  background: var(--mint);
}

.member-form-note strong {
  color: var(--ink);
  font-size: 11px;
}

.member-form-note span {
  font-size: 10px;
  line-height: 1.75;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.auth-points span,
.member-badge {
  padding: 5px 8px;
  border-radius: 20px;
  color: var(--green);
  background: var(--green-light);
  font-size: 9px;
  font-weight: 700;
}

.otp-input {
  font-size: 24px !important;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-align: center;
}

.auth-back {
  width: 100%;
  margin-top: 8px;
}

.profile-consent {
  margin-top: 18px;
}

.account-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-right: 48px;
}

.account-heading h2 {
  margin-right: 0;
}

.account-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.member-badge {
  flex: 0 0 auto;
  margin-top: 12px;
}

.account-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 14px;
  align-items: center;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #f8faf8;
}

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

.account-contact strong {
  grid-column: 1;
  font-size: 12px;
}

.account-contact button {
  grid-row: 1 / 3;
  grid-column: 2;
  min-height: 40px;
  padding: 8px 11px;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.verification-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #745536;
  background: var(--orange-pale);
  font-size: 9px;
  line-height: 1.75;
}

.account-section {
  margin-top: 28px;
}

.account-section > h3 {
  margin: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 16px;
}

.account-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: #f8faf8;
  font-size: 10px;
  text-align: center;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.withdraw-link {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  color: #7a6c65;
  background: transparent;
  font-size: 9px;
  text-decoration: underline;
}

.danger-button {
  border-color: #9d3732;
  background: #9d3732;
}

.danger-button:hover {
  border-color: #742823;
  background: #742823;
}

.photo-field {
  margin-top: 16px;
}

.feedback-consent {
  margin-top: 16px;
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 150;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 18px;
  border-radius: 4px;
  color: #fff;
  background: var(--green-deep);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
    gap: 40px;
  }

  .request-grid,
  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .board-process {
    grid-template-columns: 1fr;
  }

  .board-process ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emergency-bar span {
    display: none;
  }

  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .header-actions {
    display: none;
  }

  .menu {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .mobile-nav {
    top: 67px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .traffic-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-board-grid {
    grid-template-columns: 1fr;
  }

  .role-guide-grid {
    grid-template-columns: 1fr;
  }

  .role-guide-summary {
    min-height: 0;
  }

  .connection-board-flows article {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .connection-arrow {
    display: none;
  }

  .connection-result {
    grid-column: 1 / -1;
  }

  .hub-board-notice {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .flow-intro {
    position: static;
  }

  .creator {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }

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

  .hub-role-grid {
    grid-template-columns: 1fr;
  }

  .hub-relay-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hub-relay-flow b {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 600px) {
  .support-next-steps {
    grid-template-columns: 1fr;
  }

  .board-process {
    margin-top: 0;
    padding: 18px;
    border-radius: 18px;
  }

  .board-process ol {
    grid-template-columns: 1fr;
  }

  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: 14px;
  }

  .emergency-bar {
    min-height: 39px;
    padding: 7px 14px;
    font-size: 12px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 6px;
  }

  .hero,
  .section-shell,
  .traffic,
  .creator {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  h1 {
    margin-top: 18px;
    font-size: 30px;
    line-height: 1.42;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.95;
  }

  .hero-buttons {
    display: grid;
  }

  .hero-buttons button {
    width: 100%;
    min-width: 0;
  }

  .hero-buttons > a {
    width: 100%;
    min-width: 0;
  }

  .hero-assurances li {
    align-items: flex-start;
    font-size: 12px;
  }

  .hero-panel {
    padding: 27px 22px;
    border-radius: 2px 24px 2px 24px;
  }

  .hero-panel h2 {
    font-size: 23px;
  }

  .principle {
    min-height: 72px;
    padding: 14px 18px;
  }

  .principle p {
    font-size: 12px;
    line-height: 1.8;
  }

  .principle span {
    display: block;
    width: fit-content;
    margin: 0 auto 5px;
  }

  .hub-promo {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hub-promo-actions a {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2,
  .traffic h2,
  .flow h2,
  .rules-heading h2 {
    font-size: 27px;
  }

  .section-heading .text-link {
    margin-top: 14px;
    padding-left: 0;
  }

  .hub-board-grid article,
  .hub-board-notice {
    padding: 20px 18px;
  }

  .hub-board-notice .primary,
  .hub-board-notice .secondary {
    min-width: 0;
  }

  .filter-panel {
    margin-right: -4px;
    margin-left: -4px;
    padding: 0 14px 16px;
  }

  .filters {
    margin-right: -14px;
    padding-right: 14px;
  }

  .filter-fields {
    grid-template-columns: 1fr;
  }

  .filter-reset {
    justify-self: start;
    padding-left: 0;
  }

  .request-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px 18px;
  }

  .card h3 {
    font-size: 17px;
  }

  .location,
  .condition-row,
  .slots,
  .card-bottom button,
  .report-link {
    font-size: 12px;
  }

  .condition-row {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .traffic-heading {
    align-items: flex-start;
  }

  .traffic-icon {
    width: 47px;
    height: 47px;
  }

  .traffic-rules {
    grid-template-columns: 1fr;
  }

  .traffic-rules article {
    padding: 19px 16px;
  }

  .traffic-lead,
  .traffic-caution,
  .traffic-rules p {
    font-size: 13px;
  }

  .traffic-rules strong {
    font-size: 14px;
  }

  .steps li {
    grid-template-columns: 38px 1fr;
    gap: 8px 10px;
  }

  .steps li > p {
    grid-column: 2;
    font-size: 13px;
  }

  .creator .kicker {
    left: 20px;
  }

  .creator-quote {
    font-size: 27px;
  }

  .creator > p:last-child {
    font-size: 12px;
    line-height: 2;
  }

  .rules-grid article {
    padding: 22px 19px;
  }

  .rules-grid ul,
  .rules-note,
  .section-heading p,
  .flow-intro p,
  .rules-heading p {
    font-size: 13px;
  }

  .role-guide-card {
    padding: 22px 19px 19px;
  }

  .role-guide-summary,
  .role-guide-card li b,
  .role-guide-card li span,
  .role-guide-note,
  .hub-connection-note p,
  .connection-board-flows small,
  .connection-board-flows p {
    font-size: 13px;
  }

  .connection-board-flows article {
    padding: 19px 16px;
  }

  .hub-connection-note {
    align-items: flex-start;
    padding: 16px;
  }

  .final-cta {
    display: grid;
    padding: 54px 20px;
  }

  .final-cta .primary {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 36px 20px;
  }

  .footer-brand {
    display: grid;
    gap: 13px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  footer > small {
    grid-column: auto;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: calc(100dvh - 12px);
    padding: 30px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
  }

  .modal h2 {
    font-size: 22px;
  }

  .modal .lead,
  .field label,
  .consents label,
  .checklist label,
  .feedback-consent,
  .member-form-note span,
  .support-stage-note span,
  .field-hint {
    font-size: 13px;
  }

  .account-heading {
    display: block;
    margin-right: 44px;
  }

  .member-badge {
    width: fit-content;
    display: block;
    margin-top: 8px;
  }

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

  .field.full {
    grid-column: auto;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .portfolio-overview-grid,
  .archive-feature-grid {
    grid-template-columns: 1fr;
  }

  .archive-status-bar p {
    display: grid;
    gap: 3px;
  }

  .archive-status-bar span {
    margin-left: 0;
  }

  .portfolio-detail-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
