/* =========================================================
   New Home (PDF preview) — /newhome/
   ========================================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* sticky header 分のオフセット */
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:root {
  /* Figma tokens (ホーム1) */
  --nh-blue: #39A7DC;
  --nh-blue-deep: #15567B;
  --nh-blue-soft: #39A7DC;
  --nh-sky: #e3f4f7;
  --nh-navy: #15567B;
  --nh-text: #333333;
  --nh-muted: #555555;
  --nh-line: #00C300;
  --nh-danger: #DA4B4D;
  --nh-list-bg: #FFFFFF;
  --nh-list-border: #333333;
  --nh-footer-btn: #39A7DC;
  --nh-radius: 20px;
  --nh-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
  --nh-max: 1280px;
  --nh-font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --nh-display: "Shippori Antique", "Noto Serif JP", serif;
  /* Spacing scale (multiples of 8) — prefer these: 8 / 16 / 24 / 32 / 40 / 48 / 56 / 72 / 80 */
  --nh-space-1: 8px;
  --nh-space-2: 16px;
  --nh-space-3: 24px;
  --nh-space-4: 32px;
}

.page-newhome .nh-site {
  max-width: none;
  width: 100%;
  margin: 0;
  /* overflow-x:hidden は sticky ヘッダーを壊すため nh-site には付けない */
  overflow-x: visible;
  background: #fff;
}

/* 旧テーマの content-wrapper / main（max-width: 980px）が残っても newhome では無効化 */
.page-newhome main,
.page-newhome .nh-main,
.page-newhome .content-wrapper {
  max-width: none !important;
  width: 100%;
  margin: 0;
  overflow-x: hidden; /* 横はみ出し防止は main 側で（ヘッダー sticky を維持） */
}

.page-newhome {
  margin: 0;
  font-family: var(--nh-font);
  font-size: 16px;
  color: var(--nh-text);
  background: #e8eef2;
  line-height: 1.7;
}

.page-newhome a:link,
.page-newhome a:visited {
  text-decoration: none;
}

.page-newhome img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Buttons (Figma) ---------- */
.nh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 17px;
  padding: 8px 24px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.nh-btn:hover,
.nh-btn:focus {
  transform: translateY(-1px);
  opacity: 0.92;
  text-decoration: none;
}
.nh-btn--sm {
  font-size: 16px;
  padding: 8px 24px;
  border-radius: 20px;
}
/* 省スペース版 */
.nh-btn--xs {
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 16px;
  border-radius: 16px;
  min-width: 0;
  height: 32px;
  gap: 6px;
}
.nh-btn--xs.nh-btn--sky,
.nh-btn--xs.nh-btn--outline,
.nh-btn--xs.nh-btn--ghost {
  min-width: 0;
  height: 32px;
  padding: 6px 16px;
}
.nh-btn--xs .nh-btn__icon img {
  width: 18px;
  height: 18px;
}
/* 会員専用：黒枠アウトライン */
.nh-btn--ghost {
  background: transparent;
  border-color: #333333;
  color: #333333;
  padding: 8px 24px;
  box-sizing: border-box;
}
.nh-btn--ghost:hover,
.nh-btn--ghost:focus,
.nh-btn--ghost:hover:visited,
.nh-btn--ghost:focus:visited {
  background: #f5f5f5;
  color: #333333;
  opacity: 1;
  text-decoration: none;
}
/* 入会・お問い合わせ：#39A7DC 塗り */
.nh-btn--sky,
.nh-btn--outline {
  background: var(--nh-blue);
  border-color: var(--nh-blue);
  color: #fff;
  min-width: 156px;
  height: 40px;
  box-sizing: border-box;
}
.nh-btn--sky:hover,
.nh-btn--sky:focus,
.nh-btn--outline:hover,
.nh-btn--outline:focus {
  background: #2f96c8;
  border-color: #2f96c8;
  color: #fff;
  opacity: 1;
}
/* 一覧CTA：白＋#333枠 */
.nh-btn--list,
.nh-btn--primary {
  background: #fff;
  color: #333;
  border: 1px solid #333;
  min-width: 220px;
  height: 40px;
  padding: 8px 24px;
  font-size: 16px;
  font-weight: 400;
  box-shadow: none;
  box-sizing: border-box;
}
.nh-btn--list:hover,
.nh-btn--list:focus,
.nh-btn--primary:hover,
.nh-btn--primary:focus {
  background: #f7f7f7;
  border-color: #333;
  color: #333;
  opacity: 1;
}
.nh-btn--line {
  background: var(--nh-line);
  color: #fff;
  border-color: var(--nh-line);
  width: fit-content;
  min-width: 0;
  height: 40px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 200px;
  box-sizing: border-box;
  align-self: flex-start;
}
/* フッター：塗りボタン */
.nh-btn--light,
.nh-btn--footer {
  background: var(--nh-footer-btn);
  border-color: var(--nh-footer-btn);
  color: #fff;
  font-size: 16px;
  height: 40px;
  padding: 8px 24px;
  box-sizing: border-box;
}
.nh-btn--light:hover,
.nh-btn--light:focus,
.nh-btn--footer:hover,
.nh-btn--footer:focus {
  background: #2f96c8;
  border-color: #2f96c8;
  color: #fff;
  opacity: 1;
}
/* フッター会員専用：白枠 */
.nh-btn--footer-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-size: 16px;
  height: 40px;
  padding: 8px 24px;
  box-sizing: border-box;
}
.nh-btn--footer-outline:hover,
.nh-btn--footer-outline:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  opacity: 1;
}
.nh-btn--line:hover,
.nh-btn--line:focus {
  color: #fff;
  opacity: 1;
}
.nh-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.nh-btn__icon img {
  display: block;
  width: 24px;
  height: 24px;
  max-width: none;
}
.nh-btn--line .nh-btn__icon img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
/* フッター会員専用：loginアイコンを白に */
.nh-btn--footer-outline .nh-btn__icon img {
  filter: brightness(0) invert(1);
}

/* Arrow icon (button-arrow-n-r.svg is right-facing; circle included) */
.nh-ico-arrow {
  display: block;
  width: 26px;
  height: 26px;
  max-width: none;
}
.nh-ico-arrow--left {
  transform: rotate(180deg);
}
.nh-ico-arrow--up {
  transform: rotate(-90deg);
}
.nh-ico-arrow--down {
  transform: rotate(90deg);
}

/* ---------- Header (Figma glass) ---------- */
.nh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: visible;
}
.nh-header__top {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 16px 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}
.nh-header__top > .nh-btn,
.nh-header__top > .nh-member-menu {
  justify-self: start;
}

