/* サブページで、テンプレートで対応しきれないスタイルをこちらに記入します。ASのみ書き込み可能 */
* {
  box-sizing: border-box;
}

.list-design-contents_wrapper {
  padding-top: 0;
}

.list-design-contents_wrapper h3 {
  font-size: 2.3rem;
  color: #262626;
}

/* --------------------------------------------------
   1. ヒーローエリア（メインビジュアル）
-------------------------------------------------- */
.top-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.colorfilter-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* タイトル帯：グラデーションとアクセントラインで洗練 */
.top-image > h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  font-size: 2.2rem;
  color: #fff;
  padding: 1.5rem 2rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, rgba(15, 32, 67, 0.85) 0%, rgba(29, 83, 160, 0.6) 60%, rgba(0, 0, 0, 0) 100%);
/*  border-left: 6px solid #1d53a0;*/
  backdrop-filter: blur(2px);
}

.res {
  display: none;
}

.top-image > h2 span {
  font-size: 1.2rem;
  font-weight: normal;
  opacity: 0.9;
}

@media screen and (max-width: 640px) {
  .top-image > h2 {
    font-size: 1.5rem;
    padding: 1rem;
    border-left-width: 4px;
  }
  .top-image > h2 span {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 450px) {
  .res {
    display: block;
  }
}

/* --------------------------------------------------
   解説・案内テキストエリア
-------------------------------------------------- */
#intro > .intro-container {
  padding: 0;
}

#intro > .intro-container > .intro-txt {
  padding: 0;
  text-indent: 1em;
  line-height: 1.8;
}

.intro-container ul {
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
}

.intro-container ul li {
/*  color: #555;*/
/*  font-size: 0.95rem;*/
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------
   2. ページ内ナビゲーション（ボタン風デザイン）
-------------------------------------------------- */

#inner-link {
  width: 100%;
  max-width: 1280px;
  margin: 2rem auto;
}

#inner-link ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

#inner-link ul li {
  padding: 0;
}

#inner-link ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.8rem;
  background-color: #ffffff;
  color: #1d53a0;
  border: 1.5px solid #1d53a0;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  line-height: 1; /* 行高を揃えて上下中央化 */
}

#inner-link ul li a::after {
  content: "↓";
  margin-left: 0.4em;
  font-size: 1em;
  line-height: 1; /* 矢印自体の行高を揃える */
  display: inline-block;
  transition: transform 0.25s ease;
  transform: translateY(-0.14em); /* フォントの個体差により僅かに浮く/沈む場合の微調整用 */
}

#inner-link ul li a:hover {
  background-color: #1d53a0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(29, 83, 160, 0.25);
}

#inner-link ul li a:hover::after {
  transform: translateY(2px);
}

/* --------------------------------------------------
   4. セクションカード（カード型レイアウト化）
-------------------------------------------------- */
#shinshu, #fudoki, #kyoiku {
  width: 100%;
  max-width: 1280px;
  margin: 2.5rem auto;
}

.table-back {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2f5;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  overflow: hidden;
}

/* セクション見出し（和風アクセント付き） */
#shinshu h3, #fudoki h3, #kyoiku h3 {
  position: relative;
  margin: 0 0 1.2rem 0;
  padding: 0.8rem 1.2rem 0.8rem 2.2rem;
  background: #1d53a0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
/*  border-radius: 6px;*/
  text-align: left;
}

/* 見出し左側の和モダン・アクセントライン */
#shinshu h3::before, #fudoki h3::before, #kyoiku h3::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 20%;
  height: 60%;
  width: 4px;
  background-color: #d4a359; /* 伝統色風のアクセントゴールド */
  border-radius: 2px;
}

#shinshu p, #fudoki p, #kyoiku p {
  width: 100%;
  padding: 0;
  margin: 0 0 1.5rem 0;
  line-height: 1.8;
  color: #444;
}

