@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap");

:root {
  --bg: #f7fbfc;
  --surface: #ffffff;
  --surface-soft: #eef7f9;
  --text: #243238;
  --muted: #66777f;
  --line: #dcebee;
  --brand: #277b90;
  --brand-dark: #1f5d70;
  --accent: #f09a68;
  --protected: #5e88c7;
  --shadow: 0 16px 40px rgba(32, 88, 104, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 1.063rem; min-height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  letter-spacing: 0;
}

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

/* 本文中のプレーンテキストリンク */
p a, li a, td a, .post-content a, .thread-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
p a:hover, li a:hover, td a:hover, .post-content a:hover, .thread-body a:hover { color: var(--brand-dark); }

button,
input,
select {
  font: inherit;
}

.notice-bar {
  background: #e9f6f8;
  color: #1f5d70;
  font-size: 13px;
  padding: 8px 20px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 12px 24px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 220px;
}

.brand-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background-color: var(--brand);
  -webkit-mask: url("/images/logo_icon.svg") center / contain no-repeat;
  mask: url("/images/logo_icon.svg") center / contain no-repeat;
  transform: scaleX(-1);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.site-nav a {
  border-radius: 999px;
  color: #31413f;
  padding: 9px 13px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--surface-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 72px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(247, 252, 253, 0.97), rgba(232, 247, 250, 0.9)),
    linear-gradient(135deg, #e2f5fa 0%, #ffffff 100%);
  color: var(--text);
  padding: clamp(32px, 7vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(127,106,66,0.12);
  border-radius: 8px;
  pointer-events: none;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(39,123,144,0.16);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

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

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.12;
  font-weight: 800;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: #52676f;
  font-size: 17px;
}

.search-panel {
  max-width: 850px;
  margin-top: 34px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 132px;
  gap: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.search-field {
  display: grid;
  gap: 4px;
}

.search-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-field input,
.search-field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  padding: 0 12px;
  outline: none;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,111,103,0.12);
}

.search-panel button {
  height: 46px;
  align-self: end;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-actions a {
  border: 1px solid rgba(127,106,66,0.25);
  border-radius: 999px;
  color: var(--brand-dark);
  padding: 9px 14px;
  font-size: 14px;
}

.hero-panel {
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-panel::before {
  content: "探す人に、やさしい入口を";
  display: block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.stat {
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 20px;
}

.stat.primary {
  background: #277b90;
  color: #fff;
}

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

.stat-value {
  display: block;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  font-weight: 800;
}

.stat-grid .stat-value { font-size: 34px; }

.stat-label {
  display: block;
  margin-top: 8px;
  color: inherit;
  opacity: 0.76;
  font-size: 13px;
}

.stat-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.mission {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.mission h2,
.section h2,
.info-band h2,
.support h2 {
  margin: 0;
  line-height: 1.35;
  font-size: clamp(24px, 3vw, 36px);
}

.mission p {
  margin: 0;
  color: var(--muted);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 56px;
}

.quick-links a {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7fcfd);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-links a:hover {
  border-color: rgba(31,111,103,0.45);
  box-shadow: var(--shadow);
}

.quick-links span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.quick-links strong {
  font-size: 18px;
  line-height: 1.4;
}

.section {
  margin-top: 56px;
}

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

.text-link {
  color: var(--brand);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

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

.case-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(77, 61, 42, 0.05);
}

.case-card[hidden] { display: none; }

.case-media {
  height: 220px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.84);
  font-size: 13px;
  font-weight: 700;
}

.deceased-media {
  background:
    linear-gradient(135deg, rgba(151,112,88,0.76), rgba(224,150,111,0.54)),
    repeating-linear-gradient(45deg, #c9a38e 0 12px, #bd9783 12px 24px);
}

.protected-media {
  background:
    linear-gradient(135deg, rgba(87,121,149,0.78), rgba(118,159,189,0.52)),
    repeating-linear-gradient(45deg, #9db7c9 0 12px, #90aabb 12px 24px);
}

.case-body {
  padding: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.badge.deceased {
  background: #faebe4;
  color: #9b5135;
}

.badge.protected {
  background: #e9f2f7;
  color: #416f91;
}

.case-card h3 {
  margin: 12px 0 12px;
  font-size: 18px;
  line-height: 1.45;
}

.case-card dl {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 5px 10px;
  margin: 0;
  font-size: 13px;
}

.case-card dt {
  color: var(--muted);
}

.case-card dd {
  margin: 0;
}

.info-band,
.support {
  margin-top: 56px;
  border-radius: 8px;
  background: #277b90;
  color: #fff;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.hero-photo {
  width: min(920px, 100%);
  margin: 0 0 30px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.info-band .eyebrow,
.support .eyebrow { color: #f8dfb8; }

.info-band p,
.support p {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.84);
}

.button-secondary,
.share-actions a {
  border: 1px solid rgba(255,255,255,0.46);
  border-radius: 7px;
  color: #fff;
  padding: 11px 16px;
  white-space: nowrap;
}

.support {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.support .eyebrow { color: var(--brand); }
.support p { color: var(--muted); }

.share-actions {
  display: flex;
  gap: 10px;
}

.share-actions a {
  color: var(--brand);
  border-color: var(--line);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.site-footer { flex-shrink: 0;
  background: #214752;
  color: #f0fbfd;
  padding: 34px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 4px 0 0;
  color: #b9d6dc;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .mission,
  .info-band,
  .support {
    grid-template-columns: 1fr;
  }

  .quick-links,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero { min-height: auto; }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 7px;
    background: var(--surface-soft);
  }

  main {
    padding: 22px 16px 52px;
  }

  .hero-copy,
  .hero-panel,
  .info-band,
  .support {
    padding: 24px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .quick-links,
  .case-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer { flex-shrink: 0;
    flex-direction: column;
  }
}

/* First view v2: AI search and forum entry */
.hero {
  min-height: 600px;
  grid-template-columns: 1fr;
}

.hero h1 {
  max-width: 920px;
}

.hero-copy {
  text-align: center;
  align-items: center;
}

.lead {
  max-width: 780px;
}

.search-workspace {
  width: min(980px, 100%);
  margin-top: 34px;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
  text-align: left;
}

.conversation-panel,
.condition-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}

.conversation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 10px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
  grid-column: 1 / -1;
}

.panel-title span {
  color: var(--brand-dark);
  font-weight: 800;
}

.panel-title small {
  color: var(--muted);
  font-size: 12px;
}

.chat-window {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  grid-column: 1;
}

.search-guide-illustration {
  grid-column: 2;
  align-self: end;
  justify-self: center;
  width: min(112px, 100%);
  aspect-ratio: 1 / 1.2;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(238,247,249,0.35), rgba(255,255,255,0.72));
  border: 1px dashed rgba(39,123,144,0.16);
  position: relative;
}

.search-guide-illustration::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(39,123,144,0.28);
  border-radius: 50%;
  transform: translateX(-50%);
}

.search-guide-illustration::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 54px;
  height: 58px;
  border: 3px solid rgba(39,123,144,0.24);
  border-radius: 8px 8px 4px 4px;
  transform: translateX(-50%);
}

.message {
  max-width: 82%;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
}

.message p { margin: 0; }

.message.system {
  background: var(--surface-soft);
  color: var(--text);
  width: 100%;
  max-width: 100%;
}

.message.system.soft {
  background: #f7fcfd;
  color: var(--muted);
  width: 100%;
  max-width: 100%;
}

.message.user {
  justify-self: end;
  background: var(--brand);
  color: #fff;
}

.chat-input {
  display: contents;
}

.chat-input textarea {
  grid-column: 1;
  width: 100%;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  padding: 12px;
  outline: none;
  resize: vertical;
}

.chat-input textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(39,123,144,0.14);
}

.chat-input button {
  grid-column: 2;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #e88e61, #e3a06f);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(232, 142, 97, 0.22);
}

.search-hints {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  grid-column: 1;
}

.search-hints button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fcfd;
  color: var(--brand-dark);
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.filter-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 0 30px 4px 0;
  scrollbar-width: none;
}

.filter-tags::-webkit-scrollbar,
.result-preview::-webkit-scrollbar {
  display: none;
}

.filter-tags button {
  flex: 0 0 auto;
  border: 1px solid #b8dbe3;
  border-radius: 999px;
  background: #eef9fb;
  color: var(--brand-dark);
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.result-summary {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.result-summary strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 16px;
  white-space: nowrap;
}

.result-summary a {
  border: 1px solid rgba(39,123,144,0.2);
  border-radius: 999px;
  background: #f6fbfc;
  color: var(--brand-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.result-preview {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 34px 4px 0;
  scrollbar-width: none;
}

.result-preview article {
  flex: 0 0 min(250px, 82vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.scroll-controls {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.scroll-controls::before,
.scroll-controls::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.scroll-controls::before {
  left: 0;
  width: 52px;
  background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0));
}

.scroll-controls::after {
  right: 0;
  width: 52px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.96));
}

.scroll-controls.can-scroll-left::before,
.scroll-controls.can-scroll-right::after {
  opacity: 1;
}

.scroll-area {
  margin-top: 12px;
}

.scroll-button {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(39,123,144,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 20px rgba(32, 88, 104, 0.1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, background 0.18s ease;
  z-index: 3;
}

.scroll-button::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--brand-dark);
  border-right: 2px solid var(--brand-dark);
}

.scroll-button-left {
  left: 4px;
}

.scroll-button-left::before {
  transform: rotate(-135deg);
}

.scroll-button-right {
  right: 6px;
}

.scroll-button-right::before {
  left: 7px;
  transform: rotate(45deg);
}

.scroll-controls.can-scroll-left .scroll-button-left,
.scroll-controls.can-scroll-right .scroll-button-right {
  opacity: 1;
  pointer-events: auto;
}

.scroll-button:hover {
  background: #fff;
}

.result-preview strong,
.result-preview small {
  display: block;
}

.result-preview strong {
  margin: 8px 0 4px;
}

.result-preview small {
  color: var(--muted);
  font-size: 12px;
}

.search-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.forum-consult-link {
  border: 1px solid rgba(39,123,144,0.2);
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff, #f3fafb);
  color: var(--brand-dark);
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  box-shadow: 0 10px 26px rgba(32, 88, 104, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.forum-consult-link::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
}

.hero-side {
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-follow {
  margin: 16px 0 34px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
}

.follow-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(32, 88, 104, 0.05);
}

.follow-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.follow-card strong {
  font-size: 18px;
  line-height: 1.4;
}

.forum-entry {
  background: linear-gradient(135deg, #e8f8fb, #fff);
}

.forum-card {
  min-height: 250px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(39,123,144,0.94), rgba(118,190,204,0.72)),
    #277b90;
  color: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.forum-card strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.35;
}

.forum-card small {
  margin-top: 10px;
  color: rgba(255,255,255,0.82);
}

.forum-label {
  width: max-content;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-stats div,
.side-link {
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 18px;
}

.mini-stats .stat-value {
  font-size: 34px;
}

.side-link {
  color: var(--brand-dark);
  font-weight: 700;
}

.quick-links {
  grid-template-columns: repeat(5, 1fr);
}

.forum-preview {
  margin: 28px 0 56px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 24px;
}

.forum-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.forum-copy p {
  color: var(--muted);
}

.forum-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.forum-actions a {
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
}

.forum-actions a + a {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.thread-list {
  display: grid;
  gap: 12px;
}

.thread-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fcfd;
  padding: 18px;
}

.thread-item span,
.thread-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.thread-item strong {
  display: block;
  margin: 6px 0;
  font-size: 17px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .forum-preview,
  .hero {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .chat-input,
  .mini-stats,
  .quick-links,
  .result-preview {
    grid-template-columns: 1fr;
  }

  .panel-title,
  .result-summary {
    flex-direction: column;
  }

  .message {
    max-width: 100%;
  }
}

/* First view v3: photo-led masthead with the conversation search anchored below */
.hero {
  min-height: auto;
  display: block;
}

.hero-copy {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  align-items: stretch;
  overflow: visible;
}

.hero-copy::before,
.hero-copy::after {
  display: none;
}

.hero-masthead {
  min-height: clamp(300px, 34vw, 390px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247,251,252,0.98) 0%, rgba(247,251,252,0.92) 38%, rgba(247,251,252,0.56) 68%, rgba(247,251,252,0.18) 100%),
    url("../img/hero-support-search.png") center right / cover no-repeat;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: clamp(24px, 4.2vw, 46px);
}

.hero-masthead .hero-text {
  width: min(760px, 100%);
}

.hero-masthead .eyebrow {
  color: var(--brand-dark);
}

.hero-masthead h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.9vw, 60px);
  line-height: 1.05;
}

.hero-masthead .lead {
  max-width: 760px;
  color: #42555d;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.78;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-meta span {
  border: 1px solid rgba(39,123,144,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--brand-dark);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.search-workspace {
  width: 100%;
  margin: -28px auto 36px;
}

.chat-window {
  height: 186px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.condition-panel {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.condition-panel.is-updated {
  border-color: rgba(39,123,144,0.45);
  box-shadow: 0 18px 44px rgba(39,123,144,0.16);
}

@media (min-width: 960px) {
  .search-workspace {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: stretch;
  }

  .search-side {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .condition-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }

  .condition-panel .scroll-area {
    margin-top: 12px;
  }

  .forum-consult-link {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .conversation-panel {
    grid-template-columns: 1fr;
  }

  .search-guide-illustration {
    display: none;
  }

  .chat-input {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .chat-input textarea,
  .chat-input button,
  .search-hints {
    grid-column: 1;
  }

  .hero-masthead {
    min-height: 420px;
    align-items: flex-end;
    padding: 24px;
    background:
      linear-gradient(180deg, rgba(247,251,252,0.46) 0%, rgba(247,251,252,0.94) 48%, rgba(247,251,252,1) 100%),
      url("../img/hero-support-search.png") center top / cover no-repeat;
  }

  .hero-masthead h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-masthead .lead {
    line-height: 1.75;
  }

  .hero-meta span {
    font-size: 12px;
    padding: 7px 10px;
  }

  .search-workspace {
    margin: 16px auto 28px;
  }

}

/* Secondary content redesign */
.hero-follow {
  margin: 22px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.follow-card {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  box-shadow: 0 12px 30px rgba(32, 88, 104, 0.05);
  position: relative;
  overflow: hidden;
}

.follow-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(39,123,144,0.18);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(238,247,249,0.86));
  box-shadow: 0 8px 18px rgba(32, 88, 104, 0.07);
}

.follow-card::before {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 26px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  color: rgba(31,93,112,0.62);
  z-index: 1;
}

.follow-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.follow-card strong {
  max-width: 92%;
  font-size: 18px;
  line-height: 1.45;
}

.follow-card small {
  max-width: 90%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.forum-entry {
  background: linear-gradient(135deg, #eaf8fb 0%, #ffffff 72%);
}

.mission {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbfc 100%);
  box-shadow: 0 14px 34px rgba(32, 88, 104, 0.05);
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.mission h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.35;
}

.mission > p {
  color: #516873;
  line-height: 2;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 58px;
}

.quick-links a {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
}

.quick-links a::after {
  content: "";
  position: absolute;
  right: 17px;
  bottom: 18px;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(31,93,112,0.5);
  border-right: 2px solid rgba(31,93,112,0.5);
  transform: rotate(45deg);
}

.quick-links span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.quick-links strong {
  font-size: 17px;
  line-height: 1.45;
}

.quick-links small {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.quick-links a:hover,
.follow-card:hover {
  border-color: rgba(39,123,144,0.34);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .mission,
  .hero-follow {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .quick-links {
    grid-template-columns: 1fr;
  }
}

/* ===== search-tab styles (were in inline <style>) ===== */
.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
.search-tab {
  flex: 1;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #eef4f6;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.03em;
}
.search-tab:first-child { border-radius: 10px 0 0 0; }
.search-tab:last-child { border-radius: 0 10px 0 0; }
.search-tab:hover { background: #e2eef2; color: var(--text); }
.search-tab.is-active { background: #fff; color: var(--brand-dark); position: relative; z-index: 1; }
.search-tab.is-active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: #fff; }
.search-pane { display: none !important; }
.search-pane.is-active { display: grid !important; gap: 14px; }
.search-pane.is-active#search-pane-ai { display: flex !important; flex-direction: column; gap: 16px; }
.search-pane.is-active#search-pane-keyword { display: block !important; }

/* ===== header-nav (moved from inline <style>) ===== */
.header-nav {
  width: 100%;
  padding: 2px 14px 0;
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 1px solid rgba(39,123,144,.07);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(247,252,253,.64), rgba(255,255,255,0));
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav .site-nav-desktop {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
  padding: 0;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.header-nav .site-nav-desktop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 4px 1px;
  font-size: 13px;
  font-weight: 700;
  color: #334b54;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
  transition: color 0.2s ease;
  letter-spacing: 0;
  text-decoration: none;
}
.header-nav .site-nav-desktop a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background .2s ease, opacity .2s ease;
}
.header-nav .site-nav-desktop a:hover,
.header-nav .site-nav-desktop a:focus {
  color: var(--brand-dark);
}
.header-nav .site-nav-desktop a:hover::after,
.header-nav .site-nav-desktop a:focus::after {
  background: rgba(39,123,144,.28);
}
.header-nav .site-nav-desktop a[aria-current] {
  color: var(--brand-dark);
}
.header-nav .site-nav-desktop a[aria-current]::after {
  background: var(--brand);
}
.nav-utils { display: none; }

/* ===== Footer (from inline <style>) ===== */
.site-footer { flex-shrink: 0; background: #1b3a44; color: #e2f0f4; padding: 0; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 48px 24px 40px;
  display: flex; flex-wrap: wrap; gap: 40px;
}
.footer-brand { flex: 0 0 320px; max-width: 100%; }
.footer-brand .brand { min-width: 0; gap: 6px; }
.footer-brand .brand-mark { background-color: #fff; filter: none; opacity: .96; }
.footer-brand .brand strong { font-size: 18px; color: #fff; }
.footer-brand .brand small { font-size: 12px; color: #a6cad3; }
.site-footer .footer-desc { margin: 20px 0 0; font-size: 14px; line-height: 1.7; color: #b9dce4; }
.footer-links { flex: 1; display: flex; justify-content: flex-end; gap: 48px; min-width: 200px; }
.footer-nav-group { display: flex; flex-direction: column; gap: 6px; }
.footer-nav-group strong { font-size: 13px; font-weight: 700; color: #8abcd0; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.footer-nav-group a { font-size: 14px; color: #cde6ec; padding: 4px 0; transition: color 0.15s ease; text-decoration: none; }
.footer-nav-group a:hover { color: #fff; }
.footer-banners { flex: 0 0 230px; display: grid; gap: 10px; align-content: start; justify-items: stretch; }
.footer-banners a { display: block; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); overflow: hidden; transition: opacity .15s ease, transform .15s ease; }
.footer-banners a:hover { opacity: .9; }
.footer-banners img { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .footer-banners { flex-basis: 100%; max-width: 360px; }
}
.footer-share { width: 100%; background: #eaf2e8; border-radius: 12px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 0; }
.footer-share-text { flex: 1; min-width: 260px; }
.site-footer .footer-share-text p { margin: 0; font-size: 15px; line-height: 1.7; color: #2d4a44; }
.footer-share-text strong { display: block; margin-bottom: 4px; font-size: 16px; color: #1b3a44; }
.footer-share-actions { display: flex; gap: 10px; flex-shrink: 0; }
.footer-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; border: 0; cursor: pointer; text-decoration: none; transition: opacity 0.2s ease, transform 0.15s ease; }
.footer-share-btn svg { flex-shrink: 0; }
.footer-share-btn-x { background: #000; color: #fff; }
.footer-share-btn-fb { background: #1877f2; color: #fff; }
.footer-bottom { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; }
.site-footer .footer-bottom small { font-size: 13px; color: #8abcd0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.footer-bottom nav a { color: #8abcd0; text-decoration: none; transition: color 0.15s ease; }
.footer-bottom nav a:hover { color: #fff; }

/* ===== Keyword search (from inline <style>) ===== */
.keyword-search { display: grid; gap: 22px; }
.keyword-search-form { display: grid; grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(150px, 1fr)) auto; gap: 14px; align-items: end; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.98); box-shadow: var(--shadow); padding: 26px 28px; }
.ks-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ks-field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.ks-field input, .ks-field select { height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font-size: 15px; outline: none; }
.ks-field input:focus, .ks-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(39,123,144,0.14); }
.ks-submit { height: 54px; padding: 0 34px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.2s ease, transform 0.15s ease; letter-spacing: 0.03em; }
.ks-submit:hover { background: #1f6a7d; transform: translateY(-1px); }
.keyword-search-results { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.98); box-shadow: var(--shadow); padding: 22px 24px 24px; }
.keyword-search-results .panel-title { margin-bottom: 14px; }
.ks-result-list { display: grid; gap: 12px; }
.ks-result-list .case-card { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: box-shadow 0.2s ease; }
.ks-result-list .case-card:hover { box-shadow: var(--shadow); }
.ks-result-list .case-media { width: 100px; height: 100px; flex-shrink: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.ks-result-list .case-body h3 { margin: 4px 0 6px; font-size: 15px; }
.ks-result-list .case-body dl { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 0; font-size: 13px; color: var(--muted); }
.ks-result-list .case-body dt { font-weight: 700; }
.ks-result-list .case-body dd { margin: 0; }


/* ===== BBS共通 ===== */
.bbs-header { margin-bottom: 28px; }
.bbs-header h1 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
.bbs-header p { margin: 0; color: var(--muted); max-width: 720px; font-size: 16px; line-height: 1.8; }

.bbs-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.bbs-toolbar .btn-post { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; padding: 12px 22px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.bbs-toolbar .btn-post:hover { background: var(--brand-dark); }
.bbs-toolbar .btn-post::before { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; }

.bbs-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bbs-filter input, .bbs-filter select { height: 44px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text); padding: 0 14px; font-size: 15px; outline: none; }
.bbs-filter input { width: 240px; }
.bbs-filter .btn-filter { height: 44px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); padding: 0 18px; font-size: 14px; font-weight: 600; cursor: pointer; }

.posting-notice { margin-bottom: 22px; border: 1px solid #f5c6c6; background: #fff8f8; border-radius: 8px; padding: 16px 20px; }
.posting-notice h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #b71c1c; }
.posting-notice h3::before { content: "\26a0\fe0f "; font-size: 16px; }
.posting-notice ul { margin: 0; padding: 0 0 0 18px; color: #5f2121; font-size: 14px; line-height: 2; }
.posting-notice ul li strong { color: #c62828; }

.thread-list-full { display: grid; gap: 12px; }
.thread-card-link { display: block; color: inherit; text-decoration: none; border-radius: 8px; cursor: pointer; }
.thread-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; display: flex; }
.thread-card-thumb { flex: 0 0 132px; width: 132px; aspect-ratio: 3/4; background: var(--surface-soft); overflow: hidden; border-right: 1px solid var(--line); position: relative; }
.thread-card-thumb .thumb-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.thread-card-thumb .thumb-placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(135deg, rgba(39,123,144,0.08) 0 10px, rgba(39,123,144,0.13) 10px 20px); }
.thread-card-thumb .thumb-placeholder::after { content: '画像なし'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.thread-card-thumb.is-resolved { background: linear-gradient(135deg, #e7f4f9, #f7fbfd); }
.thread-card-thumb .thumb-placeholder-resolved { background: linear-gradient(135deg, rgba(39,123,144,.14), rgba(39,123,144,.04)); }
.thread-card-thumb .thumb-placeholder-resolved::after { content: '解決しました'; color: var(--brand-dark); font-size: 13px; font-weight: 800; text-align: center; }
.thread-card-thumb .thumb-multi { position: absolute; right: 8px; bottom: 8px; min-width: 26px; height: 26px; border-radius: 999px; background: rgba(0,0,0,0.62); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.thread-card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thread-card-body { padding: 20px 22px 0; flex: 1; }
.thread-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.thread-card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.5; }
.thread-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.help-text { display: block; margin-top: 4px; font-size: 12px; color: var(--muted, #66777f); line-height: 1.55; }

/* ===== modal ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted, #66777f);
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--text, #243238); }
.thread-card-footer { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 22px; background: rgba(0,0,0,0.015); border-top: 1px solid var(--line); font-size: 14px; }
.thread-card-footer .footer-left { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); }
.thread-card-footer .footer-left .reply-pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(39,123,144,0.2); border-radius: 999px; background: rgba(39,123,144,0.05); color: var(--brand-dark); padding: 3px 12px; font-size: 13px; font-weight: 600; }
.thread-card-footer .footer-left .last-reply { color: var(--muted); }

.status-badge { display: inline-flex; align-items: center; height: 28px; border-radius: 999px; padding: 0 13px; font-size: 14px; font-weight: 700; }
.status-badge.open { background: #e8f5e9; color: #2e7d32; }
.status-badge.resolved { background: #e3f2fd; color: #1565c0; }
.status-badge.expired { background: #fff3e0; color: #e65100; }
.status-badge.withdrawn { background: #f3e5f5; color: #7b1fa2; }
.status-badge.hidden { background: #fce4ec; color: #c62828; }

.bbs-pagination { margin-top: 28px; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.bbs-pagination a, .bbs-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 13px; text-decoration: none; }
.bbs-pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

.bbs-rules { margin-top: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 28px 30px; }
.bbs-rules h2 { margin: 0 0 14px; font-size: 17px; }
.bbs-rules ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; line-height: 2.1; }

/* ===== スレッド詳細 ===== */
.thread-detail-header { margin-bottom: 24px; }
.thread-detail-header .back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 14px; font-weight: 600; margin-bottom: 12px; text-decoration: none; }
.thread-detail-header .back-link::before { content: ""; width: 6px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.thread-detail-header h1 { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; }
.thread-detail-header .thread-info { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; }

.post-list { display: grid; gap: 18px; margin-bottom: 32px; }
.post-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; font-size: 16px; }
.post-card.is-original { border: 2px solid rgba(39,123,144,0.34); background: linear-gradient(135deg, #f3fbfd, #fff); box-shadow: 0 14px 36px rgba(20,64,78,.08); }
.post-card.is-admin { border-color: rgba(240,154,104,0.25); background: linear-gradient(135deg, #fefaf7, #fff); }
.post-card-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 22px; background: rgba(0,0,0,0.02); border-bottom: 1px solid var(--line); font-size: 15px; }
.post-card.is-original .post-card-header { background: linear-gradient(135deg, rgba(39,123,144,.12), rgba(39,123,144,.04)); border-bottom-color: rgba(39,123,144,.22); }
.post-card-body { padding: 20px 22px; font-size: 16px; line-height: 1.95; }
.post-card-body a { color: #0b70c9; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.post-card-body a:hover { color: #075899; }
.post-card-footer { padding: 13px 22px; border-top: 1px solid var(--line); display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.post-card-footer .report-link { color: #c62828; }
.post-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); }
.author-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 1; font-weight: 800; }
.author-badge.original { background: var(--brand); color: #fff; }
.author-badge.admin { background: #f09a68; color: #fff; }
.post-card:not(.is-original) .post-author { font-weight: 700; color: var(--brand-dark); }

.person-info-table { width: 100%; border-collapse: collapse; margin: 14px 0 16px; font-size: 15px; }
.person-info-table th, .person-info-table td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.person-info-table th { width: 120px; background: rgba(39,123,144,0.04); color: var(--muted); font-weight: 600; white-space: nowrap; }

.post-images { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 18px 0 20px; }
.post-images figure { margin: 0; max-width: min(520px, 100%); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: zoom-in; }
.post-images figure img { width: auto; height: auto; max-width: min(520px, 100%); max-height: 520px; object-fit: contain; display: block; background: #fff; }
.post-images-resolved { display: grid; place-items: center; gap: 8px; min-height: 140px; margin: 18px 0 20px; padding: 24px; border: 1px solid rgba(39,123,144,.22); border-radius: 8px; background: linear-gradient(135deg, rgba(39,123,144,.1), rgba(39,123,144,.035)); text-align: center; color: var(--brand-dark); }
.post-images-resolved span { font-size: 22px; line-height: 1.3; font-weight: 900; }
.post-images-resolved small { color: var(--muted); font-size: 14px; line-height: 1.7; }

.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.82); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 18px; }
.modal-overlay.is-open { display: flex; }
.modal-overlay .modal-body { max-width: 96vw; max-height: 94vh; border-radius: 8px; overflow: visible; background: transparent; box-shadow: none; position: relative; display: inline-flex; align-items: center; justify-content: center; }
.modal-overlay .modal-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(0,0,0,0.66); color: #fff; font-size: 22px; cursor: pointer; }
.modal-overlay .modal-placeholder { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.35); }
.modal-overlay .modal-placeholder img { max-width: 96vw; max-height: 94vh; width: auto; height: auto; object-fit: contain; display: block; background: #fff; }

.reply-section { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 26px 24px; margin-bottom: 20px; }
.reply-section h2 { margin: 0 0 16px; font-size: 21px; }
.reply-form { display: grid; gap: 16px; }
.reply-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reply-form input, .reply-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text); padding: 13px 15px; font-size: 16px; outline: none; font-family: inherit; }
.reply-form .field-label, .reply-form label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.reply-form .file-drop { min-height: 132px; border: 1.5px dashed var(--line); border-radius: 8px; background: var(--surface-soft); display: grid; place-items: center; gap: 6px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.reply-form .file-drop:hover, .reply-form .file-drop.is-dragover { border-color: var(--brand); background: rgba(39,123,144,0.06); }
.reply-form .file-drop input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; border: 0; }
.reply-form .file-drop-main { font-weight: 700; color: var(--text); }
.reply-form .file-drop-sub { color: var(--muted); font-size: 13px; }
.reply-form .form-actions { display: flex; justify-content: flex-start; gap: 10px; }
.reply-form .btn-submit { border: 0; border-radius: 7px; background: var(--brand); color: #fff; padding: 14px 32px; font-weight: 700; font-size: 16px; cursor: pointer; transition: background .15s; }
.reply-form .btn-submit:hover { background: var(--brand-dark); }
.reply-form .form-note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ===== 作成フォーム ===== */
.create-section .back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 14px; font-weight: 600; margin-bottom: 12px; text-decoration: none; }
.create-section .back-link::before { content: ""; width: 6px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.create-section h1 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
.create-form { display: grid; gap: 22px; }
.create-form .form-group { display: grid; gap: 7px; }
.create-form .form-group label { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.create-form .form-label-rich { display: grid; gap: 4px; }
.create-form .form-label-rich .label-main { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.create-form .form-label-rich .label-help { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.55; }
.create-form .form-group input, .create-form .form-group select, .create-form .form-group textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text); padding: 13px 15px; font-size: 16px; outline: none; font-family: inherit; box-sizing: border-box; }
.create-form .form-group input, .create-form .form-group select { height: 50px; }
.create-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.create-form .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.create-form .card-section { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 24px 26px; }
.create-form .card-section h3 { margin: 24px 0 16px; font-size: 18px; color: var(--brand-dark); }
.create-form .btn-submit { border: 0; border-radius: 7px; background: var(--brand); color: #fff; padding: 14px 32px; font-weight: 700; font-size: 16px; cursor: pointer; }
.create-form .btn-cancel { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); padding: 14px 24px; font-size: 15px; cursor: pointer; text-decoration: none; }
.delete-section { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.delete-section .delete-token-display { margin-top: 8px; background: var(--surface-soft); border: 1px dashed var(--line); border-radius: 6px; padding: 14px 16px; font-family: monospace; font-size: 15px; word-break: break-all; color: var(--text); }
.delete-section .delete-token-warn { margin-top: 6px; font-size: 13px; color: #d32f2f; }


/* ===== chat-input button & search hints ===== */
#search-pane-ai .chat-input button {
  height: 48px; border: 0; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #1f6a7d);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(39,123,144,0.25);
}
#search-pane-ai .chat-input button:hover {
  opacity: 0.9; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(39,123,144,0.3);
}
#search-pane-ai .search-hints button {
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--brand-dark);
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
#search-pane-ai .search-hints button:hover {
  border-color: var(--brand); background: var(--surface-soft);
  box-shadow: 0 2px 8px rgba(39,123,144,0.1);
}

/* ===== 画像プレビュー ===== */
.image-preview-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.image-preview-grid img { width: 100px; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* ===== 成功メッセージ ===== */
.success-message { text-align: center; padding: 48px 24px; }
.success-message i.fa-check-circle { font-size: 64px; color: var(--brand); }
.success-message h2 { margin: 16px 0 8px; }
.success-message .form-actions { justify-content: center; margin-top: 24px; }

/* ===== トークンボックス ===== */
.token-box { display: flex; gap: 8px; margin-bottom: 16px; }
.token-box input[readonly] { flex: 1; padding: 10px 14px; border: 2px solid var(--brand); border-radius: 7px; font-size: 14px; background: #fff; }
.token-box .btn-submit { white-space: nowrap; padding: 10px 18px; font-size: 14px; }

/* ===== modal button ===== */
.modal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--brand, #277b90);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal-btn-primary:hover { background: var(--brand-dark, #1f5d70); }
.modal-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--line, #dcebee);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--muted, #66777f);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.modal-btn-secondary:hover { border-color: var(--brand, #277b90); color: var(--brand, #277b90); }

/* ===== エラーメッセージ（編集ページ） ===== */
.edit-error { text-align: center; padding: 48px 24px; }
.edit-error i { font-size: 48px; color: #d32f2f; margin-bottom: 16px; }
.edit-error span { display: block; font-size: 16px; color: var(--text); margin-bottom: 16px; }

/* ===== チェックボックスラベル ===== */
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }
.checkbox-text { font-size: 15px; color: var(--text); }

/* ===== Responsive from inline <style> ===== */
@media (max-width: 1100px) {
  .header-nav { display: none; }
  .header-utils a:not(.nav-toggle), .header-utils .utils-share { display: none; }
  .nav-toggle { display: flex !important; }
  .notice-bar { font-size: 12px; padding: 6px 14px; line-height: 1.4; }
  .bbs-toolbar { flex-direction: column; align-items: stretch; }
  .bbs-filter input { width: 100%; }
  .thread-card { flex-direction: column; }
  .thread-card-thumb { flex: none; width: 100%; aspect-ratio: 3/4; max-height: 320px; border-right: none; border-bottom: 1px solid var(--line); }
  .reply-form .form-row, .create-form .form-row, .create-form .form-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .keyword-search-form { grid-template-columns: 1fr; padding: 22px; }
  .ks-submit { width: 100%; }
  .search-tab { font-size: 13px; padding: 10px 12px; }
  .footer-inner { flex-direction: column; gap: 32px; padding: 36px 20px 32px; }
  .footer-brand { flex: none; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-share { flex-direction: column; text-align: center; padding: 24px 20px; }
  .footer-share-actions { width: 100%; justify-content: center; }
  .footer-share-btn { flex: 1; justify-content: center; max-width: 220px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .post-images figure { width: 100%; max-width: 100%; }
  .post-images figure img { width: 100%; max-width: 100%; max-height: none; }
}


/* ===== header-top, sns-link, nav-global (missing from consolidation) ===== */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 0 6px;
}
.header-utils a:not(.nav-toggle):not(.sns-link) {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.header-utils a:not(.nav-toggle):not(.sns-link):hover {
  background: #dcecef;
  color: var(--text);
}
.utils-share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.utils-share > span {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 4px;
  white-space: nowrap;
}
.sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--muted) !important;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.sns-link:hover {
  border-color: var(--brand);
  color: var(--brand) !important;
}
.sns-link svg { display: block; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 110;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-global { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 380px; }
.nav-global-link { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 4px; color: var(--text); transition: color 0.2s ease; text-decoration: none; position: relative; }
.nav-global-link::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); transition: border-color 0.2s ease; }
.nav-global-link:hover { color: var(--brand); }
.nav-global-link:hover::before { border-color: var(--brand); }
.nav-global-label { font-size: 15px; font-weight: 600; line-height: 1.6; letter-spacing: 0.04em; }

/* ===== Mobile overlay menu ===== */
@media (max-width: 1100px) {
  .site-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100dvh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 110px 32px 48px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; }
  .nav-utils {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 0;
    margin-top: 16px;
    width: 100%;
    max-width: 380px;
  }
  .nav-utils a {
    font-size: 13px; color: var(--muted); padding: 8px 16px;
    border-radius: 8px; background: var(--surface-soft); font-weight: 500;
    line-height: 1; display: inline-flex; align-items: center; min-height: 36px; text-decoration: none;
  }
  .nav-utils .utils-share {
    display: inline-flex; align-items: center; gap: 4px; padding: 0; min-height: 36px;
  }
  .nav-utils .sns-link { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .nav-utils .sns-link svg { display: block; width: 16px; height: 16px; }
  .site-nav a:not(.sns-link) {
    width: 100%; max-width: 360px; border-radius: 0; background: transparent;
    padding: 16px 0; font-size: 16px; font-weight: 600; text-align: center;
    border-bottom: 1px solid var(--line); color: var(--text);
  }
  .site-nav a:first-child { border-top: 1px solid var(--line); }
  .site-nav a:hover { color: var(--brand); }
}
@media (min-width: 1101px) {
  .nav-toggle { display: none !important; }
  #site-nav { display: none !important; }
}


/* ===== header-inner override (column layout) ===== */
.header-inner {
  flex-direction: column !important;
  gap: 12px !important;
  min-height: 0 !important;
}
.header-top {
  min-height: 48px !important;
}

/* ===== fuan page (不安そうな高齢者) ===== */
.fuan-card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
}
.fuan-card p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted, #66777f);
}
.fuan-card p:last-child {
  margin-bottom: 0;
}
.fuan-card .fuan-callout {
  margin: 20px 0 4px;
  padding: 4px 0;
}
.fuan-card .fuan-callout p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #c0392b;
  line-height: 1.75;
}
.fuan-check-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.fuan-check-list li {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text, #243238);
}
.fuan-check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand, #277b90);
  opacity: 0.7;
}
.fuan-sign {
  text-align: right;
  color: var(--muted, #66777f);
  font-size: 0.9rem;
  margin-top: 24px;
}
.support-card {
  margin-top: 20px;
  background: var(--surface);
  border-radius: 10px;
  padding: 24px 26px;
}
.support-card p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted, #66777f);
}
.support-card p:last-child {
  margin-bottom: 0;
}
.support-subtitle {
  font-weight: 600;
  color: var(--text, #243238);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.support-hotline-list {
  margin-top: 20px;
}
.support-hotline-list .support-subtitle {
  margin: 0 0 16px;
}
.hotline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hotline-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 22px 24px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20, 64, 78, 0.05);
}
.hotline-name {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--brand-dark, #15576a);
}
.hotline-org,
.hotline-meta {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted, #66777f);
}
.hotline-phones {
  display: grid;
  gap: 8px;
}
.hotline-phone {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  background: var(--surface-soft, #eef7f9);
  border: 1px solid var(--line, #dcebee);
  border-radius: 8px;
}
.hotline-phone:hover {
  border-color: rgba(39, 123, 144, 0.45);
}
.phone-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand, #277b90);
}
.phone-num {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  color: #c0392b;
}
.phone-time {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted, #66777f);
}
.hotline-desc {
  display: grid;
  gap: 10px;
}
.hotline-desc p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted, #66777f);
}
.hotline-desc a {
  color: var(--brand, #277b90);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 860px) {
  .hotline-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .hotline-card {
    padding: 18px 16px;
  }
}
.about-card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
}
.about-card p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted, #66777f);
}
.about-card p:last-child {
  margin-bottom: 0;
}
.about-subtitle {
  font-weight: 600;
  color: var(--text, #243238);
  margin-bottom: 24px;
  font-size: 1rem;
}
.about-card strong {
  color: #c0392b;
}
.about-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}
.about-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface-soft, #eef7f9);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
  transition: background 0.15s;
}
.about-banner-link:hover {
  background: #dceef2;
}
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.about-stat-item {
  flex: 1 1 140px;
  text-align: center;
  padding: 16px 12px;
  background: var(--surface-soft, #eef7f9);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.about-checklist {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.about-checklist li {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text, #243238);
}
.about-checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand, #277b90);
  opacity: 0.7;
}
.about-sign {
  text-align: right;
  color: var(--muted, #66777f);
  font-size: 0.9rem;
  margin-top: 24px;
}
.hogonin-card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
}
.hogonin-card p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted, #66777f);
}
.hogonin-card p:last-child {
  margin-bottom: 0;
}
.hogonin-card strong {
  color: #c0392b;
}
.hogonin-subtitle {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}
.updated-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
}

/* ===== カルーセル ===== */
.hogonin-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.hogonin-carousel::-webkit-scrollbar {
  display: none;
}
.hogonin-carousel::-webkit-scrollbar {
  height: 6px;
}
.hogonin-carousel::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.hogonin-carousel .case-card {
  flex: 0 0 300px;
  text-decoration: none;
  min-width: 300px;
}

/* ===== 地方グリッド ===== */
.hogonin-region-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.hogonin-region-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  min-height: 72px;
}
.hogonin-region-card:hover {
  background: #dceef2;
  border-color: var(--brand);
}
.hogonin-region-card.is-active {
  background: var(--brand);
  border-color: var(--brand);
}
.hogonin-region-card.is-active .region-name,
.hogonin-region-card.is-active .region-count {
  color: #fff;
}
.hogonin-region-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.hogonin-region-list .case-card {
  text-decoration: none;
  min-width: 0;
}
.hogonin-region-empty {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 126px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  line-height: 1.8;
}
.region-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.region-count {
  font-size: 0.72rem;
  color: var(--muted);
}
.hogonin-sign {
  text-align: right;
  color: var(--muted, #66777f);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* ===== ホットラインカードグリッド ===== */
.hotline-grid {
  display: block;
}
.hotline-card {
  padding: 20px 0;
}
.hotline-card:last-child {
  padding-bottom: 0;
}
.hotline-name {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.4;
}
.hotline-org {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.hotline-phones {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.hotline-phones .hotline-phone {
  margin: 0 10px 6px 0;
}
.hotline-phone {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 10px 16px;
  background: var(--surface-soft, #eef7f9);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.hotline-phone:hover {
  background: #dceef2;
}
.phone-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-right: 6px;
}
.phone-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
}
.phone-time {
  display: block;
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.hotline-meta {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.hotline-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
}
.hotline-desc p {
  margin: 0 0 8px;
}
.hotline-desc p:last-child {
  margin-bottom: 0;
}
.hotline-desc a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hotline-desc a.line-btn {
  color: #fff;
  text-decoration: none;
}
.media-label {
  display: inline-block;
  width: 6.5em;
  padding: 2px 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
  text-align: center;
  line-height: 1.5;
}
.support-sign {
  text-align: right;
  color: var(--muted, #66777f);
  font-size: 0.9rem;
  margin-top: 24px;
}
.line-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #06C755;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.line-btn:hover {
  opacity: 0.85;
  color: #fff;
}
.fuan-share {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface-soft, #eef7f9);
  border-radius: 12px;
  text-align: center;
}
.fuan-share-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--brand-dark, #1f5d70);
  font-size: 1rem;
}
.fuan-share-desc {
  margin: 0 0 14px;
  color: var(--muted, #66777f);
  font-size: 0.9rem;
  line-height: 1.6;
}
.fuan-share-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.share-btn-x {
  background: #000;
  color: #fff;
}
.share-btn-fb {
  background: #1877f2;
  color: #fff;
}

/* ===== info-band contact-guide (連絡先と行動ガイド) ===== */
.info-band.contact-guide {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "intro intro"
    "check actions";
  align-items: start;
  row-gap: 14px;
  position: relative;
  overflow: hidden;
  padding: 38px 34px;
  background:
    radial-gradient(1200px 260px at 100% -20%, rgba(255,255,255,0.12), rgba(255,255,255,0) 62%),
    radial-gradient(720px 200px at -10% 120%, rgba(255,255,255,0.1), rgba(255,255,255,0) 62%),
    linear-gradient(145deg, #2f889d 0%, #2a8095 52%, #2b7b90 100%);
}
.info-band.contact-guide::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -92px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.info-band .contact-intro {
  grid-area: intro;
}
.info-band .contact-checklist {
  grid-area: check;
  margin: 0;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 1rem;
  list-style: none;
  max-width: 760px;
  align-self: stretch;
}
.info-band .contact-checklist li + li {
  margin-top: 8px;
}
.info-band .contact-checklist li {
  position: relative;
  padding: 10px 11px 10px 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.info-band .contact-checklist li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7f3ff;
  box-shadow: 0 0 0 4px rgba(215, 243, 255, 0.18);
}
.info-band .contact-actions {
  grid-area: actions;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  justify-items: end;
  align-content: space-between;
  align-self: stretch;
  position: relative;
  z-index: 1;
  padding: 14px;
  border-radius: 12px;
  background: rgba(12, 82, 102, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  min-width: 242px;
}
.info-band .contact-actions .button-secondary {
  min-width: 210px;
  width: 100%;
  text-align: center;
  min-height: 0;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(7, 41, 52, 0.2);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.info-band .contact-actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 24px rgba(7, 41, 52, 0.26);
}
.info-band .contact-actions .button-secondary:first-child {
  background: #ffffff;
  color: #1d6f84;
  border-color: #ffffff;
  box-shadow: 0 10px 22px rgba(5, 33, 44, 0.24);
}
.info-band .contact-actions .button-secondary:first-child:hover {
  background: #f2fbff;
  color: #165c6f;
}
.info-band .contact-actions .button-secondary:last-child {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(14, 93, 114, 0.28);
}
@media (max-width: 980px) {
  .info-band.contact-guide {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "check"
      "actions";
  }
  .info-band .contact-actions {
    justify-items: start;
    align-content: start;
    grid-template-rows: auto;
  }
  .info-band .contact-actions .button-secondary {
    width: auto;
    min-height: 54px;
    height: auto;
  }
}

/* ===== drop zone ===== */
.drop-zone {
  border: 2px dashed var(--line, #dcebee);
  border-radius: 8px;
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  background: var(--surface-soft, #eef7f9);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.drop-zone p {
  margin: 0;
  color: var(--muted, #66777f);
  font-size: 0.9rem;
}
.drop-zone a {
  color: var(--brand, #277b90);
  font-weight: 700;
  text-decoration: underline;
}
.drop-zone-active {
  border-color: var(--brand, #277b90);
  background: #e3f4f8;
}



.drop-zone .upload-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* support hotline spacing refinement */
.support-hotline-list {
  margin-top: 24px;
}
.support-hotline-list .support-subtitle {
  margin: 0 0 22px;
}
.hotline-grid {
  gap: 22px 20px;
}
.hotline-card {
  gap: 16px;
  padding: 28px 30px;
}
.hotline-name {
  margin-bottom: 2px;
}
.hotline-org,
.hotline-meta {
  margin-bottom: 2px;
}
.hotline-phones {
  gap: 10px;
  margin: 2px 0;
}
.hotline-phone {
  padding: 13px 16px;
}
.hotline-desc {
  gap: 14px;
}
.hotline-desc p {
  line-height: 1.85;
}
.hotline-desc .media-label {
  margin-right: 8px;
}
@media (max-width: 560px) {
  .hotline-grid {
    gap: 16px;
  }
  .hotline-card {
    padding: 22px 18px;
  }
}
/* support hotline bottom spacing refinement */
.support-hotline-list {
  margin-bottom: 42px;
}
.hotline-grid {
  gap: 28px 24px;
}
.hotline-card {
  padding-bottom: 32px;
}
@media (max-width: 560px) {
  .support-hotline-list {
    margin-bottom: 32px;
  }
  .hotline-grid {
    gap: 20px;
  }
}
/* support hotline spacing final */
.support-hotline-list {
  margin-bottom: 76px !important;
  padding-bottom: 6px !important;
}
.hotline-grid {
  gap: 40px 28px !important;
}
.hotline-card {
  padding: 32px 34px 40px !important;
}
@media (max-width: 560px) {
  .support-hotline-list {
    margin-bottom: 52px !important;
  }
  .hotline-grid {
    gap: 28px !important;
  }
  .hotline-card {
    padding: 24px 20px 30px !important;
  }
}
/* support hotline visible spacing */
.support-hotline-list::after {
  content: "";
  display: block;
  height: 64px;
}
.hotline-grid {
  display: grid !important;
  row-gap: 44px !important;
  column-gap: 28px !important;
}
.hotline-card {
  margin-bottom: 8px !important;
}
.hotline-card:last-child {
  margin-bottom: 0 !important;
}
@media (max-width: 560px) {
  .support-hotline-list::after {
    height: 44px;
  }
  .hotline-grid {
    row-gap: 32px !important;
  }
}
/* support hotline single-column layout */
.hotline-grid {
  grid-template-columns: 1fr !important;
  row-gap: 28px !important;
  column-gap: 0 !important;
}
.hotline-card {
  width: 100%;
  margin-bottom: 0 !important;
}
.support-hotline-list::after {
  height: 48px;
}
@media (max-width: 560px) {
  .hotline-grid {
    row-gap: 22px !important;
  }
}
/* public person detail */
.person-public-detail {
  width: min(1132px, calc(100% - 40px));
  margin: 48px auto 72px;
}
.person-public-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.person-public-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  color: var(--text, #243238);
}
.person-public-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand, #277b90);
  font-size: 0.86rem;
  font-weight: 800;
}
.person-public-badge.type-protected {
  background: #2d8b68;
}
.person-public-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted, #66777f);
  font-size: 0.92rem;
}
.person-public-meta span {
  padding: 5px 10px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line, #dcebee);
  border-radius: 999px;
}
.person-public-back,
.person-public-secondary-btn,
.person-public-source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}
.person-public-back,
.person-public-secondary-btn {
  color: var(--brand, #277b90);
  background: #fff;
  border: 1px solid var(--line, #dcebee);
}
.person-public-source-btn {
  color: #fff;
  background: var(--brand, #277b90);
}
.person-public-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.person-public-summary-item {
  min-width: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
}
.person-public-summary-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted, #66777f);
  font-size: 0.82rem;
  font-weight: 700;
}
.person-public-summary-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text, #243238);
  font-size: 1.05rem;
  line-height: 1.45;
}
.person-public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: start;
}
.person-public-gallery,
.person-public-card {
  background: #fff;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(20, 64, 78, 0.05);
}
.person-public-main-image,
.person-public-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 420px;
  background: #f2f8fa;
  border: 1px solid var(--line, #dcebee);
  border-radius: 8px;
  overflow: hidden;
}
.person-public-main-image img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: contain;
  display: block;
}
.person-public-noimage {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #c89578, #dfa989);
}
.person-public-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.person-public-thumb {
  display: grid;
  gap: 7px;
  color: var(--muted, #66777f);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.person-public-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line, #dcebee);
  border-radius: 8px;
  background: #f5fafb;
}
.person-public-card h2 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  color: var(--brand-dark, #15576a);
  font-size: 1.3rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--line, #dcebee);
}
.person-public-wide {
  margin-top: 24px;
}
.person-public-dl {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px 18px;
  margin: 0;
}
.person-public-dl dt {
  color: var(--muted, #66777f);
  font-size: 0.9rem;
  font-weight: 800;
}
.person-public-dl dd {
  margin: 0;
  min-width: 0;
  color: var(--text, #243238);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.person-public-dl-block {
  grid-template-columns: 148px minmax(0, 1fr);
}
.person-public-muted,
.person-public-card p {
  margin: 0 0 14px;
  color: var(--muted, #66777f);
  line-height: 1.85;
}
.person-public-contact {
  border-color: rgba(39, 123, 144, 0.35);
}
.person-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 960px) {
  .person-public-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .person-public-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .person-public-detail {
    width: min(100% - 24px, 1132px);
    margin-top: 32px;
  }
  .person-public-hero {
    display: grid;
  }
  .person-public-summary {
    grid-template-columns: 1fr;
  }
  .person-public-gallery,
  .person-public-card {
    padding: 18px;
  }
  .person-public-main-image,
  .person-public-noimage {
    min-height: 280px;
  }
  .person-public-dl,
  .person-public-dl-block {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
/* public person detail vertical layout */
.person-public-layout {
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}
.person-public-gallery,
.person-public-card {
  width: 100%;
}
.person-public-main-image,
.person-public-noimage {
  min-height: 520px;
}
.person-public-main-image img {
  max-height: 720px;
}
.person-public-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) {
  .person-public-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .person-public-main-image,
  .person-public-noimage {
    min-height: 380px;
  }
}
@media (max-width: 560px) {
  .person-public-summary {
    grid-template-columns: 1fr;
  }
  .person-public-main-image,
  .person-public-noimage {
    min-height: 280px;
  }
}
/* public person detail summary vertical */
.person-public-summary {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
.person-public-summary-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.person-public-summary-item span {
  margin-bottom: 0;
}
@media (max-width: 560px) {
  .person-public-summary-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
/* public person detail image grid modal */
.person-public-gallery {
  padding: 24px 24px 28px;
}
.person-public-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 18px 16px;
}
.person-public-image-tile {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 0;
  color: var(--muted, #66777f);
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.person-public-image-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #f5fafb;
  border: 1px solid var(--line, #dcebee);
  border-radius: 8px;
}
.person-public-image-tile:hover img {
  border-color: rgba(39, 123, 144, 0.55);
}
.person-public-image-tile span {
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.person-image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(13, 33, 40, 0.78);
}
.person-image-modal[aria-hidden="false"] {
  display: flex;
}
.person-image-modal-frame {
  display: grid;
  gap: 12px;
  margin: 0;
  max-width: min(96vw, 1180px);
  max-height: 94vh;
}
.person-image-modal-frame img {
  max-width: 100%;
  max-height: calc(94vh - 48px);
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
}
.person-image-modal-frame figcaption {
  color: #fff;
  font-weight: 800;
  text-align: center;
}
.person-image-modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
}
.person-image-modal-open {
  overflow: hidden;
}
@media (max-width: 560px) {
  .person-public-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .person-image-modal {
    padding: 16px;
  }
}
/* public person detail contact emphasis */
.person-public-contact {
  position: relative;
  padding: 30px 32px 32px;
  background: #f7fcfd;
  border: 2px solid rgba(39, 123, 144, 0.38);
  border-left: 8px solid var(--brand, #277b90);
  box-shadow: 0 18px 42px rgba(20, 64, 78, 0.09);
}
.person-public-contact h2 {
  color: var(--brand-dark, #15576a);
  font-size: 1.45rem;
}
.person-public-contact p {
  color: var(--text, #243238);
  font-weight: 700;
}
.person-public-contact .person-public-actions {
  margin-top: 22px;
}
.person-public-contact .person-public-source-btn {
  min-height: 48px;
  padding-inline: 20px;
  font-size: 1rem;
}
.person-public-contact .person-public-secondary-btn {
  min-height: 48px;
  padding-inline: 20px;
  background: #fff;
}
@media (max-width: 560px) {
  .person-public-contact {
    padding: 24px 20px 26px;
    border-left-width: 6px;
  }
}
/* public person detail contact guide rule */
.person-public-contact-guide {
  margin-top: 28px;
}
.person-public-contact-guide .contact-intro .eyebrow {
  color: #f8dfb8;
}
.person-public-contact-guide .contact-intro h2 {
  margin: 0 0 18px;
  color: #fff;
}
.person-public-contact-guide .contact-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.92);
}
/* public person detail image placement adjustment */
.person-public-image-tile {
  gap: 0;
}
.person-public-image-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.person-public-contact-guide .contact-actions {
  grid-template-rows: none;
}
/* public person detail contact button halves */
.person-public-contact-guide .contact-actions {
  grid-template-rows: 1fr 1fr !important;
}
.person-public-contact-guide .contact-actions .button-secondary {
  min-height: 54px;
  height: auto;
}
/* public person detail distinct source contact */
.person-public-contact-guide {
  background:
    radial-gradient(900px 240px at 100% 110%, rgba(255,255,255,0.12), rgba(255,255,255,0) 62%),
    linear-gradient(145deg, #1f5967 0%, #226b7b 54%, #2f8796 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.18);
}
.person-public-contact-guide .contact-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #1d4c58;
  background: #fff3bf;
  border-radius: 999px;
  font-weight: 900;
}
.person-public-contact-guide .contact-intro h2 {
  font-size: clamp(30px, 4vw, 44px);
}
.person-public-contact-guide .contact-actions {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}
.person-public-contact-guide .contact-actions .button-secondary:first-child {
  color: #fff;
  background: #d84f2a;
  border-color: #d84f2a;
  box-shadow: 0 14px 28px rgba(92, 26, 10, 0.28);
}
.person-public-contact-guide .contact-actions .button-secondary:first-child:hover {
  color: #fff;
  background: #c84421;
}
.person-public-contact-guide .contact-actions .button-secondary:last-child {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.78);
}
/* about page layout refinement */
.about-card {
  margin-top: 20px;
  padding: 34px 38px;
  background: #fff;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(20, 64, 78, .06);
}

.about-card p {
  margin: 0 0 18px;
  line-height: 1.95;
  color: var(--muted);
}

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

.about-subtitle {
  display: flex;
  align-items: center;
  margin: 0 0 26px;
  padding: 16px 18px;
  color: var(--brand-dark, #15576a);
  font-size: 1.08rem;
  font-weight: 900;
  background: #f0fafc;
  border: 1px solid var(--line, #dcebee);
  border-left: 6px solid var(--brand, #277b90);
  border-radius: 10px;
}

.about-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.about-banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--brand, #277b90);
  border: 1px solid var(--brand, #277b90);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.about-banner-link:nth-child(2) {
  background: #fff;
  color: var(--brand, #277b90);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 30px;
}

.about-stat-item {
  padding: 20px 18px;
  background: #f7fcfd;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
}

.stat-number {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark, #15576a);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.stat-label {
  display: block;
  color: var(--muted, #66777f);
  font-size: .9rem;
  line-height: 1.55;
  font-weight: 700;
}

.about-checklist {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.about-checklist li {
  position: relative;
  padding: 14px 16px 14px 42px;
  background: #f7fcfd;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  color: var(--text);
  line-height: 1.75;
}

.about-checklist li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand, #277b90);
  box-shadow: 0 0 0 5px rgba(39, 123, 144, .12);
}

.about-sign {
  margin-top: 24px;
  color: var(--muted);
  font-size: .9rem;
  text-align: right;
}

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

@media (max-width: 640px) {
  .about-card {
    padding: 24px 20px;
  }

  .about-banners,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-subtitle {
    font-size: 1rem;
  }
}
/* about page copy cleanup */
.about-subtitle {
  display: block;
  margin: 0 0 24px;
  padding: 0;
  color: var(--text, #243238);
  font-size: 1.05rem;
  line-height: 1.85;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 0;
}
/* about page photo */
.about-visual {
  margin: 20px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  background: #eaf4f6;
  box-shadow: 0 16px 38px rgba(20, 64, 78, .06);
}

.about-visual img {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 420px);
  object-fit: cover;
  object-position: center 48%;
}

@media (max-width: 640px) {
  .about-visual img {
    height: 240px;
  }
}
/* about page hero */
.about-section {
  margin-top: 48px;
}

.about-hero {
  position: relative;
  min-height: clamp(300px, 36vw, 460px);
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line, #dcebee);
  background: #dbe9ec;
  box-shadow: 0 18px 42px rgba(20, 64, 78, .08);
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 48, 60, .74), rgba(14, 48, 60, .34) 48%, rgba(14, 48, 60, .08));
}

.about-hero img {
  display: block;
  width: 100%;
  height: clamp(300px, 36vw, 460px);
  object-fit: cover;
  object-position: center 48%;
}

.about-hero__content {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 5vw, 64px);
  bottom: clamp(28px, 5vw, 58px);
  max-width: 620px;
  color: #fff;
}

.about-hero__content p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .86);
  font-size: .95rem;
  line-height: 1.5;
  font-weight: 800;
}

.about-hero__content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.about-hero + .about-card {
  margin-top: 28px;
}

@media (max-width: 640px) {
  .about-section {
    margin-top: 28px;
  }

  .about-hero,
  .about-hero img {
    min-height: 280px;
    height: 280px;
  }

  .about-hero::after {
    background: linear-gradient(180deg, rgba(14, 48, 60, .16), rgba(14, 48, 60, .72));
  }
}
/* about hero title panel */
.about-hero__content {
  padding: 18px 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .48);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}

.about-hero__content p {
  display: none;
}

.about-hero__content h1 {
  text-shadow: none;
}

@media (max-width: 640px) {
  .about-hero__content {
    right: 20px;
    left: 20px;
    padding: 16px 18px;
  }
}
/* about hero full-width title panel */
.about-hero__content {
  right: 0;
  bottom: 0;
  left: 0;
  max-width: none;
  width: 100%;
  padding: clamp(24px, 4vw, 42px) clamp(28px, 5vw, 64px);
  border-radius: 0;
  background: rgba(0, 0, 0, .56);
  box-shadow: none;
}

.about-hero__content h1 {
  max-width: 980px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.16;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 640px) {
  .about-hero__content {
    right: 0;
    left: 0;
    padding: 22px 20px;
  }

  .about-hero__content h1 {
    font-size: 2rem;
  }
}

/* about hero title size adjustment */
.about-hero__content h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  line-height: 1.18;
}

@media (max-width: 640px) {
  .about-hero__content h1 {
    font-size: 1.72rem;
  }
}
/* about action section title */
.about-action-section {
  margin-top: 54px;
}

.about-section-title {
  margin: 0 0 20px;
  padding: 0 0 18px;
  border-bottom: 2px solid var(--brand, #277b90);
}

.about-section-title p {
  margin: 0 0 10px;
  color: var(--brand, #277b90);
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 900;
}

.about-section-title h2 {
  max-width: 920px;
  margin: 0;
  color: var(--text, #243238);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .about-action-section {
    margin-top: 40px;
  }

  .about-section-title h2 {
    font-size: 1.55rem;
  }
}
/* about action image title */
.about-section-title {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 0 24px;
  padding: 34px 40px;
  overflow: hidden;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    url("/images/about/japanese-neighborhood-senior-bike.jpg") center 54% / cover no-repeat;
  box-shadow: 0 16px 38px rgba(20, 64, 78, .06);
}

.about-section-title p {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .86);
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 900;
}

.about-section-title h2 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

@media (max-width: 640px) {
  .about-section-title {
    min-height: 220px;
    padding: 26px 22px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      url("/images/about/japanese-neighborhood-senior-bike.jpg") center / cover no-repeat;
  }

  .about-section-title h2 {
    font-size: 1.45rem;
  }
}
/* about action title line break */
.pc-break {
  display: inline;
}

@media (max-width: 640px) {
  .pc-break {
    display: none;
  }
}
/* mobile full-width contact guide buttons */
@media (max-width: 640px) {
  .info-band .contact-actions {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .info-band .contact-actions .button-secondary {
    width: 100%;
    min-width: 0;
  }
}
/* search page hero form */
.search-section {
  margin-top: 48px;
}

.search-section .search-pane {
  display: block;
}

.search-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(8, 44, 55, .78), rgba(8, 44, 55, .48) 55%, rgba(8, 44, 55, .18)),
    url("/images/about/japanese-neighborhood-senior-bike.jpg") center 48% / cover no-repeat;
  box-shadow: 0 18px 42px rgba(20, 64, 78, .08);
}

.search-hero__content {
  max-width: 1180px;
}

.search-hero__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .86);
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 900;
}

.search-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.search-hero__lead {
  max-width: 760px;
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 700;
}

.search-hero .keyword-search-form {
  margin-top: 0;
  background: rgba(255, 255, 255, .94);
  border-color: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
}

.search-hero .ks-field label {
  color: var(--text, #243238);
}

.search-hero + .keyword-search-results {
  margin-top: 0;
}

@media (max-width: 900px) {
  .search-hero .keyword-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .search-hero .ks-field:first-child,
  .search-hero .ks-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .search-section {
    margin-top: 28px;
  }

  .search-hero {
    padding: 26px 20px;
    background:
      linear-gradient(180deg, rgba(8, 44, 55, .42), rgba(8, 44, 55, .82)),
      url("/images/about/japanese-neighborhood-senior-bike.jpg") center / cover no-repeat;
  }

  .search-hero h1 {
    font-size: 1.72rem;
  }

  .search-hero__lead {
    margin-bottom: 20px;
  }

  .search-hero .keyword-search-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
/* bbs page hero */
main > .bbs-hero {
  margin-top: 48px;
}

.bbs-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(8, 44, 55, .82), rgba(8, 44, 55, .50) 58%, rgba(8, 44, 55, .18)),
    url("/images/about/japanese-neighborhood-senior-bike.jpg") center 50% / cover no-repeat;
  box-shadow: 0 18px 42px rgba(20, 64, 78, .08);
}

.bbs-hero__content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.bbs-hero__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .86);
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 900;
}

.bbs-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.bbs-hero__lead {
  max-width: 760px;
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 700;
}

.bbs-hero__notes {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbs-hero__notes li {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 12px 9px 34px;
  color: rgba(255, 255, 255, .94);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  line-height: 1.6;
  font-weight: 700;
}

.bbs-hero__notes li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7f3ff;
  box-shadow: 0 0 0 5px rgba(215, 243, 255, .18);
  transform: translateY(-50%);
}

.bbs-hero__actions {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border-radius: 12px;
  background: rgba(12, 82, 102, .26);
  border: 1px solid rgba(255, 255, 255, .2);
}

.bbs-hero__actions .btn-post {
  min-width: 230px;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 10px;
  background: #fff;
  color: #1d6f84;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(5, 33, 44, .24);
}

.bbs-hero__actions .btn-post::before {
  content: "+";
  margin-right: 8px;
  font-size: 1.25rem;
  line-height: 1;
}

.bbs-hero + .posting-notice {
  margin-top: 24px;
}

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

  .bbs-hero__actions {
    align-items: stretch;
  }

  .bbs-hero__actions .btn-post {
    width: 100%;
  }
}

@media (max-width: 640px) {
  main > .bbs-hero {
    margin-top: 28px;
  }

  .bbs-hero {
    padding: 26px 20px;
    background:
      linear-gradient(180deg, rgba(8, 44, 55, .44), rgba(8, 44, 55, .84)),
      url("/images/about/japanese-neighborhood-senior-bike.jpg") center / cover no-repeat;
  }

  .bbs-hero h1 {
    font-size: 1.72rem;
  }

  .bbs-hero__actions .btn-post {
    min-width: 0;
  }
}
/* shared public hero alignment and distinct search image */
.about-section,
.search-section,
.mimo-section,
main > .bbs-hero {
  margin-top: 0 !important;
}

.search-hero {
  background:
    linear-gradient(90deg, rgba(8, 44, 55, .78), rgba(8, 44, 55, .48) 55%, rgba(8, 44, 55, .18)),
    url("/images/search/tokyo-street-search.jpg") center 48% / cover no-repeat;
}

@media (max-width: 640px) {
  .search-hero {
    background:
      linear-gradient(180deg, rgba(8, 44, 55, .42), rgba(8, 44, 55, .82)),
      url("/images/search/tokyo-street-search.jpg") center / cover no-repeat;
  }
}
/* search and bbs hero refinement */
.search-section {
  margin-top: 0 !important;
}

.search-hero {
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(8, 44, 55, .82), rgba(8, 44, 55, .52) 54%, rgba(8, 44, 55, .22)),
    url("/images/search/japan-railway-crossing.jpg") center 52% / cover no-repeat;
}

.search-hero__content {
  width: 100%;
}

.bbs-hero {
  display: block;
  min-height: 340px;
  padding: clamp(28px, 5vw, 54px);
}

.bbs-hero__content {
  max-width: 820px;
}

.bbs-hero__notes,
.bbs-hero__actions {
  display: none;
}

@media (max-width: 640px) {
  .search-hero {
    min-height: 500px;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(8, 44, 55, .42), rgba(8, 44, 55, .84)),
      url("/images/search/japan-railway-crossing.jpg") center / cover no-repeat;
  }

  .bbs-hero {
    min-height: 280px;
  }
}
/* about and bbs hero alignment refinement */
.about-section {
  margin-top: 0 !important;
}

.about-hero {
  min-height: 440px;
}

.about-hero img {
  height: 440px;
}

.about-hero__content {
  padding: clamp(24px, 4vw, 42px) clamp(28px, 5vw, 64px);
}

.about-hero__content h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  line-height: 1.18;
}

.bbs-hero__content {
  max-width: 1080px;
}

.bbs-hero__lead {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .bbs-hero__lead {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .about-hero,
  .about-hero img {
    min-height: 300px;
    height: 300px;
  }
}
/* unified public image heroes */
.about-hero,
.bbs-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(20, 64, 78, .08);
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(8, 44, 55, .82), rgba(8, 44, 55, .50) 58%, rgba(8, 44, 55, .18)),
    url("/images/about/japanese-neighborhood-senior-bike.jpg") center 48% / cover no-repeat;
}

.bbs-hero {
  background:
    linear-gradient(90deg, rgba(8, 44, 55, .82), rgba(8, 44, 55, .50) 58%, rgba(8, 44, 55, .18)),
    url("/images/bbs/quiet-japanese-neighborhood.jpg") center 52% / cover no-repeat;
}

.about-hero img {
  display: none;
}

.about-hero::after,
.bbs-hero::after {
  display: none;
}

.about-hero__content,
.bbs-hero__content {
  position: relative;
  inset: auto;
  z-index: 1;
  width: auto;
  max-width: 1080px;
  padding: 0;
  color: #fff;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.about-hero__content h1,
.bbs-hero h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.bbs-hero__lead {
  max-width: none;
  margin: 14px 0 0;
  white-space: nowrap;
}

.search-hero {
  min-height: 440px;
  background:
    linear-gradient(90deg, rgba(8, 44, 55, .80), rgba(8, 44, 55, .52) 55%, rgba(8, 44, 55, .20)),
    url("/images/search/quiet-japanese-station.jpg") center 50% / cover no-repeat;
}

@media (max-width: 980px) {
  .bbs-hero__lead {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .about-hero,
  .bbs-hero {
    min-height: 300px;
    padding: 26px 20px;
    background-position: center;
  }

  .about-hero {
    background:
      linear-gradient(180deg, rgba(8, 44, 55, .42), rgba(8, 44, 55, .84)),
      url("/images/about/japanese-neighborhood-senior-bike.jpg") center / cover no-repeat;
  }

  .bbs-hero {
    background:
      linear-gradient(180deg, rgba(8, 44, 55, .42), rgba(8, 44, 55, .84)),
      url("/images/bbs/quiet-japanese-neighborhood.jpg") center / cover no-repeat;
  }

  .search-hero {
    min-height: 500px;
    background:
      linear-gradient(180deg, rgba(8, 44, 55, .42), rgba(8, 44, 55, .84)),
      url("/images/search/quiet-japanese-station.jpg") center / cover no-repeat;
  }

  .about-hero__content h1,
  .bbs-hero h1 {
    font-size: 1.72rem;
  }
}
/* remaining public page heroes */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  margin: 0 0 28px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(20, 64, 78, .08);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 44, 55, .82), rgba(8, 44, 55, .50) 58%, rgba(8, 44, 55, .18));
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  color: #fff;
}

.page-hero__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .86);
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 900;
}

.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.page-hero__lead {
  max-width: 920px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 700;
}

.page-hero--hogonin {
  background: url("/images/page-heroes/protected-residential-street.jpg") center 52% / cover no-repeat;
}

.page-hero--fuan {
  background: url("/images/page-heroes/quiet-japan-crosswalk.jpg") center 52% / cover no-repeat;
}

.page-hero--support {
  background: url("/images/page-heroes/quiet-cafe-window.jpg") center 52% / cover no-repeat;
}

.page-hero--police {
  background: url("/images/page-heroes/japanese-public-building.jpg") center 52% / cover no-repeat;
}

.page-hero--privacy {
  background: url("/images/page-heroes/quiet-office-desk.jpg") center 52% / cover no-repeat;
}

.page-hero--contact {
  background: url("/images/page-heroes/japanese-city-evening.jpg") center 52% / cover no-repeat;
}

@media (max-width: 640px) {
  .page-hero {
    min-height: 300px;
    padding: 26px 20px;
  }

  .page-hero::before {
    background: linear-gradient(180deg, rgba(8, 44, 55, .42), rgba(8, 44, 55, .84));
  }

  .page-hero h1 {
    font-size: 1.72rem;
  }
}
/* contact hero calm background */
.page-hero--contact {
  background: url("/images/page-heroes/contact-desk-notebook.jpg") center 52% / cover no-repeat;
}
/* align first content hero position with bbs */
main > .section:first-child {
  margin-top: 0 !important;
}

main > .section:first-child .page-hero,
main > .section:first-child .about-hero,
main > .section:first-child .mimo-hero,
main > .section:first-child .search-hero {
  margin-top: 0 !important;
}
/* search hero top position tuning */
.search-page-main {
  padding-top: 24px;
}

.search-section,
.search-section .search-pane {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.search-hero {
  min-height: 400px;
  padding-top: 40px;
}

@media (max-width: 640px) {
  .search-page-main {
    padding-top: 20px;
  }

  .search-hero {
    min-height: 460px;
    padding-top: 28px;
  }
}
/* search page main padding reset */
.search-page-main {
  padding-top: 34px !important;
}

@media (max-width: 640px) {
  .search-page-main {
    padding-top: 22px !important;
  }
}
/* image section titles */
.section-image-title {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 0 24px;
  padding: 34px 40px;
  overflow: hidden;
  border: 1px solid var(--line, #dcebee);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    var(--section-title-bg) center 54% / cover no-repeat;
  box-shadow: 0 16px 38px rgba(20, 64, 78, .06);
}

.section-image-title p,
.section-image-title h2,
.section-image-title span {
  position: relative;
  z-index: 1;
}

.section-image-title p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .86);
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 900;
}

.section-image-title h2 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.section-image-title span {
  max-width: 820px;
  margin-top: 12px;
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 700;
}

.section-image-title--hogonin-region {
  --section-title-bg: url("/images/page-heroes/protected-residential-street.jpg");
}

.section-image-title--fuan-request {
  --section-title-bg: url("/images/page-heroes/quiet-japan-crosswalk.jpg");
}

.section-image-title--support-hotline {
  --section-title-bg: url("/images/page-heroes/quiet-cafe-window.jpg");
}

@media (max-width: 640px) {
  .section-image-title {
    min-height: 220px;
    padding: 26px 22px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      var(--section-title-bg) center / cover no-repeat;
  }

  .section-image-title h2 {
    font-size: 1.45rem;
  }
}
/* distinct section-title images per page */
.about-section-title {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    url("/images/section-titles/about-action-guide.jpg") center 54% / cover no-repeat;
}

.section-image-title--hogonin-region {
  --section-title-bg: url("/images/section-titles/hogonin-region-map.jpg");
}

.section-image-title--fuan-request {
  --section-title-bg: url("/images/section-titles/fuan-information-note.jpg");
}

.section-image-title--support-hotline {
  --section-title-bg: url("/images/section-titles/support-hotline-desk.jpg");
}

@media (max-width: 640px) {
  .about-section-title {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      url("/images/section-titles/about-action-guide.jpg") center / cover no-repeat;
  }
}
/* force distinct about section title image */
.about-section-title {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    url("/images/section-titles/about-care-note.jpg") center 54% / cover no-repeat !important;
}

@media (max-width: 640px) {
  .about-section-title {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      url("/images/section-titles/about-care-note.jpg") center / cover no-repeat !important;
  }
}
/* refreshed section title backgrounds */
.section-image-title--hogonin-region {
  --section-title-bg: url("/images/section-titles/hogonin-region-station.jpg");
}

.section-image-title--fuan-request {
  --section-title-bg: url("/images/section-titles/fuan-request-notice.jpg");
}

.section-image-title--support-hotline {
  --section-title-bg: url("/images/section-titles/support-hotline-phone.jpg");
}
/* force unique section-title images */
.about-section-title {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    url("/images/section-titles/about-action-record.jpg") center 54% / cover no-repeat !important;
}

.section-image-title--hogonin-region {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    url("/images/section-titles/hogonin-area-directory.jpg") center 54% / cover no-repeat !important;
}

.section-image-title--fuan-request {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    url("/images/section-titles/fuan-community-notice.jpg") center 54% / cover no-repeat !important;
}

.section-image-title--support-hotline {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    url("/images/section-titles/support-telephone.jpg") center 54% / cover no-repeat !important;
}

@media (max-width: 640px) {
  .about-section-title {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      url("/images/section-titles/about-action-record.jpg") center / cover no-repeat !important;
  }

  .section-image-title--hogonin-region {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      url("/images/section-titles/hogonin-area-directory.jpg") center / cover no-repeat !important;
  }

  .section-image-title--fuan-request {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      url("/images/section-titles/fuan-community-notice.jpg") center / cover no-repeat !important;
  }

  .section-image-title--support-hotline {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      url("/images/section-titles/support-telephone.jpg") center / cover no-repeat !important;
  }
}
/* refreshed hogonin and fuan section images */
.section-image-title--hogonin-region {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    url("/images/section-titles/hogonin-local-station.jpg") center 54% / cover no-repeat !important;
}

.section-image-title--fuan-request {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .12)),
    url("/images/section-titles/fuan-report-clipboard.jpg") center 54% / cover no-repeat !important;
}

@media (max-width: 640px) {
  .section-image-title--hogonin-region {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      url("/images/section-titles/hogonin-local-station.jpg") center / cover no-repeat !important;
  }

  .section-image-title--fuan-request {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .70)),
      url("/images/section-titles/fuan-report-clipboard.jpg") center / cover no-repeat !important;
  }
}

/* Home keyword search submits to the full search page */
.home-search-form {
  margin-bottom: 0;
}
.home-search-form .ks-field-keyword {
  flex: 1.8;
  min-width: 240px;
}
html[data-text-size="small"] {
  font-size: 16px;
}

html[data-text-size="medium"] {
  font-size: 16px;
}

html[data-text-size="large"] {
  font-size: 16px;
}

.text-size-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid #d5e7ed;
  border-radius: 999px;
  background: #f7fbfc;
  white-space: nowrap;
}

.text-size-label {
  padding: 0 5px 0 7px;
  color: #526c75;
  font-size: 0.78rem;
  font-weight: 700;
}

.text-size-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1f5d70;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.text-size-button.is-active {
  background: #1f7f94;
  color: #fff;
}

.text-size-button:focus-visible {
  outline: 2px solid #1f7f94;
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .text-size-control {
    display: none;
  }
}
/* BBS edit URL modal */
.edit-url-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 34, 42, 0.48);
}

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

.edit-url-modal__panel {
  position: relative;
  width: min(640px, 100%);
  border: 1px solid rgba(39, 123, 144, 0.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(8, 34, 42, 0.24);
  padding: 32px;
}

.edit-url-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.edit-url-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.edit-url-modal h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.35;
}

.edit-url-modal p {
  margin: 0 0 20px;
  color: var(--text);
  line-height: 1.8;
}

.edit-url-modal__url {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

.edit-url-modal__url input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface-soft);
}

.edit-url-modal__url button,
.edit-url-modal__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.edit-url-modal__url button {
  padding: 0 18px;
}

.edit-url-modal__link {
  width: fit-content;
  padding: 12px 18px;
}

@media (max-width: 640px) {
  .edit-url-modal__panel {
    padding: 26px 18px 20px;
  }

  .edit-url-modal__url {
    grid-template-columns: 1fr;
  }

  .edit-url-modal__url button,
  .edit-url-modal__link {
    width: 100%;
    min-height: 44px;
  }
}
/* BBS edit URL request modal */
.edit-request-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.edit-request-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 34, 42, 0.48);
}

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

.edit-request-modal__panel {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid rgba(39, 123, 144, 0.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(8, 34, 42, 0.24);
  padding: 32px;
}

.edit-request-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.edit-request-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.edit-request-modal h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
}

.edit-request-modal p {
  margin: 0 0 20px;
  color: var(--text);
  line-height: 1.8;
}

.edit-request-modal label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}

.edit-request-modal input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface-soft);
}

.edit-request-modal__message {
  margin: 0 0 18px;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1.6;
}

.edit-request-modal__message.is-error {
  border: 1px solid rgba(198, 40, 40, 0.25);
  background: rgba(198, 40, 40, 0.08);
  color: #b3261e;
}

.edit-request-modal__message.is-success {
  border: 1px solid rgba(39, 123, 144, 0.25);
  background: rgba(39, 123, 144, 0.08);
  color: var(--brand);
}

.edit-request-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.edit-request-modal__actions button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.edit-request-modal__actions button[type="submit"] {
  border: 0;
  background: var(--brand);
  color: #fff;
}

.edit-request-modal__actions button[type="button"] {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

@media (max-width: 640px) {
  .edit-request-modal__panel {
    padding: 26px 18px 20px;
  }

  .edit-request-modal__actions {
    flex-direction: column;
  }

  .edit-request-modal__actions button {
    width: 100%;
  }
}
.existing-image-item {
  position: relative;
}

.existing-image-item.is-delete-pending img {
  filter: grayscale(1);
  opacity: 0.35;
}

.existing-image-item.is-delete-pending::after {
  content: "削除予定";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(8, 34, 42, 0.45);
  font-weight: 700;
  pointer-events: none;
}

.image-preview-remove,
.image-preview-restore {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  cursor: pointer;
}

.image-preview-restore {
  background: var(--brand);
}
/* Public flash modal */
.public-flash-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 34, 42, 0.48);
}

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

.public-flash-modal__panel {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(39, 123, 144, 0.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(8, 34, 42, 0.24);
  padding: 32px;
}

.public-flash-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.public-flash-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.public-flash-modal h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
}

.public-flash-modal__message {
  margin: 0;
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--surface-soft);
  line-height: 1.8;
  font-weight: 700;
}

.public-flash-modal--success .public-flash-modal__message {
  border: 1px solid rgba(39, 123, 144, 0.25);
  background: rgba(39, 123, 144, 0.08);
  color: var(--brand);
}

.public-flash-modal--error .public-flash-modal__message,
.public-flash-modal--warning .public-flash-modal__message {
  border: 1px solid rgba(198, 40, 40, 0.25);
  background: rgba(198, 40, 40, 0.08);
  color: #b3261e;
}

.public-flash-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.public-flash-modal__actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .public-flash-modal__panel {
    padding: 26px 18px 20px;
  }

.public-flash-modal__actions button {
    width: 100%;
  }
}

/* about page list design alignment */
.about-checklist {
  display: block;
  margin: 0 0 16px;
  padding: 0 0 0 1.4em;
  list-style: disc;
}

.about-checklist li {
  position: static;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted, #66777f);
  line-height: 1.9;
}

.about-checklist li + li {
  margin-top: 4px;
  border-top: 0;
}

.about-checklist li::before {
  content: none;
}

/* mobile layout tuning */
.mobile-break { display: none; }

@media (max-width: 640px) {
  .mobile-break { display: block; }

  .forum-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .forum-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
    text-align: center;
    box-sizing: border-box;
  }

  .mission-heading {
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .info-band .contact-actions {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .info-band .contact-actions .button-secondary,
  .person-public-contact-guide .contact-actions .button-secondary,
  .bbs-hero__actions .btn-post {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }

  .footer-banners {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  .footer-banners a {
    width: 100%;
  }

  .footer-share-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .footer-share-btn {
    width: 100%;
    max-width: none;
    min-height: 54px;
    justify-content: center;
    box-sizing: border-box;
  }
}
