/* ヘッダー（全30ページ共通） */
/* ===== header (shared / index-look) ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%;
  box-sizing: border-box;
}
.header__utility { max-width: 1200px; margin: 0 auto -5px; padding: 8px 32px 0; display: flex; justify-content: flex-end; align-items: center; gap: 20px; box-sizing: border-box; line-height: 1; }
.header__utility a { font-size: 12px; color: var(--ink-4); text-decoration: none; }
.header__utility a:hover { color: var(--ink-2); }
.header__brand { display: flex; align-items: center; text-decoration: none; }
.header__brand img { height: 28px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__links > li > a { font-size: 14px; color: var(--ink-2); font-weight: 500; transition: color 0.15s; text-decoration: none; white-space: nowrap; }
@media (max-width: 1080px) { .nav { gap: 20px; } .nav__links { gap: 18px; } .header__brand img.brand-full { height: 24px; } .header__brand { margin-right: 16px; } .nav__dd-item > .nav__dd { left: auto; right: -16px; } }
/* 1081〜1300px でもメニューが画面の右へはみ出すので、右を基準に開く。製品メニューは右端に近いので常に右基準 */
@media (max-width: 1300px) { .nav__dd-item > .nav__dd { left: auto; right: -16px; } }
.nav__dd-item > .nav__dd--products { left: auto; right: -16px; }
@media (max-width: 1280px) { .nav { gap: 12px; } .nav__links { gap: 12px; } .nav__links > li > a { font-size: 13px; } .header .btn { padding: 10px 12px; font-size: 13px; } }
@media (max-width: 1100px) { .nav { gap: 8px; } .nav__links { gap: 8px; } .nav__links > li > a { font-size: 12px; } .header .btn { padding: 8px 10px; font-size: 12px; } .header__brand img.brand-full { height: 22px; } }
.nav__links > li > a:hover { color: var(--accent-2); }
.nav__dd-item { position: relative; }
.nav__dd-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav__chev { transition: transform 0.15s; }
.nav__dd-item:hover .nav__chev, .nav__dd-item:focus-within .nav__chev { transform: rotate(180deg); }
.nav__dd { position: absolute; top: calc(100% + 10px); left: -16px; display: grid; grid-template-columns: repeat(2, auto); align-items: start; gap: 22px 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 10px 28px rgba(11, 18, 32, 0.10); margin: 0; padding: 20px 22px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s; z-index: 80; }
.nav__dd::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__dd-item:hover .nav__dd, .nav__dd-item:focus-within .nav__dd { opacity: 1; visibility: visible; transform: none; }
.nav__dd-group { width: 220px; }
.nav__dd-title { margin: 0 0 4px; padding: 0 12px 7px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-2); border-bottom: 1px solid var(--line); }
.nav__dd-group ul { list-style: none; margin: 0; padding: 0; }
.nav__dd li a { display: block; padding: 9px 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); white-space: normal; overflow-wrap: anywhere; text-decoration: none; border-radius: 3px; }
.nav__dd li a:hover { background: var(--bg-soft); color: var(--accent-2); }
.header .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 3px;
  font-size: 14px; font-weight: 600; line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap; letter-spacing: 0.01em;
  text-decoration: none; border: none; cursor: pointer; font-family: inherit;
}
.header .btn--primary { background: var(--sub); color: #fff; }
.header .btn--primary:hover { background: var(--sub-2); }
.header .btn__arrow { transition: transform 0.18s ease; }
.header .btn:hover .btn__arrow { transform: translateX(2px); }
.nav-toggle { display: none; }
.nav-burger { display: none; }
.mobilenav { display: none; }
.header img.brand-short { display: none; }
@media (max-width: 960px) {
  .nav__links { display: none; }
  .header__brand img.brand-full { height: 24px; }
  .header .btn { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 760px) {
  .header img.brand-full { display: none; }
  .header img.brand-short { display: block; height: 19px; width: auto; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; cursor: pointer; margin-left: 4px; flex-shrink: 0; }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink-2); transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle:checked ~ .header__inner .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .header__inner .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .header__inner .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:checked ~ .mobilenav { display: block; }
  .mobilenav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .mobilenav { border-top: 1px solid var(--line); background: #fff; }
  .mobilenav a { display: block; padding: 13px 24px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobilenav a:last-child { border-bottom: none; }
  .mobilenav__cat { margin: 0; padding: 15px 24px 7px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-2); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
}
@media (max-width: 380px) { .header .btn { padding: 7px 10px; font-size: 12px; } .header .btn .btn__arrow { display: none; } .header__brand { margin-right: 8px; } }
@media (max-width: 600px) {
  .header__inner { padding: 0 20px; }
  .header__utility { display: none; }
}
/* 事例のメニュー：分類ごとの説明と代表事例、一覧ページへのリンク */
.nav__dd--case { grid-template-columns: repeat(3, 236px); gap: 20px 18px; }
.nav__dd--case .nav__dd-title a { color: inherit; text-decoration: none; }
.nav__dd--case .nav__dd-title a:hover { text-decoration: underline; }
.nav__dd-desc { margin: 6px 12px 4px; font-size: 12.5px; line-height: 1.6; color: var(--ink-4); }
.nav__dd--case .nav__dd-group { width: auto; }
.nav__dd-all { grid-column: 2 / -1; align-self: end; justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 14px; font-weight: 700; color: #fff; background: var(--accent-3); border-radius: 4px; text-decoration: none; }
.nav__dd-all:hover { background: var(--accent-2); }
.nav__dd-item > .nav__dd--case { left: auto; right: -300px; }
@media (max-width: 1080px) { .nav__dd-item > .nav__dd--case { right: -240px; grid-template-columns: repeat(3, 210px); } }
