/* 同友会 Web 共通（system font・CDN / Bootstrap なし） */

:root {
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #e2e4e8;
  --card-bg: #fff;
  --link: #0b57d0;
  --link-hover: #0842a0;
  --doyu-green: #007e3a;
  --doyu-green-dark: #005f2d;
  --nav-on-green: #fff;
  --surface: #f4f6f8;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
}

/* ----- 統一ヘッダー ----- */

.shell-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.shell-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.shell-brand:hover .shell-brand__logo {
  opacity: 0.92;
}

.shell-brand__logo {
  display: block;
  height: 3rem;
  width: auto;
  max-width: min(100vw - 2rem, 300px);
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.shell-header__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

.shell-header__link {
  color: var(--doyu-green);
  text-decoration: none;
  font-weight: 600;
}

.shell-header__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell-header__sep {
  color: #d0d0d0;
  user-select: none;
}

.shell-header__tel {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.shell-header__tel:hover {
  color: var(--doyu-green);
}


.shell-header__login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--doyu-green);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.shell-header__login:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell-header__login-icon {
  display: flex;
  align-items: center;
  line-height: 0;
}

.shell-header__login-icon svg {
  display: block;
}

.shell-header__auth {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

/* ログイン後: 丸アイコン＋クリックでアカウントメニュー（<details> または同等） */
.shell-header__account {
  position: relative;
  list-style: none;
}

.shell-header__account > summary {
  list-style: none;
  cursor: pointer;
}

.shell-header__account > summary::-webkit-details-marker {
  display: none;
}

.shell-header__account > summary::marker,
.shell-header__account summary::marker {
  content: "";
  display: none;
}

.shell-header__account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  max-width: 2.25rem;
  max-height: 2.25rem;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--doyu-green);
  cursor: pointer;
  vertical-align: middle;
  overflow: hidden;
  flex-shrink: 0;
}

.shell-header__account-btn:hover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--doyu-green-dark);
}

.shell-header__account-btn:focus-visible {
  outline: 2px solid var(--doyu-green);
  outline-offset: 2px;
}

.shell-header__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  max-width: 2.25rem;
  max-height: 2.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: #e8eaed;
  color: #5f6368;
  flex-shrink: 0;
  box-sizing: border-box;
}

.shell-header__avatar img,
.shell-header__avatar svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  box-sizing: border-box;
}

.shell-header__avatar img {
  object-fit: cover;
}

.shell-header__avatar--fallback svg {
  width: 65%;
  height: 65%;
  max-width: 1.35rem;
  max-height: 1.35rem;
}

/* アイコン hover: 名前・ログイン ID・権限（コンパクト・ダーク） */
.shell-header__account-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 12.5rem;
  max-width: min(92vw, 18rem);
  padding: 0.55rem 0.7rem 0.6rem;
  background: #3c4043;
  color: #e8eaed;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  z-index: 180;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.shell-header__account:not([open])
  > summary:hover
  ~ .shell-header__account-tooltip,
.shell-header__account:not([open])
  > summary:focus-visible
  ~ .shell-header__account-tooltip {
  opacity: 1;
  visibility: visible;
}

.shell-header__account[open] > .shell-header__account-tooltip {
  opacity: 0 !important;
  visibility: hidden !important;
}

.shell-header__account-tooltip-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.shell-header__account-tooltip-name {
  margin: 0 0 0.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
}

.shell-header__account-tooltip-id {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  color: #bdc1c6;
  word-break: break-all;
}

.shell-header__account-tooltip-role {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9aa0a6;
}

/* 閉じているときはオーバーレイをレイアウトから外す */
.shell-header__account:not([open]) > .shell-header__account-backdrop,
.shell-header__account:not([open]) > .shell-header__account-modal {
  display: none !important;
}

.shell-header__account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(32, 33, 36, 0.45);
  border: none;
  padding: 0;
  margin: 0;
  cursor: default;
}

.shell-header__account-modal {
  position: fixed;
  inset: 0;
  z-index: 401;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  /* ヘッダー右上のアイコン直下付近（.shell-header__inner の縦パディング＋ロゴ行を想定） */
  padding: calc(env(safe-area-inset-top, 0px) + 3.75rem)
    calc(env(safe-area-inset-right, 0px) + 1.1rem) 1rem 1rem;
  pointer-events: none;
}

