/* ===== 見出し（h1） ===== */
.headline {
  position: relative;
  z-index: 1;
  margin: 2rem 0 1.5rem;
  text-align: center;
}

.headline h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1f2a44;
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.headline h1::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background-color: #6eba44;
  border-radius: 2px;
}

/* ===== サブ見出し h2 ===== */
#loan .subheadline h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2a44;
  margin-bottom: 1rem;
}

/* ===== タブ共通 ===== */
.housingTab {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 2rem;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid #dbe3ec;
}

.housingTab li {
  margin: 0;
}

.housingTab li a,
.housingTab li span {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  text-decoration: none;
  background: #f1f5f9;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s ease;
}

.housingTab li a:hover {
  background: #e2eaf3;
  color: #1f2a44;
}

.housingTab li.housingTabOn span {
  background: #ffffff;
  color: #1f2a44;
  border: 2px solid #1f2a44;
  border-bottom: 2px solid #ffffff;
  position: relative;
  top: 2px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

/* 特定タブ色（ブルー） */
.housingTabBlue li a,
.housingTabBlue li span {
  background: #e8f0fd;
}

.housingTabBlue li.housingTabOn span {
  background: #ffffff;
  color: #1f2a44;
  border: 2px solid #1f2a44;
  border-bottom: 2px solid #ffffff;
  position: relative;
  top: 2px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

/* ===== カード風コンテンツ ===== */
.detail2_rd {
  background: #ffffff;
  border-radius: 6px;
  padding: 1.2rem;
  margin-bottom: 2rem;
}

/* 更新日・右寄せ */
.detail2_rd .right {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-align: right;
}

/* ===== テーブル ===== */
table.big {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 1.5rem;
  background: #fff;
}

/* ヘッダー */
table.big th.list2b {
  background: #e9f2fb !important;
  color: #1f2a44;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid #c6dff1;
  text-align: center;
}

/* セル */
table.big td.list2,
table.big th.left,
table.big th.center {
  padding: 0.7rem 0.6rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

/* 通貨名 */
table.big th.left {
  font-weight: 600;
  color: #1f2a44;
  text-align: left;
}

/* TTS強調 */
table.big td:nth-child(2) {
  font-weight: 600;
  color: #0d6efd;
}

/* TTB */
table.big td:nth-child(3) {
  color: #495057;
}

/* 行ホバー */
table.big tr:hover td,
table.big tr:hover th {
  background-color: #f8f9fa;
}

/* タイトルカラー・ボールド用 */
.title_color.bold {
  font-weight: 600;
  color: #1f2a44;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* ===== 注意書き ===== */
.box1 {
  background: #fffdf0;
  border-left: 4px solid #f0ad4e;
  padding: 1rem;
  border-radius: 4px;
}

.box1 ol {
  padding-left: 1.2rem;
  margin: 0;
}

.box1 li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  #loan .headline h1 {
    font-size: 1.5rem;
  }

  .housingTab {
    gap: 1rem;
  }

  .housingTab li a,
  .housingTab li span {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .detail2_rd {
    padding: 1rem;
  }

  /* テーブル横スクロール対応 */
  .detail2_rd table.big {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .detail2_rd table.big th,
  .detail2_rd table.big td {
    white-space: nowrap;
  }
}
