/* =========================================================
   NNOUM 2026-27 ジュニアページ
   共通の nnoum2627.css を読み込んだうえで、ジュニアで違う部分だけを書く
   ========================================================= */
.nn27.is-jr {
  --nn-blue: #4a9ff0;
  --nn-pink: #f462a8;
  --nn-yellow: #f2be2c;
  --nn-green: #3dad57;
  --nn-sky: #79cdf4;
  --nn-accent: var(--nn-yellow);
}

.nn27.is-jr .is-boys { --nn-accent: var(--nn-blue); }
.nn27.is-jr .is-girls { --nn-accent: var(--nn-pink); }
.nn27.is-jr .is-kids { --nn-accent: var(--nn-yellow); }
.nn27.is-jr .is-accessory { --nn-accent: var(--nn-green); }

/* 見出しの英字はすべて黄色 */
.is-jr .nn-heading__en {
  color: var(--nn-yellow);
}

/* ---------- メインビジュアル ---------- */
.is-jr .nn-hero {
  background: var(--nn-sky);
}

.is-jr .nn-hero__img img {
  object-position: center 15%;
}

.is-jr .nn-hero + .nn-section {
  padding-top: 110px;
}

/* ---------- 3つの魅力 ---------- */
.jr-features {
  max-width: 806px;
  margin: 0 auto;
}

.jr-features .swiper-wrapper {
  align-items: stretch;
}

/* Swiper側のCSS（.swiper-slide { height: 100% }）より優先させる */
.jr-features .swiper-slide.jr-features__item,
.is-jr .nn-pickup .swiper-slide.nn-pickup__item {
  height: auto;
}

.jr-features__item {
  padding: 22px 18px 24px;
  border-radius: 10px;
  background: var(--nn-sky);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.jr-features__num {
  position: relative;
  padding-left: 22px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
}

.jr-features__num::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  border-top: 1px solid currentColor;
}

.jr-features__ttl {
  margin: 8px 0 10px;
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.7;
}

.jr-features__ttl em {
  font-style: normal;
  font-size: 22px;
  color: #f8f54a;
}

