/*! site-production のメニューと補助の部品。treat.css と同じ色の変数（--bg --ink --sub --soft --line --ac --ac2 --deep --on-ac）を使う。
 * 一覧と見本は assets/navigation/（nav.json、nav.html）。どれを使うかは DESIGN.md の Navigation の章に書く。
 * 開閉の動き（全画面メニュー、引き出し）は motion.js の data-m-menu を使う。
 */

/* ================= PC のヘッダー ================= */
.n-header { display: flex; align-items: center; gap: 28px; padding: 18px var(--edge, 40px); background: var(--bg); color: var(--ink); position: relative; z-index: 50; }
.n-logo { font-weight: 800; font-size: 19px; letter-spacing: .02em; margin-right: auto; white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.n-logo::before { content: ""; width: 28px; height: 28px; border-radius: 8px; background: var(--ac); flex: none;
  -webkit-mask: var(--d-motif, none) center / 80% no-repeat; mask: var(--d-motif, none) center / 80% no-repeat; }
.n-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.n-links a { color: inherit; text-decoration: none; }
.n-links a[aria-current] { color: var(--ac); font-weight: 700; }
.n-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 99px; background: var(--ac); color: var(--on-ac); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.n-cta--sub { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.n-menu-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; letter-spacing: .14em; padding: 10px 18px; border: 1.5px solid currentColor; border-radius: 99px; background: none; color: inherit; }
.n-menu-btn::before { content: ""; width: 18px; height: 10px; border-block: 2px solid currentColor; }
.n-header--line { border-bottom: 1px solid var(--line); }
/* 2段：上の細い帯に電話・受付時間 */
.n-topbar { display: flex; justify-content: flex-end; gap: 22px; padding: 7px var(--edge, 40px); font-size: 12.5px; background: var(--soft); color: var(--sub); }
.n-topbar b { color: var(--ink); font-size: 15px; }
/* 検索窓つき */
.n-search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 99px; padding: 9px 18px; color: var(--sub); font-size: 14px; }
.n-search::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 4px 4px 0 -2px currentColor; }
/* 最初の画面の上に重ねる（透明） */
.n-header--over { position: absolute; inset: 0 0 auto; background: transparent; color: #fff; }
.n-header--over .n-cta { background: #fff; color: var(--ink); }
/* メガメニュー（開いたとき） */
.n-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(20,30,60,.3);
  display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; padding: 28px var(--edge, 40px); }
.n-mega h4 { margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.n-mega a { display: block; padding: 5px 0; color: inherit; text-decoration: none; font-size: 14px; }
.n-mega .n-mega__lead { background: var(--soft); border-radius: 12px; padding: 20px; }
/* PC で本文を中央の柱にし、左右に固定のパネル */
.n-side { display: grid; grid-template-columns: 1fr minmax(0, 480px) 1fr; min-height: 100%; background: var(--soft); }
.n-side__left, .n-side__right { position: sticky; top: 0; align-self: start; padding: 40px 32px; height: 100vh; display: flex; flex-direction: column; gap: 14px; }
.n-side__right ol { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 12px; }
.n-side__right li { counter-increment: n; display: flex; gap: 12px; font-weight: 700; }
.n-side__right li::before { content: counter(n, decimal-leading-zero); color: var(--ac); font-size: 12px; padding-top: 3px; }
.n-side__main { background: var(--bg); box-shadow: 0 0 40px rgba(20,30,60,.12); }

/* ================= スマホのメニュー ================= */
.n-m-full { position: fixed; inset: 0; background: var(--ac); color: var(--on-ac); padding: 80px 28px 28px; display: flex; flex-direction: column; gap: 6px; z-index: 90; }
.n-m-full a { color: inherit; text-decoration: none; font-size: 22px; font-weight: 800; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--on-ac) 25%, transparent); }
.n-m-drawer { position: fixed; top: 0; bottom: 0; right: 0; width: 78%; background: var(--bg); box-shadow: -20px 0 40px -20px rgba(20,30,60,.35); padding: 72px 24px 24px; z-index: 90; display: flex; flex-direction: column; }
.n-m-drawer a { color: inherit; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; display: flex; justify-content: space-between; }
.n-m-drawer a::after { content: "→"; color: var(--ac); }
.n-m-shade { position: fixed; inset: 0; background: rgba(10,14,24,.45); z-index: 80; }
.n-m-bottom { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 60; }
.n-m-bottom a { display: grid; justify-items: center; gap: 4px; padding: 10px 0 8px; font-size: 11px; font-weight: 700; color: var(--sub); text-decoration: none; }
.n-m-bottom a::before { content: ""; width: 22px; height: 22px; border-radius: 6px; background: currentColor; opacity: .3; }
.n-m-bottom a[aria-current] { color: var(--ac); } .n-m-bottom a[aria-current]::before { opacity: 1; }
.n-m-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg); scrollbar-width: none; }
.n-m-tabs a { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--soft); color: inherit; text-decoration: none; font-size: 13px; font-weight: 700; }
.n-m-tabs a[aria-current] { background: var(--ac); color: var(--on-ac); }

