:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #f9fbfd;
  --line: #d7e1eb;
  --line-strong: #b8c7d8;
  --text: #1f2d3d;
  --muted: #5f7285;
  --blue: #4f78e8;
  --blue-deep: #1f5cd9;
  --green: #2faf61;
  --green-deep: #279853;
  --red: #f04f53;
  --red-deep: #db3f43;
  --pink-soft: #fdf1f0;
  --green-soft: #eef8ee;
  --blue-soft: #edf3ff;
  --beige-soft: #fbf2e8;
  --gray-soft: #f2f5f8;
  --shadow-lg: 0 24px 48px rgba(30, 58, 95, 0.08);
  --shadow-md: 0 10px 24px rgba(30, 58, 95, 0.07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --sticky-nav-top: 0px;
  --sticky-nav-clearance: 210px;
  --anchor-nudge: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sticky-nav-clearance) - var(--anchor-nudge));
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top center, rgba(110, 153, 215, 0.14), transparent 42%),
    linear-gradient(180deg, #f8fafc 0, var(--bg) 100%);
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.page {
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 28px 56px;
}

.site-header {
  margin-bottom: 28px;
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.masthead__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.55vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.masthead__brand {
  flex: 0 0 260px;
  padding-top: 6px;
}

.masthead__brand img {
  width: 100%;
  max-width: 250px;
  margin-left: auto;
}

.header-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px 0;
}

.header-grid--floating {
  position: fixed;
  top: var(--sticky-nav-top);
  z-index: 60;
  background: rgba(246, 248, 251, 0.7);
}

.header-grid-spacer {
  height: 0;
}

.home-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 174px;
  padding: 13px 16px 11px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom-width: 4px;
  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.06);
  background: linear-gradient(180deg, #f35f62 0, var(--red) 100%);
  border-bottom-color: var(--red-deep);
  color: #fff;
  text-decoration: none;
}

.home-tile__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.18;
}

