/* 採用されたA案。各ページで共通の固定ヘッダーとメニュー。 */
:root {
  --site-header-height: 98px;
}
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--site-header-height);
  padding: 20px 4%;
  background: #fff;
  border-bottom: 1px solid #dcded9;
  letter-spacing: 0;
}
.header-brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1.5;
}
.header-name {
  font-size: 22px;
  letter-spacing: 0.035em;
  font-weight: 800;
}
.header-role {
  font-size: 14px;
  margin-top: 3px;
}
.header-role-short {
  display: none;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}
.primary-nav a {
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.primary-nav a[aria-current="page"] {
  border-color: currentColor;
}
.primary-nav a:hover {
  border-color: currentColor;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 0 8px 30px;
  border: 0;
  border-left: 1px solid #dcded9;
  background: transparent;
  font-size: 14px;
}
.menu-icon {
  position: relative;
  display: block;
  width: 26px;
  height: 20px;
}
.menu-icon::before,
.menu-icon::after,
.menu-icon > span {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 1px;
  background: currentColor;
  top: 3px;
}
.menu-icon > span {
  top: 10px;
}
.menu-icon::after {
  top: 17px;
}
.menu-toggle[aria-expanded="true"] .menu-icon > span {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 10px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 10px;
  transform: rotate(-45deg);
}
.site-nav {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(480px, 100%);
  max-height: calc(100dvh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: var(--ink);
  border: 1px solid #dcded9;
  padding: 28px 36px;
  box-shadow: 0 16px 40px #00000012;
}
.menu-heading {
  font-size: 14px;
  letter-spacing: 0.1em;
  padding-bottom: 14px;
  color: var(--muted);
}
.site-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #dcded9;
  font-size: 16px;
}
.site-nav .menu-link-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-nav a[aria-current="page"] {
  font-weight: 700;
}
@media (min-width: 961px) and (max-width: 1200px) {
  .site-header {
    gap: 16px;
    padding-inline: 3%;
  }
  .primary-nav {
    gap: 10px;
  }
  .primary-nav a[href="agent.html"] {
    width: 126px;
    white-space: normal;
    text-align: center;
    text-wrap: balance;
    line-height: 1.6;
  }
}
@media (max-width: 1000px) {
  :root {
    --site-header-height: 96px;
  }
  .site-header {
    gap: 16px;
  }
  .primary-nav {
    gap: 10px;
  }
  .header-name {
    font-size: 20px;
  }
  .menu-toggle {
    padding-left: 20px;
  }
}
@media (max-width: 960px) {
  .primary-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
}
@media (max-width: 700px) {
  :root {
    --site-header-height: 82px;
  }
  .site-header {
    padding: 15px 20px;
    gap: 15px;
  }
  .header-name {
    font-size: 17px;
  }
  .header-role {
    font-size: 14px;
    max-width: 225px;
  }
  .header-role-full {
    display: none;
  }
  .header-role-short {
    display: inline;
  }
  .menu-toggle {
    padding: 8px;
    border-left: 0;
  }
  .site-nav {
    padding: 20px 24px;
    max-height: calc(100dvh - 180px);
  }
  .site-nav a {
    font-size: 15px;
  }
}
@media (max-width: 360px) {
  .header-name {
    font-size: 16px;
  }
  .header-role {
    max-width: 210px;
  }
  .site-header {
    padding-inline: 14px;
    gap: 6px;
  }
  .menu-toggle {
    padding-inline: 5px;
  }
}
