/* ============================================================
   styles-article.css — Voice list + Column article templates
   Depends on styles.css (tokens / buttons / fade / ph)
   ============================================================ */

/* ---------- 記事本文フォント（single.php / single-loan.php のみ） ----------
   body_class() が付与する single-post / single-loan で対象を絞り、
   Google Fontsを使わずOS標準のサンセリフ書体を使用する ---------- */
body.single-post .article-head,
body.single-post .article-wrap,
body.single-post .related,
body.single-loan .article-head,
body.single-loan .article-wrap,
body.single-loan .related {
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;}

/* ---------- Nav (vanilla, hamburger) ---------- */
.ph-head-sub { margin: 24px 0 0; max-width: 640px; font-size: 16px; line-height: 2; color: var(--ink-2); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 0 clamp(40px, 5vw, 64px);
  background: var(--bg);
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all .25s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-chip .cnt { font-family: var(--num); font-size: 11px; opacity: .7; }

/* ---------- Featured article ---------- */
.voice-section { padding: 0 0 clamp(80px,10vw,140px); background: var(--bg); }

.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-xl);
  overflow: hidden; margin-bottom: 56px; transition: all .4s ease;
}
.featured:hover { border-color: var(--accent); box-shadow: 0 32px 56px -32px rgba(0,0,0,.18); }
.featured .f-img { position: relative; aspect-ratio: 16/11; }
.featured .f-img > image-slot, .featured .f-img > .ph { width: 100%; height: 100%; display: block; border-radius: 0; }
.featured .f-badge {
  position: absolute; top: 22px; left: 22px; background: var(--accent); color: #fff;
  padding: 8px 16px; font-family: var(--num); font-size: 10.5px; letter-spacing: .2em; font-weight: 700; border-radius: 999px;
}
.featured .f-body { padding: clamp(32px,4vw,56px); display: flex; flex-direction: column; justify-content: center; }
.featured .f-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--ink); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.cat-tag.c-payroll { background: var(--accent); }
.cat-tag.c-hr { background: var(--accent-deep); }
.cat-tag.c-audit { background: #3a4148; }
.cat-tag.c-dx { background: #4cc0d4; }
.cat-tag.c-grant { background: #6a8a3a; }
.post-date { font-family: var(--num); font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }
.featured h2 { margin: 0 0 18px; font-size: clamp(22px,2.6vw,34px); font-weight: 700; line-height: 1.5; letter-spacing: .02em; }
.featured p { margin: 0 0 28px; font-size: 14px; line-height: 1.95; color: var(--ink-2); }
.read-more { display: inline-flex; align-items: center; gap: 12px; font-family: var(--num); font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--ink); }
.read-more .line { width: 28px; height: 1px; background: var(--accent); transition: width .3s; }
.featured:hover .read-more .line, .voice-card:hover .read-more .line { width: 44px; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

/* ---------- Article grid ---------- */
.voice-grid-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .voice-grid-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .voice-grid-list { grid-template-columns: 1fr; } }

.voice-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: all .35s ease;
}
.voice-card.hide { display: none; }
.voice-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 28px 44px -30px rgba(0,0,0,.2); }
.voice-card .vc-img { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.voice-card .vc-img > image-slot, .voice-card .vc-img > .ph { width: 100%; height: 100%; display: block; border-radius: 0; transition: transform .6s ease; }
.voice-card:hover .vc-img > image-slot, .voice-card:hover .vc-img > .ph { transform: scale(1.05); }
.voice-card .vc-company {
  position: absolute; bottom: 14px; left: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--ink); letter-spacing: .03em;
}
.voice-card .vc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.voice-card .vc-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.voice-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; line-height: 1.6; letter-spacing: .01em; }
.voice-card p { margin: 0 0 20px; font-size: 16px; line-height: 1.85; color: var(--ink-3); flex: 1; }
.voice-card .vc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }
.voice-card .vc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-sm { font-size: 10.5px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 64px; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  font-family: var(--num); font-size: 14px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); background: #fff; transition: all .25s; padding: 0 6px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .dots { border: 0; background: transparent; }
.pagination .nav-arrow { gap: 8px; }

/* ============================================================
   Article (column) page
   ============================================================ */
