@charset "UTF-8";
/* =========================================================
   毛ガニ道 下層ページ用CSS（トップ以外の全ページ）
   ========================================================= */

/* ---------- 共通：本文色のリンク（パンくず・目次・カテゴリトップの案内） ---------- */
.breadcrumb__list a,
.toc__list a,
.hub-start__title a {
  color: var(--color-text);
}

.breadcrumb__list a:hover,
.toc__list a:hover,
.hub-start__title a:hover {
  color: var(--color-main);
}

/* ---------- 共通：箇条書き（目次・本文・出典） ---------- */
.toc__list,
.article ul,
.article ol,
.sources ul {
  padding-left: 1.5em;
}

.toc__list li + li,
.article li + li,
.sources li + li {
  margin-top: 6px;
}

/* ---------- 共通：本文の章と関連ページの間隔 ---------- */
.article > section + section,
.related {
  margin-top: 64px;
}

/* ---------- パンくず ---------- */
.breadcrumb {
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 12px var(--gutter);
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb__list li + li::before {
  content: "/";
  margin: 0 10px;
  color: #8A8582;
}

/* ---------- ページ本体のレイアウト ---------- */
.page {
  padding: 48px 0 88px;
}

.page__inner {
  max-width: calc(800px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- ページ見出し（H1・導入） ---------- */
.page-header {
  margin-bottom: 32px;
}

.page-header__category {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-main);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.page-header__category:hover {
  text-decoration: underline;
}

.page-header__title {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.page-header__lead {
  font-size: 17px;
  line-height: 1.9;
}

.page-header__meta {
  margin-top: 16px;
  color: #6B6663;
  font-size: 13px;
}

/* ---------- メイン画像 ---------- */
.page-visual {
  margin-bottom: 40px;
}

/* ---------- 要点ボックス ---------- */
.summary-box {
  margin-bottom: 40px;
  padding: 24px 28px;
  border: 2px solid var(--color-main);
  border-radius: var(--radius);
}

.summary-box__title {
  margin-bottom: 12px;
  color: var(--color-main);
  font-size: 17px;
  font-weight: 700;
}

.summary-box ul {
  list-style: none;
}

.summary-box li {
  position: relative;
  padding-left: 22px;
}

.summary-box li + li {
  margin-top: 8px;
}

.summary-box li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-main);
}

/* ---------- 目次 ---------- */
.toc {
  margin-bottom: 56px;
  padding: 24px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.toc__title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- 本文 ---------- */
.article h2 {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-text);
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.45;
}

.article h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--color-main);
}

.article h3 {
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--color-main);
  font-size: 20px;
  line-height: 1.5;
}

.article h2 + h3 {
  margin-top: 0;
}

.article p + p,
.article p + ul,
.article p + ol,
.article ul + p,
.article ol + p,
.article .table-wrap + p,
.article .note + p {
  margin-top: 16px;
}

.article strong {
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(179, 58, 46, 0.15) 65%);
}

/* 表 */
.table-wrap {
  margin: 20px 0;
}

.table-wrap.season-wrap {
  margin-bottom: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table caption {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: rgba(179, 58, 46, 0.06);
}

.data-table tbody th {
  width: 30%;
  background: #FAF9F8;
  font-weight: 700;
}

/* 補足・注意 */
.note {
  margin: 20px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--color-border);
  background: #FAF9F8;
  font-size: 15px;
}

.note__title {
  margin-bottom: 4px;
  font-weight: 700;
}

/* 本文内の関連リンク */
.inline-related {
  margin-top: 20px;
  padding: 14px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
}

.inline-related__label {
  margin-right: 8px;
  color: var(--color-main);
  font-weight: 700;
}

/* 本文内のFAQ */
.qa-list__item + .qa-list__item {
  margin-top: 24px;
}

.qa-list dt {
  position: relative;
  margin-bottom: 8px;
  padding-left: 40px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.qa-list dd {
  position: relative;
  padding-left: 40px;
}

.qa-list dt::before,
.qa-list dd::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.qa-list dt::before {
  content: "Q";
  background: var(--color-main);
  color: #FFFFFF;
}

.qa-list dd::before {
  content: "A";
  border: 1px solid var(--color-main);
  color: var(--color-main);
  line-height: 26px;
}

/* 出典 */
.sources {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
}

.sources__title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.sources a {
  color: var(--color-text);
  word-break: break-all;
}

.sources__note {
  margin-top: 10px;
  color: #6B6663;
}

/* ---------- 関連ページ ---------- */
.related__title {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.45;
}

.related__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
}

