:root { --gold: var(--brand-gold, #c9a961); --ease: cubic-bezier(.22, 1, .36, 1); }
/* Shared header: tokens match the current production TOP home.css. */
.chv-nav {
  --header-navy: #142638; --header-ink: #14202c; --header-line: #dce1e5;
  position: fixed; inset: 0 0 auto; z-index: 9999;
  height: 88px; padding-inline: max(32px, calc((100vw - 1280px) / 2));
  display: flex; align-items: center; gap: 28px;
  background: rgba(255,255,255,.98); border-bottom: 1px solid var(--header-line);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  transition: box-shadow .4s;
}
body.admin-bar .chv-nav { top: 32px; }
.chv-nav.chv-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.chv-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; height: 44px; position: relative; z-index: 1; }
.chv-logo-img { height: 80px; width: auto; object-fit: contain; filter: brightness(0); display: block; margin-left: -12px; margin-right: -12px; }
.chv-logo-text { font-family: Georgia, "Times New Roman", serif; font-size: 33px; letter-spacing: .15em; font-weight: 400; color: var(--header-ink); white-space: nowrap; }
.chv-nav-links { display: grid; grid-template-columns: repeat(6, max-content); gap: clamp(12px,1.6vw,24px); align-items: center; margin-left: auto; }
.chv-nav-item { position: relative; display: flex; justify-content: center; align-items: center; height: 88px; min-width: 0; }
.chv-nav .chv-nav-item > a {
  display: flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box;
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: normal;
  color: var(--header-ink); position: relative; padding: 12px 0; white-space: nowrap; text-decoration: none;
}
.chv-nav-item > a::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 0; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.chv-nav-item:hover > a::after, .chv-nav-item.chv-hovered > a::after { width: 100%; }
.chv-nav .chv-nav-item > a:hover { color: #375e7c; }
.chv-nav .chv-nav-consult { display: flex; align-items: center; justify-content: center; gap: 20px; flex-shrink: 0; min-height: 50px; padding: 12px 22px; box-sizing: border-box; border: 1px solid var(--header-navy); background: var(--header-navy); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.chv-nav .chv-nav-consult:hover { background: #29435a; color: #fff; }
@media (max-width: 1100px) { .chv-nav { gap: 18px; } .chv-logo-text { font-size: 28px; } .chv-nav .chv-nav-consult { gap: 12px; padding-inline: 16px; } }
@media (min-width: 769px) and (max-width: 1100px) { .chv-nav-links { gap: 11px; } .chv-nav .chv-nav-item > a { font-size: 12px; } }
@media (min-width: 769px) and (max-width: 960px) { .chv-nav .chv-nav-consult { display: none; } }
@media (max-width: 782px) { body.admin-bar .chv-nav { top: 46px; } }
@media (max-width: 768px) { .chv-nav { height: 76px; padding-inline: 20px; gap: 12px; } .chv-nav .chv-nav-consult { display: none; } .chv-hamburger { margin-left: auto; } }

/* 矢印 */
.chv-nav-arrow {
  display: inline-block; width: 8px; height: 5px;
  margin-left: 5px; position: relative; top: -1px;
  opacity: .4; transition: transform .3s var(--ease), opacity .3s;
}
.chv-nav-arrow::before, .chv-nav-arrow::after {
  content: ''; position: absolute; width: 5px; height: .5px;
  background: currentColor; top: 50%;
}
.chv-nav-arrow::before { left: 0; transform: rotate(35deg); }
.chv-nav-arrow::after { right: 0; transform: rotate(-35deg); }
.chv-nav-item:hover .chv-nav-arrow,
.chv-nav-item.chv-hovered .chv-nav-arrow { transform: rotate(180deg); opacity: .8; }

/* ドロップダウン */
.chv-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 190px;
  background: rgba(12, 11, 10, .95);
  border: .5px solid rgba(201,169,97,.2);
  border-top: 2px solid var(--gold);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 6px 0 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index: 10000;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.chv-dropdown::before {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.chv-nav-item:hover .chv-dropdown,
.chv-nav-item.chv-hovered .chv-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.chv-dropdown-thread {
  display: block; width: 1px; height: 7px;
  background: linear-gradient(180deg, var(--gold), transparent);
  margin: 0 auto 2px;
}
.chv-dropdown a {
  display: flex !important; align-items: center; justify-content: center;
  padding: 11px 24px;
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: .32em;
  color: rgba(210,190,150,.7);
  transition: color .2s, background .2s, letter-spacing .2s;
  white-space: nowrap; text-transform: uppercase;
  border: none !important; text-decoration: none !important;
  position: relative;
}
.chv-dropdown a::before {
  content: ''; position: absolute; left: 0; top: 20%;
  width: 0; height: 60%;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transition: width .2s var(--ease);
}
.chv-dropdown a:hover { color: var(--gold); background: rgba(201,169,97,.05); letter-spacing: .36em; }
.chv-dropdown a:hover::before { width: 2px; }
.chv-dropdown-divider {
  margin: 3px 18px; height: .5px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.18), transparent);
}
/* スクロール後のドロップダウン */
.chv-nav.chv-scrolled .chv-dropdown {
  background: rgba(255,255,255,.97);
  border: .5px solid rgba(201,169,97,.25);
  border-top: 2px solid var(--gold);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}
.chv-nav.chv-scrolled .chv-dropdown-thread {
  background: linear-gradient(180deg, var(--gold), transparent);
}
.chv-nav.chv-scrolled .chv-dropdown a { color: rgba(70,60,40,.75); }
.chv-nav.chv-scrolled .chv-dropdown a:hover { color: #111; background: rgba(201,169,97,.05); }
.chv-nav.chv-scrolled .chv-dropdown-divider {
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.2), transparent);
}

/* ハンバーガー */
.chv-hamburger {
  display: none;
  flex-direction: column; gap: 6px;
  width: 44px; height: 44px;
  justify-content: center; align-items: center;
  cursor: pointer; background: none; border: none;
  padding: 0; position: relative; z-index: 10001;
}
.chv-hamburger span {
  display: block; width: 22px; height: .5px;
  background: #14202c; transition: all .35s ease;
  transform-origin: center;
}
.chv-nav.chv-scrolled .chv-hamburger span { background: #111; }
.chv-hamburger.chv-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.chv-hamburger.chv-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.chv-hamburger.chv-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.chv-hamburger.chv-open span { background: #fff !important; }

/* SPメニュー */
.chv-sp-menu {
  position: fixed; inset: 0; z-index: 9998;
  background: #080807;
  display: flex !important; flex-direction: column;
  justify-content: center;
  padding: 80px clamp(32px, 8vw, 80px) 60px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.chv-sp-menu.chv-open { opacity: 1; visibility: visible; }
.chv-sp-menu::before {
  content: ''; position: absolute;
  left: clamp(20px, 5vw, 60px); top: 15%; bottom: 15%;
  width: .5px;
  background: linear-gradient(180deg, transparent, rgba(201,169,97,.15) 30%, rgba(201,169,97,.12) 70%, transparent);
}
.chv-sp-menu a {
  display: block !important;
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 4.5vw, 20px); letter-spacing: .28em;
  color: rgba(255,255,255,.55);
  padding: 14px 0;
  border-bottom: .5px solid rgba(255,255,255,.05);
  transition: color .3s, padding-left .3s;
}
.chv-sp-menu a:first-child { border-top: .5px solid rgba(255,255,255,.05); }
.chv-sp-menu a:hover { color: rgba(201,169,97,.9); padding-left: 8px; }
.chv-sp-menu .sp-cat {
  font-size: 7px; letter-spacing: .45em;
  color: rgba(201,169,97,.35); display: block; margin-top: 1px;
}


.chv-nav, .chv-sp-menu { box-sizing: border-box; }
.chv-nav a, .chv-sp-menu a { text-decoration: none; }
.chv-nav a:focus-visible, .chv-sp-menu a:focus-visible, .chv-hamburger:focus-visible { outline: 2px solid #c9a961; outline-offset: 5px; }
.chv-nav-item:focus-within > a::after { width: 100%; }
.chv-nav-item:focus-within .chv-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.chv-nav-item.chv-dismissed .chv-dropdown { opacity: 0; visibility: hidden; pointer-events: none; }
.chv-nav-item:last-child .chv-dropdown { left: auto; right: 0; transform: translateY(-8px); }
.chv-nav-item:last-child:hover .chv-dropdown, .chv-nav-item:last-child.chv-hovered .chv-dropdown, .chv-nav-item:last-child:focus-within .chv-dropdown { transform: translateY(0); }
.chv-sp-menu { overflow-y: auto; }
.chv-sp-menu .chv-sp-secondary { margin-top: 8px; padding-left: 16px; border-left: .5px solid rgba(201,169,97,.2); }
.chv-sp-menu .chv-sp-secondary a { font-size: 12px; padding: 8px 0; letter-spacing: .12em; }
@media (max-width: 768px) { .chv-nav-links { display: none !important; } .chv-hamburger { display: flex !important; } }
@media (max-height: 650px) { .chv-sp-menu { justify-content: flex-start; padding-top: 80px; padding-bottom: 24px; } }
/* Show focus targets immediately while preserving the original opacity fade. */
.chv-sp-menu.chv-open { transition: opacity .4s var(--ease); }
.chv-nav-item:focus-within .chv-dropdown { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.chv-nav-item.chv-dismissed .chv-dropdown { transition: opacity .3s var(--ease), transform .3s var(--ease); }

/* WordPress menu markup and preserved native TOP content. */
.chv-nav-links, .chv-sp-menu { list-style: none; padding-block: 0; margin: 0; }
.chv-nav-links { margin-left: auto; }
.chv-nav-item { margin: 0; padding: 0; }
.chv-sp-menu { padding: 80px clamp(32px,8vw,80px) 60px; }
.chv-sp-menu .chv-nav-item { display: block; height: auto; }
.chv-sp-menu a { white-space: nowrap; font-family: 'Noto Sans JP', sans-serif; }
body.cheval-home { padding-top: 88px; }
@media(max-width:768px) { body.cheval-home { padding-top:76px; } }
/* Scope menu resets to the component; Lightning list defaults and TOP resets differ. */
.chv-nav { font-size: 16px; line-height: 1.5; }
.chv-nav .chv-nav-links { padding: 0; margin: 0 0 0 auto; }
.chv-sp-menu.chv-sp-menu { margin: 0; padding: 80px clamp(32px,8vw,80px) 60px; }
.chv-sp-menu.chv-sp-menu { background: #101318; }
.chv-sp-menu.chv-sp-menu a { color: rgba(255,255,255,.85); font-weight: 500; line-height: 1.6; min-height: 44px; box-sizing: border-box; }
.chv-sp-menu.chv-sp-menu a:hover, .chv-sp-menu.chv-sp-menu a:focus-visible { color: #dce3ed; }


/* スマホ：ハンバーガーメニューのホバー装飾を無効化 */
@media (max-width: 760px) {
  .chv-hamburger,
  .chv-hamburger:hover,
  .chv-hamburger:active,
  .chv-hamburger:focus {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  .chv-hamburger::before,
  .chv-hamburger::after,
  .chv-hamburger:hover::before,
  .chv-hamburger:hover::after {
    content: none !important;
  }
}


/* Mobile menu: no hover underline, subtle feedback only while pressing. */
@media (max-width: 768px) {
  .chv-sp-menu.chv-sp-menu a {
    position: relative;
    border-top: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 2px;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .12s ease, color .12s ease;
  }
  .chv-sp-menu.chv-sp-menu a::after {
    content: none !important;
    display: none !important;
  }
  .chv-sp-menu.chv-sp-menu a:hover,
  .chv-sp-menu.chv-sp-menu a:focus:not(:focus-visible) {
    color: rgba(255,255,255,.85);
    background: transparent;
    padding-left: 12px;
  }
  .chv-sp-menu.chv-sp-menu a:active {
    color: #fff;
    background: rgba(255,255,255,.13);
    padding-left: 12px;
  }
  .chv-sp-menu.chv-sp-menu a:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.10);
    outline: 2px solid #dce3ed;
    outline-offset: -2px;
  }
  .chv-sp-menu.chv-sp-menu .chv-nav-item:focus-within > a::after {
    content: none !important;
  }
}

/* CHEVAL symbol: enlarge the actual mark within the fixed-height header. */
@media (max-width: 768px) {
  .chv-logo-img { height: 68px; margin-left: -10px; margin-right: -10px; }
}