.article-head { padding: 124px 0 0; background: var(--bg); }
.article-head .container-narrow { position: relative; }
.article-meta-top { display: flex; align-items: center; gap: 14px; margin: 28px 0 22px; flex-wrap: wrap; }
.article-title {
  font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; line-height: 1.5;
  letter-spacing: .02em; margin: 0 0 28px; color: var(--ink); text-wrap: pretty;
}
.article-byline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.article-author { display: flex; align-items: center; gap: 14px; }
.article-author .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--bg-gray); flex-shrink: 0; }
.article-author .avatar > image-slot, .article-author .avatar > .ph { width: 100%; height: 100%; display: block; border-radius: 50%; }
.article-author .who .name { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.article-author .who .role { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.article-share { display: flex; align-items: center; gap: 8px; }
.article-share .s-label { font-family: var(--num); font-size: 10.5px; letter-spacing: .2em; font-weight: 700; color: var(--ink-3); margin-right: 4px; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: all .25s; }
.share-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.share-btn svg { width: 16px; height: 16px; }

.article-hero-img { margin: clamp(36px,5vw,56px) 0 0; }
.article-hero-img .frame { width: 100%; /*aspect-ratio: 16/8;*/ border-radius: var(--r-xl); overflow: hidden; }
.article-hero-img .frame > image-slot, .article-hero-img .frame > .ph { width: 100%; height: 100%; display: block; border-radius: 0; }
.article-hero-img .cap { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }

/* Article body layout */
.article-wrap { padding: clamp(48px,6vw,80px) 0 clamp(80px,10vw,130px); background: var(--bg); }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: clamp(40px,5vw,72px); align-items: start; }
@media (max-width: 940px) { .article-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.article-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 940px) { .article-side { position: static; } }
.toc-card { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px 24px; }
.toc-card h4 { margin: 0 0 18px; font-family: var(--num); font-size: 11px; letter-spacing: .22em; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc-list a { display: flex; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.6; color: var(--ink-2); transition: all .2s; border-left: 2px solid transparent; }
.toc-list a::before { counter-increment: toc; content: counter(toc,decimal-leading-zero); font-family: var(--num); font-size: 10px; font-weight: 700; color: var(--ink-3); padding-top: 2px; }
.toc-list a:hover { background: #fff; color: var(--accent); }
.toc-list a.active { background: #fff; color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-list a.active::before { color: var(--accent); }

.side-cta { background: #f7f7f7; color: #333; border-radius: var(--r-lg); padding: 28px 24px; position: relative; overflow: hidden; }
.side-cta h4 { margin: 0 0 10px; font-size: 17px; font-weight: 700; line-height: 1.5; position: relative; }
.side-cta p, .sc-tel { margin: 0 0 18px; font-size: 12px; line-height: 1.8; color: #333; position: relative; }
.side-cta .btn { width: 100%; justify-content: center; position: relative; }
.sc-tel {margin-top: 1rem;}

/* Article typography */
.article-body { font-size: 16px; line-height: 2.05; color: var(--ink-2); max-width: 720px; }
.article-body > * + * { margin-top: 28px; }
.article-body .lead { font-size: 18px; line-height: 2; color: var(--ink); font-weight: 500; }
.article-body h2, .h2-title {
  font-size: clamp(21px,2.3vw,28px); font-weight: 700; line-height: 1.5; color: var(--ink);
  letter-spacing: .02em; margin-top: 60px; padding: 0 0 16px; border-bottom: 2px solid var(--line-2);
  position: relative; scroll-margin-top: 100px;
}
.article-body h2::after, .h2-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--accent); }
.article-body h3, .h3-title { font-size: clamp(17px,1.9vw,21px); font-weight: 700; line-height: 1.55; color: var(--ink); margin-top: 44px; letter-spacing: .02em; scroll-margin-top: 100px; padding-left: 16px; border-left: 4px solid var(--accent); background-color: #f5f5f5; padding: 8px 12px; }
.article-body p { margin-top: 22px; text-wrap: pretty; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body a.inline { color: var(--accent-deep); border-bottom: 1px solid var(--accent-soft); font-weight: 600; }
.article-body a.inline:hover { border-bottom-color: var(--accent-deep); }
.article-body ul, .article-body ol { margin-top: 22px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article-body ul li { position: relative; padding-left: 30px; line-height: 1.9; }
.article-body ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.article-body ol { counter-reset: ol; }
.article-body ol > li { position: relative; padding-left: 42px; line-height: 1.9; counter-increment: ol; }
.article-body ol > li::before { content: counter(ol); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; background: var(--accent); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 12px; font-weight: 700; }
.article-body ol li ul { margin-top: 10px; gap: 8px; }
.article-body ol li ul li { padding-left: 18px; }
.article-body ol li ul li::before { content: "・"; position: absolute; left: 2px; top: 0; width: auto; height: auto; background: none; border: none; transform: none; border-radius: 0; display: inline; color: var(--ink-2); font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.9; }

.article-body figure { margin: 36px 0; }
.article-body figure .frame { width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; }
.article-body figure .frame > image-slot, .article-body figure .frame > .ph { width: 100%; height: 100%; display: block; border-radius: 0; }
.article-body figure figcaption { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; letter-spacing: .03em; }

.article-body blockquote {
  margin: 36px 0; padding: 28px 32px; background: var(--bg-soft);
  border-left: 4px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 16px; line-height: 1.95; color: var(--ink); font-weight: 500; position: relative;
}
.article-body blockquote::before { content: "“"; font-family: var(--num); font-size: 56px; color: var(--accent-soft); position: absolute; top: 8px; right: 20px; line-height: 1; font-weight: 700; }

.callout {
  margin: 36px 0; padding: 28px 30px; background: var(--accent-soft);
  border-radius: var(--r-lg); position: relative;
}
.callout .c-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--num); font-size: 10.5px; letter-spacing: .2em; font-weight: 700; color: var(--accent-deep); margin-bottom: 12px; }
.callout p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--accent-ink); }
.callout.warn { background: #fbeae7; }
.callout.warn .c-label { color: var(--warn); }
.callout.warn p { color: #6e2c23; }

.article-table-wrap { margin: 36px 0; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line-2); }
.article-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.article-table th { background: var(--ink); color: #fff; text-align: left; padding: 16px 18px; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; }
.article-table td { padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.article-table tr:last-child td { border-bottom: 0; }
.article-table tr:nth-child(even) td { background: var(--bg-soft); }

/* Tags + author box + share footer */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line-2); max-width: 720px; }
.article-tags .t { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-gray); padding: 8px 16px; border-radius: 999px; transition: all .25s; }
.article-tags .t:hover { background: var(--accent); color: #fff; }

.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 24px; margin-top: 40px; padding: 32px; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--r-lg); max-width: 720px; align-items: start; }
.author-box .ab-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: var(--bg-gray); }
.author-box .ab-avatar > image-slot, .author-box .ab-avatar > .ph { width: 100%; height: 100%; display: block; border-radius: 50%; }
.author-box .ab-role { font-family: var(--num); font-size: 10.5px; letter-spacing: .2em; font-weight: 700; color: var(--accent); }
.author-box .ab-name { font-size: 18px; font-weight: 700; margin: 6px 0 12px; letter-spacing: .02em; }
.author-box .ab-bio { font-size: 13px; line-height: 1.9; color: var(--ink-2); margin: 0; }
@media (max-width: 540px) { .author-box { grid-template-columns: 1fr; } }

/* Related articles */
.related { padding: clamp(72px,9vw,120px) 0; background: var(--bg-soft); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 1000px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Shared CTA band ---------- */
.cta-band { padding: clamp(72px,9vw,120px) 0; background: var(--bg); }
.cta-band-card {
  background: linear-gradient(135deg, #1b8aa3 0%, #26a4c0 55%, #4cc0d4 100%);
  color: #fff; border-radius: var(--r-xl); padding: clamp(44px,6vw,72px) clamp(32px,5vw,72px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.cta-band-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.cta-band-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.16), transparent 50%); }
.cta-band-card > * { position: relative; z-index: 1; }
.cta-band-card .eyebrow { color: rgba(255,255,255,.9); }
.cta-band-card h2 { margin: 14px 0 16px; font-size: clamp(26px,3.4vw,40px); font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.cta-band-card p { margin: 0; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.9); }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band-actions .btn-white { background: #fff; color: var(--accent-deep); padding: 20px 26px; border-radius: var(--r-md); font-weight: 700; font-size: 15px; justify-content: space-between; }
.cta-band-actions .btn-white:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.cta-band-actions .tel { padding: 16px 22px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-md); }
.cta-band-actions .tel .label { font-family: var(--num); font-size: 10px; letter-spacing: .22em; opacity: .85; }
.cta-band-actions .tel .num { font-family: var(--num); font-size: 26px; font-weight: 700; display: block; line-height: 1.2; }
@media (max-width: 800px) { .cta-band-card { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg); padding: 80px 0 140px; border-top: 1px solid var(--line-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-2); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .addr { font-size: 12.5px; line-height: 1.95; color: var(--ink-3); }
.footer-brand .addr strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; font-size: 13px; }
.footer-col h5 { margin: 0 0 18px; font-family: var(--num); font-size: 11px; letter-spacing: .22em; font-weight: 700; color: var(--accent); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--ink-2); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--ink-3); letter-spacing: .05em; gap: 16px; flex-wrap: wrap; }
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a:hover { color: var(--ink); }

/* Reading progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 101; transition: width .1s linear; }

/* ============================================================
   Voice detail page — お客様の声 詳細
   ============================================================ */

/* 会社情報バー */
.voice-client-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--r-md);
}
.voice-client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

/* Q&A セクション */
.voice-qa { margin-top: 2.5rem; }

.qa-item {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.qa-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.qa-q-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.qa-a-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.qa-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #fff;
  font-family: var(--num);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
}
.qa-badge--q { background: var(--accent); }
.qa-badge--a { background: var(--ink-2); }

.qa-q-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.65;
  margin: 0;
  padding-top: .45rem;
  color: var(--ink);
}
.qa-a-body {
  flex: 1;
  padding-top: .45rem;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}
.qa-a-body p { margin: 0; }
.qa-a-body p + p { margin-top: 1rem; }
