/* =====================================================
   エクセルーラ TOP ページ スタイル（v3.2対応）
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
  --color-primary: #f18d4c;
  --color-primary-hover: #d47a45;
  --color-bg-pink: #ffd9c4;
  --color-bg-pink-light: #fce5dd;
  --color-cosme-mint: #DDEFEA;
  --color-cosme-mint-dark: #49B5A9;
  --color-text: #333;
  --color-text-light: #666;
  --color-border: #eaeaea;
  --font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --container-width: 1100px;
  --spacing-section: 80px;
  --spacing-section-sp: 50px;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----- Container ----- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Section Common ----- */
.section {
  padding: var(--spacing-section) 0;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

/* ----- Utility ----- */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

/* =====================================================
   Placeholder System
   画像準備前のプレースホルダー表示
   ===================================================== */

.placeholder {
  position: relative;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 50%, #e0e0e0 100%);
  display: none; /* 初期非表示（リロード時のちらつき防止） */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #999;
  overflow: hidden;
}

.placeholder::before {
  content: attr(data-label);
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 8px;
}

.placeholder::after {
  content: attr(data-filename) " | " attr(data-size) " | " attr(data-format);
  display: block;
  font-size: 11px;
  color: #666;
  background: rgba(255,255,255,0.8);
  padding: 4px 12px;
  border-radius: 4px;
  text-align: center;
}

/* プレースホルダーはエラー時のみ表示（JSで .is-visible を付与） */
.placeholder.is-visible {
  display: flex !important;
}

/* 画像読み込み失敗時は画像を非表示にしてプレースホルダーを表示 */
img.is-error {
  display: none !important;
}

/* picture要素内の画像がエラーの場合 */
picture.is-error {
  display: none !important;
}

/* Placeholder sizes - アスペクト比ベース（現行サイト準拠） */
.placeholder--kv {
  width: 100%;
  aspect-ratio: 1920 / 650;  /* PC KV: 現行サイト相当 */
}

.placeholder--concept {
  width: 100%;
  aspect-ratio: 1920 / 650;  /* PC Concept: KVと同サイズ */
}

.placeholder--concept-sp {
  width: 100%;
  aspect-ratio: 750 / 900;   /* SP Concept: KVと同サイズ */
}

.placeholder--news-card {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 150px;
}

.placeholder--products {
  width: 100%;
  height: 300px;
}

.placeholder--cosme-logo {
  width: 100px;
  height: 30px;
  min-height: 30px;
  border: 1px dashed #999;
}

/* =====================================================
   Header（2段構成）
   ===================================================== */

.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 上段：ロゴ + CTAボタン */
.header__top {
  padding: 15px 0;
}

.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  display: block;
}

.header__cta {
  flex-shrink: 0;
}

/* 下段：グロナビ */
.header__bottom {
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
}

.header__nav {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header__nav-item {
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.3s;
  white-space: nowrap;
  color: var(--color-text);
}

.header__nav-item:hover {
  opacity: 0.7;
}

.header__menu-btn {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform 0.3s;
}

.header__menu-btn span:nth-child(1) { top: 0; }
.header__menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__menu-btn span:nth-child(3) { bottom: 0; }

/* .btn-primary は index_202602.css で定義 - 重複削除 */

/* =====================================================
   KV (Hero) - slick slider対応
   ===================================================== */

.kv {
  position: relative;
  background: var(--color-bg-pink);
}

.kv__slider {
  position: relative;
}

.kv__slide {
  outline: none;
}

.kv__image {
  width: 100%;
  height: auto;
  display: block;
}

/* slick dots */
.kv .slick-dots {
  bottom: 20px;
}

.kv .slick-dots li button:before {
  font-size: 12px;
  color: #fff;
  opacity: 0.5;
}

.kv .slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fff;
}

/* =====================================================
   Concept Introduction（横ぶち抜き・CTAオーバーレイ）
   ===================================================== */

.concept-intro {
  position: relative;
  background: #fff;
}

.concept-intro__visual {
  position: relative;
  width: 100%;
}

.concept-intro__svg {
  width: 100%;
  height: auto;
  display: block;
}

.concept-intro__cta {
  position: absolute;
  bottom: 55px; /* 40px → 55px（15px上げ） */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0; /* 初期非表示（画像読み込み後にJSで表示） */
  transition: opacity 0.3s;
}

