@charset "UTF-8";
/* ==========================================================
   01-header — fixed header / dropdown / drawer / pagetop
   ========================================================== */

/* ---------- header bar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  box-shadow: var(--shadow-header);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: 24px;
}
.header__logo {
  flex: none;
  display: block;
  line-height: 1;
}
.header__logo img {
  height: 40px;
  width: auto;
}
/* official mitoki logo (trimmed PNG): kill baseline gap.
   heights are governed by the contextual rules above/below. */
.header__logo-img {
  display: block;
}

/* ---------- global nav ---------- */
.header__nav {
  margin-left: auto;
}
.header__nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
}
.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  white-space: nowrap;
  transition: color .25s;
}
.header__nav-link:hover,
.header__nav-link:focus-visible {
  color: var(--asagi);
}
.header__caret {
  flex: none;
  color: var(--asagi);
  transition: transform .25s;
}
.header__nav-item--has-sub:hover .header__caret,
.header__nav-item--has-sub:focus-within .header__caret {
  transform: rotate(180deg);
}

/* dropdown */
.header__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 300px;
  padding: 12px 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-header);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.header__nav-item--has-sub:hover .header__sub,
.header__nav-item--has-sub:focus-within .header__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.header__sub-link {
  display: block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transition: color .25s, background-color .25s;
}
.header__sub-link:hover,
.header__sub-link:focus-visible {
  color: var(--asagi);
  background: var(--bg-tint);
}

/* ---------- tel ---------- */
.header__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: 32px;
  white-space: nowrap;
  transition: opacity .25s;
}
.header__tel:hover,
.header__tel:focus-visible {
  opacity: .7;
}
.header__tel-icon {
  color: var(--asagi);
}
.header__tel-num {
  font-family: var(--font-en);
  font-size: 25px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1;
  letter-spacing: .01em;
  /* optical: line-height:1 centers the em box, but lining digits have no
     descender — nudge down 1px so the digit baseline sits on the same
     baseline as the nav/button labels (and centers against the icon) */
  transform: translateY(1px);
}

/* ---------- header buttons ---------- */
.header__btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-left: 24px;
}
.header__btn {
  font-size: 17px;
  padding: 11px 26px;
}

/* ---------- hamburger ---------- */
.header__hamburger {
  display: none;
}

/* ---------- drawer (SP) ---------- */
.header-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
body.is-drawer-open .header-drawer {
  opacity: 1;
  visibility: visible;
}
body.is-drawer-open {
  overflow: hidden;
}
.header-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: 24px;
}
.header-drawer__logo {
  display: block;
  line-height: 1;
}
.header-drawer__logo img {
  height: 36px;
  width: auto;
}
.header-drawer__close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  color: var(--ink);
  transition: opacity .25s;
}
.header-drawer__close:active {
  opacity: .6;
}
.header-drawer__body {
  padding: 0 24px 48px;
}
.header-drawer__nav {
  border-top: 1px solid var(--line);
}
.header-drawer__item {
  border-bottom: 1px solid var(--line);
}
.header-drawer__link,
.header-drawer__acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  transition: color .25s;
}
.header-drawer__link:active,
.header-drawer__acc:active {
  color: var(--asagi);
}
.header-drawer__acc-icon {
  flex: none;
  color: var(--asagi);
  transition: transform .3s;
}
.header-drawer__acc.is-open .header-drawer__acc-icon {
  transform: rotate(180deg);
}
.header-drawer__acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.header-drawer__sub-link {
  display: block;
  padding: 12px 4px 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.header-drawer__sub-link:active {
  color: var(--asagi);
}
.header-drawer__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px auto 24px;
  white-space: nowrap;
  transition: opacity .25s;
}
.header-drawer__tel:active {
  opacity: .7;
}
.header-drawer__tel-icon {
  color: var(--asagi);
}
.header-drawer__tel-num {
  font-family: var(--font-en);
  font-size: 25px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1;
  letter-spacing: .01em;
  transform: translateY(1px); /* optical: same baseline nudge as header tel */
}
.header-drawer__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.header-drawer__btn {
  flex: 1;
  max-width: 220px;
  font-size: 16px;
  padding: 12px 10px;
}

/* drawer is SP-only */
@media (min-width: 1025px) {
  .header-drawer {
    display: none;
  }
}

/* ---------- pagetop ---------- */
.header-pagetop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--asagi);
  color: var(--white);
  box-shadow: var(--shadow-btn);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background-color .25s;
}
.header-pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.header-pagetop:hover,
.header-pagetop:focus-visible {
  background: var(--asagi-deep);
}

/* ---------- sticky CTA（スマホのみ） ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 890;
  display: none; /* 768px以下で block */
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -4px 16px rgba(0, 30, 40, .08);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__btn {
  width: 100%;
  justify-content: center;
  font-size: 17px;
  padding: 14px 16px;
}

/* ==========================================================
   responsive
   ========================================================== */

/* narrow desktop safety (keeps everything on one row) */
@media (max-width: 1280px) {
  .header__nav-list { gap: 20px; }
  .header__tel { margin-left: 20px; }
  .header__tel-num { font-size: 21px; }
  .header__btns { margin-left: 16px; gap: 8px; }
  .header__btn { font-size: 16px; padding: 10px 18px; }
}
/* just above the drawer breakpoint: shave gaps so nothing wraps/overflows */
@media (max-width: 1120px) {
  .header__inner { padding-inline: 20px; }
  .header__nav-list { gap: 16px; }
  .header__tel { margin-left: 16px; }
  .header__tel-num { font-size: 19px; }
  .header__btns { margin-left: 12px; }
  .header__btn { padding: 10px 14px; }
}

/* tablet & below: logo + hamburger only */
@media (max-width: 1024px) {
  .header__nav,
  .header__tel,
  .header__btns {
    display: none;
  }
  .header__logo img {
    height: 36px;
  }
  .header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    margin-left: auto;
    margin-right: -10px;
    transition: opacity .25s;
  }
  .header__hamburger:active {
    opacity: .6;
  }
  .header__hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
  }
}

/* SP */
@media (max-width: 768px) {
  .header__inner {
    padding-inline: 20px;
  }
  .header__logo img {
    height: 32px;
  }
  .header-drawer__top {
    padding-inline: 20px;
  }
  .header-drawer__logo img {
    height: 32px;
  }
  .header-drawer__body {
    padding: 0 20px 40px;
  }
  .header-drawer__btn {
    font-size: 15px;
    padding: 11px 8px;
  }
  .header-pagetop {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
  .sticky-cta { display: block; }
  body.has-sticky-cta .header-pagetop { bottom: 86px; } /* 追従CTAの上に退避 */
}

