/* 基本リセット & 共通スタイル */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* レイアウト幅 */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* ヘッダー */
.header {
  text-align: center;
  padding: 15px 0;
  font-size: 18px;
  background-color: #fff;
}

/* バナーエリア */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner h1 {
  color: #00A1F7;
  font-size: 28px;
  font-weight: bold;
}

/* パンくずリスト */
.breadcrumb {
  font-size: 11px;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #333;
  font-weight: bold;
}

.entry-date {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  margin-bottom: 20px;
}

/* コラムリスト */
.column-list {
  border-top: 1px solid #ccc;
}

.column-item {
  border-bottom: 1px solid #ccc;
}

.column-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5px;
  transition: background-color 0.2s ease;
}

.column-item a:hover {
  background-color: #f9f9f9;
}

.column-date {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.column-title {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  word-break: break-word;
}

/* 青い丸矢印アイコン */
span.icon-icon_right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #00A1F7;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 15px;
  padding-bottom: 2px; /* 矢印位置の微調整 */
}

.cta-btn span.icon-icon_right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #FFF;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 15px;
  padding-bottom: 2px; /* 矢印位置の微調整 */
}

.cta-btn span{
  color: #FFF;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0 30px;
}

.page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #333;
}

.page-number.active {
  background-color: #00A1F7;
  color: #fff;
  border-color: #00A1F7;
}

.page-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #FFF;
  color: #00A1F7;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  margin-left: 5px;
}

/* TOPへ戻るボタン */
.btn-top-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.btn-top {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 12px 60px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.btn-top:hover {
  opacity: 0.8;
}

/* レスポンシブ調整（スマホ対応：768px以下） */
@media (max-width: 768px) {
  .hero-banner {
    height: 120px;
  }

  .hero-banner h1 {
    font-size: 20px;
  }

  .column-title {
    font-size: 15px;
  }

  .column-item a {
    padding: 12px 0;
  }

  .page-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .btn-top {
    width: 80%;
    padding: 12px 0;
  }
}

/* アイキャッチ画像（バナー掲載） */
.eyecatch-banner {
  width: 100%;
  aspect-ratio: 16 / 9; /* 画面サイズに合わせてアスペクト比を維持 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.eyecatch-banner span {
  color: #00A1F7;
  font-size: 32px;
  font-weight: bold;
}

/* 本文テキスト */
.entry-text h1 {
    font-size: 30px;
    font-family: serif;
    color: #00A1F7;
    font-weight: bold;
    margin: 40px 0 20px;
}

.entry-text p {
  font-size: 15px;
  color: #333;
  word-break: break-all;
  margin-bottom: 30px;
}

/* CTAボタン */
.cta-wrapper {
  text-align: center;
  margin: 40px 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00A1F7;
  color: #fff;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: #fff;
  color: #00A1F7;
  border-radius: 50%;
  font-size: 14px;
  margin-left: 12px;
  line-height: 1;
}

/* 目次エリア */
.toc-box {
  border: 1px solid #111;
  padding: 30px;
  margin: 40px 0;
  background-color: #fcfcfc;
}

.toc-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #222;
}

#toc-toggle {
  cursor: pointer;
  color: #0066cc;
}

.toc-list {
    overflow: hidden;
    max-height: 500px; /* リストの最大高さの目安（中身に合わせて調整してください） */
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
}

/* 非表示（折りたたみ）時の状態 */
.toc-box.is-collapsed .toc-list {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.toc-list > li {
  margin-bottom: 18px;
}

.toc-list a {
  color: #00A1F7;
  font-size: 15px;
}

.toc-list a:hover {
  text-decoration: underline;
}

.toc-sublist {
  padding-left: 15px;
  margin-top: 5px;
}

.toc-sublist li {
  margin-bottom: 4px;
}

/* 記事内見出し（H2） */
.section-heading {
  background-color: #e6f4ff;
  border-top: 2px solid #00A1F7;
  border-bottom: 2px solid #00A1F7;
  padding: 12px 20px;
  font-size: 24px;
  color: #00A1F7;
  font-weight: bold;
  margin: 40px 0 20px;
}

h3.section-heading {
    background-color: #e6f0f8;
    border:none;
    border-left: 4px solid #00A1F7;
    padding: 12px 20px;
    font-size: 20px;
    color: #00A1F7;
    font-weight: bold;
    margin: 40px 0 20px;
}

/* レスポンシブ対応（スマートフォン：768px以下） */
@media (max-width: 768px) {
  .hero-banner {
    height: 60px;
  }

  .hero-banner h1 {
    font-size: 20px;
  }

  .eyecatch-banner span {
    font-size: 22px;
  }

  .cta-btn {
    width: 100%;
    font-size: 15px;
    padding: 12px 16px;
  }

  .toc-box {
    padding: 20px 15px;
  }

  .toc-title {
    font-size: 16px;
  }

  .toc-list a {
    font-size: 13.5px;
  }

  .section-heading {
    font-size: 16px;
    padding: 10px 15px;
  }

  .entry-text p {
    font-size: 14px;
  }
}