.admin-bar .site-header.is-scrolled { top: 32px; }

/* ===== 体験申込セクションの条件表示 ===== */
/* 2列グリッドで左揃え。flex + justify-content: center だと 3個＋1個 に
   折り返して4つ目が中央に取り残され、左揃えの見出し・本文とも揃わなかった。
   背景をクリームで塗るのは、濃い文字がオレンジ地に直接乗っていて読みにくい
   ため。囲みが白1pxの半透明だけでは下地と分離できていなかった。 */
.contact-terms { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 700px; }
/* 背景は塗らずオレンジ地のまま、白の太枠で囲む。文字がオレンジに直接乗るので
   ラベルは opacity を掛けない（掛けるとコントラストが 4.27 まで落ちてAA未達。
   濃い文字のままなら 6.25 で基準を満たす）。 */
.contact-terms li { margin: 0; padding: 16px 26px; background: transparent; border: 2px solid var(--white); border-radius: 999px; line-height: 1.4; }
.contact-terms span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.contact-terms b { display: block; margin-top: 5px; font-size: 21px; font-weight: 850; letter-spacing: -.01em; color: var(--ink); }

/* 左列は左から、右列は右から。1列になるスマホでも交互に振れる。
   発火は親（.contact-inner）ではなく、front-page.php で1枚ずつに付けた
   data-reveal に任せる。親に任せると、親の上端が16%見えた時点で発火し、
   その時ピルはまだ画面外なので、動きが見えないまま終わってしまう。 */
.contact-terms li[data-reveal] { opacity: 0; transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); }
.contact-terms li[data-reveal="term-left"] { transform: translate3d(-52px, 0, 0); }
/* 右列は少し遅らせて、左→右の順に出す。 */
.contact-terms li[data-reveal="term-right"] { transform: translate3d(52px, 0, 0); transition-delay: .12s; }
.contact-terms li[data-reveal][data-visible="true"] { opacity: 1; transform: translate3d(0, 0, 0); }
@media (prefers-reduced-motion: reduce) {
  .contact-terms li[data-reveal] { opacity: 1; transform: none; transition: none; }
}
/* スマホは1列。横幅に余裕が出るので、ラベルと値を左右に振ったほうが締まる。 */
@media (max-width: 600px) {
  .contact-terms { grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: none; margin: 26px 0 30px; }
  .contact-terms li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 18px; }
  .contact-terms span { margin: 0; }
  .contact-terms b { margin-top: 0; font-size: 17px; text-align: right; }
}

/* ===== 記事内パーツ ===== */
/* --- 出典表記 --- */
.single-content .source-note {
  margin: 2.6em 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  background: rgba(0, 0, 0, .025);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.9;
  color: #6b665d;
}
.single-content .source-note a { color: inherit; text-underline-offset: 3px; }

/* --- 記事内の図版 --- */
.single-content .article-figure { margin: 2.4em 0; }
.single-content .article-figure img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--white); }
.single-content .article-figure figcaption { margin: 12px 2px 0; font-size: 13px; line-height: 1.8; color: #6b665d; text-align: left; }
.single-content .article-figure figcaption::before { content: ""; display: inline-block; width: 18px; height: 2px; border-radius: 999px; background: var(--orange); vertical-align: middle; margin-right: 8px; }
/* 実写を混ぜたときも同じ枠に収める */
.single-content .single-thumbnail img, .single-content .wp-block-image img { border-radius: 14px; }

/* --- h2 の装飾とスクロールアニメーション --- */
.single-content h2 { position: relative; padding-top: 34px; margin: 2.9em 0 .9em; }
.single-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 78px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--orange), #ffa060); transform-origin: left center; }
.single-content h2::after { content: ""; position: absolute; top: -9px; left: 58px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); opacity: .14; }
/* site.js が data-reveal="head" を付けた h2 だけアニメーションする。
   JS が動かなければ属性が付かず通常表示のままなので、本文が消える事故は起きない。
   h2 本体の opacity / translateY は site.css の [data-reveal] が担当。ここは装飾のみ。 */
