/* =============================================
   nanpuichi.css
   南風一 ブランドページ専用スタイル
   ※ style.css の変数・共通クラスを継承
   追加カラー:
     --np-green:  #A5B89A  (自然・植物)
     --np-terra:  #C47A5A  (南国・暖色アクセント)
     --np-sand:   #EDE7DB  (ベージュ背景変化)
============================================= */

/* ===== 南風一固有カラー変数 ===== */
body.page-nanpuichi {
  --np-green:  #A5B89A;
  --np-terra:  #C47A5A;
  --np-sand:   #EDE7DB;
  --np-navy:   #0D1B2A;
  background: var(--cream);
}

/* ===== HEADER 南風一用上書き ===== */
.header--brand .header__logo,
.header--solid .header__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.header--brand .header__logo-text,
.header--solid .header__logo-text {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--white);
}
.header--brand .header__logo-sub,
.header--solid .header__logo-sub {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.6);
  line-height: 1;
}

/* ===== SP ONLY ===== */
.sp-only { display: none; }
@media (max-width: 600px) { .sp-only { display: inline; } }

/* =============================================
   01 HERO
============================================= */
.np-hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.np-hero__bg {
  position: absolute;
  inset: 0;
}
.np-hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.06);
  animation: heroZoom 14s ease-out forwards;
}
.np-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,27,42,0.75) 0%,
    rgba(13,27,42,0.3) 50%,
    rgba(13,27,42,0.1) 100%
  );
}
.np-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--side-pad);
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
  width: 100%;
}
.np-hero__eyebrow {
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s 0.3s both;
}
.np-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.np-hero__title span {
  display: block;
  animation: fadeInUp 0.8s both;
}
.np-hero__title span:nth-child(1) { animation-delay: 0.4s; }
.np-hero__title span:nth-child(2) { animation-delay: 0.55s; }
.np-hero__body {
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  animation: fadeInUp 0.8s 0.7s both;
}
.np-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.85s both;
}
.np-hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s 1.5s both;
}

/* =============================================
   02 BRAND STORY
============================================= */
.np-story {
  background: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
}
.np-story__inner {
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}
.np-story__label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--np-terra);
  margin-bottom: 16px;
}
.np-story__title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.np-story__body {
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  font-weight: 300;
  color: var(--gray-mid);
  line-height: 2.1;
  margin-bottom: 20px;
}
.np-story__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--np-terra);
  border-bottom: 1px solid var(--np-terra);
  padding-bottom: 2px;
  margin-top: 8px;
  transition: gap var(--transition-fast);
}
.np-story__link:hover { gap: 14px; }

/* Story 画像：メイン1枚表示 */
.np-story__images {
  position: relative;
  width: 100%;
}
.np-story__img {
  overflow: hidden;
  border-radius: 2px;
}
.np-story__img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}
.np-story__img:hover img { transform: scale(1.03); }
.np-story__img--main {
  width: 100%;
}
.np-story__img--sub {
  /* サブ画像を使う場合のスタイル（現在コメントアウト中） */
  position: absolute;
  bottom: -20px; right: -20px;
  width: 48%;
  box-shadow: 0 12px 40px rgba(13,27,42,0.15);
  border: 4px solid var(--cream);
}