.related__list a {
  position: relative;
  display: block;
  height: 100%;
  padding: 16px 40px 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.related__list a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--color-main);
  border-right: 2px solid var(--color-main);
  transform: translateY(-50%) rotate(45deg);
}

.related__list a:hover {
  border-color: var(--color-main);
  color: var(--color-main);
}

.related__desc {
  display: block;
  margin-top: 4px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 400;
}

/* ---------- カテゴリトップ（ハブ） ---------- */
.hub-start {
  margin-bottom: 56px;
  padding: 24px 28px;
  border: 2px solid var(--color-main);
  border-radius: var(--radius);
}

.hub-start__label {
  margin-bottom: 6px;
  color: var(--color-main);
  font-size: 14px;
  font-weight: 700;
}

.hub-start__title {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.hub-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.article .hub-list {
  padding-left: 0;
}

.article .hub-list li + li {
  margin-top: 0;
}

.hub-list__item {
  border-bottom: 1px solid var(--color-border);
}

.hub-list__link {
  position: relative;
  display: block;
  padding: 18px 40px 18px 0;
  color: var(--color-text);
  text-decoration: none;
}

.hub-list__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-main);
  border-right: 2px solid var(--color-main);
  transform: translateY(-50%) rotate(45deg);
}

.hub-list__name {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.hub-list__desc {
  display: block;
  font-size: 15px;
}

.hub-list__link:hover .hub-list__name {
  color: var(--color-main);
  text-decoration: underline;
}

/* ---------- 図解・写真（本文内） ---------- */
.figure {
  margin: 24px 0;
}

.figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
}

/* ---------- 用語集 ---------- */
.article .term-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-left: 0;
  list-style: none;
}

.article .term-index li + li {
  margin-top: 0;
}

.term-list__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.term-list dt {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.term-list__reading {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 400;
}

.term-list__more {
  margin-top: 6px;
  font-size: 14px;
}

/* ---------- お問い合わせフォーム ---------- */
.contact-form {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-form__item + .contact-form__item {
  margin-top: 22px;
}

.contact-form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-form__required,
.contact-form__optional {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.contact-form__required {
  background: var(--color-main);
  color: #FFFFFF;
}

.contact-form__optional {
  background: var(--color-border);
  color: var(--color-text);
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CFC8C3;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--color-text);
  font: inherit;
}

.contact-form__textarea {
  min-height: 200px;
  resize: vertical;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: var(--color-main);
  outline: 2px solid rgba(179, 58, 46, 0.2);
}

.contact-form__note {
  margin-top: 6px;
  font-size: 13px;
}

.contact-form__check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.contact-form__submit {
  margin-top: 28px;
  text-align: center;
}

/* フォームの状態表示（トークン取得の失敗・JavaScript無効時） */
.contact-form__status {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-left: 4px solid var(--color-main);
  background: #FBF1EF;
  font-size: 14px;
}

/* ボット対策の入力欄（人には表示しない） */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 送信エラー画面 */
.contact-error {
  padding: 16px 20px 16px 36px;
  border: 1px solid var(--color-main);
  border-radius: var(--radius);
  background: #FBF1EF;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 767px) {
  .page {
    padding: 32px 0 64px;
  }

  .page-header__title {
    font-size: 26px;
  }

  .page-header__lead {
    font-size: 16px;
  }

  .page-visual {
    margin: 0 calc(var(--gutter) * -1) 32px;
  }

  .page-visual img {
    border-radius: 0;
  }

  .summary-box,
  .toc,
  .hub-start {
    padding: 20px;
  }

  .toc {
    margin-bottom: 44px;
  }

  .article > section + section {
    margin-top: 52px;
  }

  .article h2 {
    font-size: 22px;
  }

  .article h3 {
    font-size: 18px;
  }

  .data-table {
    font-size: 14px;
  }

  .data-table th,
  .data-table td {
    padding: 12px;
  }

  .data-table tbody th {
    width: 34%;
  }

  .related__list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .hub-list__name {
    font-size: 17px;
  }

  .figure__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .figure__scroll img {
    width: 680px;
    max-width: none;
  }

  .figure figcaption::after {
    content: "（横にスクロールできます）";
    display: block;
    font-size: 13px;
  }
}
