/* SHAkin TIMES 記事ページ共通スタイル（トップページのデザインに合わせています） */
:root {
  --orange: #EB6202;
  --orange-soft: #FFF8F4;
  --orange-line: #f0ddd4;
  --blue: #004EA1;
  --black: #1a1a1a;
  --gray-bg: #f8f8f6;
  --gray-border: #e8e8e8;
  --text: #333;
  --text-mid: #666;
  --text-light: #999;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 2px solid var(--orange);
  height: 64px; display: flex; align-items: center;
}
.header__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header__home { font-size: 15px; font-weight: 900; color: var(--black); text-decoration: none; letter-spacing: 0.02em; }
.header__nav { display: flex; align-items: center; gap: 24px; }
.header__nav a { font-size: 13px; color: var(--text-mid); font-weight: 500; text-decoration: none; }
.header__nav a:hover { color: var(--orange); }
.header__nav .btn-trial {
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 700;
  padding: 8px 16px; border-radius: 4px; white-space: nowrap;
}
.header__nav .btn-trial:hover { background: #d45500; color: #fff; }

/* ---------- パンくず ---------- */
.breadcrumb { max-width: 760px; margin: 24px auto 0; padding: 0 24px; font-size: 12px; color: var(--text-light); }
.breadcrumb a { color: var(--text-mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 6px; }

/* ---------- 記事ヘッダー ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 3px;
  background: #e6f0ff; color: var(--blue); border: 1px solid #b0caff;
}
.article__title { font-size: clamp(24px, 4vw, 32px); font-weight: 900; line-height: 1.5; color: var(--black); margin-bottom: 20px; }
.article__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mid); padding-bottom: 28px; border-bottom: 1px solid var(--gray-border); }
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #FFF0E6; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article__author { color: var(--text-mid); text-decoration: none; }
.article__author:hover { color: var(--orange); text-decoration: underline; }
.author__more { font-size: 13px !important; margin: 10px 0 0 !important; line-height: 1.6 !important; }
.author__more a { color: var(--blue); font-weight: 700; }
.article__date { margin-left: auto; color: var(--text-light); }

/* ---------- 本文 ---------- */
.lead { font-size: 16px; line-height: 2; margin: 32px 0; }
.article p { font-size: 16px; line-height: 2; margin-bottom: 1.4em; }
.article h2 {
  font-size: 22px; font-weight: 900; line-height: 1.55; color: var(--black);
  margin: 56px 0 20px; padding-left: 14px; border-left: 4px solid var(--orange);
  scroll-margin-top: 80px;
}
.article h3 { font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--black); margin: 36px 0 12px; scroll-margin-top: 80px; }
.article ul, .article ol { margin: 0 0 1.6em 1.4em; }
.article li { font-size: 16px; line-height: 1.9; margin-bottom: 0.5em; }
.article strong { color: var(--black); }
.article a { color: var(--blue); text-underline-offset: 3px; }
.article blockquote {
  margin: 0 0 1.6em; padding: 18px 22px; background: var(--gray-bg);
  border-left: 4px solid var(--gray-border); font-size: 15px; line-height: 1.9; color: var(--text);
}
.article blockquote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--text-mid); }

/* この記事でわかること */
.summary { background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: var(--radius); padding: 22px 26px; margin: 32px 0; }
.summary__title { font-size: 15px; font-weight: 900; color: var(--orange); margin-bottom: 10px; }
.summary ul { margin: 0 0 0 1.2em; }
.summary li { font-size: 15px; line-height: 1.85; margin-bottom: 0.3em; }

/* 目次 */
.toc { border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 20px 26px; margin: 0 0 40px; }
.toc__title { font-size: 14px; font-weight: 900; color: var(--black); margin-bottom: 8px; }
.toc ol { margin: 0 0 0 1.3em; }
.toc li { font-size: 14px; line-height: 1.8; margin-bottom: 0.2em; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--orange); text-decoration: underline; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--gray-border); border-radius: var(--radius); }
.article table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; line-height: 1.7; }
.article th, .article td { padding: 12px 14px; border-bottom: 1px solid var(--gray-border); text-align: left; vertical-align: top; }
.article th { background: var(--gray-bg); font-weight: 700; color: var(--black); white-space: nowrap; }
.article tr:last-child td { border-bottom: none; }
.article td.num, .article th.num { text-align: right; white-space: nowrap; }
.article tr.total td { font-weight: 700; background: var(--orange-soft); }
.note { font-size: 13px !important; color: var(--text-mid); line-height: 1.8 !important; }

