/* ブログ記事を本体サイトの中で表示するときの調整（2026-10-17） */
.blog-article-page .hh-article-hero { padding-bottom: 0; }
.blog-article-page .hh-article-hero .header-content { min-height: 0; }
.hh-article-breadcrumb { margin-top: 18px; font-size: 13px; color: var(--color-navy, #263743); font-family: var(--font-japanese); }
.hh-article-breadcrumb a { color: inherit; text-decoration: none; opacity: .75; }
.hh-article-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.hh-article-breadcrumb span { margin: 0 8px; opacity: .5; }

.hh-article-section.blog-list-section { padding-top: 40px; }
.hh-article { max-width: 860px; margin: 0 auto; color: #263743; font-family: var(--font-japanese); }
.hh-article-head { margin-bottom: 28px; }
.hh-article-head .blog-item-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hh-article-modified { font-size: 12px; color: #7a8690; }
.hh-article-title { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.5; font-weight: 700; color: #263743; margin: 0 0 16px; letter-spacing: .02em; }
.hh-article-author { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5b6770; margin-bottom: 20px; }
.hh-article-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.hh-article-eyecatch { margin: 0 0 8px; border-radius: 14px; overflow: hidden; }
.hh-article-eyecatch img { width: 100%; height: auto; display: block; }

/* SWELL 本文のベース（SWELL の body 設定を本体の中で再現） */
.hh-article-body { font-size: 16px; line-height: 1.9; }
.hh-article-body .post_content img { max-width: 100%; height: auto; }
.hh-article-body .post_content > * { max-width: 100%; }
.hh-article-body .wp-block-image figcaption { font-size: 12px; color: #7a8690; }
.hh-article-authorbox { margin-top: 48px; }
.hh-article-back { margin-top: 40px; font-size: 14px; }
.hh-article-back a { color: #263743; text-decoration: none; border-bottom: 1px solid currentColor; }

@media (max-width: 768px) {
  .hh-article-section.blog-list-section { padding-top: 16px; }
  .hh-article-body { font-size: 15px; }
}

/* 見出し帯を記事用に低く、日付は左寄せ、スマホの浮遊ボタンは控えめに */
.blog-article-page .hero-section.blog-page { min-height: 0; padding: 140px 0 36px; }
.blog-article-page .hero-section.blog-page .header-content { min-height: 0; }
.hh-article-head .blog-item-meta { justify-content: flex-start; }
.hh-article-head .blog-item-meta .blog-item-date { margin-left: 4px; }
@media (max-width: 768px) {
  .blog-article-page .hero-section.blog-page { padding: 110px 0 24px; }
  .blog-article-page .blog-floating-contact { transform: scale(.72); transform-origin: right bottom; opacity: .92; }
}

/* 著者欄・前後の記事（統合版）*/
.hh-authorbox { display: flex; gap: 20px; align-items: flex-start; border: 1px solid hsla(0,0%,78%,.5); border-radius: 10px; padding: 24px; background: #fff; }
.hh-authorbox__l img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.hh-authorbox__label { font-size: 12px; color: #7a8690; margin: 0 0 4px; }
.hh-authorbox__name { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: #263743; }
.hh-authorbox__role { font-size: 12px; font-weight: 500; color: #7a8690; margin-left: 6px; }
.hh-authorbox__desc { font-size: 14px; line-height: 1.8; margin: 0; color: #333; }
.hh-article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: 14px; }
.hh-article-nav a { flex: 1 1 0; color: #263743; text-decoration: none; border: 1px solid hsla(0,0%,78%,.5); border-radius: 8px; padding: 12px 16px; line-height: 1.5; }
.hh-article-nav a span { display: block; font-size: 11px; color: #7a8690; margin-bottom: 4px; }
.hh-article-nav__next { text-align: right; }
@media (max-width: 768px) { .hh-authorbox { padding: 16px; gap: 14px; } .hh-authorbox__l img { width: 60px; height: 60px; } .hh-article-nav { flex-direction: column; } .hh-article-nav__next { text-align: left; } }

/* 記事ページの見出し帯は低く（一覧ページ用の高さ指定を打ち消す） */
.blog-article-page .hero-section.blog-page { min-height: 0 !important; height: auto !important; padding: 150px 0 36px !important; }
.blog-article-page .hero-section.blog-page .header-content { min-height: 0 !important; height: auto !important; }
.blog-article-page .hero-section.blog-page .service-info { min-height: 0 !important; height: auto !important; }
@media (max-width: 768px) { .blog-article-page .hero-section.blog-page { padding: 110px 0 24px !important; } }
.blog-article-page .hero-section.blog-page .container { height: auto !important; min-height: 0 !important; }

/* 2026-10-17 オーナー指示: 記事ページは BLOG の帯を出さず、パンくずから始める（LIG 型） */
.hh-article-crumbwrap { padding: 120px 7vw 0; background: #f8fcfe; }
.hh-article-crumbwrap .hh-article-breadcrumb { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 12px; color: #7a8690; }
.hh-article-breadcrumb__current { color: #263743; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.blog-article-page .hh-article-section.blog-list-section { padding-top: 28px; }
@media (max-width: 768px) {
  .hh-article-crumbwrap { padding: 88px 6vw 0; }
  .hh-article-breadcrumb__current { display: none; }
  .blog-article-page .hh-article-section.blog-list-section { padding-top: 14px; }
}
/* パンくずを記事の列（左の Contact 枠と同じ左端）にそろえる */
.hh-article-crumbwrap { padding: 120px 0 0; }
.hh-article-crumbwrap .hh-article-breadcrumb { max-width: 1400px; padding: 0 40px; box-sizing: border-box; }
@media (max-width: 768px) { .hh-article-crumbwrap { padding: 88px 0 0; } .hh-article-crumbwrap .hh-article-breadcrumb { padding: 0 30px; } }

/* 2026-10-17 スマホの相談ボタン: 読み進め中は引っ込める（single-blog.php の JS で is-hidden を付け外し） */
.blog-article-page .blog-floating-contact { transition: transform .35s ease, opacity .35s ease; }
@media (max-width: 768px) {
  .blog-article-page .blog-floating-contact.is-hidden { transform: scale(.72) translateY(180%); opacity: 0; pointer-events: none; }
}

/* 2026-10-17 関連記事（あわせて読みたい記事） */
.hh-related { margin: 56px 0 8px; }
.hh-related__title { font-size: 20px; font-weight: 600; color: #04384c; letter-spacing: .06em; margin: 0 0 20px; padding-left: 14px; border-left: 5px solid #e8794a; line-height: 1.4; }
.hh-related__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hh-related__item { display: flex; flex-direction: column; text-decoration: none; color: #263743; background: #fff; border: 1px solid #e3eaee; border-radius: 10px; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.hh-related__item:hover { box-shadow: 0 8px 24px rgba(38,55,67,.10); transform: translateY(-2px); }
.hh-related__thumb { display: block; aspect-ratio: 1200 / 630; background: #eef4f7; overflow: hidden; }
.hh-related__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-related__meta { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; font-size: 12px; color: #6b7a84; }
.hh-related__meta .blog-item-tag { font-size: 11px; }
.hh-related__name { padding: 6px 14px 16px; font-size: 15px; font-weight: 600; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) { .hh-related__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .hh-related__list { grid-template-columns: 1fr; gap: 12px; }
  .hh-related__item { flex-direction: row; }
  .hh-related__thumb { flex: 0 0 120px; aspect-ratio: auto; }
  .hh-related__meta { padding: 10px 12px 0; }
  .hh-related__name { padding: 4px 12px 12px; font-size: 14px; }
  .hh-related__item { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto 1fr; }
  .hh-related__thumb { grid-row: 1 / 3; }
}

/* 2026-10-17 オーナー指摘「スマホは横幅が狭くて見づらい。横幅ギリギリに」
   スマホでは外枠(20px)と内枠(10px)の余白をなくし、白い面を画面の端から端まで。本文の左右は白い面の中の 20px だけ */
@media (max-width: 768px) {
  .blog-article-page .hh-article-section { padding-left: 0 !important; padding-right: 0 !important; }
  .blog-article-page .hh-article-section .blog-layout-container { padding-left: 0 !important; padding-right: 0 !important; }
  .blog-article-page .hh-article { border-radius: 0 !important; padding-left: 20px !important; padding-right: 20px !important; }
}
