/* =========================================
   コストパフォーマンス・ハンドブック
   ========================================= */

/* --- ページ全体 --- */
.handbook-page {
  background-color: #fff;
}

/* --- ヘッダー --- */
.handbook-header {
  background-color: #fff;
  text-align: center;
  padding: 80px 0;
  border-bottom: 1px solid #eee;
}
.handbook-header-en {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #aaa;
  margin-bottom: 15px;
}
.handbook-title {
  font-family: "M PLUS 1", sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #222;
  margin-bottom: 25px;
}
.handbook-description {
  font-size: 14px;
  color: #666;
  line-height: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* --- コンテンツボディ --- */
.handbook-body {
  padding: 60px 20px 80px;
}

/* --- 章 (Chapter) --- */
.handbook-chapter {
  margin-bottom: 100px;
}
.chapter-title {
  text-align: center;
  margin-bottom: 60px;
}
.chapter-number {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #aaa;
  margin-bottom: 10px;
}

/* --- 比較グリッド (基本は2カラム) --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr; /* スマホでは1列表示 */
  gap: 40px;
}

/* 画面幅が768px以上（タブレットやPC）になったら2列表示に切り替え */
@media (min-width: 768px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* --- 3カラム用の特別指定 --- */
/* 画面幅が1100px以上で、かつ .grid-3col クラスを持つ場合のみ3列表示に */
@media (min-width: 1100px) {
  .comparison-grid.grid-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 比較項目カード --- */
.comparison-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.item-title {
  font-size: 18px;
  font-weight: 600;
  padding: 20px 25px;
  margin: 0;
  border-bottom: 1px solid #eee;
}
.item-image {
  width: 100%;
  padding-top: 60%; /* 5:3 */
  position: relative;
  background: #f0f0f0;
}
.item-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.item-feature {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}
.item-spec {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 13px;
  border-top: 1px solid #f5f5f5;
}
.item-spec li {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  justify-content: space-between;
}
.item-spec strong {
  color: #888;
}
.highlight {
  font-weight: bold;
  color: #d32f2f; /* 強調色 */
}
.stars {
  color: #fbc02d;
  letter-spacing: 2px;
}
.item-claim {
  font-style: italic;
  color: #777;
  margin-top: auto; /* 一番下に配置 */
  padding-top: 20px;
  border-top: 1px dashed #ddd;
}
.company-link {
  display: block;
  margin-top: 15px;
  text-align: right;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.company-link:hover {
  text-decoration: underline;
}

/* page-handbook.css に追記 */

/* 章のリード文 */
.chapter-lead {
  max-width: 800px;
  margin: -30px auto 50px;
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: #666;
}

/* 比較項目のサブタイトル */
.item-title .subtitle {
  font-size: 13px;
  font-weight: normal;
  color: #999;
  margin-left: 10px;
}

/* page-handbook.css に追記 */

/* 章の中の小見出し */
.chapter-subtitle {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  margin-top: 100px;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}
.chapter-subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: #eee;
}

/* ショーケース・グリッド */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 900px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ショーケース・アイテム */
.showcase-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 600px) {
  .showcase-item {
    flex-direction: row;
  }
}

.showcase-item .item-image {
  position: relative;
  background-color: #f0f0f0;
}
@media (min-width: 600px) {
  .showcase-item .item-image {
    width: 40%;
    flex-shrink: 0;
    padding-top: 0; /* padding-topリセット */
  }
}
.showcase-item .item-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-item .item-content {
  padding: 25px 30px;
}

.showcase-item .item-title {
  padding: 0;
  border-bottom: none;
  margin-bottom: 15px;
  font-size: 16px;
}

.showcase-item .item-feature {
  font-size: 13px;
  margin-bottom: 0;
}

.showcase-item .company-link {
  margin-top: 20px;
  text-align: left;
}

/* page-handbook.css に追記 */

/* --- 第3章：耐震性 --- */

/* 解説ボックス */
.explanation-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #333; /* 左側にアクセントライン */
  padding: 30px 40px;
  margin-bottom: 80px;
  border-radius: 4px;
}

.explanation-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.explanation-title i {
  margin-right: 12px;
  color: #333;
  font-size: 20px;
}

.explanation-box p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* 等級リスト */
.grade-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.grade-list li {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}
.grade-list li:last-child {
  border-bottom: 1px solid #f0f0f0;
}

.grade-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
  color: #222;
}

/* 注釈ノート */
.explanation-note {
  background: #f9f9f9;
  padding: 15px 20px;
  margin-top: 25px;
  border-radius: 3px;
  font-size: 13px !important;
}

.explanation-note strong {
  color: #d32f2f;
}
