/* =========================================
   🎀 NailSalon：背景色固定（黒背景を完全消す）
========================================= */
body.nail-theme {
  background: #fff1f4 !important;  /* 淡いピンクベージュ */
  color: #555;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 0;
}

/* htmlも黒背景の影響を受けないように */
html.nail-theme {
  background: #fff1f4 !important;
}

/* =========================================
   🎀 ヘッダー（黒シアー） - 共通構成
========================================= */
body.nail-theme header.sub-header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 60px;
  display: flex;
  justify-content: flex-start; /* ← ボタン左 / タイトル右 */
  align-items: center;
  z-index: 1000;
}

/* タイトルを右寄せ（Spring / Xmas / NewYear と統一） */
body.nail-theme .nail-title {
  margin-left: auto;
  text-align: right;
  color: #e89cae;
  text-shadow: 0 0 12px rgba(232, 156, 174, 0.4);
}

body.nail-theme .subtitle {
  color: #d37d92;
  text-shadow: 0 0 10px rgba(255, 200, 210, 0.4);
}

/* =========================================
   🎀 メイン（黒の影響を完全排除）
========================================= */
body.nail-theme main {
  background: #fff1f4 !important;
  padding-top: 40px;
  position: relative;
  z-index: 1;
}

/* =========================================
   🎀 バナー画像（共通化）
========================================= */
body.nail-theme .detail-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =========================================
   🎀 テキストボックス
========================================= */
.text-box {
  background: rgba(255, 255, 255, 0.95);
  width: 75%;
  margin: 0 auto 50px;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(230, 170, 180, 0.15);
}

h2 {
  text-align: center;
  color: #d87c95;
  margin: 60px 0 30px;
  text-shadow: 0 0 8px rgba(232, 156, 174, 0.3);
}

/* =========================================
   🎀 リスト（ネイル絵文字）
========================================= */
ul li {
  list-style-type: "💅 ";
  margin-left: 40px;
  color: #555;
}

/* =========================================
   🎀 フッター（共通デザイン化）
========================================= */
body.nail-theme footer {
  background: #fff1f4 !important;
  text-align: center;
  padding: 60px 0 30px;
  border: none !important;
  box-shadow: none !important;
}

body.nail-theme .back-button.bottom {
  display: inline-block;
  text-align: center;
  padding: 14px 60px;
  font-size: 1.1rem;
  background-color: #ffb6c1;
  color: white;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  margin-top: 40px;
}

body.nail-theme .back-button.bottom:hover {
  background-color: #ff91a4;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 170, 190, 0.5);
}

/* =========================================
   🎀 スマホ調整（〜768px）
========================================= */
@media screen and (max-width: 768px) {
  header.sub-header {
    padding: 10px 20px !important;
  }

  .back-button {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .nail-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .subtitle {
    font-size: 0.9rem;
  }
}

/* =========================================
   🎀 スマホ最適化（〜480px）
========================================= */
@media (max-width: 480px) {
  .sub-header {
    padding: 40px 16px !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .nail-title {
    font-size: clamp(24px, 6vw, 32px) !important;
    text-align: center;
    margin-left: 0 !important;
  }

  .subtitle {
    font-size: 14px !important;
    text-align: center;
  }

  .back-button {
    margin: 0 auto !important;
  }
}

/* Nail サロンだけバナー画像を少し小さく */
body.nail-theme .detail-image {
  width: 80% !important;      /* ← PCでは80%で見やすいサイズに */
  max-width: 900px;           /* ← 大きくなりすぎ防止 */
  margin: 20px auto 40px;     /* ← 上にも余白 */
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* Back ボタンが文字だけになる問題の修正（最優先適用） */
body.nail-theme .back-button {
  display: inline-block !important;
  background: #e89cae !important;      /* ← ピンク系（元の色） */
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  box-shadow: 0 0 8px rgba(240, 190, 200, 0.4) !important;
}

/* Nail サロンのヘッダー内の Back ボタンが崩れる問題を修正 */
body.nail-theme header.sub-header .back-button {
  flex-shrink: 0 !important;  /* ← 潰れない */
  margin: 0 !important;
}

/* ★ ブラックシアーヘッダー：Spring Day 仕様に統一 ★ */
header.sub-header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;

  /* ←これがめちゃ重要（タイトルの余白）*/
  padding: 60px 60px 40px 60px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* タイトルは header 内で位置調整、余白は削除する */
header.sub-header h1 {
  margin: 0;
  padding: 0; /* ←これで黒シアーの続きが綺麗になる */
  text-align: right;
  width: 100%;
}

/* スマホ */
@media (max-width: 768px) {
  header.sub-header {
    padding: 30px 20px 20px 20px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  header.sub-header h1 {
    text-align: center;
  }
}

/* ================================
   💅 Nail：Backボタン調整
================================ */

body.nail-theme .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e89cae, #f4c6d1);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 12px rgba(240, 190, 200, 0.55);
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease;
}

body.nail-theme .back-button:hover {
  background: linear-gradient(90deg, #f4c6d1, #e89cae);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 190, 200, 0.8);
}

/* 下のボタン位置だけ中央寄せ */
body.nail-theme .back-button.bottom {
  margin: 40px auto 0;
}

/* ================================
   🎍🎀🎓 3ページ共通：ヘッダー配置
   NewYear / Nail / Shikaku
================================ */

/* PC（769px〜）：左ボタン・右タイトルに横並び ＝ Xmas と同じ構成 */
@media (min-width: 769px) {
  body.newyear-theme header.sub-header,
  body.nail-theme   header.sub-header,
  body.calm-theme   header.sub-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  body.newyear-theme h1.newyear-title,
  body.nail-theme   h1.nail-title,
  body.calm-theme   h1.calm-title {
    margin: 0;
    text-align: right;
  }
}

/* スマホ（〜768px）：今まで通り、縦並び＋中央揃え */
@media (max-width: 768px) {
  body.newyear-theme header.sub-header,
  body.nail-theme   header.sub-header,
  body.calm-theme   header.sub-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  body.newyear-theme h1.newyear-title,
  body.nail-theme   h1.nail-title,
  body.calm-theme   h1.calm-title {
    text-align: center;
  }
}