/* 会員専用ホバードロップダウン（本番メニュー相当・小さめ） */
.nh-member-menu {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 130;
}
.nh-member-menu__list {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  /* 上パディングでボタンとの隙間を埋め、ホバー途切れ／クリック不可を防ぐ */
  padding: 8px 0 6px;
  list-style: none;
  min-width: max(100%, 12em);
  width: max-content;
  max-width: min(90vw, 280px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-sizing: border-box;
  z-index: 131;
}
.nh-member-menu__list::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border: 1px solid #333333;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: -1;
  pointer-events: none;
}
.nh-member-menu:hover .nh-member-menu__list,
.nh-member-menu:focus-within .nh-member-menu__list,
.nh-member-menu.is-open .nh-member-menu__list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nh-member-menu__list li {
  position: relative;
  z-index: 1;
}
.nh-member-menu__list a {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nh-member-menu__list a:hover,
.nh-member-menu__list a:focus {
  background: transparent;
  color: var(--nh-blue);
  text-decoration: none;
}
.nh-member-menu__list a:visited {
  color: #333333;
}
.nh-member-menu__list a:hover:visited,
.nh-member-menu__list a:focus:visited {
  color: var(--nh-blue);
}

.nh-header__brand {
  text-align: center;
}
.nh-header__brand img {
  width: min(260px, 52vw);
  height: auto;
}
.nh-header__actions {
  justify-self: end;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nh-nav {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 101;
}
.nh-nav__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 16px;
  max-width: var(--nh-max);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.nh-nav__item {
  position: static;
  list-style: none;
}
/* スマホメニュー用CTA（PCでは非表示・ヘッダー右上の同ボタンを使用） */
.nh-nav__item--cta {
  display: none;
}
.nh-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  box-sizing: border-box;
}
.nh-nav__cta .nh-btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  font-size: 16px;
}
/* スマホ用アコーディオン見出し（PCでは非表示） */
.nh-nav__mrow {
  display: none;
}
.nh-mega__mobile-top {
  display: none;
}
.nh-nav__link {
  display: block;
  padding: 16px 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  color: #333333;
  position: relative;
}
.nh-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--nh-blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nh-nav__link:hover::after,
.nh-nav__item.is-open > .nh-nav__link::after,
.nh-nav__item:focus-within > .nh-nav__link::after {
  transform: scaleX(1);
}

/* ---------- Mega menu (ビッグヘッダー) ---------- */
.nh-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 120;
  overflow: visible;
}
.nh-nav__item.is-open > .nh-mega,
.nh-nav__item:focus-within > .nh-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
@media (hover: hover) and (min-width: 920px) {
  .nh-nav__item.has-mega:hover > .nh-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nh-nav__item.has-mega:hover > .nh-nav__link::after {
    transform: scaleX(1);
  }
}
/* PC: メガ背景はウィンドウ全幅、中身（panel）は従来幅・レイアウトを維持 */
@media (min-width: 920px) {
  .nh-mega {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 40px 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  }
}
.nh-mega__panel {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 345px;
  padding: 48px 80px 56px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 305px 1fr;
  gap: 48px;
  align-items: stretch;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.nh-mega__feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #333;
  text-decoration: none;
}
.nh-mega__feature:hover {
  opacity: 0.92;
}
.nh-mega__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 305 / 178;
  background: #d9d9d9;
  overflow: hidden;
}
.nh-mega__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nh-mega__feature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nh-mega__feature-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0.1em;
  color: #333333;
}
.nh-mega__feature-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}
.nh-mega__links {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 24px 0;
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
  align-self: center;
  width: 100%;
  min-height: 178px;
  box-sizing: border-box;
  overflow: visible;
}
.nh-mega__col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 108px;
}
.nh-mega__col a {
  display: block;
  padding: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #333333;
  position: static;
}
.nh-mega__col a::after {
  display: none !important;
}
.nh-mega__col a:hover {
  color: var(--nh-blue);
}
.nh-mega__has-sub {
  position: relative;
  width: auto;
  max-width: 100%;
}
.nh-mega__sub {
  list-style: none;
  position: absolute;
  left: calc(100% + 4px);
  top: -10px;
  z-index: 140;
  margin: 0;
  padding: 10px 0;
  min-width: 12.5em;
  width: max-content;
  max-width: min(70vw, 260px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid #333333;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
/* 親リンクとの隙間を埋めてホバー途切れを防ぐ */
.nh-mega__sub::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 10px;
}
.nh-mega__has-sub:hover > .nh-mega__sub,
.nh-mega__has-sub:focus-within > .nh-mega__sub,
.nh-mega__has-sub.is-open > .nh-mega__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.nh-mega__sub a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
}
.nh-mega__sub a:hover,
.nh-mega__sub a:focus {
  color: var(--nh-blue);
  background: transparent;
  text-decoration: none;
}
.nh-mega__sub a:visited {
  color: #333333;
}
.nh-mega__sub a:hover:visited,
.nh-mega__sub a:focus:visited {
  color: var(--nh-blue);
}

.nh-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: relative;
  justify-self: end;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nh-nav-toggle:hover {
  background: rgba(21, 86, 123, 0.08);
}
.nh-nav-toggle:active {
  transform: scale(0.96);
}
.nh-nav-toggle:focus-visible {
  outline: 2px solid var(--nh-blue);
  outline-offset: 2px;
}
.nh-nav-toggle > span:nth-child(-n + 3) {
  position: absolute;
  left: 50%;
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0;
  border-radius: 2px;
  background: #000;
  transform: translateX(-50%);
  transform-origin: center;
  transition:
    top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nh-nav-toggle > span:nth-child(1) { top: 13px; }
.nh-nav-toggle > span:nth-child(2) { top: 19px; }
.nh-nav-toggle > span:nth-child(3) { top: 25px; }
.nh-nav-toggle[aria-expanded="true"] {
  background: rgba(21, 86, 123, 0.1);
}
.nh-nav-toggle[aria-expanded="true"] > span:nth-child(1) {
  top: 19px;
  width: 18px;
  transform: translateX(-50%) rotate(45deg);
}
.nh-nav-toggle[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
  width: 0;
  transform: translateX(-50%) scaleX(0);
}
.nh-nav-toggle[aria-expanded="true"] > span:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) {
  .nh-nav-toggle,
  .nh-nav-toggle > span:nth-child(-n + 3) {
    transition: none;
  }
}