.shell-header__account-modal-card {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 22rem;
  max-height: calc(100vh - 5rem);
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  padding: 1.35rem 1.35rem 1.15rem;
  background: linear-gradient(180deg, #f1f3f4 0%, #e8eaed 100%);
  color: #202124;
  border-radius: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shell-header__account-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(60, 64, 67, 0.08);
  color: #5f6368;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.shell-header__account-modal-close:hover {
  background: rgba(60, 64, 67, 0.14);
}

.shell-header__account-modal-close:focus-visible {
  outline: 2px solid var(--doyu-green);
  outline-offset: 2px;
}

.shell-header__account-modal-avatar-wrap {
  display: flex;
  justify-content: center;
  margin: 0.15rem 0 0.65rem;
}

.shell-header__account-modal-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--doyu-green) 0%, #0b57d0 40%, #c5221f 70%, #f9ab00 100%);
  box-sizing: border-box;
}

.shell-header__account-modal-avatar > .shell-header__avatar {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  border-radius: 50%;
  border: 2px solid #f1f3f4;
}

.shell-header__account-modal .shell-header__account-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f6368;
  text-align: center;
}

.shell-header__account-modal .shell-header__account-name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #202124;
  text-align: center;
  line-height: 1.3;
}

.shell-header__account-modal .shell-header__account-idline {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #5f6368;
  text-align: center;
  word-break: break-all;
}

.shell-header__account-modal .shell-header__account-role {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3c4043;
  text-align: center;
}

.shell-header__account-modal .shell-header__account-divider {
  background: rgba(60, 64, 67, 0.15);
}

.shell-header__account-modal .shell-header__account-note {
  color: #5f6368;
}

.shell-header__account-modal .shell-header__account-navlink {
  display: block;
  text-align: center;
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.5rem;
  font-size: 0.88rem;
  color: #1a73e8;
  text-decoration: none;
}

.shell-header__account-modal .shell-header__account-navlink:hover {
  text-decoration: underline;
}

.shell-header__account-modal .shell-header__account-navlink--admin {
  margin-top: 0.5rem;
  color: #5f6368;
  font-weight: 600;
}

.shell-header__account-modal .shell-header__account-logout {
  display: block;
  text-align: center;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--doyu-green-dark);
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(0, 126, 58, 0.35);
  text-decoration: none;
}

.shell-header__account-modal .shell-header__account-logout:hover {
  background: #f8fff9;
  text-decoration: none;
}

/* ヘッダーが折り返したときはツール列が下に伸びるため、モーダルをやや下げる */
@media (max-width: 48rem) {
  .shell-header__account-modal {
    padding-top: calc(env(safe-area-inset-top, 0px) + 6.25rem);
  }
}

.shell-nav {
  background: linear-gradient(180deg, var(--doyu-green) 0%, var(--doyu-green-dark) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shell-nav__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 72rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
}

.shell-nav__list > li {
  flex: 1 1 auto;
  min-width: 9rem;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.shell-nav__list > li:first-child {
  border-left: none;
}

.shell-nav__list a {
  display: block;
  padding: 0.85rem 0.65rem;
  color: var(--nav-on-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, color 0.15s ease;
}

.shell-nav__list a:hover {
  background: rgba(0, 0, 0, 0.12);
}

.shell-nav__list a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
  font-weight: 700;
}

.shell-main {
  padding: 1.5rem 1rem 3rem;
}

.shell-main .site-wrap {
  margin-top: 0;
}

@media (max-width: 36rem) {
  .shell-nav__list > li {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    width: 100%;
  }

  .shell-nav__list > li:first-child {
    border-top: none;
  }
}

/* ----- 本文 ----- */

.site-wrap {
  max-width: 46rem;
  margin: 0 auto;
}

h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
  line-height: 1.3;
  color: var(--doyu-green-dark);
  letter-spacing: 0.02em;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b4f00;
  background: linear-gradient(180deg, #fff9e6 0%, #fff3cc 100%);
  border: 1px solid #e8d48b;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

p {
  margin: 0 0 1rem;
}

.portal-lead {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow);
}

.portal-lead p:last-child {
  margin-bottom: 0;
}

.nav-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 34rem) {
  .nav-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.nav-cards a {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--link);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.nav-cards a:hover {
  color: var(--link-hover);
  border-color: #b8cce8;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.nav-cards a span {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.nav-cards__pending {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: none;
  cursor: default;
}

.nav-cards__pending span {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.back-link {
  margin-top: 1.75rem;
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--doyu-green);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.back-link a:hover {
  border-bottom-color: var(--doyu-green);
}

/* ----- 総合ポータル：機構図 ----- */

.portal-kiko {
  margin-top: 2rem;
  padding: 0;
  background: linear-gradient(180deg, #f8fcf9 0%, var(--card-bg) 28%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portal-kiko__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1.2rem 1.35rem 0;
}

.portal-kiko h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--doyu-green-dark);
  flex: 1 1 12rem;
}

.portal-kiko__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--doyu-green-dark);
  background: #fff;
  border: 2px solid var(--doyu-green);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.portal-kiko__cta:hover {
  background: var(--doyu-green);
  color: var(--nav-on-green);
  box-shadow: 0 2px 10px rgba(0, 126, 58, 0.25);
}

.portal-kiko__lead {
  margin: 0;
  padding: 0.5rem 1.35rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

.portal-kiko__read-guide {
  margin: 1rem 1.35rem 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #d4eadf;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.portal-kiko__subhead {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--doyu-green-dark);
}

.portal-kiko__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 52rem) {
  .portal-kiko__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

.portal-kiko__steps li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.55rem 0.65rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.55;
}

.portal-kiko__step-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--nav-on-green);
  background: var(--doyu-green);
  border-radius: 50%;
}

