/* ============================================================
   sections.css
   moissmois モイズモイス ― コンテンツセクション スタイル
   ============================================================

   【管理ルール】
   ✅ このファイルに書くもの：
      - 商品カルーセル・購入セクション（.product-purchase-section）
      - レビューセクション（.reviews-section・.review・.reply）
      - レビュースクロールバー（#reviews::-webkit-scrollbar）
      - 新着情報セクション（.news-section・.news-list・.news-item）
      - ニュースモーダル（.news-modal）
      - FAQ（.faq-section-html）
      - 使用方法（.usage-section-html）
      - 全件リンク（.section-all-link・.all-link）
      - 上記のレスポンシブ対応

   ❌ このファイルに書かないもの：
      → style.css に書く：
        ヘッダー・ナビ・ドロワー・ヒーロー・
        フッター・about-product・feature系・modal系

   【このファイルの構成】
      1. 商品カルーセル・購入
      2. レビュー
      3. 新着情報
      4. ニュースモーダル
      5. FAQ
      6. 使用方法
      7. 全件リンク（section-all-link）
      8. レスポンシブ
      9. スクロールバー
   ============================================================ */

/* ====================================
   sections.css
   商品購入・レビュー・ニュースセクション固有スタイル
   （style.cssと重複しないものだけ）
   ==================================== */

/* ==========================================================================
   PRODUCT PURCHASE SECTION - カルーセル＋購入エリア
   ========================================================================== */
.product-purchase-section {
  background: #fff;
  padding: 80px 20px 60px;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* カルーセル */
.carousel {
  max-width: 500px;
  flex: 1 1 400px;
  text-align: center;
  position: relative;
  margin-top: 10px;
}

#main-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease-in-out;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.thumbnails img {
  width: 90px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border 0.2s;
  loading: eager;
}

.thumbnails img:hover,
.thumbnails img.active {
  transform: scale(1.1);
  border: 2px solid #b6d5f5;
}

/* 商品情報 */
.product-info {
  max-width: 650px;
  flex: 1 1 580px;
}

.product-info h2 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}

.product-info h3 {
  font-size: 1.5em;
  font-weight: 100;
  color: #333;
  margin-bottom: 30px;
}

.product-points {
  list-style: disc;
  font-size: 1.15em;
  padding-left: 30px;
  margin: 10px 0;
}

.product-intro {
  font-size: 1.2em;
  padding: 10px;
}

.product-intro2 {
  font-size: 1.2em;
  margin: 20px 0;
  line-height: 1.8;
}

.product-points li {
  margin: 5px 0;
  color: #3b2f2a;
}

.price {
  font-size: 1.2em;
  color: #000;
  margin-top: 10px;
  font-weight: 300;
}