.jr-features__txt {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.jr-features__txt mark {
  background: linear-gradient(transparent 85%, #f8f54a 85%);
  color: inherit;
}

/* ---------- ラインナップ ---------- */
.jr-lineup {
  max-width: 820px;
  margin: 90px auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.jr-lineup img {
  height: 290px;
  width: auto;
}

/* ---------- メニュー（ボーイズ/ガールズ/キッズ/アクセサリー） ---------- */
.is-jr .nn-menu {
  max-width: 806px;
  margin: 0 auto 100px;
}

.is-jr .nn-menu__btn {
  padding-left: 36px;
}

.is-jr .nn-menu__btn::before {
  left: 18px;
}

.is-jr .nn-menu__ja {
  font-size: 9.5px;
}

.nn-menu__btn.is-boys { background: var(--nn-blue); }
.nn-menu__btn.is-girls { background: var(--nn-pink); }
.nn-menu__btn.is-kids { background: var(--nn-yellow); }
.is-jr .nn-menu__btn.is-accessory { background: var(--nn-green); }

/* ---------- 嬉しい機能 ---------- */
.jr-functions {
  max-width: 806px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  gap: 24px;
}

.jr-functions__icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 10px;
  text-align: center;
}

.jr-functions__icons img {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto 10px;
}

.jr-functions__icons p {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ---------- 商品ブロック（ジュニア版） ---------- */
.jr-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 110px 0;
}

.jr-band.is-boys { background: #f3fcfe; }
.jr-band.is-girls { background: #fff6fd; }
.jr-band.is-kids { background: #fffef2; margin-bottom: 110px; }

.jr-band .nn-heading {
  margin-bottom: 70px;
}

.is-jr .nn-item {
  max-width: 806px;
  grid-template-columns: minmax(0, 1fr) 352px;
  grid-template-rows: 1fr auto auto 1fr auto;
  grid-template-areas:
    ".    media"
    "head media"
    "body media"
    ".    media"
    "btn  btn";
  column-gap: 50px;
  margin-bottom: 70px;
}

.is-jr .nn-item.is-reverse {
  grid-template-columns: 352px minmax(0, 1fr);
  grid-template-areas:
    "media ."
    "media head"
    "media body"
    "media ."
    "btn   btn";
}

.is-jr .jr-band .nn-item {
  margin-bottom: 0;
}

/* ボタンのリンク先（ボーイズ/ガールズ/キッズ）がヘッダーに隠れないように */
.is-jr .nn-item[id] {
  scroll-margin-top: 80px;
}

.is-jr .nn-item__media img,
.is-jr .nn-item__media.is-short img {
  aspect-ratio: 352 / 408;
}

.is-jr .nn-item__ttl {
  font-size: 25px;
}

.is-jr .nn-item__txt {
  font-size: 14px;
}

.is-jr .nn-item__spec {
  white-space: normal;
}

.is-jr .nn-item .nn-price__num {
  font-size: 50px;
}

/* カラー数のバッジ＋カラバリ画像 */
.jr-colors {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 26px 0 30px;
}

.jr-colors__badge {
  flex: 0 0 84px;
  height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--nn-accent);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1;
  letter-spacing: 0;
}

.jr-colors__badge b {
  font-size: 44px;
  font-weight: 400;
}

.jr-colors__badge span {
  margin-top: 4px;
  font-size: 17px;
}

.jr-colors img {
  min-width: 0;
  flex: 1;
  width: auto;
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
}

.jr-colors__etc {
  align-self: flex-end;
  font-size: 10px;
  color: #777;
}

/* ボタンはブロック全体の中央に、色は全て黄色 */
.is-jr .nn-item__btn {
  grid-area: btn;
  justify-self: center;
  width: 292px;
  margin-top: 50px;
  background: var(--nn-yellow);
}

/* PICKUP：3枚の高さと、価格・ボタンの位置をそろえる */
.is-jr .nn-pickup .swiper-wrapper {
  align-items: stretch;
}

.is-jr .nn-pickup__ttl {
  font-size: 13px;
  letter-spacing: 0;
  white-space: nowrap;
}

.is-jr .nn-pickup__txt {
  letter-spacing: 0.02em;
}

.is-jr .nn-pickup__spec {
  font-size: 9px;
  letter-spacing: 0;
  white-space: nowrap;
}

.is-jr .nn-pickup .nn-item__btn {
  width: 100%;
  margin-top: 18px;
}

/* アクセサリー見出しのセクション */
.jr-acc {
  padding-bottom: 120px;
}

.is-jr .nn-pickup {
  max-width: 806px;
  margin-top: 90px;
}

/* ---------- 商品一覧 ---------- */
.is-jr .nn-all .nn-heading__en {
  text-transform: none;
}

/* =========================================================
   SP
   ========================================================= */
@media (max-width: 768px) {
  .is-jr .nn-hero + .nn-section {
    padding-top: 60px;
  }

  .is-jr .nn-item__spec {
    white-space: nowrap;
  }

  .is-jr .nn-item .nn-price__num {
    font-size: 40px;
  }

  .is-jr .nn-menu__btn {
    padding-left: 24px;
  }

  .is-jr .nn-menu__btn::before {
    left: 10px;
  }

  .is-jr .nn-menu__ja {
    font-size: 8.5px;
  }

  .is-jr .nn-hero__img img {
    aspect-ratio: 292 / 395;
    object-position: center bottom;
  }

  .is-jr .nn-hero__title {
    top: 6vw;
  }

  .is-jr .nn-hero__text {
    background: var(--nn-sky);
  }

  /* 3つの魅力はスライダー */
  .jr-features {
    margin: 0 -16px;
  }

  .jr-features__item {
    padding: 20px 18px 22px;
  }

  .jr-features__ttl {
    font-size: 18px;
  }

  .jr-features .swiper-pagination {
    position: static;
    margin-top: 16px;
  }

  /* ラインナップは3人×2段 */
  .jr-lineup {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 28px 0;
    margin: 50px auto 30px;
  }

  .jr-lineup img {
    width: 30%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 240 / 520;
  }

  .is-jr .nn-menu {
    margin: 0 0 70px;
  }

  /* 嬉しい機能 */
  .jr-functions {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .jr-functions__wear {
    width: 86%;
    margin: 0 auto;
  }

  .jr-functions__icons {
    gap: 22px 6px;
  }

  .jr-functions__icons img {
    width: 84px;
    height: 84px;
  }

  .jr-functions__icons p {
    font-size: 10px;
  }

  /* 商品ブロック */
  .jr-band {
    padding: 60px 16px;
  }

  .jr-band.is-kids {
    margin-bottom: 70px;
  }

  .jr-band .nn-heading {
    margin-bottom: 40px;
  }

  .is-jr .nn-item,
  .is-jr .nn-item.is-reverse {
    margin-bottom: 60px;
  }

  .is-jr .nn-item__media img,
  .is-jr .nn-item__media.is-short img {
    aspect-ratio: 580 / 700;
  }

  .is-jr .nn-item__ttl {
    font-size: 17px;
  }

  .is-jr .nn-item__txt {
    font-size: 11px;
  }

  .jr-colors {
    gap: 12px;
    margin: 12px 0 10px;
  }

  .jr-colors__badge {
    flex-basis: 64px;
    height: 64px;
  }

  .jr-colors__badge b {
    font-size: 32px;
  }

  .jr-colors__badge span {
    font-size: 13px;
  }

  .jr-colors img {
    max-height: 90px;
  }

  .is-jr .nn-item__btn {
    width: 100%;
    margin-top: 14px;
  }

  .jr-acc {
    padding-bottom: 70px;
  }

  .is-jr .nn-pickup {
    margin-top: 60px;
  }
}