.portal-kiko__step-body {
  display: block;
  padding-top: 0.08rem;
}

.portal-kiko__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.portal-kiko__tags li {
  margin: 0;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--doyu-green-dark);
  background: #e8f5ec;
  border-radius: 999px;
  border: 1px solid #c5e5d1;
}

.portal-kiko__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 1rem 1.35rem 0;
  padding: 0.5rem 0.75rem;
  background: #eef6f1;
  border: 1px solid #cde8d8;
  border-radius: 8px;
}

.portal-kiko__toolbar-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1 1 14rem;
}

.portal-kiko__zoom {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  white-space: nowrap;
}

.portal-kiko__zoom:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-kiko__figure {
  margin: 0.85rem 1.35rem 0;
  padding: 0;
}

.portal-kiko__img-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.portal-kiko__img-wrap:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 126, 58, 0.35);
}

.portal-kiko__img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  margin: 0 auto;
}

.portal-kiko__caption {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.portal-kiko__caption a {
  font-weight: 600;
}

.portal-kiko__details {
  margin: 1rem 1.35rem 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.portal-kiko__summary {
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--doyu-green-dark);
  cursor: pointer;
  list-style: none;
}

.portal-kiko__summary::-webkit-details-marker {
  display: none;
}

.portal-kiko__summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.35rem;
  transform-origin: center;
  transition: transform 0.15s ease;
}

.portal-kiko__details[open] .portal-kiko__summary::before {
  transform: rotate(90deg);
}

.portal-kiko__table-scroll {
  overflow-x: auto;
  padding: 0 0.75rem 0.85rem;
  border-top: 1px solid var(--border);
}

.portal-kiko__table {
  width: 100%;
  min-width: 18rem;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 0.65rem;
}

.portal-kiko__table th,
.portal-kiko__table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
}

.portal-kiko__table thead th {
  background: #e8f5ec;
  color: var(--doyu-green-dark);
  font-weight: 700;
}

.portal-kiko__table tbody th {
  width: 7.5rem;
  background: #f4faf6;
  font-weight: 700;
  color: var(--text);
}

.portal-kiko__note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1rem 1.35rem 1.2rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.portal-kiko__caption--after-web {
  margin: 0.75rem 1.35rem 0;
  padding: 0 0 0.25rem;
}

.portal-kiko__details--scan {
  margin: 1rem 1.35rem 0;
}

.portal-kiko__scan-inner {
  padding: 0 0 0.85rem;
  border-top: 1px solid var(--border);
}

.portal-kiko__details--scan .portal-kiko__img-wrap {
  margin-top: 0;
}

/* ----- 総合ポータル：機構図 Web版（セマンティック） ----- */

.kiko-web {
  margin: 1rem 1.35rem 0;
  padding: 1rem 1rem 1.25rem;
  background: #fafcfb;
  border: 1px solid #cfe6d8;
  border-radius: 12px;
}

.kiko-web__intro {
  margin-bottom: 1rem;
}