.buy-button {
  margin: 12px 0;
  display: block;
  width: 100%;
  height: 60px;
  border-radius: 4px;
  border: none;
  background-color: #534743;
  font-size: 1.2em;
  color: #fff;
  line-height: 60px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.buy-button:hover {
  background: #534743;
}

/* ==========================================================================
   REVIEWS SECTION - レビュー
   ========================================================================== */


.reviews-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* 評価サマリー */
.rating-summary {
  margin: 20px 0;
}

.rating-average {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #858585;
}

.rating-distribution {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.bar-label {
  color: #F8D000;
  font-size: 20px;
  width: 80px;
  flex-shrink: 0;
}

.bar-container {
  flex: 1;
  background: #e8e8e8;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: #F8D000;
  transition: width 0.3s ease;
}

.bar-percentage {
  min-width: 40px;
  text-align: right;
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}

/* レビュー個別 */
/* =========================
   レビューセクション全体
========================= */
.reviews-section {
  padding: 150px 20px 100px;
  background: #fff;
}

/* =========================
   1レビュー
========================= */
.review {
  padding: 30px 0px 60px;
  border-bottom: 1px solid #eee;
}

/* 名前 */
.review-author-name {
  font-weight: 600;
  font-size: 1.15em;
  color: #222;
}

/* 星 */
.review-rating {
  color: #F8D000;
  font-size: 23px;
  margin: 5px 0;
}

/* 日付 */
.review-date {
  font-size: 1em;
  color: #999;
  margin-bottom: 10px;
}

/* 本文 */
.review-body p {
  font-size: 1.2em;
  line-height: 1.9;
  color: #333;
}

/* =========================
   返信（吹き出し）
========================= */
.reply {
  background: #EEE;
  padding: 18px;
  border-radius: 8px;
  margin-top: 15px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 吹き出し三角 */
.reply::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 25px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #EEE transparent;
  z-index: 2;
}

/* 返信ラベル（moissmoisなど） */
.reply-author {
  display: inline-block;
  padding: 5px 0px;
  border-radius: 20px;
  font-size: 1.15em;
  color: #666;
  margin-bottom: 10px;
}

/* 返信本文 */
.reply-body {
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
}

/* 返信画像 */
.reply-image img {
  max-width: 120px;
  margin-top: 10px;
  border-radius: 6px;
}

/* =========================
   スマホ最適化
========================= */
@media (max-width: 768px) {

  .review {
    padding: 20px 0px;
  }

  .review-body p {
    font-size: 1.35em;
  }

  .reply {
    padding: 15px;
  }

  .reply::before {
    left: 20px;
  }

}

/* ==========================================================================
   NEWS SECTION - 新着情報
   ========================================================================== */
.news-section {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
}

.news-section h2 {
  font-size: 1.6em;
  color: #534743;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #9e9e9e;
  text-align: center;
  font-weight: 800;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 320px;       /* 約3件分の高さ */
  overflow-y: auto;
  overscroll-behavior: contain; /* 親ページのスクロールに波及しない */
  /* スクロールバーのスタイル */
  scrollbar-width: none; /* Firefox */
}
.news-list::-webkit-scrollbar {
  display: none; /* スクロールバー非表示 */
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 100px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.news-item:hover { background-color: #f8f9fa; }

.news-item:last-child { border-bottom: none; }

.news-icon {
  flex-shrink: 0;
  font-size: 16px;
  width: 28px;
  text-align: center;
}

.news-date {
  flex-shrink: 0;
  font-size: 1.2em;
  color: #666;
  font-weight: 300;
  min-width: 120px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.news-content { flex: 1; }

.news-title {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 1.2em;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-badge-new {
  display: inline-block;
  background-color: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;.news-list
  margin-left: 6px;
  vertical-align: middle;
}

.news-buttons {
  text-align: center;
}

.news-buttons .btn {
  padding: 10px 24px;
  background: #fff;
  color: #424242;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
  border-radius: 4px;
  font-family: inherit;
}

.news-buttons .btn:hover { background: #f5f5f5; }

/* ==========================================================================
   NEWS MODAL - ニュースモーダル
   ========================================================================== */
.news-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.news-modal[aria-hidden="false"] { display: flex; }

.news-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.news-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  font-family: inherit;
}

.news-modal-close:hover { color: #333; }

.modal-image-wrap {
  display: none;
  margin: 20px 0;
  text-align: center;
}

.modal-image-wrap.show { display: block; }

.modal-image-wrap img {
  max-width: 100%;
  border-radius: 8px;
}

#modal-date {
  color: #888;
  font-size: 0.9em;
}

#modal-title {
  margin-top: 0;
  font-size: 1.25em;
  padding-right: 30px;
}

.modal-body {
  font-size: 1.25em;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
  margin-bottom: 20px;
}

.modal-actions {
  text-align: center;
  margin-top: 20px;
}

.modal-actions .btn {
  padding: 12px 28px;
  background: #534743;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
  display: none;
  font-family: inherit;
}

.modal-actions .btn:hover { background: #7a6058; }

.modal-actions .btn.show { display: inline-block; }

/* ==========================================================================
   RESPONSIVE - セクション固有のレスポンシブ
   ========================================================================== */

/* タブレット */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-container {
    gap: 30px;
  }


  .product-info {
    max-width: 460px;
  }
}

/* スマホ */
@media (max-width: 768px) {
  .product-purchase-section {
    padding: 80px 15px 50px;
  }

  .product-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .carousel,
  .product-info {
    max-width: 100%;
    width: 100%;
    flex: none;
    line-height: 1.8;
  }

  #main-image {
    width: 98%;
    margin: 0 auto;
    display: block;
  }

  .thumbnails {
    gap: 15px;
    flex-wrap: wrap;
  }

  .thumbnails img {
    width: 80px;
    height: 72px;
  }

  .product-info h2 {
    font-size: 1.2em;
    text-align: center;
  }

  .buy-button {
    font-size: 1.1em;
    height: 54px;
    line-height: 54px;
  }

  /* レビュー */
  .reviews-section {
    padding: 40px 15px;
  }

  .review-author-name { font-size: 1.15em; }
  .review-body        { font-size: 13px; }

  /* ニュース */
  .news-section {
    padding: 0 14px 0px;
    overflow: hidden;        /* 横はみ出し防止 */
  }

  .news-list {
    max-height: 435px; /* スマホ3件分 */
    overflow-y: auto;
    overscroll-behavior: contain;
    width: 100%;
  }

  /* ─ スマホ: news-item ─────────────────────────
     行1: 【アイコン】日付
     行2: タイトル
     行3: 抜粋
  ─────────────────────────────────────────── */
  .news-item {
    flex-direction: column;  /* 全体は縦並び */
    gap: 2px;
    padding: 14px 8px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  /* 行1: .news-meta がアイコン+日付を横並びで表示 */
  .news-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
  }
  .news-icon {
    font-size: 15px;
    width: auto;
    flex-shrink: 0;
  }
  .news-date {
    font-size: 1.1em;
    min-width: auto;
  }
  /* 行2,3: コンテンツ */
  .news-content {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    margin-top: 4px;
  }
  .news-title {
    font-size: 1.1em;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    margin-bottom: 2px;
  }
  .news-excerpt {
    font-size: 1.1em;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .news-modal-content { padding: 20px; }
}

/* 小型スマホ */
@media (max-width: 480px) {
  .thumbnails img {
    width: 68px;
    height: 64px;
  }

  .buy-button {
    font-size: 1.2em;
    height: 50px;
    line-height: 50px;
  }
}


/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section-html {
  padding: 80px 20px;
  background: #fff;
}

.faq-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  color: #333;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 40px;
  position: relative;
  line-height: 1.5;
}

.faq-question::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  background: #E91E63;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: 700;
}

.faq-answer {
  color: #555;
  font-size: 1.1em;
  line-height: 1.8;
  padding-left: 40px;
  margin: 0;
  position: relative;
}

.faq-answer::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  background: #536DFE;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: 700;
}

/* ==========================================================================
   USAGE SECTION
   ========================================================================== */
.usage-section-html {
  padding: 20px 20px;
  background: #f9f9f9;
}

.usage-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.usage-step {
  background: #fff;
  padding: 28px 18px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.usage-step:hover {
  transform: translateY(-4px);
}

.step-num {
  display: inline-block;
  background: #534743;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.usage-step h3 {
  font-size: 1.3em;
  color: #333;
  margin-bottom: 10px;
}

.usage-step p {
  color: #666;
  font-size: 1.1em;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 768px) {
  .faq-section-html {
    padding: 60px 15px;
  }
  .usage-section-html {
    padding: 60px 15px;
  }
  .usage-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   REVIEWS SCROLLBAR - レビューコンテナのスクロールバーデザイン
   ========================================================================== */
#reviews::-webkit-scrollbar {
  width: 7px;
}
#reviews::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #7a6058 50%, #534743);
  border-radius: 5px;
}
#reviews::-webkit-scrollbar-track {
  background: #ede8e4;
}

/* ==========================================================================
   全件リンク（一覧はこちら）
   ========================================================================== */
.section-all-link {
  padding-top: 20px;
  text-align: right;
}
.all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7d7d7d;
  font-size: 1.05em;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: .05em;
  transition: all .2s;
}
.all-link:hover {
  color: #a3a2a2;
}
.all-link-arrow {
  transition: transform .2s;
}
.all-link:hover .all-link-arrow {
  transform: translateX(4px);
}
