/* ヘッダー：画面の上に固定。左にロゴ、PC は右に横並びのメニューとメニューの線。
   スクロールすると横並びのメニューが消え、メニューの線が黄色い丸に入る（参考 .l-header） */
.hd {
  position: fixed;
  top: 32px;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 90px;
  pointer-events: none;
  transition: background-color 0.3s ease, top 0.3s ease;
}
.hd.is-scroll { top: 0; }
.hd > * { pointer-events: auto; }

.hd__logo {
  position: absolute;
  top: 26px;
  left: 25px;
}
.logo {
  display: flex;
  align-items: center;
  column-gap: 8px;
}
.logo__mark { flex: none; width: 34px; height: 28px; }
.logo__sun { fill: var(--yellow); }
.logo__cloud { fill: var(--bg); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.logo__txt { display: flex; flex-direction: column; }
.logo__ja {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.logo__en {
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.hd__front { display: none; }

/* メニューの線（参考 .l-nav-btn：2本の線。開くと交差する） */
.hd__btn {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 50px;
  height: 50px;
  z-index: 3;
}
.hd__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.hd__btn-line {
  position: absolute;
  left: 13px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s ease;
}
.hd__btn-line:nth-child(1) { top: 20px; }
.hd__btn-line:nth-child(2) { top: 28px; }
.hd__btn[aria-expanded="true"] .hd__btn-line { left: 6px; width: 36px; }
.hd__btn[aria-expanded="true"] .hd__btn-line:nth-child(1) { top: 24px; transform: rotate(-25deg); }
.hd__btn[aria-expanded="true"] .hd__btn-line:nth-child(2) { top: 24px; transform: rotate(25deg); }

/* スマホはスクロール後にロゴの下へ地の色を敷く（本文と重なって読みにくくならないように） */
@media (max-width: 1023px) {
  .hd.is-scroll { background: rgba(250, 248, 241, 0.94); height: 74px; }
  .hd.is-scroll .hd__btn { top: 12px; }
  .hd.is-scroll .hd__logo { top: 20px; }
}

@media (min-width: 1024px) {
  .hd { height: 150px; }
  .hd__logo { top: 50px; left: 60px; }
  .logo { column-gap: 12px; }
  .logo__mark { width: 46px; height: 38px; }
  .logo__ja { font-size: 21px; }
  .logo__en { font-size: 10px; }

  .hd__btn { top: 40px; right: 60px; width: 70px; height: 70px; }
  .hd__btn-line { left: 21px; width: 28px; }
  .hd__btn-line:nth-child(1) { top: 29px; }
  .hd__btn-line:nth-child(2) { top: 39px; }
  .hd__btn[aria-expanded="true"] .hd__btn-line { left: 12px; width: 46px; }
  .hd__btn[aria-expanded="true"] .hd__btn-line:nth-child(1),
  .hd__btn[aria-expanded="true"] .hd__btn-line:nth-child(2) { top: 35px; }
  .hd.is-scroll .hd__btn::before { background: var(--yellow); }
  .hd.is-scroll .hd__btn:hover::before { transform: scale(1.2); }
}
@media (min-width: 1200px) {
  .hd__front {
    display: block;
    position: absolute;
    top: 0;
    right: 159px;
    padding-top: 61px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .hd__front-list { display: flex; }
  .hd__front-list li + li { margin-left: 30px; }
  .hd__front-list a {
    position: relative;
    display: block;
    padding-bottom: 2px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .hd__front-list a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--ink);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .hd__front-list a:hover::before { opacity: 1; }
  .hd.is-scroll .hd__front { opacity: 0; visibility: hidden; }
}
@media (min-width: 1360px) {
  .hd__front { right: 179px; }
  .hd__front-list li + li { margin-left: 49px; }
}

/* 開いたメニュー：右から白い面が出る */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1900;
  width: 100%;
  height: 100dvh;
  padding: 100px 25px 120px;
  overflow-y: auto;
  background: var(--white);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.drawer.is-open {
  visibility: visible;
  transform: none;
  transition: transform 0.4s var(--ease);
}
.drawer__list { border-top: 1px solid var(--line); }
.drawer__list li { border-bottom: 1px solid var(--line); }
.drawer__list a {
  position: relative;
  display: block;
  padding: 14px 30px 14px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.drawer__list a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.drawer__cv { margin-top: 30px; text-align: center; }
.drawer__tel a {
  display: inline-flex;
  align-items: center;
  column-gap: 6px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.drawer__tel svg { width: 22px; height: 22px; }
.drawer__time { margin-top: 10px; font-size: 12px; line-height: 1.8; }
.drawer__time span { display: block; }
.drawer__web { max-width: 300px; margin: 20px auto 0; }
.drawer__web a {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  height: 56px;
  border-radius: 50px;
  background: var(--sky-deep);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.drawer__web svg { width: 22px; height: 22px; }
.drawer-bg {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(59, 70, 86, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.drawer-bg.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
@media (min-width: 768px) {
  .drawer { width: 480px; padding: 150px 60px 80px; }
}
@media (min-width: 1024px) {
  .drawer { padding-top: 160px; }
  .drawer__list a:hover { color: var(--sky-deep); }
}