.kiko-web__intro-text {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.kiko-web__band {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.kiko-web__band--top {
  margin-bottom: 0;
}

.kiko-web__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 10px;
  border: 2px solid var(--doyu-green-dark);
  background: #fff;
  color: var(--doyu-green-dark);
  box-shadow: 0 2px 8px rgba(0, 95, 45, 0.08);
}

.kiko-web__node--apex {
  min-width: 7rem;
  background: linear-gradient(180deg, #e8f8ee 0%, #fff 100%);
}

.kiko-web__node--coop {
  min-width: 11rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  color: var(--doyu-green-dark);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.kiko-web__node--coop:hover {
  background: #f0faf3;
  box-shadow: 0 4px 14px rgba(0, 126, 58, 0.15);
}

.kiko-web__node-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.kiko-web__tie {
  align-self: center;
  width: 1.5rem;
  height: 2px;
  background: #9bc9af;
}

.kiko-web__stem {
  width: 2px;
  height: 0.85rem;
  margin: 0 auto;
  background: linear-gradient(180deg, #9bc9af, #6aab87);
}

.kiko-web__stem--short {
  height: 0.55rem;
}

.kiko-web__node--board {
  max-width: 14rem;
  margin: 0 auto;
  background: linear-gradient(180deg, #dff3e6 0%, #fff 55%);
}

.kiko-web__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.65rem;
}

@media (min-width: 36rem) {
  .kiko-web__split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.kiko-web__col {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.kiko-web__col--sec {
  border-color: #c5e5d1;
}

.kiko-web__node--sub {
  margin: 0 auto 0.65rem;
  min-height: 2.5rem;
  min-width: 8rem;
  font-size: 0.88rem;
  font-weight: 800;
  border-width: 1px;
  border-color: var(--doyu-green);
  color: var(--doyu-green-dark);
}

.kiko-web__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.kiko-web__dept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kiko-web__dept-list li {
  margin: 0;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: #eef6f1;
  border: 1px solid #c5e5d1;
  border-radius: 6px;
  color: var(--text);
}

.kiko-web__section-title {
  margin: 1.35rem 0 0.65rem;
  padding-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--doyu-green-dark);
  border-bottom: 2px solid #b8dfc9;
}

.kiko-web__pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 40rem) {
  .kiko-web__pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56rem) {
  .kiko-web__pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kiko-web__card {
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.kiko-web__card--wide {
  grid-column: 1 / -1;
}

.kiko-web__card-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--doyu-green-dark);
}

.kiko-web__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
}

.kiko-web__list a {
  font-weight: 700;
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(11, 87, 208, 0.45);
  text-underline-offset: 0.12em;
}

.kiko-web__list a:visited {
  color: #0d47a1;
}

.kiko-web__list a:hover {
  text-decoration-color: var(--link);
}

.kiko-web__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kiko-web__chips li {
  margin: 0;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.kiko-web__chips a {
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(11, 87, 208, 0.45);
  text-underline-offset: 0.12em;
}

.kiko-web__chips a:visited {
  color: #0d47a1;
}

.kiko-web__chips a:hover {
  text-decoration-color: var(--link);
}

.kiko-web__region-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 34rem) {
  .kiko-web__region-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .kiko-web__region-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kiko-web__region {
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #d4eadf;
  border-radius: 10px;
}

.kiko-web__region-title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.kiko-web__region-title a {
  color: var(--doyu-green-dark);
  text-decoration: none;
}

.kiko-web__region-title a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kiko-web__branch-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text);
}

.kiko-web__branch-list a {
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}

.kiko-web__branch-list a:hover {
  text-decoration: underline;
}

/* ----- 協議会・支部一覧（総合ポータル配下） ----- */

.kyogi-back {
  margin: 0 0 1rem;
}

.kyogi-back a {
  color: var(--doyu-green);
  font-weight: 600;
  text-decoration: none;
}

.kyogi-back a:hover {
  text-decoration: underline;
}

.branch-roster {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.branch-roster li {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}

.branch-roster li:last-child {
  border-bottom: none;
}

.branch-roster__muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.branch-roster__links {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.branch-roster__links > a {
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.branch-roster__links > a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.branch-roster__sep {
  color: #b0b0b0;
  margin: 0 0.15rem;
}

.branch-roster-footnote {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.kyogi-east-fb-intro {
  margin: 0 0 0.85rem;
  padding: 0.6rem 0.75rem;
  background: #f4faf6;
  border: 1px solid #c5e5d1;
  border-radius: 8px;
}

.shell-brand__text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--doyu-green);
}
