/* ================================
   🎍 New Year Lottery – Base Style
   （春・Xmas 同様の構成に統一）
=================================*/

/* ページ全体背景 */
body.newyear-theme {
  background: linear-gradient(180deg, #fff8e1 0%, #ffe4e1 100%) !important;
  color: #443;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.9;
  margin: 0;
  padding: 0;
}

/* ------------------------------
   🎍 ヘッダー（黒シアー共通デザイン）
-------------------------------*/
body.newyear-theme header.sub-header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  padding: 18px 60px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* タイトル */
.newyear-title {
  color: #d62828;
  text-shadow: 0 0 12px rgba(200, 80, 50, 0.5);
  text-align: right;
  margin: 0;
  padding: 0;
}

.subtitle {
  display: block;
  color: #b91c1c;
  margin-top: 6px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* 戻るボタン（ヘッダー用） */
.back-button {
  display: inline-block;
  background: linear-gradient(90deg, #f6b73c, #f1a208);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  white-space: nowrap;
}

.back-button:hover {
  background: linear-gradient(90deg, #f1a208, #f6b73c);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 200, 80, 0.6);
}

/* ------------------------------
   🎍 メイン
-------------------------------*/

.work-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* バナー画像（完全レスポンシブ） */
body.newyear-theme .detail-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
}

/* セクションタイトル */
h2 {
  color: #c62828;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* テキストボックス */
.text-box {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 20px 25px;
  margin: 0 auto 50px auto;
  width: 75%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(200, 80, 50, 0.12);
}

/* 本文 */
p {
  font-size: 1rem;
  color: #333;
}

/* 使用ツール 絵文字 */
ul li {
  list-style-type: "🎍 ";
  margin-left: 40px;
  color: #555;
}

/* ------------------------------
   🎍 フッター
-------------------------------*/

body.newyear-theme footer {
  background-color: #fff4dd;
  text-align: center;
  padding: 60px 0 30px;
  border: none;
}

/* フッターのBackボタン */
body.newyear-theme .back-button.bottom {
  padding: 14px 60px;
  font-size: 1.1rem;
  background-color: #f6b73c;
  border-radius: 30px;
  color: white;
  margin-top: 40px;
}

body.newyear-theme .back-button.bottom:hover {
  background-color: #f1a208;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 180, 60, 0.6);
}

/* ------------------------------
   📱 スマホ調整
-------------------------------*/

@media (max-width: 768px) {
  header.sub-header {
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px !important;
  }

  .back-button {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  .newyear-title {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.3;
    text-align: center;
  }

  .subtitle {
    text-align: center;
    font-size: 14px;
  }

  .detail-image {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  header.sub-header {
    padding: 16px 12px !important;
  }

  .newyear-title {
    font-size: clamp(20px, 7vw, 26px);
  }

  .back-button {
    padding: 6px 14px;
  }
}

/* ------------------------------
   🎍 背景最強上書き（黒背景防止）
-------------------------------*/
body.newyear-theme {
  background: linear-gradient(180deg, #fff8e1 0%, #ffe4e1 100%) !important;
}

/* 🎍 New Year Lottery タイトル右寄せ */
body.newyear-theme header.sub-header {
  justify-content: flex-start; /* ボタン → タイトル の並びはそのまま */
}

/* タイトルを右端へ寄せる */
body.newyear-theme .newyear-title {
  margin-left: auto;   /* ← これが右寄せの決定打！ */
  text-align: right;   /* ← テキスト自体も右揃え */
}

/* ★ ブラックシアーヘッダー：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;
  }
}

/* ================================
   🎍🎀🎓 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;
  }
}
