﻿/* =======================================
   目次・全体スタイル（完全版）
   ======================================= */

/* ===== ベース ===== */
html { scroll-behavior: smooth; }
img { width: 100%; }
p { margin: 0; padding: 0; }

#cprt_pagewrap {
  width: 1200px;
  margin: auto;
  font-size: 18px;
  font-weight: 500;
}
@media screen and (max-width: 767px) {
  #cprt_pagewrap { width: 100%; font-size: 3.2vw; }
}

/* ===== フォント ===== */
.zen-maru-gothic-regular { font-family: "Zen Maru Gothic", serif; font-weight: 400; }
.zen-maru-gothic-medium  { font-family: "Zen Maru Gothic", serif; font-weight: 500; }
.zen-maru-gothic-bold    { font-family: "Zen Maru Gothic", serif; font-weight: 700; }
.zen-maru-gothic-black   { font-family: "Zen Maru Gothic", serif; font-weight: 900; }

/* =======================================
   目次エリア
   ======================================= */

/* 目次ボックス */
.toc-box {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
}

/* タイトル */
.toc-title {
  position: relative;
  font-size: 36px;
  font-weight: 900;
  color: #594AA9;
  text-align: center;
  margin: 60px 0 30px;
  letter-spacing: 2px;
  line-height: 1.4;
  text-shadow: 0 0 6px rgba(255,255,255,0.9), 2px 2px 4px rgba(0,0,0,0.3);
}
.toc-title::before,
.toc-title::after {
  content: "";
  display: block;
  height: 4px;
  width: 70%;
  margin: 12px auto;
  border-radius: 2px;
  background: linear-gradient(to right, #8fd19e, #594AA9, #8fd19e);
}
.toc-title::before { margin-bottom: 15px; }
.toc-title::after  { margin-top: 15px; }

@media screen and (max-width: 768px) {
  .toc-title { font-size: 26px; margin: 40px 0 20px; }
  .toc-title::before,
  .toc-title::after { width: 90%; height: 3px; }
}

/* 今月の脳トレボタン */
.toc-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  font-size: 28px;
}
.toc-list a {
  display: inline-block;
  padding: 14px 26px;
  background: #fff;
  color: #2e7d32;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid #8fd19e;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.toc-list a:hover {
  background: #a5e6b6;
  color: #000;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ジャンルボタン（おしゃれ版） */
.toc-genre {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toc-genre li a {
  display: inline-block;
  padding: 14px 28px;
  font-size: 28px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  background-clip: padding-box;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ジャンルカラー（グラデーション＋立体感） */
.toc-genre li a[href="#genre-ano"]    { 
  background: linear-gradient(145deg, #fce4e4 0%, #f9d6d6 100%); 
  color: #c0392b; 
  border: 1px solid #e6b0aa; 
}
.toc-genre li a[href="#genre-cal"]    { 
  background: linear-gradient(145deg, #e8f4fc 0%, #d0eafc 100%); 
  color: #2980b9; 
  border: 1px solid #b0d4e6; 
}
.toc-genre li a[href="#genre-music"]  { 
  background: linear-gradient(145deg, #fff3e8 0%, #ffe2cc 100%); 
  color: #d35400; 
  border: 1px solid #f0b27a; 
}
.toc-genre li a[href="#genre-word"]   { 
  background: linear-gradient(145deg, #f4f8e8 0%, #dff0d6 100%); 
  color: #27ae60; 
  border: 1px solid #b7d5a0; 
}

/* ホバー時 */
.toc-genre li a:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .toc-list { flex-direction: column; gap: 15px; font-size: 18px; padding: 0 20px; }
  .toc-list a { width: 100%; padding: 16px; text-align: center; font-size: 18px; }
  .toc-genre { flex-direction: column; gap: 10px; }
  .toc-genre li a { width: 100%; padding: 12px; font-size: 4.5vw; }
}

/* =======================================
   コンテンツ別スタイル
   ======================================= */

/* ファーストブロック */
#cprt_firstblock {
  background: url("/img/usr/noutore_contents/bg02.jpg") no-repeat center bottom;
  background-size: 100%;
  padding: 0 0 20px;
}
#cprt_firstblock h2 {
  width: 950px;
  margin: 100px auto 0;
}
#cprt_firstblock .cprt_txtbox {
  margin: 60px auto 0;
  text-align: center;
  font-size: 20px;
  line-height: 2.25em;
}
@media screen and (max-width: 767px) {
  #cprt_firstblock { background-size: cover; background-position: right bottom; }
  #cprt_firstblock h2 { width: 100%; margin: 50px auto 0; }
  #cprt_firstblock .cprt_txtbox { margin: 30px auto 0; font-size: 3.8vw; width: 95%; line-height: 1.8em; }
}

/* メッセージ */
#cprt_message .cprt_message_txt {
  font-size: 20px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  #cprt_message .cprt_message_txt { font-size: 15px; }
}

/* FAQ */
#goods_detail_faq .faq_box_tit:before { background: rgb(100,197,99); }
#goods_detail_faq .faq_box_tit:after  { color: rgb(100,197,99); }
#goods_detail_faq .faq_box_in:before  { top: 50%; }
#goods_detail_faq .faq_box li.is-active .faq_box_in { margin: 10px 0 0; }
@media screen and (max-width: 767px) {
  #goods_detail_faq .faq_box li.is-active .faq_box_in { margin: 0; font-size: 4.5vw; }
}



/* PC/SP画像切替 */
#cprt_pagewrap .viewSp { display: none !important; }
@media screen and (max-width: 767px) {
  #cprt_pagewrap .viewSp { display: block !important; }
  #cprt_pagewrap .viewPc { display: none !important; }
}

/* H2/H3 共通 */
#cprt_pagewrap h2,
#cprt_pagewrap h3 {
  border-bottom: none;
  margin-top: 40px;
  padding: 0;
}