/* ---------- Hero ---------- */
.nh-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
  overflow: hidden;
  background: #b9dff3;
  /* 背景素材 (2880x1620) に合わせて大画面でも縦が伸びる */
  aspect-ratio: 2880 / 1620;
  min-height: 658px;
}
.nh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.nh-hero__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.nh-hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nh-hero__layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.nh-hero__layer--sky {
  z-index: 1;
}
.nh-hero__layer--lottie {
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.nh-hero__lottie {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  transform: translate(-50%, -50%);
}
.nh-hero__layer--movie {
  z-index: 3;
  left: 0;
  right: auto;
  width: calc(100% - 270px);
  height: 100%;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}
.nh-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
}
.nh-hero__layer--buildings {
  z-index: 4;
}
@media (prefers-reduced-motion: reduce) {
  .nh-hero__layer--lottie {
    display: none;
  }
  .nh-hero__video {
    display: none;
  }
}
.nh-hero__copy {
  position: relative;
  z-index: 5;
  max-width: 420px;
  padding: 48px 40px 24px 80px;
}
.nh-hero__title {
  margin: 0 0 16px;
  font-family: var(--nh-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.1em;
  color: #333333;
  text-shadow: none;
}
.nh-hero__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.875;
  letter-spacing: 0.1em;
  color: #333333;
  font-weight: 500;
}
/* 大画面: 1440px超で見出し・リードを画面幅に応じて拡大 */
@media (min-width: 1440px) {
  .nh-hero__copy {
    max-width: clamp(420px, 30vw, 640px);
  }
  .nh-hero__title {
    font-size: clamp(48px, calc(48px + (100vw - 1440px) * 0.028), 80px);
    line-height: 1.4;
  }
  .nh-hero__lead {
    font-size: clamp(16px, calc(16px + (100vw - 1440px) * 0.008), 24px);
    line-height: 1.85;
  }
}
.nh-hero__mascots {
  position: absolute;
  right: calc(24px + 96px + 24px);
  bottom: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  width: auto;
  max-width: min(440px, 54%);
  min-height: 0;
  height: auto;
  padding-top: 0;
  padding-bottom: 24px;
  box-sizing: border-box;
  z-index: 6;
  pointer-events: none;
}
.page-newhome .nh-hero__mascot {
  position: relative;
  bottom: 0;
  left: auto;
  display: block;
  width: auto;
  max-width: none;
  height: 176px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  align-self: end;
  justify-self: center;
}
.nh-hero__mascot-item {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}
.nh-hero__mascot-item--m {
  z-index: 1;
}
.nh-hero__mascot-item--f {
  z-index: 2;
}
.page-newhome .nh-hero__mascot--m {
  height: 176px;
}
.page-newhome .nh-hero__mascot--f {
  height: 168px;
}
.nh-hero__mascot-name {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.nh-bubble {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  max-width: 180px;
  min-height: 72px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-align: center;
  z-index: 4;
  pointer-events: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
}
.nh-bubble__line {
  display: none;
}
.nh-bubble__line.is-active {
  display: block;
  animation: nh-bubble-fade 0.45s ease;
}
@keyframes nh-bubble-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nh-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
}
.nh-bubble--blue {
  background: #3581C4;
}
.nh-bubble--blue::after {
  border-top-color: #3581C4;
}
.nh-bubble--purple {
  background: #AE8EC0;
}
.nh-bubble--purple::after {
  left: 50%;
  right: auto;
  border-top-color: #AE8EC0;
}
.nh-scroll-btn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 7;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  box-shadow: none;
  padding: 0;
  animation: nh-bounce 1.8s ease-in-out infinite;
  pointer-events: auto;
}
.nh-scroll-btn img {
  display: block;
  width: 96px;
  height: 96px;
  max-width: none;
}
@keyframes nh-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Side banner vertical slider (Figma MVスライダー) */
.nh-side-slider {
  position: relative;
  z-index: 2;
  display: block;
  width: 270px;
  min-height: 0;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nh-side-slider__viewport {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
}
.nh-side-slider__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-padding-block: 0;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.nh-side-slider__track img,
.nh-side-slider__track a {
  -webkit-user-drag: none;
  user-drag: none;
}
.nh-side-slider__track img {
  pointer-events: none;
}
.nh-side-slider__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.nh-side-slider__track.is-dragging a,
.nh-side-slider__track.is-swipe-lock a {
  pointer-events: none;
}
.nh-side-slider__track::-webkit-scrollbar {
  display: none;
}
.nh-side-slider__btn {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: 32px;
  height: 32px;
  margin: 0;
  border: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  box-sizing: border-box;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.nh-side-slider__btn--prev {
  top: 8px;
}
.nh-side-slider__btn--next {
  bottom: 8px;
}
.nh-side-slider__btn:hover {
  background: rgba(255, 255, 255, 0.9);
  opacity: 1;
  color: inherit;
}
.nh-side-slider__btn.is-disabled,
.nh-side-slider__btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.nh-side-slider__btn.is-disabled:hover,
.nh-side-slider__btn:disabled:hover {
  opacity: 0.35;
}
.nh-side-banner {
  position: relative;
  display: block;
  border-radius: 0;
  overflow: hidden;
  flex: 0 0 146px;
  width: 100%;
  height: 146px;
  min-height: 146px;
  scroll-snap-align: start;
  box-shadow: none;
  background: #d9d9d9;
  border-bottom: 1px solid #f9f9f9;
  box-sizing: border-box;
}
.nh-side-banner img {
  width: 100%;
  height: 146px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.nh-side-banner__crop {
  object-position: left center;
  transform: scale(1.4);
  transform-origin: left center;
}
.nh-side-banner span {
  position: absolute;
  left: 0;
  bottom: 0;
  right: auto;
  max-width: 90%;
  width: auto;
  padding: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 8px 0 0;
  color: #333333;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}
.nh-side-banner:hover img {
  transform: scale(1.05);
}
.nh-side-banner--dummy {
  cursor: default;
}
.nh-side-banner--dummy:hover img {
  transform: none;
}

/* ---------- News bar (Figma Group 16) ---------- */
.nh-newsbar {
  background: transparent;
  color: #fff;
  margin-top: 0;
  /* 左は中央寄せ相当の余白、右は0で背景を端まで伸ばす */
  padding: 0 0 0 max(40px, calc((100% - 1360px) / 2));
}
.nh-newsbar__inner {
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--nh-blue);
  border-radius: 0 0 0 20px;
  min-height: 72px;
  box-sizing: border-box;
}
.nh-newsbar__label {
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0;
  white-space: nowrap;
}
.nh-newsbar__item {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: #333333;
  background: #fff;
  border-radius: 20px;
  padding: 8px 24px;
  height: 40px;
  box-sizing: border-box;
}
.nh-newsbar__item time {
  opacity: 1;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  white-space: nowrap;
  color: #333;
}
.nh-newsbar__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  text-decoration: underline;
  color: #333;
}

/* Text links — based on .nh-newsbar__title */
.page-newhome .nh-text-link,
.page-newhome .nh-sponsor-card a,
.page-newhome .nh-bcp__note a,
.page-newhome .nh-stamp-slider__caption {
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  text-decoration: underline;
  color: #333;
}
.page-newhome .nh-text-link:hover,
.page-newhome .nh-sponsor-card a:hover,
.page-newhome .nh-bcp__note a:hover,
.page-newhome .nh-stamp-slider__caption:hover {
  color: #333;
  text-decoration: underline;
  opacity: 0.72;
}
.nh-newsbar__more {
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  white-space: nowrap;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 8px 24px;
  height: 40px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.nh-newsbar__more:hover,
.nh-newsbar__more:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 1;
}
.nh-newsbar__caret {
  display: block;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.nh-section {
  padding: 72px 16px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.nh-section__inner {
  max-width: var(--nh-max);
  margin: 0 auto;
}
.nh-section__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 32px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 46px;
}
.nh-section__title--center {
  text-align: center;
  margin-bottom: 24px;
}
.nh-section__lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0.1em;
  font-weight: 500;
  max-width: 36em;
}
.nh-section__head--light,
.nh-section__head--light .nh-section__title,
.nh-section__head--light .nh-section__lead {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.nh-section__head--light .nh-section__title {
  font-family: var(--nh-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 58px;
}
.nh-section__head--right {
  text-align: right;
  margin-left: auto;
}
.nh-section__head--right .nh-section__lead {
  margin-left: auto;
}
.nh-section__cta {
  text-align: center;
  margin-top: 32px;
}

/* Cards */
.nh-cards {
  display: grid;
  gap: 16px;
}
.nh-cards--slide {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 282px;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 24px 0 16px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}
.nh-cards--slide img,
.nh-cards--slide a {
  -webkit-user-drag: none;
  user-drag: none;
}
.nh-cards--slide img {
  pointer-events: none;
}
.nh-cards--slide.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.nh-cards--slide.is-dragging a,
.nh-cards--slide.is-swipe-lock a {
  pointer-events: none;
}
.nh-cards--slide::-webkit-scrollbar {
  display: none;
}
.nh-cards--slide .nh-card {
  scroll-snap-align: start;
  min-width: 0;
  width: 100%;
}

/* Horizontal card slider shell */
.nh-h-slider {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.nh-h-slider__viewport {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.nh-h-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}
.nh-h-slider__scrollbar {
  position: relative;
  flex: 1 1 auto;
  width: min(280px, 48vw);
  max-width: 320px;
  height: 2px;
  border-radius: 100px;
  background: rgba(51, 51, 51, 0.22);
  overflow: visible;
  cursor: pointer;
  touch-action: none;
}
.nh-h-slider__scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 32px;
  width: 40%;
  border-radius: inherit;
  background: #000000;
  transition: background 0.15s ease;
  pointer-events: none;
}
.nh-h-slider__scrollbar:hover .nh-h-slider__scrollbar-thumb,
.nh-h-slider__scrollbar.is-dragging .nh-h-slider__scrollbar-thumb {
  background: #000000;
}
.nh-assoc .nh-h-slider__scrollbar,
.nh-industry .nh-h-slider__scrollbar {
  background: rgba(255, 255, 255, 0.35);
}
.nh-assoc .nh-h-slider__scrollbar-thumb,
.nh-industry .nh-h-slider__scrollbar-thumb {
  background: #000000;
}
.nh-assoc .nh-h-slider__scrollbar:hover .nh-h-slider__scrollbar-thumb,
.nh-assoc .nh-h-slider__scrollbar.is-dragging .nh-h-slider__scrollbar-thumb,
.nh-industry .nh-h-slider__scrollbar:hover .nh-h-slider__scrollbar-thumb,
.nh-industry .nh-h-slider__scrollbar.is-dragging .nh-h-slider__scrollbar-thumb {
  background: #000000;
}
.nh-h-slider__btn {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  box-shadow: none;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  box-sizing: border-box;
}
.nh-h-slider__btn:hover {
  background: transparent;
  color: inherit;
  border-color: transparent;
  opacity: 0.7;
}
.nh-h-slider__btn.is-disabled,
.nh-h-slider__btn:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}
.nh-h-slider__btn.is-disabled:hover,
.nh-h-slider__btn:disabled:hover {
  opacity: 0.2;
}
.nh-card {
  background: #fff;
  border-radius: 20px;
  border: 0;
  padding: 16px;
  box-shadow: var(--nh-shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-height: 169px;
  width: 282px;
  box-sizing: border-box;
  transition: transform 0.2s ease;
  position: relative;
}
.nh-card:hover {
  transform: translateY(-3px);
}
.nh-card__title {
  grid-column: 1;
  grid-row: 1;
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  color: #333333;
  padding-right: 8px;
}
.nh-card__desc {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 19px;
}
.nh-card__arrow {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
  box-sizing: border-box;
  padding: 0;
}

/* LINE */
.nh-line {
  background: #fff;
}
.nh-line__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.nh-stamp-slider {
  margin-bottom: 8px;
}
.nh-stamp-slider__body {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
}
.nh-stamp-slider__viewport {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  min-width: 0;
  /* vertical page scroll OK; horizontal claimed by JS swipe */
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: contain;
}
.nh-stamp-slider__viewport img,
.nh-stamp-slider__viewport a {
  -webkit-user-drag: none;
  user-drag: none;
}
.nh-stamp-slider__viewport img {
  pointer-events: none;
}
.nh-stamp-slider__viewport.is-dragging {
  cursor: grabbing;
}
.nh-stamp-slider__viewport.is-dragging a,
.nh-stamp-slider__viewport.is-swipe-lock a {
  pointer-events: none;
}
.nh-stamp-slider__viewport:active {
  cursor: grabbing;
}
.nh-stamp-slider__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}
.nh-stamp-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}
.nh-stamp-slider__slide > img {
  width: 100%;
  display: block;
  vertical-align: middle;
}
.nh-stamp-slider__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 16px auto;
  text-align: center;
}
.nh-stamp-slider__caption-arrow {
  display: block;
  width: 11px !important;
  height: 11px !important;
  max-width: 11px;
  flex-shrink: 0;
  object-fit: contain;
}
.nh-stamp-slider__arrow {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  box-shadow: none;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  box-sizing: border-box;
}
.nh-stamp-slider__arrow:hover {
  background: transparent;
  border-color: transparent;
  color: inherit;
  opacity: 0.7;
}
.nh-stamp-slider__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.nh-stamp-slider__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #CCCCCC;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}
.nh-stamp-slider__dot.is-active {
  background: var(--nh-blue);
  border-color: #CCCCCC;
  transform: none;
}
.nh-stamp-slider__dot:hover {
  background: var(--nh-blue);
}
.nh-line__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 16px;
  background: #fff;
}
.nh-card.nh-line__promo {
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 16px;
}
.nh-line__promo .nh-card__title {
  padding-right: 8px;
}
.nh-line__promo-body {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
}
.nh-line__promo .nh-card__desc {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
}
.nh-line__promo-media {
  display: block;
  flex-shrink: 0;
  max-width: 220px;
}
.nh-line__promo-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Assoc / Industry overlays */
.nh-assoc,
.nh-industry {
  position: relative;
}
.nh-assoc::before,
.nh-industry::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Figma: linear-gradient(180deg, rgba(141, 141, 141, 0.2) 0%, #FFFFFF 100%) */
.nh-assoc::before {
  background: linear-gradient(180deg, rgba(141, 141, 141, 0.2) 30%, #FFFFFF 100%);
}
.nh-industry::before {
  background: linear-gradient(180deg, rgba(112, 112, 112, 0.3) 30%, #FFFFFF 100%);
}
.nh-assoc .nh-section__inner,
.nh-industry .nh-section__inner {
  position: relative;
  z-index: 1;
}
/* PC: 警備業を知るは見出し同様、スライドを右寄せ */
@media (min-width: 901px) {
  .nh-industry .nh-cards--slide {
    justify-content: end;
  }
  .nh-industry .nh-cards--slide .nh-card {
    scroll-snap-align: end;
  }
}

/* Sponsors */
.nh-sponsors {
  background: #f7fbfe;
}
.nh-note-dummy {
  color: #FF0000;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  margin: 0 0 8px;
}
.nh-line__text {
  color: #333333;
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
}
.nh-sponsor-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.nh-sponsor-card__media {
  display: block;
  color: inherit;
  text-decoration: none;
}
.nh-sponsor-card__media:hover {
  opacity: 0.92;
}
.nh-sponsor-card {
  background: #fff;
  border-radius: var(--nh-radius);
  overflow: hidden;
  box-shadow: var(--nh-shadow);
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.nh-sponsor-card__logo {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
  padding: 16px;
  box-sizing: border-box;
  background: #fff;
}
.nh-sponsor-card__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 368 / 276;
  object-fit: cover;
  display: block;
}
.nh-sponsor-card h3 {
  margin: 16px 16px 8px;
  font-size: 15px;
  font-weight: 900;
}
.nh-sponsor-card__meta,
.nh-sponsor-card__biz {
  margin: 0 16px 8px;
  font-size: 16px;
  color: var(--nh-muted);
  word-break: break-all;
}
.nh-sponsor-card__meta a {
  display: inline;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}
.nh-sponsor-card > a:not(.nh-sponsor-card__media) {
  display: inline-block;
  margin: 8px 16px 0;
}

/* Policy / BCP */
.nh-policy {
  background: #fff;
}
.nh-bcp {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 0;
  align-items: stretch;
  background: #fff;
  border-radius: var(--nh-radius);
  overflow: hidden;
  box-shadow: var(--nh-shadow);
  margin-bottom: 32px;
}
.nh-bcp__visual {
  position: relative;
  min-width: 0;
  min-height: 0;
}
.nh-bcp__visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.nh-bcp__body {
  padding: 32px;
  min-width: 0;
}
.nh-bcp__body h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 500;
  color: #333333;
}
.nh-bcp__body p {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #333333;
}
.nh-pdf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.nh-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--nh-danger);
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.nh-pdf-btn:hover,
.nh-pdf-btn:focus {
  color: #fff !important;
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.nh-pdf-btn__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.nh-ico-more {
  display: inline-block;
  width: 11px;
  height: 11px;
  vertical-align: middle;
}
.nh-bcp__note {
  font-size: 16px;
  color: var(--nh-muted);
}

.nh-policy-cards {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.nh-policy-card {
  background: #fff;
  border-radius: var(--nh-radius);
  box-shadow: var(--nh-shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #333333;
  box-sizing: border-box;
  min-width: 0;
  transition: transform 0.2s ease;
}
.nh-policy-card--link:hover {
  transform: translateY(-3px);
}
.nh-policy-card--sdgs {
  display: grid;
  grid-template-columns: minmax(96px, 0.85fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
}
.nh-policy-card__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}
.nh-policy-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.nh-policy-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.nh-policy-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.nh-policy-card__arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  line-height: 0;
}
.nh-policy-card__arrow .nh-ico-arrow {
  width: 26px;
  height: 26px;
}
.nh-policy-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #333333;
}
.nh-policy-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  flex: 1;
}
.nh-policy-card .nh-pdf-btn {
  margin-top: auto;
  padding: 8px 24px;
  height: auto;
  min-height: 40px;
  white-space: normal;
  text-align: left;
}

/* NEWS */
.nh-news {
  background: #f7fbfe;
}
.nh-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  border-top: 1px solid #d7e4ee;
}
.nh-news-list li {
  border-bottom: 1px solid #d7e4ee;
}
.nh-news-list a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 8px;
  align-items: start;
}
.nh-news-list time {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #333333;
}
.nh-news-list span {
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  text-decoration: underline;
  color: #333333;
}
.nh-news-list a:hover span {
  color: #333;
  opacity: 0.72;
}