/* ================= フッター ================= */
.n-footer { background: var(--deep); color: #fff; padding: 48px var(--edge, 40px) 28px; --sub: rgba(255,255,255,.7); --line: rgba(255,255,255,.18); }
.n-footer a { color: inherit; text-decoration: none; }
.n-footer small { color: var(--sub); }
.n-footer--simple { background: var(--bg); color: var(--ink); --sub: #7a8090; --line: #e1e4ea; padding: 24px var(--edge, 40px); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; border-top: 1px solid var(--line); font-size: 13px; }
.n-footer--simple small { margin-left: auto; }
.n-footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.n-footer__cols h4 { margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.n-footer__cols a { display: block; padding: 4px 0; font-size: 14px; }
.n-footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--ac); color: var(--on-ac); border-radius: 18px; padding: 32px 36px; margin-bottom: 32px; }
.n-footer__cta b { font-size: 24px; }
.n-footer__info { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }

/* ================= 補助の部品 ================= */
.n-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--sub); padding: 12px var(--edge, 40px); }
.n-crumbs a { color: var(--ac); text-decoration: none; }
.n-crumbs > * + *::before { content: "›"; margin-right: 6px; color: var(--sub); }
.n-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); padding: 0 var(--edge, 40px); }
.n-tabs a { padding: 12px 18px; color: var(--sub); text-decoration: none; font-weight: 700; font-size: 14px; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.n-tabs a[aria-current] { color: var(--ac); border-color: var(--ac); }
.n-sticky { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 60; }
.n-sticky a { flex: 1; text-align: center; padding: 13px 0; border-radius: 99px; font-weight: 800; text-decoration: none; background: var(--ac); color: var(--on-ac); font-size: 15px; }
.n-sticky a.n-sticky__tel { flex: .6; background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.n-totop { position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-content: center; z-index: 55; font-weight: 800; text-decoration: none; }
.n-lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; font-size: 12.5px; font-weight: 700; }
.n-lang a { padding: 6px 12px; color: var(--sub); text-decoration: none; } .n-lang a[aria-current] { background: var(--ink); color: var(--bg); }
.n-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; background: var(--ac); transform-origin: 0 50%; transform: scaleX(var(--m-progress, .35)); z-index: 70; }

/* 浮いた角丸のヘッダー（画面の端から少し離して浮かせる） */
.n-header--pill { position: sticky; top: 16px; margin: 16px; border-radius: 99px; padding: 12px 14px 12px 26px; background: color-mix(in srgb, var(--ac2) 55%, var(--bg)); box-shadow: 0 10px 30px -18px rgba(20,30,60,.35); }
/* ロゴを中央、メニューを左、予約ボタンを右 */
.n-header--center { display: grid; grid-template-columns: 1fr auto 1fr; }
.n-header--center .n-logo { margin: 0; justify-self: center; grid-column: 2; grid-row: 1; }
.n-header--center .n-links { grid-column: 1; grid-row: 1; }
.n-header--center .n-cta { grid-column: 3; grid-row: 1; justify-self: end; }