/* 本文中の控えめな案内 */
.inline-cta { border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); padding: 20px 0; margin: 36px 0; }
.inline-cta p { font-size: 15px; margin-bottom: 8px; }
.inline-cta a { font-weight: 700; color: var(--orange); }

/* よくある質問 */
.faq__item { border-bottom: 1px solid var(--gray-border); padding: 18px 0; }
.article .faq__q { font-size: 16px; font-weight: 700; color: var(--black); line-height: 1.7; margin: 0 0 8px; }
.faq__a { font-size: 15px !important; margin-bottom: 0 !important; color: var(--text); }

/* 著者 */
.author { display: grid; grid-template-columns: 72px 1fr; gap: 18px; background: var(--gray-bg); border-radius: var(--radius); padding: 24px; margin-top: 56px; }
.author .avatar { width: 72px; height: 72px; }
.author__label { font-size: 12px; color: var(--text-light); margin-bottom: 2px !important; line-height: 1.6 !important; }
.author__name { font-size: 16px; font-weight: 900; color: var(--black); margin-bottom: 6px !important; line-height: 1.6 !important; }
.author__bio { font-size: 14px !important; line-height: 1.85 !important; color: var(--text-mid); margin-bottom: 0 !important; }

/* 関連記事 */
.related { margin-top: 48px; }
.related__title { font-size: 16px; font-weight: 900; color: var(--black); margin-bottom: 12px; }
.related ul { list-style: none; margin: 0; }
.related li { border-top: 1px solid var(--gray-border); padding: 12px 0; margin: 0; font-size: 15px; }
.related a { color: var(--black); text-decoration: none; font-weight: 700; }
.related a:hover { color: var(--orange); }

/* ---------- CTA・フッター（トップページと共通） ---------- */
.cta { background: var(--black); padding: 56px 24px; text-align: center; }
.cta__inner { max-width: 560px; margin: 0 auto; }
.cta__title { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 12px; line-height: 1.5; }
.cta__desc { font-size: 14px; color: #bbb; line-height: 1.8; margin-bottom: 28px; }
.cta__btn { display: inline-block; background: var(--orange); color: #fff; font-size: 15px; font-weight: 700; padding: 14px 40px; border-radius: 6px; text-decoration: none; }
.cta__btn:hover { background: #d45500; }
.footer { background: #111; color: #777; padding: 32px 24px; text-align: center; font-size: 12px; }
.footer__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.footer__nav a { color: #888; text-decoration: none; }
.footer__nav a:hover { color: #fff; }

@media (max-width: 768px) {
  .header__nav a:not(.btn-trial) { display: none; }
  .article h2 { font-size: 20px; }
  .author { grid-template-columns: 1fr; }
}

/* ---------- 著者プロフィールページ ---------- */
.profile__head { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; padding: 8px 0 28px; border-bottom: 1px solid var(--gray-border); }
.profile__head .avatar { width: 112px; height: 112px; }
.profile__name { font-size: clamp(24px, 4vw, 30px); font-weight: 900; color: var(--black); line-height: 1.4; margin: 0 0 6px; }
.profile__role { font-size: 14px !important; color: var(--text-mid); line-height: 1.7 !important; margin: 0 !important; }
.profile__links { list-style: none; margin: 0 0 1.4em !important; }
.profile__links li { margin: 0 0 0.4em; }
.article-list { list-style: none; margin: 0 !important; }
.article-list li { border-top: 1px solid var(--gray-border); padding: 14px 0; margin: 0; }
.article-list a { color: var(--black); text-decoration: none; font-weight: 700; font-size: 16px; }
.article-list a:hover { color: var(--orange); }
.article-list span { display: block; font-size: 12px; color: var(--text-light); margin-top: 4px; }
@media (max-width: 768px) { .profile__head { grid-template-columns: 1fr; } }

.article__eyecatch { margin: 24px 0 8px; border-radius: 10px; overflow: hidden; }
.article__eyecatch img { width: 100%; height: auto; display: block; }