/* Popular */
.nh-popular {
  background: #fff;
}
.nh-popular__slider {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  grid-template-areas: "prev track next";
  gap: 8px;
  align-items: center;
}
.nh-popular__track {
  grid-area: track;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(25% - 12px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 8px 16px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  min-width: 0;
}
.nh-popular__controls {
  display: contents;
}
.nh-popular__prev {
  grid-area: prev;
  justify-self: center;
}
.nh-popular__next {
  grid-area: next;
  justify-self: center;
}
.nh-popular__track img,
.nh-popular__track a {
  -webkit-user-drag: none;
  user-drag: none;
}
.nh-popular__track img {
  pointer-events: none;
}
.nh-popular__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.nh-popular__track.is-dragging a,
.nh-popular__track.is-swipe-lock a {
  pointer-events: none;
}
.nh-popular__track::-webkit-scrollbar {
  display: none;
}
.nh-popular__item {
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--nh-shadow);
  background: #123;
  position: relative;
}
.nh-popular__item img {
  width: 100%;
  height: 146px;
  object-fit: cover;
  display: block;
}
.nh-popular__crop {
  object-position: left center;
}
.nh-popular__item span {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  max-width: 90%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 8px 0 0;
  color: #333333;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}
.nh-popular__prev,
.nh-popular__next {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-sizing: border-box;
}
.nh-popular__prev:hover,
.nh-popular__next:hover {
  background: transparent;
  border-color: transparent;
  color: inherit;
  opacity: 1;
}
.nh-popular__prev.is-disabled,
.nh-popular__next.is-disabled,
.nh-popular__prev:disabled,
.nh-popular__next:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}
.nh-popular__prev.is-disabled:hover,
.nh-popular__next.is-disabled:hover,
.nh-popular__prev:disabled:hover,
.nh-popular__next:disabled:hover {
  opacity: 0.2;
}

