@charset "UTF-8";

:root {
  --site-header-height: 60px;
}

html {
  scroll-padding-top: var(--site-header-height);
}

body {
  padding-top: var(--site-header-height);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
  width: 100%;
  height: var(--site-header-height);
  background-color: #fff;
  border-bottom: 1px solid #edf0f2;
  color: #253345;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(12px, 2.2222vw, 32px);
}

.site-header a {
  text-decoration: none;
  cursor: pointer;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header__logo {
  display: block;
  width: clamp(160px, 20vw, 240px);
  height: auto;
}

/* One set of navigation and action links serves all three layouts. */
.site-header__panel {
  display: contents;
}

.site-header__nav {
  flex: 0 0 auto;
  margin: 0 auto;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__menu a {
  display: block;
  padding: 12px 0;
  color: #253345;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-header__menu a:hover {
  color: #008279;
}

.site-header__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.site-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #d92366;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.site-header__button--request {
  background-color: #d92366;
  color: #fff;
}

.site-header__button--contact {
  background-color: #fff;
  color: #d92366;
}

.site-header__button:hover {
  opacity: 0.8;
}

.site-header a:focus-visible,
.site-header__toggle:focus-visible {
  outline: 2px solid #008279;
  outline-offset: 3px;
}

.site-header__button:focus-visible {
  outline-color: #d92366;
}

.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 5px;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #253345;
}

.site-header[data-layout="menu"] .site-header__toggle,
.site-header[data-layout="compact"] .site-header__toggle {
  display: flex;
}

.site-header[data-layout="menu"] .site-header__actions,
.site-header[data-layout="compact"] .site-header__toggle {
  margin-left: auto;
}

/* Middle layout: dropdown links, with both buttons still in the header bar. */
.site-header[data-layout="menu"] .site-header__nav,
.site-header[data-layout="compact"] .site-header__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  max-height: calc(100dvh - var(--site-header-height));
  margin: 0;
  overflow-y: auto;
  background-color: #fff;
  border-top: 1px solid #edf0f2;
  box-shadow: 0 8px 16px rgba(6, 32, 68, 0.1);
}

.site-header[data-layout="menu"].is-menu-open .site-header__nav,
.site-header[data-layout="compact"].is-menu-open .site-header__panel {
  display: block;
}

.site-header[data-layout="menu"] .site-header__menu,
.site-header[data-layout="compact"] .site-header__menu {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 20px;
}

.site-header[data-layout="menu"] .site-header__menu a,
.site-header[data-layout="compact"] .site-header__menu a {
  padding: 14px 0;
}

.site-header[data-layout="compact"] .site-header__nav {
  margin: 0;
}

.site-header[data-layout="compact"] .site-header__actions {
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid #edf0f2;
}

.site-header[data-layout="compact"] .site-header__button {
  height: 44px;
}
