/* Shared navigation; page content keeps the original design. */
:root { --rk-header-height: 88px; --rk-blue: #435de3; }
html {
  scroll-padding-top: calc(var(--rk-header-height) + 16px);
  -webkit-font-smoothing: antialiased;
}
html.rk-menu-open { overflow: hidden; }
.rk-header, .rk-mobile-menu { box-sizing: border-box; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; color: #242424; font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.rk-header *, .rk-mobile-menu * { box-sizing: border-box; }
.rk-header { position: fixed; inset: 0 0 auto; z-index: 1000; width: 100%; height: var(--rk-header-height); margin: 0; padding: 0; background: #fff; border-bottom: 1px solid #edf0f5; }
.rk-header-inner { display: flex; align-items: center; gap: 28px; width: 100%; max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 32px; }
.rk-header a, .rk-mobile-menu a { text-decoration: none; color: inherit; }
.rk-brand { display: flex; align-items: center; flex: 0 0 176px; width: 176px; min-width: 0; }
.rk-brand img { display: block; width: 100%; height: 58px; max-width: 100%; object-fit: contain; object-position: left center; }
.rk-desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; white-space: nowrap; }
.rk-nav-link { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; transition: color .15s; }
.rk-header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; }
.rk-header .rk-login, .rk-mobile-menu .rk-login { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rk-header .rk-button, .rk-mobile-menu .rk-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--rk-blue); border-radius: 4px; font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.rk-button { transition: background-color .15s, color .15s, border-color .15s; }
.rk-button.rk-button-primary { color: #fff; background: var(--rk-blue); }
.rk-header .rk-button-secondary, .rk-mobile-menu .rk-button-secondary { color: var(--rk-blue); background: #fff; }
.rk-arrow { flex: 0 0 6px; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.rk-header a:focus-visible, .rk-mobile-menu a:focus-visible, .rk-header button:focus-visible, .rk-mobile-menu button:focus-visible { outline: 3px solid #96a8ff; outline-offset: 4px; }
.rk-header a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.rk-menu-toggle, .rk-menu-close { display: none; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; margin: 0; background: #fff; border: 1px solid #e2e6ef; border-radius: 6px; color: #242424; cursor: pointer; }
.rk-menu-toggle { font-size: 14px; }
.rk-menu-icon { display: flex; flex-direction: column; gap: 5px; width: 21px; }
.rk-menu-icon span { display: block; width: 100%; height: 2px; background: currentColor; }
dialog.rk-mobile-menu { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0 0 0 auto; padding: 0 24px 32px; border: 0; background: #fff; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.rk-mobile-menu:not([open]) { display: none; }
dialog.rk-mobile-menu[open] { display: block; animation: none; }
.rk-mobile-menu::backdrop { background: rgba(21, 31, 61, .4); }
.rk-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; margin-bottom: 16px; }
.rk-menu-close { display: flex; font: 30px/1 sans-serif; }
.rk-mobile-nav { display: flex; flex-direction: column; }
.rk-mobile-nav .rk-nav-link { min-height: 58px; padding: 14px 4px; border-bottom: 1px solid #e9edf4; font-size: 16px; }
.rk-mobile-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.rk-mobile-actions .rk-button { width: 100%; min-height: 50px; }
@media (hover: hover) {
 .rk-nav-link:hover, .rk-login:hover { color: var(--rk-blue); }
 .rk-button.rk-button-primary:hover { background: #304ac9; border-color: #304ac9; }
 .rk-header .rk-button-secondary:hover, .rk-mobile-menu .rk-button-secondary:hover { background: #f0f3ff; }
}
@media (max-width: 1199px) {
 :root { --rk-header-height: 72px; }
 .rk-header-inner { justify-content: space-between; padding: 0 24px; }
 .rk-brand { flex-basis: 160px; width: 160px; }
 .rk-brand img { height: 54px; }
 .rk-desktop-nav, .rk-header-actions { display: none; }
 .rk-menu-toggle { display: flex; }
}
@media (max-width: 480px) {
 .rk-header-inner { padding: 0 20px; }
 dialog.rk-mobile-menu { padding-right: 20px; padding-left: 20px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
 .rk-button, .rk-header *, .rk-mobile-menu * { transition: none; }
}
