@charset "utf-8";
/* =========================================================
   グローバルナビ：英字の下に和文を添える（2026-08）
   ========================================================= */

.nav-jp {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---- PCナビ ---- */
/* ★2026-10-01 1160px → 1025px に変更。元サイトのPCメニューは 1025px から出るので、
   1025〜1159px では和文が横に並んでメニューが左にはみ出していた（JOURNAL を足して発覚） */
@media screen and (min-width: 1025px) {
  .nav-header__menu__link {
    /* 既存が display:flex / row のため、縦積みに変える */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    text-align: center;
  }
  .nav-header__menu__link .nav-jp {
    font-size: 1.05rem;
    margin-top: 0.5rem;
    color: #8d8d8d;
    transition: color 0.3s;
  }
  .nav-header__menu__list.text:hover .nav-jp { color: #FB5374; }
  .nav-header__menu__list.contact .nav-jp {
    color: rgba(255, 255, 255, 0.9);
  }
  .nav-header__menu__list.contact .nav-header__menu__link {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }
}

/* ---- SPナビ ---- */
@media screen and (max-width: 1024px) {
  .spnav-header__list .nav-jp {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.85;
  }
}

/* =========================================================
   TOP のページ内リンク（ドロップダウン）
   ========================================================= */
.nav-has-sub { position: relative; }

/* アンカーで飛んだとき、固定ヘッダーに見出しが隠れないように */
#story, #issues, #why-us, #model, #support,
#leaders, #history, #supporters, #goal, #join {
  scroll-margin-top: 110px;
}
@media screen and (max-width: 1024px) {  /* ★2026-10-01 1159→1024 */
  #story, #issues, #why-us, #model, #support,
  #leaders, #history, #supporters, #goal, #join {
    scroll-margin-top: 80px;
  }
}

/* ---- PC：ホバーで開くドロップダウン ---- */
@media screen and (min-width: 1025px) {  /* ★2026-10-01 1160→1025（PCメニューが出る幅に合わせる） */
  .nav-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 20rem;
    padding: 1.2rem 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
  }
  .nav-has-sub:hover .nav-sub,
  .nav-has-sub:focus-within .nav-sub {
    visibility: visible;
    opacity: 1;
  }
  /* ホバーが途切れないよう、リンクとメニューの間を埋める */
  .nav-sub::before {
    content: "";
    position: absolute;
    top: -1.4rem;
    left: 0;
    width: 100%;
    height: 1.4rem;
  }
  .nav-sub li { display: block; }
  .nav-sub a {
    display: block;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.5;
    color: #1C1C1C;
    padding: 1rem 2.2rem;
    white-space: nowrap;
    transition: background 0.25s, color 0.25s;
  }
  .nav-sub a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD3DC;
    margin-right: 1rem;
    vertical-align: middle;
    transition: background 0.25s;
  }
  .nav-sub a:hover { background: #FFF2F4; color: #FB5374; }
  .nav-sub a:hover::before { background: #FB5374; }
}

/* ---- SP：常に開いたインデントリスト ---- */
/* 既存の .spnav-header__list a に padding:20px が効いているので詳細度を上げて詰める */
@media screen and (max-width: 1024px) {  /* ★2026-10-01 1159→1024 */
  .spnav-header__list .spnav-sub {
    margin: 0.6rem 0 1.4rem;
    padding-left: 0.4rem;
  }
  .spnav-header__list .spnav-sub li {
    border: none !important;
    padding: 0 !important;
  }
  .spnav-header__list .spnav-sub li::before,
  .spnav-header__list .spnav-sub li::after { content: none !important; }
  .spnav-header__list .spnav-sub a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 1.4;
    padding: 0.7rem 0 0.7rem 0.2rem;
    opacity: 0.92;
  }
  .spnav-header__list .spnav-sub a::before {
    content: "└";
    font-size: 1.1rem;
    opacity: 0.65;
    flex-shrink: 0;
  }
}

/* ★1025〜1279px は項目（7つ）の間隔を詰めて1行に収める（2026-10-01 JOURNAL 追加で項目が増えたため） */
@media screen and (min-width: 1025px) {
  /* ★項目を押しつぶさない。詰まると CONTACT が1文字ずつ折り返して縦長の塊になった */
  .nav-header__menu__list { flex-shrink: 0; }
  .nav-header__menu__list.contact .nav-header__menu__link { white-space: nowrap; }
}
@media screen and (min-width: 1025px) and (max-width: 1279px) {
  .nav-header__menu__list { margin-left: 2.2vw; }
  .nav-header__menu__list.contact .nav-header__menu__link { padding-left: 2rem; padding-right: 2rem; }
  .nav-header__menu__link { font-size: 1.4rem; }
  .nav-header__menu__link .nav-jp { font-size: 1rem; }
}
