.hd {
  --border: #e3eaf0; --maxw: 1200px; --pill: 999px; --fg: #0e2a43; --fg-muted: #52697a;
  --border-strong: #c8d5df; --fg-body: #3f5566; --fg-dim: #7a8b98;
  --font-en: "Inter", system-ui, sans-serif;
  --hd-fg: var(--fg); --bg-soft: #f3f8fb;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border); font-family: var(--font-jp);
}
.hd *, .hd *::before, .hd *::after { box-sizing: border-box; }
.hd a { text-decoration: none; }
.hd_inner { width: min(var(--maxw), 94%); margin-inline: auto; height: 70px; display: flex; align-items: center; gap: 34px; }
.hd_logo { flex: none; }
.hd_logo img { height: 30px; width: auto; display: block; }
.hd_nav { flex: 1; display: flex; align-items: center; gap: 30px; }
.hd_links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.hd_links a { position: relative; padding-block: 6px; font-size: 14px; font-weight: 700; color: var(--hd-fg, var(--fg-muted)); transition: color .15s; }
.hd_links a:hover, .hd_actions .txt:hover { color: var(--dark); }
.hd_actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hd_actions .txt { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.hd_links a[aria-current="true"] { color: var(--dark); }
.hd_links a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; }
.hd_tel { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.12; text-decoration: none; }
.hd_tel__copy { font-size: 10px; font-weight: 700; color: var(--accent); }
.hd_tel__num { font-family: var(--font-en); font-size: 16px; font-weight: 800; color: var(--fg); letter-spacing: .01em; }
.hd .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border-radius: var(--pill); font-family: var(--font-jp); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.hd .btn--cv { color: #fff; background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 62%); box-shadow: var(--shadow-cta); }
.hd .btn--cv:hover { transform: translateY(-2px); box-shadow: 0 16px 32px var(--accent-glow); }
.hd .btn--cv::after { content: "→"; font-weight: 700; line-height: 1; transition: transform .18s var(--ease); }
.hd .btn--cv:hover::after { transform: translateX(3px); }
@media (max-width: 1320px) { .hd_inner:has(.hd_actions--slim) { gap: 18px; } .hd_inner:has(.hd_actions--slim) .hd_nav { gap: 16px; } .hd_inner:has(.hd_actions--slim) .hd_links { gap: 14px; } .hd_inner:has(.hd_actions--slim) .hd_links a { font-size: 13px; } }
.hd_burger { display: none; width: 30px; height: 22px; position: relative; background: none; border: 0; cursor: pointer; }
.hd_burger span { position: absolute; left: 0; width: 100%; height: 2.5px; background: var(--fg); border-radius: 2px; transition: .25s; }
.hd_burger span:nth-child(1) { top: 1px; }
.hd_burger span:nth-child(2) { top: 10px; }
.hd_burger span:nth-child(3) { top: 19px; }
body.nav-open .hd_burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.nav-open .hd_burger span:nth-child(2) { opacity: 0; }
body.nav-open .hd_burger span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
@media (max-width: 640px) {
  .hd_nav { display: none; }
  .hd_burger { display: block; margin-left: auto; }
  .hd_nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 22px; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 26px 28px 32px;
    max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .hd_nav.open .hd_links { flex-direction: column; gap: 18px; }
  .hd_nav.open .hd_actions { flex-direction: column; align-items: stretch; margin-left: 0; gap: 10px; }
  .hd_nav.open .hd_tel { align-items: center; margin-bottom: 4px; }
  .hd_nav.open .btn { width: 100%; }
  .hd_inner > .hd_actions { gap: 10px; }
  .hd_inner > .hd_actions .txt,
  .hd_inner > .hd_actions .hd_tel { display: none; }
  .hd_inner > .hd_actions .btn { padding: 9px 14px; font-size: 12.5px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .hd_links { display: none; }
  .hd_actions { margin-left: auto; }
  .hd_burger { display: block; margin-left: auto; }
  .hd_nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 22px; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 26px 28px 32px;
    max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .hd_nav.open .hd_links { display: flex; flex-direction: column; gap: 18px; }
  .hd_nav.open .hd_actions { flex-direction: column; align-items: stretch; margin-left: 0; }
}
.hd--wide .hd_inner { width: 100%; max-width: none; padding-inline: clamp(20px, 3vw, 48px); box-sizing: border-box; }
.hd--wide { border-bottom: 0; }
.hd_nav { flex-wrap: nowrap; min-width: 0; }
.hd_links { flex-wrap: nowrap; justify-content: flex-start; }
.hd_links li { flex: 0 0 auto; list-style: none; }
.hd_links a { white-space: nowrap; }
.hd_tel { flex: 0 0 auto; }
.hd_tel__num, .hd_tel__copy { white-space: nowrap; }
.hd_actions { flex: 0 0 auto; }
.hd_actions .txt { white-space: nowrap; }
.hd .btn { white-space: nowrap; }
@media (min-width: 641px) {
  .hd:has(.hd_mega) .hd_links > li { display: flex; align-items: center; }
  .hd:has(.hd_mega) .hd_links > li > a { display: inline-flex; align-items: center; }
  .hd:has(.hd_mega) .hd_nav.open .hd_links > li { display: block; }
}
.hd:has(.hd_mega) .hd_nav { align-self: stretch; }
.hd:has(.hd_mega) .hd_links { height: 100%; align-items: stretch; }
.hd:has(.hd_mega) .hd_links > li.hd_mega { position: relative; }
.hd_mega_i { display: inline-block; vertical-align: middle; position: relative; flex: none; width: 17px; height: 17px; margin-left: 7px; border: 1px solid var(--border-strong); border-radius: 50%; }
.hd_mega_i::before, .hd_mega_i::after { content: ""; position: absolute; top: 7px; left: 4px; width: 7px; height: 1px; background: currentColor; transition: transform .3s cubic-bezier(.215, .61, .355, 1); }
.hd_mega_i::after { transform: rotate(90deg); }
.hd_links li.hd_mega:hover .hd_mega_i::after,
.hd_links li.hd_mega:focus-within .hd_mega_i::after { transform: rotate(0); }
.hd_mega_panel { position: absolute; top: calc(100% - 4px); left: 0; z-index: 110; width: max-content; max-width: min(1080px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 18px 40px rgba(14, 42, 67, .14); opacity: 0; visibility: hidden; pointer-events: none; transition: visibility .2s, opacity .2s; }
.hd_mega_panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.hd_links li.hd_mega:hover > .hd_mega_panel,
.hd_links li.hd_mega:focus-within > .hd_mega_panel { opacity: 1; visibility: visible; pointer-events: auto; }
.hd_mega_in { padding: 34px 38px 38px; }
.hd_mega_cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 34px; }
.hd_mega_head { margin: 0; font-family: var(--font-jp); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--fg); }
.hd_mega_sub { display: block; margin-top: 6px; font-family: var(--font-en-serif, var(--font-en)); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.hd_mega_list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hd_mega_list a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--fg-body); white-space: nowrap; }
.hd_mega_list a:hover { color: var(--accent); }
.hd_mega_ic { position: relative; flex: none; width: 17px; height: 17px; border: 1px solid var(--border-strong); border-radius: 50%; transition: border-color .15s, background-color .15s, color .15s; }
.hd_mega_ic::before { content: ""; position: absolute; left: 5px; top: 5px; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.hd_mega_list a:hover .hd_mega_ic { border-color: var(--accent); background: var(--accent); color: #fff; }
@media (max-width: 1100px) {
  .hd_mega_panel { left: 0; transform: none; width: 100%; max-width: none; }
  .hd_mega_cols { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 22px; }
  .hd_mega_in { padding: 24px 22px 28px; }
}
@media (max-width: 1100px) {
  .hd_nav.open .hd_mega_panel { position: static; display: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; border: 0; width: auto; max-width: none; margin: 0; }
  .hd_nav.open li.hd_mega.on > .hd_mega_panel { display: block; }
  .hd_nav.open .hd_mega_in { padding: 12px 0 2px 14px; }
  .hd_nav.open .hd_mega_col:first-child .hd_mega_head { display: none; }
  .hd_nav.open .hd_mega_cols { gap: 18px; }
  .hd_nav.open .hd_mega_list { margin-top: 0; gap: 14px; }
  .hd_nav.open .hd_mega_list a { white-space: normal; }
  .hd_nav.open li.hd_mega.on .hd_mega_i::after,
  .hd_nav.open li.hd_mega.on:hover .hd_mega_i::after,
  .hd_nav.open li.hd_mega.on:focus-within .hd_mega_i::after { transform: rotate(0); }
  .hd_nav.open li.hd_mega:not(.on):hover .hd_mega_i::after,
  .hd_nav.open li.hd_mega:not(.on):focus-within .hd_mega_i::after { transform: rotate(90deg); }
}
.hd .btn--cv { background: var(--btn-bg, var(--accent, var(--dark))); border-color: var(--btn-bg, var(--accent, var(--dark))); color: #fff; box-shadow: none; border-radius: 4px; font-weight: 500; }
.hd .btn--cv:hover { background: #fff; color: var(--btn-bg, var(--accent, var(--dark))); transform: none; box-shadow: none; }
.hd .btn--cv::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: 2px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.hd .btn--cv:hover::after { transform: translateX(3px) rotate(45deg); }