.home-tile__desc {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 174px;
  padding: 13px 18px 11px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom-width: 4px;
  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.06);
  background: linear-gradient(180deg, #ffffff 0, #f6f8fb 100%);
  border-bottom-color: var(--line-strong);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.menu-toggle__icon {
  position: relative;
  width: 20px;
  height: 14px;
  flex: 0 0 20px;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after,
.menu-toggle__icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.menu-toggle__icon::before {
  top: 0;
}

.menu-toggle__icon span {
  top: 6px;
}

.menu-toggle__icon::after {
  bottom: 0;
}

.menu-toggle__label {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.header-grid__main {
  display: grid;
  gap: 12px;
}

.primary-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.primary-nav a {
  display: block;
  min-height: 98px;
  padding: 13px 16px 11px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom-width: 4px;
  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.06);
  color: #fff;
  text-decoration: none;
}

.primary-nav a:nth-child(1),
.primary-nav a:nth-child(2),
.primary-nav a:nth-child(3) {
  background: linear-gradient(180deg, #34ba69 0, var(--green) 100%);
  border-bottom-color: var(--green-deep);
}

.primary-nav a:nth-child(4),
.primary-nav a:nth-child(5) {
  background: linear-gradient(180deg, #6d8df0 0, var(--blue) 100%);
  border-bottom-color: var(--blue-deep);
}

.primary-nav__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.18;
}

.primary-nav__desc {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0.96;
}

.secondary-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.secondary-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 66px;
  padding: 11px 16px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.035);
  color: var(--text);
  text-decoration: none;
}

.secondary-nav li:nth-child(1) a,
.secondary-nav li:nth-child(6) a {
  background: var(--pink-soft);
}

.secondary-nav li:nth-child(2) a {
  background: #eef8f6;
}

.secondary-nav li:nth-child(3) a,
.secondary-nav li:nth-child(5) a {
  background: var(--gray-soft);
}

.secondary-nav li:nth-child(4) a {
  background: var(--beige-soft);
}

.secondary-nav__title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.secondary-nav__meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

.news-panel,
.sidebar-card,
.content-panel,
.content-toc,
.hero-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.news-panel,
.content-panel,
.hero-card {
  padding: 34px;
}

.news-panel__title,
.page-heading {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
}

.news-panel__note,
.section-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.news-panel__subhead {
  margin: 32px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.news-filter {
  margin: 20px 0 24px;
}

.news-filter__select {
  min-width: 240px;
  max-width: 100%;
  min-height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.news-list,
.news-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li[hidden] {
  display: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.news-list time {
  color: #5f7184;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.news-item__body {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.news-item__icon,
.news-item__flags img,
.news-flag {
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.news-item__icon,
.news-item__flags img {
  width: auto;
  object-fit: contain;
}

.news-item__flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.news-flag {
  width: 24px;
  border: 1px solid rgba(95, 113, 132, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.news-flag--indonesia {
  background: linear-gradient(180deg, #d70018 0 50%, #ffffff 50% 100%);
}

.news-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0f6a8b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
  margin-inline-end: 6px;
  vertical-align: middle;
}

.news-item__body .news-item__title {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
}

.news-item__body a.news-item__title {
  text-decoration: none;
}

.news-item__body a.news-item__title:hover,
.news-item__body a.news-item__title:focus,
.prose a:hover,
.prose a:focus {
  text-decoration: underline;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 28px;
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.45;
}

.sidebar-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.sidebar-card--login .login-box {
  margin-top: 20px;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  margin-top: 18px;
  border-radius: 18px;
  background: #252d3b;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.banner-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.banner-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-alt);
  text-decoration: none;
}

.banner-link__text {
  min-width: 0;
}

.banner-link__title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.4;
}

.banner-link__meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.6;
}

.banner-link img {
  max-width: 116px;
  max-height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fafbfd;
}

.sidebar-note strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

.content-layout--single {
  grid-template-columns: 1fr;
}

.content-toc {
  position: sticky;
  top: calc(var(--sticky-nav-clearance) + 12px);
  padding: 24px;
}

.content-toc h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
}

.content-toc ul {
  margin: 0;
  padding-left: 18px;
}

.content-toc__support {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.content-toc__support h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.content-toc__support p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.6;
}

.content-toc__support .banner-list {
  gap: 10px;
  margin-top: 14px;
}

.content-toc__support .banner-link {
  padding: 14px;
  border-radius: 18px;
}

.content-toc__support .banner-link__title {
  font-size: 0.9rem;
  line-height: 1.35;
}

.content-toc__support .banner-link__meta {
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.5;
}

.content-toc__support .banner-link img {
  max-width: 88px;
  max-height: 28px;
}

.content-toc li + li {
  margin-top: 8px;
}

.content-toc .content-toc__subitem {
  margin-left: 14px;
}

.content-toc .content-toc__subitem a {
  font-weight: 600;
}

.content-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.content-toc .toc-flag {
  width: 18px;
  height: 14px;
  object-fit: contain;
}

.content-toc .toc-flag--swiss {
  width: 14px;
}

.content-panel__lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--line-strong);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.article-meta__item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.article-meta__item--primary {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border-color: rgba(79, 120, 232, 0.18);
}

.notice-box {
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(79, 120, 232, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff 0, #eff5ff 100%);
}

.notice-box h2,
.notice-box h3 {
  margin-top: 0;
}

.notice-summary {
  margin: 18px 0 0;
  padding-left: 20px;
}

.notice-summary li + li {
  margin-top: 8px;
}

.attachment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-alt);
  text-decoration: none;
}

.attachment-card__text {
  min-width: 0;
}

.attachment-card__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.attachment-card__meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

.attachment-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #252d3b;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-card {
  margin-top: 30px;
}

.image-panel {
  display: flex;
  justify-content: center;
}

.image-panel img {
  width: min(100%, 800px);
}

.prose {
  font-size: 1rem;
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 0;
  line-height: 1.35;
}

.prose h2[id],
.prose h3[id] {
  scroll-margin-top: calc(var(--sticky-nav-clearance) - var(--anchor-nudge));
}

.prose h2 {
  margin-top: 36px;
  padding-top: 8px;
  font-size: 1.75rem;
  font-weight: 800;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 28px;
  font-size: 1.24rem;
  font-weight: 800;
}

.prose h4 {
  margin-top: 22px;
  font-size: 1.08rem;
  font-weight: 800;
}

.prose p,
.prose dl,
.prose ul,
.prose ol,
.prose table,
.prose div {
  margin-top: 16px;
}

.prose a {
  color: var(--blue-deep);
  font-weight: 700;
}

.prose dl {
  padding-left: 0;
}

.prose dt {
  margin-top: 12px;
  font-weight: 800;
}

.prose dd {
  margin: 6px 0 0 1.25rem;
}

.prose hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose img[align="right"] {
  float: right;
  max-width: min(42%, 280px);
  margin: 0 0 18px 18px;
}

.step-hero {
  margin: 0 0 24px;
}

.step-hero img {
  max-width: min(100%, 520px);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  white-space: normal;
}

.prose table tbody,
.prose table thead {
  width: 100%;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  background: var(--surface-alt);
  font-weight: 800;
}

.prose .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.contact-page {
  display: grid;
  gap: 28px;
  color: var(--text);
}

.contact-guide,
.contact-block {
  display: grid;
  gap: 16px;
}

.contact-guide,
.contact-block,
.contact-card,
.contact-office-table {
  position: relative;
}

.contact-guide__title,
.contact-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
}

.contact-guide__title::before,
.contact-block h2::before {
  content: "";
  width: 28px;
  height: 20px;
  flex-shrink: 0;
  clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
  background: linear-gradient(180deg, #6d8df0 0, var(--blue) 100%);
}

.contact-guide__table,
.contact-office-table table,
.contact-card__grid {
  width: 100%;
  border-collapse: collapse;
}

.contact-guide__table th,
.contact-guide__table td,
.contact-office-table th,
.contact-office-table td,
.contact-card__grid td,
.contact-card__grid p {
  border: 1px solid var(--line);
}

.contact-guide__table th,
.contact-card h3,
.contact-office-table thead th {
  background: linear-gradient(180deg, #eff4fb 0, #e4edf8 100%);
  color: var(--text);
}

.contact-guide__table th,
.contact-guide__table td,
.contact-office-table th,
.contact-office-table td {
  padding: 14px 16px;
  vertical-align: top;
}

.contact-guide__table th {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-guide__table td {
  background: var(--surface);
  font-size: 0.95rem;
}

.contact-guide__table ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
}

.contact-guide__table li + li {
  margin-top: 4px;
}

.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 28px rgba(30, 58, 95, 0.06);
}

.contact-card h3 {
  margin: 0;
  padding: 16px 18px;
  font-size: 1.06rem;
  font-weight: 800;
}

.contact-card__grid {
  display: grid;
}

.contact-card__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card__grid p {
  margin: 0;
  padding: 18px;
  background: var(--surface);
  text-align: center;
  font-weight: 700;
}

.contact-office-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(30, 58, 95, 0.06);
}

.contact-office-table table {
  min-width: 980px;
}

.contact-office-table thead th {
  text-align: center;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-office-table tbody td {
  background: var(--surface);
  font-size: 0.95rem;
}

.contact-office-table tbody tr:nth-child(even) td {
  background: var(--blue-soft);
}

.contact-office-table td:nth-child(1),
.contact-office-table td:nth-child(2),
.contact-office-table td:nth-child(3),
.contact-office-table th:nth-child(1),
.contact-office-table th:nth-child(2),
.contact-office-table th:nth-child(3) {
  width: 60px;
  text-align: center;
  vertical-align: middle;
  font-weight: 800;
}

.contact-office-table td:nth-child(4) {
  min-width: 290px;
  font-weight: 700;
}

.contact-office-table td:nth-child(5) {
  min-width: 280px;
}

.contact-office-table td:nth-child(6) {
  min-width: 180px;
  white-space: normal;
}

.contact-page .section-note,
.contact-block > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.contact-page a {
  color: var(--blue-deep);
}

.site-footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue-deep);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1200px) {
  :root {
    --sticky-nav-clearance: 136px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .header-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 0;
  }

  .home-tile,
  .menu-toggle {
    min-height: 68px;
    padding: 12px 14px 10px;
  }

  .home-tile__title,
  .primary-nav__title,
  .secondary-nav__title {
    font-size: 0.88rem;
    line-height: 1.18;
  }

  .home-tile__desc,
  .primary-nav__desc,
  .secondary-nav__meta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    width: 72px;
    min-width: 72px;
    padding-inline: 0;
  }

  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-grid__main {
    grid-column: 1 / -1;
    gap: 8px;
  }

  .header-grid--mobile .header-grid__main {
    display: none;
  }

  .header-grid--mobile.header-grid--menu-open .header-grid__main {
    display: grid;
  }

  .header-grid--mobile.header-grid--menu-open .menu-toggle {
    background: linear-gradient(180deg, #eaf1ff 0, #dfe9ff 100%);
    border-bottom-color: #89a8f5;
    color: var(--blue-deep);
  }

  .header-grid--mobile.header-grid--menu-open .menu-toggle__icon::before {
    top: 6px;
    transform: rotate(45deg);
  }

  .header-grid--mobile.header-grid--menu-open .menu-toggle__icon span {
    opacity: 0;
  }

  .header-grid--mobile.header-grid--menu-open .menu-toggle__icon::after {
    bottom: 6px;
    transform: rotate(-45deg);
  }

  .primary-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .secondary-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .primary-nav a,
  .secondary-nav a {
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .secondary-nav a {
    min-height: 40px;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .secondary-nav__title {
    font-size: 0.8rem;
    line-height: 1.05;
    text-align: center;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .content-toc {
    position: static;
  }
}

@media (max-width: 820px) {
  :root {
    --sticky-nav-top: 0px;
    --sticky-nav-clearance: 132px;
  }

  .page {
    padding: 18px 16px 40px;
  }

  .masthead,
  .site-footer__inner {
    display: flex;
  }

  .masthead {
    position: relative;
    align-items: flex-start;
    padding-right: 60px;
    min-height: 44px;
  }

  .masthead__brand {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    padding-top: 0;
  }

  .masthead__brand::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("https://www.jcci.or.jp/assets/img/common/logo.webp");
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: left center;
  }

  .masthead__brand img {
    display: none;
  }

  .home-tile,
  .menu-toggle {
    min-height: 64px;
  }

  .primary-nav,
  .secondary-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .secondary-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .secondary-nav a {
    min-height: 30px;
    padding: 4px 6px;
    border-radius: 10px;
  }

  .secondary-nav__title {
    font-size: 0.74rem;
    line-height: 1;
    text-align: center;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .banner-link {
    align-items: flex-start;
  }

  .prose img[align="right"] {
    float: none;
    max-width: 100%;
    margin: 0 0 18px;
  }
}

@media (max-width: 560px) {
  .primary-nav,
  .secondary-nav {
    grid-template-columns: 1fr;
  }

  .news-filter__select {
    width: 100%;
    min-width: 0;
  }

  .content-panel,
  .hero-card,
  .news-panel {
    padding: 24px 20px;
  }
}