/* --------------------------------------------------
   3. 書籍テーブル（.book-table）
-------------------------------------------------- */
.book-table {
  width: 100%;
  max-width: 900px;
  margin: 1.5rem auto 0;
  border-collapse: separate;
  border-spacing: 0;
/*  border-radius: 8px;*/
  overflow: hidden;
  border: 1px solid #e0e6ed;
}

.book-table th {
  background: #2b3a4a; /* セクションヘッダーと馴染むダークトーン */
  color: #fff;
  text-align: center;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.book-table th:last-child {
  border-right: none;
}

.book-table tbody tr {
  transition: background-color 0.2s ease;
}

.book-table tbody tr:hover {
  background-color: #f4f7fa; /* ホバー時の微かな色変化 */
}

.book-table td {
  background: transparent;
  text-align: center;
  padding: 0.8rem;
  border-bottom: 1px solid #e0e6ed;
  border-right: 1px solid #e0e6ed;
  vertical-align: middle;
}

.book-table td:last-child {
  border-right: none;
}

.book-table tr:last-child td {
  border-bottom: none;
}

.book-table td:first-child {
  width: 18%;
  max-width: 140px;
}

.book-table td:first-child img {
  width: 100%;
  max-width: 100px;
  height: auto;
/*  border-radius: 4px;*/
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.book-table td:first-child a:hover img {
  transform: scale(1.05);
}

.book-table td:nth-child(2) {
  width: 42%;
  text-align: left;
  font-weight: bold;
/*  color: #2c3e50;*/
  padding-left: 1.2rem;
}

.book-table td:nth-child(3) {
  width: 16%;
/*  color: #666;*/
/*  font-size: 0.9rem;*/
}

.book-table td:nth-child(4) {
  width: 24%;
}

/* 「目次」リンクのボタン化 */
.book-table td:nth-child(4) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 0.8rem 0.9rem 0.6rem 0.9rem;
/*  background-color: #eef4fb;*/
/*  color: #1d53a0;*/
  border: 1px solid #ccc;
/*  border-radius: 4px;*/
  text-decoration: none;
/*  font-weight: bold;*/
/*  font-size: 0.88rem;*/
  transition: all 0.2s ease;
  line-height: 1; /* 行高を揃えて上下中央化 */
}

.book-table td:nth-child(4) a::before {
  content: "📖";
  font-size: 1em;
  line-height: 1; /* マーク自体の行高をリセット */
  display: inline-block;
  transform: translateY(-0.1em); /* フォントの個体差により僅かに浮く/沈む場合の微調整用 */
}

.book-table td:nth-child(4) a:hover {
  background-color: #1d53a0;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(29, 83, 160, 0.3);
}

.supple {
  display: block;
  margin-top: 2%;
}

/* --------------------------------------------------
   レスポンシブ対応
-------------------------------------------------- */
@media screen and (max-width: 820px) {
  .table-back {
    padding: 1.2rem;
  }
  .book-table {
    width: 100%;
  }
}

@media screen and (max-width: 590px) {
  .book-table {
    border: none;
  }

  .book-table tr {
    display: block;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
  }

  .book-table th {
    display: none;
  }

  .book-table td {
    display: flex;
    align-items: center;
    width: 100% !important;
    min-height: 44px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.6rem 0.8rem;
    text-align: left;
  }

  .book-table td:last-child {
    border-bottom: none;
  }

  .book-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #666;
    font-size: 0.85rem;
    min-width: 5.5em;
    flex-shrink: 0;
  }

  .book-table td:first-child {
    justify-content: center;
    background: #fafafa;
    padding: 1rem;
  }

  .book-table td:first-child::before {
    display: none;
  }

  .book-table td:nth-child(2),
  .book-table td:nth-child(3),
  .book-table td:nth-child(4) {
    padding-left: 0.8rem;
  }

  .book-table td:nth-child(4) a {
    width: 100%;
  }
}