/* ============================================================
   ブログ 2026 — 記事本文タイポグラフィ / FAQ / ページネーション
   （Tailwind CDN を補完。the_content() が出力する生HTMLを整形）
   ============================================================ */

/* ---- 記事本文 ---- */
.hike-article {
  color: #333;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .2px;
  word-break: break-word;
}
@media (min-width: 1024px) {
  .hike-article { font-size: 16px; }
}

.hike-article > *:first-child { margin-top: 0; }

.hike-article h2 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  color: #1A1A1A;
  margin: 2.4em 0 .9em;
  padding: 12px 0 12px 16px;
  border-left: 5px solid #3A7CA5;
  background: #F4F7F9;
  border-radius: 0 4px 4px 0;
}
.hike-article h3 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: #1A1A1A;
  margin: 2em 0 .7em;
  padding-bottom: .3em;
  border-bottom: 2px solid #D6E1E8;
}
.hike-article h4 {
  font-size: 16px;
  font-weight: 700;
  color: #3A7CA5;
  margin: 1.6em 0 .5em;
}
@media (min-width: 1024px) {
  .hike-article h2 { font-size: 26px; }
  .hike-article h3 { font-size: 21px; }
  .hike-article h4 { font-size: 17px; }
}

.hike-article p { margin: 0 0 1.4em; }

.hike-article a {
  color: #3A7CA5;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hike-article a:hover { opacity: .8; }

.hike-article strong { font-weight: 700; color: #1A1A1A; }

.hike-article ul,
.hike-article ol { margin: 0 0 1.4em; padding-left: 1.5em; }
/* style.css の全サイト向け `ul li{display:flex}` を記事内で打ち消す（入れ子リストや「ラベル：値」が横並びに割れて潰れるのを防ぐ） */
.hike-article li { display: list-item; }
.hike-article ul { list-style: none; padding-left: 1.2em; }
.hike-article ul > li { position: relative; margin-bottom: .5em; padding-left: 1.1em; }
.hike-article ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #3A7CA5;
}
.hike-article ol { list-style: decimal; }
.hike-article ol > li { margin-bottom: .5em; padding-left: .2em; }
.hike-article li > ul,
.hike-article li > ol { margin: .5em 0 0; }

.hike-article blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: #F4F7F9;
  border-left: 4px solid #B7C6D0;
  color: #555;
  border-radius: 0 4px 4px 0;
}

.hike-article img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.2em 0; }

.hike-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: .95em;
  display: block;
  overflow-x: auto;
}
.hike-article th,
.hike-article td { border: 1px solid #D6E1E8; padding: 10px 14px; text-align: left; }
.hike-article th { background: #EAF1F5; font-weight: 700; color: #1A1A1A; }

.hike-article code {
  background: #F0F3F5;
  padding: .1em .4em;
  border-radius: 4px;
  font-size: .9em;
}
.hike-article hr { border: 0; border-top: 1px solid #E4EBF0; margin: 2.4em 0; }

/* ---- 記事内「お問い合わせ」CTA（旧WPボタンブロックをモダン化） ---- */
.hike-article .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 2.2em 0;
}
.hike-article .wp-block-button__link,
.hike-article a.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  max-width: 100%;
  padding: 16px 36px !important;
  background-color: #3A7CA5 !important;
  background-image: linear-gradient(135deg, #3A8FC0 0%, #2F6E92 100%) !important;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(58, 124, 165, .28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.hike-article .wp-block-button__link strong,
.hike-article a.wp-element-button strong { color: #fff !important; font-weight: 700; }
.hike-article .wp-block-button__link::after,
.hike-article a.wp-element-button::after {
  content: "→";
  font-weight: 700;
  transition: transform .2s ease;
}
.hike-article .wp-block-button__link:hover,
.hike-article a.wp-element-button:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(58, 124, 165, .36);
  filter: brightness(1.05);
}
.hike-article .wp-block-button__link:hover::after,
.hike-article a.wp-element-button:hover::after { transform: translateX(3px); }

/* ---- FAQ アコーディオン ---- */
.hike-faq summary { list-style: none; }
.hike-faq summary::-webkit-details-marker { display: none; }
.hike-faq[open] .hike-faq-icon { transform: rotate(45deg); }
.hike-faq .hike-faq-icon { transition: transform .2s ease; }

/* ---- カード用 line-clamp（Tailwind CDN 未適用時の保険） ---- */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- ページネーション ---- */
.hike-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0 4px;
  border: 1px solid #D6E1E8;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #728D9D;
  text-decoration: none;
  transition: all .2s ease;
}
.hike-pagination .page-numbers:hover { border-color: #3A7CA5; color: #3A7CA5; }
.hike-pagination .page-numbers.current {
  background: #3A7CA5;
  border-color: #3A7CA5;
  color: #FFF;
}
.hike-pagination .page-numbers.dots { border: 0; }
