/* ===========================================================
   KARiN. ~Sports & Beauty~
   News Detail Style（お知らせページ）
   Theme: Clean × Calm × Trust
   Note: デザインは変更せず、構造と重複を整理
   Last updated: 2025-11
=========================================================== */

/* 共通スタイル継承（blog_style.css） */
@import url("blog_style.css");

/* ------------------------------
   🩵 ベース設定
------------------------------ */
body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  background-color: #fafafa;
  color: #1E3A5F;
  line-height: 1.9;
  margin: 0;
  padding: 40px 0;
}

/* ------------------------------
   🩵 メインラッパー
------------------------------ */
.news-detail {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* ------------------------------
   🩵 タイトル & 日付
------------------------------ */
.news-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 12px;
  border-bottom: 2px solid #e5e8ef;
  padding-bottom: 10px;
}

.news-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ------------------------------
   🩵 本文エリア
------------------------------ */
.news-body {
  font-size: 1rem;
  color: #1E3A5F;
}

.news-body p {
  margin-bottom: 20px;
  line-height: 1.85;
}

.news-body h2 {
  font-size: 1.25rem;
  color: #1E3A5F;
  border-left: 4px solid #A7C7E7;
  padding-left: 12px;
  margin: 36px 0 16px;
  font-weight: 600;
}

.news-body h3 {
  font-size: 1.1rem;
  color: #244670;
  margin: 28px 0 12px;
  font-weight: 600;
}

/* ------------------------------
   🩵 リスト
------------------------------ */
.news-body ul {
  background: #f8fafc;
  padding: 16px 22px;
  border-radius: 10px;
  margin: 20px 0 28px;
  border-left: 4px solid #c1d1e8;
}

.news-body ul li {
  margin-bottom: 6px;
  line-height: 1.8;
}

/* ------------------------------
   🩵 画像
------------------------------ */
.news-body img {
  width: 100%;
  max-width: 100%;
  margin: 28px auto;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* ------------------------------
   🩵 CTAリンク / フッター
------------------------------ */
.news-footer {
  text-align: center;
  margin-top: 48px;
}

.home-return-btn {
  background: #ffffff;
  color: #1E3A5F;
  border: 1px solid #d2d8e0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

.home-return-btn img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.home-return-btn:hover {
  background: #f5f7fa;
  transform: translateY(-2px);
}

/* ===========================================================
   📱 レスポンシブデザイン
=========================================================== */

/* --- タブレット (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .news-detail {
    margin: 60px auto;   /* ←左右はautoのまま中央に */
    padding: 36px 24px;
    max-width: 90%;      /* ←横幅は縮める */
  }

  .news-title {
    font-size: 1.6rem;
  }

  .news-body h2 {
    font-size: 1.2rem;
  }
}

/* --- スマホ (max-width: 768px) --- */
@media (max-width: 768px) {
  .news-detail {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .news-title {
    font-size: 1.5rem;
  }

  .news-body {
    font-size: 0.95rem;
  }

  .news-body h2 {
    font-size: 1.1rem;
  }

  .btn-back {
    width: 100%;
    justify-content: center;
  }
}

/* --- スマホ小 (max-width: 480px) --- */
@media (max-width: 480px) {
  .news-detail {
    padding: 22px 16px;
    border-radius: 10px;
  }

  .news-title {
    font-size: 1.3rem;
  }

  .news-date {
    font-size: 0.8rem;
  }

  .news-body {
    font-size: 0.9rem;
  }

  .news-body h2 {
    font-size: 1rem;
    border-left-width: 4px;
  }

  .news-footer .btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
}

/* =========================================================
   🗞 お知らせ一覧（news.html）
========================================================= */

.news-list {
  max-width: 900px;
  margin: 120px auto 80px;
  padding: 0 20px;
}

.news-list-title {
  font-size: 28px;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 30px;
  text-align: left;
}

.news-list-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  border-bottom: 1px solid #e6e6e6;
  padding: 18px 0;
}

.news-link {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  color: #1E3A5F;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-link:hover {
  opacity: 0.7;
}

.news-date {
  font-size: 14px;
  color: #777;
  min-width: 100px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: #1E3A5F;
  flex: 1;
}

.news-footer-btn {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 480px) {
  .news-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .news-date {
    min-width: auto;
  }
}

/* =========================================================
   📝 お知らせ詳細：戻るボタン
========================================================= */

.news-detail-buttons {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.news-detail-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #1E3A5F;
  padding: 14px 26px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.news-detail-buttons .btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .news-detail-buttons {
    flex-direction: column;
    gap: 14px;
  }
  .news-detail-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   🏠 お知らせ一覧：ホームに戻るボタン
========================================================= */

.news-list-footer {
  margin: 40px 0 60px;
  display: flex;
  justify-content: center;
}

.news-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #1E3A5F;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.news-home-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* スマホ（幅480px以下） */
@media (max-width: 480px) {
  .news-list-footer {
    margin-top: 32px;
  }
  .news-home-btn {
    width: 100%;
    justify-content: center;
  }
}