/* =============================================
   03 CATEGORY
============================================= */
.np-category {
  background: var(--white);
  padding: clamp(80px, 10vw, 140px) 0;
}
.np-category__inner {
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}
.np-category__label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--np-terra);
  text-align: center;
  margin-bottom: 10px;
}
.np-category__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.np-category__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.np-category__card {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.np-category__card-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.np-category__card-img img {
  transition: transform 0.7s ease;
}
.np-category__card:hover .np-category__card-img img { transform: scale(1.06); }
.np-category__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,27,42,0.55) 0%,
    transparent 60%
  );
  transition: opacity var(--transition);
}
.np-category__card:hover .np-category__card-overlay { opacity: 0.8; }
.np-category__card-body {
  position: absolute;
  bottom: 20px; left: 20px;
  color: var(--white);
  z-index: 2;
}
.np-category__card-title {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  margin-bottom: 4px;
}
.np-category__card-sub {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.np-category__cta {
  text-align: center;
}

/* =============================================
   04 POPULAR PRODUCTS
============================================= */
.np-popular {
  background: var(--np-sand, #EDE7DB);
  padding: clamp(80px, 10vw, 140px) 0;
}
.np-popular__inner {
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}
.np-popular__label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--np-terra);
  text-align: center;
  margin-bottom: 10px;
}
.np-popular__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.np-popular__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* 商品カード */
.np-product-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.np-product-card:hover {
  box-shadow: 0 16px 48px rgba(13,27,42,0.1);
  transform: translateY(-4px);
}
.np-product-card__link { display: block; text-decoration: none; color: inherit; }
.np-product-card__img {
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.np-product-card__img img {
  transition: transform 0.7s ease;
}
.np-product-card:hover .np-product-card__img img { transform: scale(1.05); }
.np-product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--np-terra);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 2px;
}
.np-product-card__body {
  padding: 20px 20px 24px;
}
.np-product-card__cat {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--np-terra);
  margin-bottom: 6px;
}
.np-product-card__name {
  font-family: var(--font-serif);
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.np-product-card__name span {
  font-size: 0.8em;
  font-weight: 300;
  color: var(--gray-mid);
}
.np-product-card__price {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.np-product-card__price span {
  font-size: 0.7rem;
  color: var(--gray-light);
}

/* =============================================
   05 BRAND VALUE
============================================= */
.np-value {
  background: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
}
.np-value__inner {
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}
.np-value__image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}
.np-value__image img {
  transition: transform 0.8s ease;
}
.np-value__image:hover img { transform: scale(1.03); }
.np-value__image-deco {
  position: absolute;
  top: -16px; left: -16px;
  width: 100px; height: 100px;
  border: 1px solid var(--np-green);
  border-radius: 2px;
  z-index: -1;
  pointer-events: none;
}
.np-value__label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--np-terra);
  margin-bottom: 16px;
}
.np-value__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 40px;
  letter-spacing: 0.03em;
}
.np-value__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.np-value__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--cream-dark);
}
.np-value__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.np-value__item-num {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--np-green);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.np-value__item-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.np-value__item-body {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--gray-mid);
  line-height: 1.9;
}

/* =============================================
   06 GALLERY
============================================= */
.np-gallery {
  background: var(--white);
  padding: clamp(80px, 10vw, 120px) 0;
}
.np-gallery__inner {
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}
.np-gallery__label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--np-terra);
  text-align: center;
  margin-bottom: 10px;
}
.np-gallery__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.np-gallery__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: clamp(320px, 45vw, 520px);
}
.np-gallery__item {
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}
.np-gallery__item img {
  transition: transform 0.7s ease;
}
.np-gallery__item:hover img { transform: scale(1.06); }
.np-gallery__item--wide {
  grid-row: span 2;
}

/* =============================================
   RESPONSIVE — nanpuichi
============================================= */
@media (max-width: 900px) {
  .np-story__inner {
    grid-template-columns: 1fr;
  }
  .np-story__images {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .np-category__grid { grid-template-columns: 1fr 1fr; }
  .np-category__grid .np-category__card:last-child {
    grid-column: unset;
    max-width: 100%;
    margin: 0;
  }

  .np-popular__grid { grid-template-columns: 1fr 1fr; }
  .np-popular__grid .np-product-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  .np-value__inner { grid-template-columns: 1fr; }
  .np-value__image {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .np-gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .np-gallery__item--wide {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/7;
  }
  .np-gallery__item { aspect-ratio: 1/1; }
}

@media (max-width: 600px) {
  .np-hero__actions { flex-direction: column; align-items: flex-start; }

  .np-category__grid { grid-template-columns: 1fr; }
  .np-category__grid .np-category__card:last-child {
    grid-column: 1;
    max-width: 100%;
  }

  .np-popular__grid { grid-template-columns: 1fr; }
  .np-popular__grid .np-product-card:last-child {
    grid-column: 1;
    max-width: 100%;
  }

  .np-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
  .np-gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 16/8;
  }
}