/* =============================
   🌿 Calm Theme（Shikaku Support）
   Spring Day と同じ構成に統一版
   ※色は元のまま
============================= */

/* 背景（最優先でミント色に固定） */
body.calm-theme {
  background: #eefaf2 !important;
  color: #444;
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

/* --------------- */
/*     HEADER      */
/* --------------- */

body.calm-theme header.sub-header {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(10px);
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;  /* ← タイトル右寄せ */
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* タイトル */
body.calm-theme .calm-title {
  text-align: right;
  color: #4cb58a;
  text-shadow: 0 0 12px rgba(76, 181, 138, 0.4);
  margin: 0;
  padding: 0;
}

body.calm-theme .subtitle {
  font-size: 1.2rem;
  color: #3f8f6e;
  text-shadow: 0 0 10px rgba(63, 143, 110, 0.3);
}

/* --------------- */
/*  BACK BUTTON    */
/* --------------- */

body.calm-theme .back-button {
  display: inline-block !important;
  background-color: #aadbbd !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 25px !important;
  font-weight: bold;
  text-decoration: none !important;
  white-space: nowrap;
  transition: 0.3s;
}

body.calm-theme .back-button:hover {
  background-color: #93c9a9 !important;
  transform: translateY(-2px);
}

/* フッターの Back ボタン（中央配置） */
body.calm-theme .back-button.bottom {
  display: inline-block !important;
  padding: 14px 60px !important;
  border-radius: 30px !important;
  background-color: #80c9aa !important;
  margin-top: 40px;
}

body.calm-theme .back-button.bottom:hover {
  background-color: #64b497 !important;
  box-shadow: 0 0 10px rgba(120, 210, 180, 0.5);
}

/* --------------- */
/*   MAIN IMAGE    */
/* --------------- */

body.calm-theme .detail-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* --------------- */
/*   TEXT BOXES    */
/* --------------- */

.text-box {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px 25px;
  width: 75%;
  margin: 0 auto 50px auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #3fa57a;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  text-shadow: 0 0 6px rgba(63, 165, 122, 0.3);
}

/* リスト（Photoshop） */
ul li {
  list-style-type: "🌿 ";
  margin-left: 40px;
  color: #555;
}

/* --------------- */
/*     FOOTER      */
/* --------------- */

body.calm-theme footer {
  background-color: #e8f6f2 !important;
  text-align: center;
  padding: 60px 0 30px;
}

/* --------------- */
/*   RESPONSIVE    */
/* --------------- */

/* タブレット以下 */
@media (max-width: 768px) {
  header.sub-header {
    padding: 10px 20px !important;
  }
  body.calm-theme .back-button {
    padding: 8px 20px !important;
  }
  body.calm-theme .calm-title {
    font-size: 1.4rem;
  }
  .subtitle {
    font-size: 0.9rem;
  }
}

/* スマホ：縦並び構成（Springと同じ） */
@media (max-width: 480px) {

  header.sub-header {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  body.calm-theme .calm-title {
    text-align: center !important;
    font-size: clamp(24px, 7vw, 32px) !important;
  }

  .subtitle {
    text-align: center;
    font-size: 14px !important;
    width: 100%;
  }

  /* Back ボタン中央寄せ */
  .back-button {
    margin: 0 auto !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;
  }
}

/* calm-theme のブラックシアー（春と同じ高さに） */
body.calm-theme header.sub-header {
  padding: 14px 20px !important; /* spring と同じくらいに調整 */
  min-height: 70px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================================
   🎍🎀🎓 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;
  }
}