.concept-intro__cta.is-visible {
  opacity: 1;
}

/* エクセルーラとはCTA: テキストセンタリング+矢印右端 */
.concept-intro__cta .btn-primary {
  position: relative;
  justify-content: center; /* テキストをセンタリング */
  padding-right: 40px; /* 矢印のスペース確保 */
  width: 300px;
}

.concept-intro__cta .btn-primary::after {
  position: absolute;
  right: 16px; /* 右端に固定 */
}

/* プレースホルダー上でもCTAを見やすく */
.concept-intro__visual .placeholder + .concept-intro__cta,
.concept-intro__visual .placeholder.is-visible + .concept-intro__cta {
  position: absolute;
}

/* =====================================================
   NEWS & CAMPAIGN - slick slider対応
   ===================================================== */

.news {
  /* セクション全体は背景なし */
}

/* 見出し部分：白背景 */
.news__header {
  background: #fff;
  padding: 25px 0 5px;
  text-align: center;
}

/* カード部分：ピンク背景 */
.news__body {
  background: var(--color-bg-pink-light);
  padding: 40px 0 80px;
  overflow: hidden;
  position: relative;
}

/* 左右グラデーションオーバーレイ（コンテンツ幅外をフェードアウト） */
.news__body::before,
.news__body::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.news__body::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-pink-light) 0%, transparent 100%);
}

.news__body::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-pink-light) 0%, transparent 100%);
}

.news__slider {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
}

.news__card {
  padding: 0 6px;
  outline: none;
  transition: opacity 0.3s, transform 0.3s;
}

/* 中央以外のカードにシャドウ（薄暗く）効果 */
.news__slider .slick-slide {
  opacity: 0.5;
  transform: scale(0.95);
  transition: opacity 0.3s, transform 0.3s;
}

.news__slider .slick-slide.slick-active {
  opacity: 1;
  transform: scale(1);
}

.news__card a {
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 0; /* 角丸なし・四角 */
  overflow: hidden;
  background: #fff;
  border: 10px solid #fff; /* 白枠追加 */
}

.news__card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news__card-image {
  width: 100%;
  height: auto;
  display: block;
}

/* slick dots */
.news__slider .slick-dots {
  bottom: -40px;
  display: flex !important;
  justify-content: center;
  gap: 16px;
  width: 100%;
  left: 0;
  right: 0;
}

.news__slider .slick-dots li {
  width: 12px;
  height: 12px;
  margin: 0;
}

.news__slider .slick-dots li button {
  width: 12px;
  height: 12px;
  padding: 0;
}

.news__slider .slick-dots li button:before {
  font-size: 12px;
  width: 12px;
  height: 12px;
  color: #ccc;
  opacity: 1;
}

.news__slider .slick-dots li.slick-active button:before {
  color: var(--color-primary);
  opacity: 1;
}

/* =====================================================
   PRODUCTS
   ===================================================== */

.products {
  padding: 25px 0 60px;
  background: #fff;
}

.products__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.products__banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.products__banner:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.products__banner--warm {
  background: linear-gradient(135deg, #ffeee6 0%, #ffe0d0 100%);
}

.products__banner--cool {
  background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 100%);
}

.products__banner-visual {
  display: block;
}

.products__banner-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG内CTA領域の透明クリッカブルリンク */
.products__banner-clickable {
  position: absolute;
  /* PC (1000x300): rect x=191.4 y=184 w=250 h=40 */
  left: 19.14%;
  top: 61.33%;
  width: 25%;
  height: 13.33%;
  z-index: 10;
  cursor: pointer;
}

/* =====================================================
   下部CTA群（SVGバナー3列）
   ===================================================== */

.bottom-cta {
  padding: 40px 20px;
  background: #fff;
}

.bottom-cta__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  text-align: center;
}

.bottom-cta__item {
  display: inline-block;
  position: relative;
  margin: 0 25px;
}

.bottom-cta__item img {
  width: 30vw;
  max-width: 300px;
  height: auto;
}

/* 1000px以上：現行サイト準拠 */
@media only screen and (min-width: 1000px) {
  .bottom-cta__item img {
    width: 25vw;
    max-width: 400px;
  }
}