.single-content h2[data-reveal]::before { transform: scaleX(0); transition: transform .9s .1s cubic-bezier(.16,1,.3,1); }
.single-content h2[data-reveal][data-visible="true"]::before { transform: scaleX(1); }
.single-content h2[data-reveal]::after { transform: scale(.2); opacity: 0; transition: transform .75s .34s cubic-bezier(.34,1.56,.64,1), opacity .5s .34s ease; }
.single-content h2[data-reveal][data-visible="true"]::after { transform: scale(1); opacity: .14; }
@media (prefers-reduced-motion: reduce) {
  .single-content h2[data-reveal]::before { transform: scaleX(1); transition: none; }
  .single-content h2[data-reveal]::after { transform: scale(1); opacity: .14; transition: none; }
}

.single-content h3 { margin: 2.2em 0 .7em; font-size: clamp(20px,2vw,26px); line-height: 1.4; letter-spacing: -.02em; color: var(--ink); padding-left: 16px; border-left: 4px solid rgba(255,90,0,.42); }
.single-content h4 { margin: 1.8em 0 .6em; font-size: 18px; color: #57534c; }
.single-content strong { font-weight: 700; color: var(--ink); }
.single-content ul, .single-content ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.single-content li { margin-bottom: .6em; line-height: 1.9; }

.summary-box { background: #fff1e6; border: 1px solid #ffd7c6; border-left: 5px solid var(--orange); border-radius: 10px; padding: 24px 26px 22px; margin: 2em 0; }
.summary-box::before { content: "この記事でわかること"; display: block; font-weight: 700; color: var(--orange); font-size: 15px; letter-spacing: .04em; margin-bottom: 12px; }
.summary-box ul { margin: 0; padding-left: 1.3em; }
.summary-box li:last-child { margin-bottom: 0; }

.table-of-contents { background: #efe9dd; border: 1px solid #e4ddd0; border-radius: 10px; padding: 24px 26px 22px; margin: 2em 0; }
.table-of-contents::before { content: "目次"; display: block; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--ink); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--orange); }
.table-of-contents ul { margin: 0; padding-left: 1.4em; }
.table-of-contents li { margin-bottom: 9px; line-height: 1.6; }
.table-of-contents a { color: #28241f; text-decoration: none; }
.table-of-contents a:hover { color: var(--orange); text-decoration: underline; }

.scroll-box { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2em 0; }
.scroll-box table { width: 100%; min-width: 480px; border-collapse: separate; border-spacing: 0; background: var(--white); font-size: 15px; line-height: 1.7; border: 2px solid #d9cfbd; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 14px rgba(12,12,12,.06); }
.scroll-box thead th { background: var(--orange); color: var(--white); font-weight: 700; text-align: left; padding: 14px 18px; white-space: nowrap; border-right: 1px solid rgba(255,253,248,.34); }
.scroll-box thead th:last-child { border-right: 0; }
.scroll-box tbody td { padding: 14px 18px; border-top: 1px solid #ddd2bf; border-right: 1px solid #e6dccb; vertical-align: middle; color: #28241f; }
.scroll-box tbody td:last-child { border-right: 0; }
.scroll-box tbody tr:nth-child(even) td { background: #faf6ee; }
.scroll-box tbody td:first-child { font-weight: 700; background: #f3ece0; border-right: 2px solid #ddd2bf; white-space: nowrap; color: #0c0c0c; }
.scroll-box tbody tr:nth-child(even) td:first-child { background: #efe6d7; }
/* 行見出しの th（tbody内）。列見出し用の `thead th` とは別に指定しないと、
   背景・罫線・左揃えが一切効かず、左列だけ浮いて表が崩れて見える。
   見た目は `tbody td:first-child` に合わせる。 */
.scroll-box tbody th { padding: 14px 18px; border-top: 1px solid #ddd2bf; border-right: 2px solid #ddd2bf; background: #f3ece0; color: #0c0c0c; font-weight: 700; text-align: left; white-space: nowrap; vertical-align: middle; }
.scroll-box tbody tr:nth-child(even) th { background: #efe6d7; }
@media (max-width: 600px) { .scroll-box::before { content: "→ 横にスクロールできます"; position: sticky; left: 0; display: block; width: max-content; font-size: 11px; color: var(--muted); padding: 0 2px 6px; } .scroll-box table { font-size: 14px; } .scroll-box thead th, .scroll-box tbody td, .scroll-box tbody th { padding: 10px 12px; } }

.box-point, .box-memo, .box-caution { border-radius: 10px; padding: 22px 24px; margin: 2em 0; line-height: 1.9; }
.box-point p, .box-memo p, .box-caution p { margin: 0; }
.box-point strong, .box-memo strong, .box-caution strong { display: inline-block; margin-bottom: 6px; font-size: 16px; }
.box-point { background: #fff1e6; border: 1px solid #ffd7c6; border-left: 5px solid var(--orange); }
.box-point strong { color: var(--orange); }
.box-memo { background: #efe9dd; border: 1px solid #e4ddd0; border-left: 5px solid var(--muted); }
.box-memo strong { color: #57534c; }
.box-caution { background: #fff4f4; border: 1px solid #f5d0d0; border-left: 5px solid #d4483f; }
.box-caution strong { color: #c23b3b; }

.single-content details { background: var(--white); border: 2px solid #e4ddd0; border-radius: 14px; margin-bottom: 14px; padding: 20px 24px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.single-content details:hover { border-color: #ffc9ac; transform: translateY(-1px); }
.single-content details[open] { border-color: var(--orange); box-shadow: 0 6px 20px rgba(255,90,0,.1); }
.single-content details > summary { position: relative; padding-left: 40px; padding-right: 40px; font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer; list-style: none; line-height: 1.65; }
.single-content details > summary::-webkit-details-marker { display: none; }
.single-content details > summary::before { content: "Q"; position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.single-content details > summary:hover { color: var(--orange); }
.single-content details > summary::after { content: ""; position: absolute; right: 4px; top: 9px; width: 12px; height: 12px; border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(45deg); transform-origin: center; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.single-content details[open] > summary::after { transform: rotate(225deg); }
.single-content .faq-answer { position: relative; margin-top: 16px; padding: 16px 0 0 40px; border-top: 1px dashed #e4ddd0; }
.single-content .faq-answer::before { content: "A"; position: absolute; left: 0; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: #f3ece0; color: #57534c; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.single-content .faq-answer p { margin: 0; line-height: 1.95; }

.cta-box { background: var(--ink); border-radius: 14px; padding: 34px 30px; margin: 2.6em 0; text-align: center; color: var(--white); }
.cta-box p { margin: 0 0 18px; color: #e8e3da; font-size: 16px; line-height: 1.9; }
.cta-box strong { display: block; color: var(--white); font-size: 20px; margin-bottom: 10px; letter-spacing: -.01em; }
.cta-box a.cta-btn { display: inline-block; background: var(--orange); color: var(--white); text-decoration: none; font-weight: 700; padding: 15px 38px; border-radius: 999px; letter-spacing: .04em; transition: background .25s ease, transform .25s ease; }
.cta-box a.cta-btn:hover { background: var(--orange-light); transform: translateY(-2px); }
.cta-box .cta-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.wp-page-title { margin: 28px 0; font-size: clamp(54px,8vw,120px); font-weight: 900; letter-spacing: -.07em; line-height: .88; }
.wp-page-title em { color: var(--orange); font-style: normal; }
.wp-blog-page, .wp-single-page { background: var(--paper); min-height: 100vh; }
.wp-archive-grid { margin-bottom: 44px; }
.wp-post-photo-link { display: block; border: 0; padding: 0; width: 100%; height: 100%; }
/* .blog-card a は「続きを読む」リンク用のスタイル（inline-flex / width:fit-content /
   border-bottom / padding-bottom / margin-top:auto）。詳細度が .wp-post-photo-link より
   高いため、アイキャッチのリンクにも当たってしまい、写真がカード幅まで広がらない。
   WordPressではアイキャッチが <a><img> で出力されるので、ここで打ち消す。 */
.blog-card a.wp-post-photo-link { display: block; width: 100%; height: 100%; margin-top: 0; border-bottom: 0; padding-bottom: 0; }
.wp-post-photo-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-photo-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,var(--ink),#202020 52%,var(--orange)); }
.blog-card h3 a { border: 0; padding: 0; font-size: inherit; font-weight: inherit; display: inline; }
.single-article { padding: 150px 7vw 110px; }
.single-hero { max-width: 1060px; margin: 0 auto 70px; }
.single-hero h1 { margin: 34px 0 0; font-size: clamp(42px,7vw,112px); line-height: .98; letter-spacing: -.075em; }
.single-excerpt { max-width: 760px; margin: 34px 0 0; color: #625d55; font-size: clamp(16px,1.6vw,22px); line-height: 1.9; font-weight: 700; }
.single-thumbnail { max-width: 1120px; margin: 0 auto 70px; overflow: hidden; border-radius: 34px; background: var(--ink); }
.single-thumbnail img { display: block; width: 100%; height: auto; }
.single-content { max-width: 820px; margin: 0 auto; color: #28241f; font-size: 17px; line-height: 2.05; }
.single-content p { margin: 0 0 1.6em; }
.single-content h2 { margin: 2.3em 0 .9em; font-size: clamp(28px,3vw,46px); line-height: 1.2; letter-spacing: -.05em; }
.single-content a { color: var(--orange); text-decoration: underline; text-underline-offset: .2em; }
.navigation.pagination { display: flex; justify-content: center; margin-top: 55px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(12,12,12,.2); border-radius: 999px; font-weight: 800; }
.page-numbers.current { color: var(--white); background: var(--ink); }

/* トップの記事グリッド直下に置く、記事一覧ページへの導線。
   トップには最新4件しか出ないため、これが無いと5件目以降に到達できない。 */
.blog-more { position: relative; z-index: 1; margin: 48px 0 0; text-align: center; }
.blog-more a { display: inline-flex; align-items: center; gap: 13px; padding: 18px 42px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 850; letter-spacing: .06em; transition: background .3s ease, transform .3s ease; }
.blog-more a:hover { background: var(--orange); transform: translateY(-3px); }

/* 記事一覧ページのカテゴリー切り替え。
   ページ送りと併用するため、JSでの絞り込みではなくリンク（?blogcat=カテゴリーID）で
   サーバー側から絞り込む。2ページ目以降でも件数が正しくなる。 */
.blog-filter { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin: 46px 0 0; }
.blog-filter a { display: inline-flex; align-items: center; padding: 12px 24px; border: 1px solid rgba(12,12,12,.2); border-radius: 999px; color: var(--ink); font-size: 12px; font-weight: 850; letter-spacing: .06em; transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }
.blog-filter a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.blog-filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.blog-filter a[aria-current="page"]:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.blog-filter + .blog-grid { margin-top: 34px; }

/* トップの記事は3列なので6件で2段ぴったりだが、スマホは1列になり縦に長くなりすぎる。
   記事一覧ページ（.wp-archive-grid）には効かせないこと。 */
@media (max-width: 800px) {
  .blog-grid:not(.wp-archive-grid) .blog-card:nth-child(n+5) { display: none; }
}

/* 記事一覧ページの「トップにもどる」。 */
.blog-back { margin: 52px 0 0; }
.blog-back a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border: 1px solid rgba(12,12,12,.22); border-radius: 999px; color: var(--ink); font-size: 12px; font-weight: 850; letter-spacing: .06em; transition: border-color .3s ease, color .3s ease, transform .3s ease; }
.blog-back a:hover { border-color: var(--orange); color: var(--orange); transform: translateX(-4px); }
@media (max-width: 782px) {
  .admin-bar .site-header.is-scrolled { top: 46px; }
}
@media (max-width: 800px) {
  .single-article { padding: 118px 22px 88px; }
  .single-hero h1 { font-size: clamp(38px,12vw,66px); }
  .single-thumbnail { border-radius: 22px; margin-bottom: 48px; }
  .single-content { font-size: 16px; line-height: 1.95; }
}

/* ===== 記事パーツ追加(ハル式V2対応) ===== */

/* マーカー線 */
.single-content .marker-yellow {
  background: linear-gradient(transparent 62%, rgba(255,214,102,.55) 62%);
  font-weight: 700;
}

/* 会話風の吹き出し */
.single-content .conversation-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 30px 0;
}
.single-content .conversation-box .name {
  flex: 0 0 auto;
  width: 108px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}
.single-content .conversation-box .text {
  position: relative;
  flex: 1 1 auto;
  background: rgba(255,253,248,.06);
  border: 1px solid rgba(255,253,248,.18);
  border-radius: 12px;
  padding: 16px 18px;
}
.single-content .conversation-box .text::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid rgba(255,253,248,.18);
}
.single-content .conversation-box .text > *:first-child { margin-top: 0; }
.single-content .conversation-box .text > *:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .single-content .conversation-box { flex-direction: column; gap: 6px; }
  .single-content .conversation-box .name { width: auto; }
  .single-content .conversation-box .text::before { display: none; }
}

/* 表の横スクロール(scroll-box と同等) */
.single-content .article-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
}
