/* LP共通ヘッダー（ロゴ・アイコン・ハンバーガーメニュー） */

.hm-skip-link,
header.site,
header.site *,
.hm-panel,
.hm-panel * { box-sizing: border-box; }

.hm-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: #fff;
  color: #1c1c1a;
  border: 2px solid #1c1c1a;
  border-radius: 4px;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .15s ease;
}
.hm-skip-link:focus { transform: translateY(0); }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eceae3;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 50;
}
.logo-lockup { display: flex; flex: 0 0 auto; }
.logo-lockup img { display: block; width: auto; height: 36px; }
header.site .icons { display: flex; align-items: center; gap: 6px; color: #9a988f; }
header.site .icons a,
header.site .icons .menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 0;
  margin: 0;
  text-decoration: none;
  cursor: pointer;
}
header.site .icons .menu-btn,
header.site .icons .menu-ic { color: #1c1c1a; }
header.site a:focus-visible,
header.site button:focus-visible,
.hm-panel a:focus-visible,
.hm-panel button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body.hm-open { overflow: hidden; }
.hm-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28, 28, 26, .4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
body.hm-open .hm-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.hm-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 91;
  width: 300px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  padding: 18px 18px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, .12);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .25s ease, visibility 0s linear .25s;
}
body.hm-open .hm-panel {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}
.hm-panel .hm-close { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.hm-panel .hm-close button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 4px;
  color: #57564f;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.hm-section { margin-bottom: 22px; }
.hm-heading {
  margin: 0 0 6px;
  color: #9a988f;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.hm-list,
.hm-sublist { list-style: none; margin: 0; padding: 0; }
.hm-list li { border-bottom: 1px solid #f0eee9; }
.hm-list > li:last-child { border-bottom: 0; }
.hm-list a,
.hm-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 2px;
  background: none;
  border: 0;
  color: #1c1c1a;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.hm-toggle .arrow { color: #9a988f; font-size: 11px; transition: transform .2s ease; }
.hm-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.hm-sublist { margin: 0 0 6px; padding-left: 8px; }
.hm-sublist[hidden] { display: none; }
.hm-sublist li { border-bottom: 0; }
.hm-sublist a { padding: 8px 2px; color: #57564f; font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  .hm-skip-link,
  .hm-overlay,
  .hm-panel,
  .hm-toggle .arrow { transition: none; }
}