/* Footer */
.nh-footer {
  background: var(--nh-navy);
  color: #e8f3fb;
  margin-top: 16px;
  position: relative;
  border-top: 0;
  border-radius: 16px 16px 0 0;
}
.nh-footer__inner {
  max-width: var(--nh-max);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.nh-footer__brand {
  min-width: 0;
}
.nh-footer__brand-head {
  margin: 0 0 16px;
}
.nh-footer__name {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
}
.nh-footer__name a {
  color: inherit;
  text-decoration: none;
}
.nh-footer__name a:hover,
.nh-footer__name a:focus {
  opacity: 0.9;
  text-decoration: none;
}
.nh-footer__name span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.nh-footer__address {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.92;
}
.nh-footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
/* PC: 最下部中央に配置（bottomバーの中央） */
.nh-footer__mascots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transform: translateX(-50%);
  pointer-events: none;
}
.nh-footer__mascot {
  height: 96px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  margin-bottom: 0;
}
.nh-footer__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: start; /* 列の高さを中身に合わせ、空欄までボーダーが伸びないようにする */
  min-width: 0;
}
/* PC: 販売商品の下に加盟会社を縦積み（見た目は4列） */
.nh-footer__stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  align-self: start;
}
.nh-footer__col {
  padding-left: 0;
  border-left: 0;
  box-sizing: border-box;
  align-self: start;
  height: fit-content;
}
.nh-footer__col-title {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 500;
  color: #FFFFFF;
  font-size: 17px; /* 中身16pxより +1px */
  line-height: 24px;
  text-align: left;
  cursor: default;
  appearance: none;
  -webkit-appearance: none;
  /* 見出しはボーダーなし・左にひっこめ */
}
.nh-footer__col-arrow {
  display: none;
}
/* 見出しの下から線が生える（リスト側にボーダー） */
.nh-footer__col > ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
}
.nh-footer__has-sub > a {
  display: block;
}
.nh-footer__sub-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
}
.nh-footer__col a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  padding: 0;
  opacity: 1;
  color: #FFFFFF;
}
/* 協会の事業活動などのネスト（親リンク16pxより一段小さく） */
.nh-footer__col .nh-footer__sub-list a {
  font-size: 15px;
  line-height: 20px;
  opacity: 0.92;
}
.nh-footer__col a:hover {
  opacity: 1;
  color: #fff;
}
.nh-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: var(--nh-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  /* PC時マスコット絶対配置のスペースを確保 */
  min-height: 128px;
  box-sizing: border-box;
}
.nh-footer__copy {
  margin: 0;
  flex-shrink: 0;
}
.nh-footer__privacy {
  color: #fff;
  text-decoration: underline;
  flex-shrink: 0;
}
.nh-footer__privacy:hover,
.nh-footer__privacy:focus,
.nh-footer__privacy:visited,
.nh-footer__privacy:hover:visited,
.nh-footer__privacy:focus:visited {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
}