.bottom-cta__item a {
  display: block;
  transition: opacity 0.3s;
}

.bottom-cta__item a:hover {
  opacity: 0.8;
}

/* 店舗バナー：全体がプルダウントリガー */
.bottom-cta__item--shop {
  position: relative;
  cursor: pointer;
}

.bottom-cta__item--shop:hover {
  opacity: 0.8;
}

.bottom-cta__shop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bottom-cta__shop-overlay form {
  width: 100%;
  height: 100%;
  margin: 0;
}

.bottom-cta__shop-overlay select {
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* =====================================================
   注意喚起導線ボタン
   ===================================================== */

.precautions {
  padding: 40px 20px 0;
  background: #fff;
}

.precautions__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
  padding: 16px 30px;
  border: 1px solid var(--color-text);
  border-radius: 0;
  font-size: 14px;
  transition: background 0.3s;
}

.precautions__btn:hover {
  background: #f5f5f5;
}

.precautions__arrow {
  font-size: 16px;
  font-weight: bold;
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
  background: #fff;
  padding: 20px 0 40px;
}

.footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 12px;
}

.footer__nav a {
  transition: opacity 0.3s;
}

.footer__nav a:hover {
  opacity: 0.7;
}

.footer__nav-divider {
  color: #999;
}

.footer__sns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 80px;
}

.footer__sns a {
  display: block;
  transition: opacity 0.3s;
}

.footer__sns a:hover {
  opacity: 0.7;
}

.footer__sns img {
  width: 32px;
  height: 32px;
}

.footer__logo {
  margin-bottom: 20px;
}

.footer__logo img {
  width: 120px;
  height: auto;
}

.footer__copyright {
  font-size: 11px;
  color: var(--color-text-light);
  margin: 0;
}

/* =====================================================
   Modal
   ===================================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.is-active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}

.modal__content {
  position: relative;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.modal__close:hover {
  color: #333;
}

.modal__title {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 30px;
}

.modal__shop-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.modal__shop-list li a {
  display: block;
  background: #f5f5f5;
  border-radius: 4px;
  text-align: center;
  transition: background 0.3s;
}

.modal__shop-list li a:hover {
  background: #eaeaea;
}

.modal__note {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-light);
  margin: 0;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1024px) {
  .header__nav {
    gap: 26px;
  }

  .header__nav-item {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-section: var(--spacing-section-sp);
  }

  .header__nav {
    display: none;
  }

  .header__menu-btn {
    display: block;
  }

  .placeholder--kv {
    aspect-ratio: 750 / 900;  /* SP KV: 現行サイト相当 */
  }

  /* SP: concept SVG 上120px・下100pxトリミング */
  .concept-intro__visual.sp-only {
    overflow: hidden;
  }

  .concept-intro__visual.sp-only .concept-intro__svg {
    margin-top: -16%;    /* 上120px切り: 120/750 */
    margin-bottom: -13.33%; /* 下100px切り: 100/750 */
  }

  .concept-intro__cta {
    bottom: 14.7%; /* トリミング後の底辺から100px: 100/680 */
  }

  .concept-intro__cta .btn-primary {
    width: auto; /* SPはPC用の300px指定をリセット */
  }

  .news__header {
    padding: 15px 0 0;
  }

  .news__body {
    padding: 30px 0 40px;
  }

  .news__body::before,
  .news__body::after {
    width: 30px;
  }

  .news__slider {
    padding: 0 20px;
  }

  .news__slider .slick-prev {
    left: 10px;
  }

  .news__slider .slick-next {
    right: 10px;
  }

  .products {
    padding: 15px 0 40px;
  }

  /* SP (375x400): rect x=35.4 y=329.6 w=304.2 h=48.7 */
  .products__banner-clickable {
    left: 9.44%;
    top: 82.4%;
    width: 81.12%;
    height: 12.18%;
  }

  .bottom-cta__list {
    flex-direction: column;
    gap: 15px;
  }

  .bottom-cta__item {
    margin: 0;
  }

  .bottom-cta__item img {
    width: 60vw;
    min-width: 300px;
    max-width: none;
  }

  .section-title {
    font-size: 20px;
  }

  .modal__shop-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .concept-intro__cta {
    bottom: 20px;
  }

  /* .btn-primary のレスポンシブは index_202602.css で定義 */
}