.nh-pagetop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: none;
  z-index: 90;
  padding: 0;
  overflow: hidden;
}
.nh-pagetop__icon {
  display: block;
  width: 48px;
  height: 48px;
  max-width: none;
  transform: rotate(180deg);
}

/* Hide default WP chrome leftovers if any */
.page-newhome .site-header,
.page-newhome #wpadminbar + .nh-header {
  /* ok */
}
.page-newhome .entry-header,
.page-newhome .entry-footer {
  display: none;
}

/* Visited links — same colors as unvisited */
.page-newhome a:visited {
  color: inherit;
}
.page-newhome .nh-nav__link:visited {
  color: #333333;
}
.page-newhome .nh-mega__col a:visited {
  color: #333333;
}
.page-newhome .nh-mega__col a:hover:visited {
  color: var(--nh-blue);
}
.page-newhome .nh-newsbar__item:visited {
  color: #333333;
}
.page-newhome .nh-newsbar__item:visited time,
.page-newhome .nh-newsbar__item:visited .nh-newsbar__title {
  color: #333333;
}
.page-newhome .nh-newsbar__more:visited,
.page-newhome .nh-newsbar__more:hover,
.page-newhome .nh-newsbar__more:focus,
.page-newhome .nh-newsbar__more:hover:visited,
.page-newhome .nh-newsbar__more:focus:visited {
  color: #fff;
}
.page-newhome .nh-side-banner:visited span {
  color: #333333;
}
.page-newhome a.nh-btn--ghost:visited,
.page-newhome a.nh-btn--ghost:hover,
.page-newhome a.nh-btn--ghost:focus,
.page-newhome a.nh-btn--ghost:hover:visited,
.page-newhome a.nh-btn--ghost:focus:visited {
  color: #333333;
}
.page-newhome a.nh-btn--sky:visited,
.page-newhome a.nh-btn--outline:visited,
.page-newhome a.nh-btn--line:visited,
.page-newhome a.nh-btn--light:visited,
.page-newhome a.nh-btn--footer:visited {
  color: #fff;
}
.page-newhome a.nh-btn--list:visited,
.page-newhome a.nh-btn--primary:visited {
  color: #333333;
}
.page-newhome a.nh-btn--footer-outline:visited {
  color: #fff;
}
.page-newhome a.nh-pdf-btn:visited {
  color: #fff !important;
}
.page-newhome .nh-stamp-slider__caption:visited,
.page-newhome .nh-sponsor-card a:visited,
.page-newhome .nh-bcp__note a:visited,
.page-newhome .nh-text-link:visited {
  color: #333;
}
.page-newhome a.nh-card:visited .nh-card__title {
  color: #333333;
}
.page-newhome a.nh-card:visited .nh-card__desc {
  color: #333333;
}
.page-newhome a.nh-policy-card:visited,
.page-newhome a.nh-policy-card--link:visited {
  color: #333333;
}
.page-newhome .nh-news-list a:visited span,
.page-newhome .nh-news-list a:visited time {
  color: #333333;
}
.page-newhome .nh-news-list a:hover:visited span {
  color: #333;
}
.page-newhome .nh-footer__col a:visited {
  color: #fff;
}
.page-newhome .nh-footer__bottom a:visited {
  color: #fff;
}

/* Sitewide chrome (header/footer on all pages) — visited colors */
.has-nh-chrome .nh-nav__link:visited {
  color: #333333;
}
.has-nh-chrome .nh-mega__col a:visited {
  color: #333333;
}
.has-nh-chrome .nh-mega__col a:hover:visited {
  color: var(--nh-blue);
}
.has-nh-chrome a.nh-btn--ghost:visited,
.has-nh-chrome a.nh-btn--ghost:hover,
.has-nh-chrome a.nh-btn--ghost:focus,
.has-nh-chrome a.nh-btn--ghost:hover:visited,
.has-nh-chrome a.nh-btn--ghost:focus:visited {
  color: #333333;
}
.has-nh-chrome a.nh-btn--sky:visited,
.has-nh-chrome a.nh-btn--footer:visited {
  color: #fff;
}
.has-nh-chrome a.nh-btn--footer-outline:visited {
  color: #fff;
}
.has-nh-chrome .nh-footer__col a:visited,
.has-nh-chrome .nh-footer__bottom a:visited {
  color: #fff;
}

/* 旧コンテンツページ: nh-site で幅制限しない（main の 980px を維持） */
.has-nh-chrome:not(.page-newhome) .nh-site {
  max-width: none;
  width: 100%;
  margin: 0;
  overflow-x: visible;
  background: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nh-line__promo-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nh-line__promo-media {
    max-width: 220px;
    justify-self: center;
  }
}

@media (max-width: 1280px) {
  .nh-sponsor-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .nh-sponsor-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nh-footer__inner {
    grid-template-columns: 1fr;
  }
  .nh-footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
  /* 縦組み時: マスコットを協会名の右隣へ */
  .nh-footer__brand-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
  .nh-footer__name {
    flex: 1 1 auto;
    min-width: 0;
  }
  .nh-footer__mascots {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    flex: 0 0 auto;
    align-self: center;
    pointer-events: none;
    height: 60px;
  }
  .nh-footer__mascot {
    height: 88px;
  }
  .nh-footer__bottom {
    min-height: 0;
  }
  .nh-popular__track {
    grid-auto-columns: calc(40% - 12px);
  }
}

/* 560px未満: コンパクトなフッターキャラ画像へ切替 */
@media (max-width: 609px) {
  .nh-footer__mascots {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 40%;
  }
  .nh-footer__mascot {
    height: auto;
    max-height: 64px;
    width: auto;
    max-width: 100%;
  }
}

/* ヘッダーCTAが折り返す手前でハンバーガーへ */
@media (max-width: 919px) {
  .nh-header__top {
    grid-template-columns: auto 1fr auto;
  }
  .nh-header__actions {
    display: none;
  }
  .nh-nav__item--cta {
    display: list-item;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }
  .nh-nav-toggle {
    display: grid;
    place-items: center;
  }
  /* フローから外してコンテンツ上にオーバーレイ（高さはウィンドウ下端まで） */
  .nh-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nh-header-offset, 72px);
    bottom: auto;
    z-index: 102;
    display: block;
    height: 0;
    max-height: none;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    border-top: 1px solid transparent;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-8px);
    transition:
      height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.3s ease;
  }
  .nh-nav.is-open {
    height: calc(100dvh - var(--nh-header-offset, 72px));
    max-height: calc(100dvh - var(--nh-header-offset, 72px));
    opacity: 1;
    visibility: visible;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: auto;
    border-top-color: rgba(21, 86, 123, 0.1);
    transform: translateY(0);
  }
  @supports not (height: 100dvh) {
    .nh-nav.is-open {
      height: calc(100vh - var(--nh-header-offset, 72px));
      max-height: calc(100vh - var(--nh-header-offset, 72px));
    }
  }
  .nh-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 16px;
    box-sizing: border-box;
  }
  .nh-nav__item {
    width: 100%;
  }
  .nh-nav__link {
    display: none;
  }
  .nh-nav__mrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-top: 1px solid #555;
  }
  .nh-nav__item:last-child .nh-nav__mrow {
    border-bottom: 1px solid #555;
  }
  .nh-nav__mrow-main,
  .nh-nav__mrow-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #333;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }
  .nh-nav__mrow-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
  }
  .nh-nav__mrow-arrow {
    display: block;
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    transform: rotate(90deg);
    transition: transform 0.25s ease;
  }
  .nh-nav__item.is-open .nh-nav__mrow-arrow {
    transform: rotate(-90deg);
  }
  .nh-nav__mrow-thumb {
    display: block;
    flex: 0 1 auto;
    width: clamp(149px, 42vw, 305px);
    height: auto;
    aspect-ratio: 149 / 87;
    object-fit: cover;
    flex-shrink: 1;
    min-width: 149px;
    max-width: 305px;
    border-radius: 2px;
    background: #eee;
  }
  .nh-mega {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nh-mega > .nh-mega__panel {
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }
  .nh-nav__item.is-open > .nh-mega {
    grid-template-rows: 1fr;
  }
  .nh-mega__panel {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nh-mega__feature {
    display: none;
  }
  .nh-mega__mobile-top {
    display: list-item;
  }
  .nh-mega__links {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0 16px;
    border: 0;
    align-self: stretch;
    box-sizing: border-box;
  }
  .nh-mega__col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: 0;
  }
  .nh-mega__col li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
  }
  .nh-mega__col li:first-child {
    border-top: 1px solid #e0e0e0;
  }
  .nh-mega__has-sub {
    position: static;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }
  .nh-mega__sub {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    border-left: 2px solid #e0e0e0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    display: none;
    transition: none;
  }
  .nh-mega__sub::before {
    display: none;
  }
  .nh-mega__has-sub.is-open > .nh-mega__sub {
    display: flex;
    pointer-events: auto;
  }
  .nh-mega__sub li {
    border-bottom: 1px solid #eee;
  }
  .nh-mega__sub li:first-child {
    border-top: 1px solid #eee;
  }
  .nh-mega__sub li:last-child {
    border-bottom: 0;
  }
  .nh-mega__sub a {
    font-size: 15px;
    padding: 10px 0;
    white-space: normal;
  }
  .nh-mega__col a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
  }
  .nh-nav__item.is-open .nh-mega__col li:last-child {
    border-bottom: 0;
  }
  /* 最後のナビ項目: 見出し下は #e0e0e0、アコーディオン末尾は #555 */
  .nh-nav__item:last-child.is-open .nh-nav__mrow {
    border-bottom: 0;
  }
  .nh-nav__item:last-child.is-open .nh-mega__col li:last-child {
    position: relative;
    border-bottom: 0;
  }
  .nh-nav__item:last-child.is-open .nh-mega__col li:last-child::after {
    content: "";
    position: absolute;
    left: -16px;
    right: -16px;
    bottom: 0;
    border-bottom: 1px solid #555;
    pointer-events: none;
  }
  @media (prefers-reduced-motion: reduce) {
    .nh-nav,
    .nh-mega {
      transition: none;
    }
  }
}

@media (max-width: 900px) {
  .nh-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "side";
    aspect-ratio: auto;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  /* 背景をステージと同じ表示エリアに限定し、画像の天地＝表示エリアの高さに揃える */
  .nh-hero__bg {
    grid-area: stage;
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
  }
  .nh-hero__stage {
    grid-area: stage;
    width: 100%;
    /* 表示エリアを画像の天地が収まる高さ(658px)に固定。coverで縦伸ばし・横見切れは維持 */
    height: 658px;
    min-height: 658px;
  }
  .nh-hero__layer--movie {
    width: 100%;
  }
  .nh-side-slider {
    grid-area: side;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    height: auto;
    padding: 0;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    border-top: 8px solid #fff;
    border-bottom: 8px solid #fff;
  }
  .nh-side-slider__viewport {
    position: relative;
    inset: auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
  }
  .nh-side-slider__track {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    height: auto;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-block: 0;
    scroll-padding-inline: 0;
    touch-action: pan-x;
  }
  .nh-side-slider__btn {
    top: 50%;
    bottom: auto;
    z-index: 5;
    pointer-events: auto;
    transform: translate(-50%, -50%);
  }
  .nh-side-slider__btn--prev {
    left: 20px;
    top: 50%;
  }
  .nh-side-slider__btn--next {
    left: auto;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }
  .nh-side-slider__btn--prev .nh-ico-arrow {
    transform: rotate(180deg);
  }
  .nh-side-slider__btn--next .nh-ico-arrow {
    transform: none;
  }
  .nh-side-slider__btn.is-disabled,
  .nh-side-slider__btn:disabled {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
  }
  .nh-side-banner {
    flex: 0 0 min(78vw, 260px);
    width: min(78vw, 260px);
    height: auto;
    min-height: 0;
    border-bottom: 0;
  }
  .nh-side-banner img {
    width: 100%;
    height: 132px;
    object-fit: cover;
  }
  .nh-side-banner span {
    font-size: 16px;
    line-height: 1.25;
    padding: 8px;
    max-width: 92%;
  }
  .nh-line__grid,
  .nh-bcp,
  .nh-policy-cards,
  .nh-news-list {
    grid-template-columns: 1fr;
  }
  .nh-policy-card--sdgs {
    grid-template-columns: 1fr;
  }
  .nh-policy-card__media {
    height: 180px;
  }
  .nh-bcp__visual {
    position: relative;
    height: 240px;
    min-height: 240px;
  }
  .nh-bcp__visual img {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .nh-bcp__body {
    padding: 24px 16px;
  }
  .nh-newsbar {
    padding: 0 0 0 max(16px, calc((100% - 1360px) / 2));
  }
  .nh-newsbar__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    border-radius: 0 0 0 16px;
    padding: 16px;
  }
  .nh-newsbar__item {
    height: auto;
    min-height: 40px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .nh-hero__mascots {
    right: calc(16px + 96px + 16px);
    max-width: 78%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 16px;
    gap: 4px;
  }
  .page-newhome .nh-hero__mascot,
  .page-newhome .nh-hero__mascot--m {
    height: 140px;
  }
  .page-newhome .nh-hero__mascot--f {
    height: 132px;
  }
  .nh-bubble {
    max-width: 140px;
    min-height: 60px;
    padding: 10px 12px;
    font-size: 14px;
    letter-spacing: 0.03em;
  }
  .nh-bubble::after {
    bottom: -6px;
    border-width: 6px;
  }
  .nh-hero__mascot-name {
    font-size: 14px;
  }
  .nh-hero__mascot-item {
    gap: 4px;
  }
  .nh-hero__copy {
    padding: 32px 24px 168px;
  }
  .nh-hero__title {
    line-height: 1.35;
  }
  .nh-section__head--right {
    text-align: left;
  }
  .nh-section__head--right .nh-section__lead {
    margin-left: 0;
  }
  .nh-cards--slide {
    /* PC同様に約3枚見える幅（余白で次が少し見える） */
    grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px;
    padding: 16px 0 8px;
  }
  .nh-cards--slide .nh-card {
    width: 100%;
    min-height: 148px;
  }
  /* 人気のページ: 協会を知る同様、コントロールを下・スライダー左右いっぱい */
  .nh-popular__slider {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .nh-popular__track {
    width: 100%;
    padding: 8px 0;
    box-sizing: border-box;
  }
  .nh-popular__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    min-height: 40px;
  }
  .nh-popular__prev,
  .nh-popular__next {
    grid-area: auto;
    justify-self: auto;
  }
}

@media (max-width: 640px) {
  .nh-footer__links {
    grid-template-columns: 1fr;
    gap: 8px; /* アコーディオン大項目の間隔 */
  }
  /* モバイルは各カテゴリを独立アコーディオンに戻す */
  .nh-footer__stack {
    display: contents;
  }
  .nh-footer__col {
    padding-left: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
  }
  .nh-footer__col + .nh-footer__col {
    margin-top: 4px;
  }
  .nh-footer__col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 16px 0;
    font-size: 17px;
    cursor: pointer;
  }
  .nh-footer__col-arrow {
    display: block;
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    transform: rotate(90deg);
    transition: transform 0.25s ease;
  }
  .nh-footer__col.is-open .nh-footer__col-arrow {
    transform: rotate(-90deg);
  }
  .nh-footer__col > ul {
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    border-left-color: transparent;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }
  .nh-footer__col.is-open > ul {
    max-height: 520px;
    padding: 0 0 14px 16px;
    opacity: 1;
    border-left-color: rgba(255, 255, 255, 0.35);
  }
  .nh-footer__col .nh-footer__sub-list {
    max-height: none;
    overflow: visible;
    opacity: 1;
  }
  .nh-sponsor-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .nh-sponsor-card h3,
  .nh-sponsor-card__meta,
  .nh-sponsor-card__biz,
  .nh-sponsor-card > a:not(.nh-sponsor-card__media),
  .page-newhome .nh-sponsor-card__meta a,
  .page-newhome .nh-sponsor-card > a:not(.nh-sponsor-card__media) {
    font-size: 12px;
    line-height: 1.45;
  }
  .nh-footer__bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
  .nh-header__top > .nh-btn,
  .nh-header__top > .nh-member-menu .nh-member-menu__trigger {
    font-size: 16px;
    padding: 8px 16px;
  }
  .nh-popular__track {
    grid-auto-columns: 78%;
  }
  .nh-cards--slide {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
  .nh-h-slider__controls,
  .nh-popular__controls {
    gap: 12px;
  }
  .nh-h-slider__scrollbar {
    width: min(180px, 42vw);
  }
  .nh-btn--list,
  .nh-btn--primary {
    min-width: 0;
    width: 100%;
  }
  .nh-line__promo-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nh-line__promo-media {
    max-width: 160px;
    justify-self: center;
  }
  .nh-stamp-slider__body {
    grid-template-columns: 32px 1fr 32px;
    gap: 8px;
  }
  .nh-stamp-slider__arrow {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .nh-h-slider__btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}

/* 480px未満: キャラ・吹き出しを縮小 */
@media (max-width: 479px) {
  .nh-scroll-btn {
    right: 12px;
    bottom: 12px;
    width: 64px;
    height: 64px;
  }
  .nh-scroll-btn img {
    width: 64px;
    height: 64px;
  }
  .nh-hero__mascots {
    right: calc(12px + 64px + 8px);
    left: 8px;
    max-width: none;
    width: auto;
    justify-content: flex-end;
    gap: 4px;
    padding-bottom: 12px;
  }
  .page-newhome .nh-hero__mascot,
  .page-newhome .nh-hero__mascot--m {
    height: 100px;
  }
  .page-newhome .nh-hero__mascot--f {
    height: 94px;
  }
  .nh-hero__mascot-item {
    gap: 2px;
    flex: 0 1 auto;
    max-width: calc((100% - 2px) / 2);
  }
  .nh-bubble {
    max-width: 100%;
    min-height: 48px;
    padding: 6px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
  }
  .nh-bubble::after {
    bottom: -5px;
    border-width: 5px;
  }
  .nh-hero__mascot-name {
    font-size: 11px;
    line-height: 1.3;
  }
  .nh-hero__copy {
    padding: 24px 16px 140px;
  }
  .nh-hero__title {
    font-size: 28px;
  }
  .nh-hero__lead {
    font-size: 13px;
  }
}

/* PC: スライダー内ホイール／トラックパッドでページスクロールを奪わない */
@media (hover: hover) and (pointer: fine) {
  .nh-side-slider__track,
  .nh-cards--slide,
  .nh-popular__track {
    overflow-x: hidden;
    overflow-y: hidden;
  }
}
