/* アケナビ 共通スタイル。SWELL 時代の配色と本文部品のクラス名を引き継ぐ。 */
:root {
  --main: #04384c;
  --main-pale: #e8f0f3;
  --link: #1176d4;
  --accent: #e44141;
  --text: #333;
  --muted: #666;
  --bg: #fdfdfd;
  --surface: #fff;
  --border: #dcdfe3;
  --gray-bg: #f4f6f7;
  --marker-yellow: rgba(255, 228, 90, 0.75);
  --marker-orange: rgba(255, 176, 86, 0.6);
  --radius: 8px;
  --wrap: 1080px;
  --content: 760px;
  color-scheme: light;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--link); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }

/* ヘッダー・フッター */
.site-header { background: var(--main); color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.site-logo { color: #fff; font-size: 1.5rem; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; }
.site-nav ul { display: flex; gap: 4px 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: #fff; text-decoration: none; font-size: 0.9rem; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: #fff; }
.site-footer { margin-top: 64px; background: var(--main); color: #fff; padding: 28px 0 20px; font-size: 0.85rem; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; list-style: none; margin: 0 0 12px; padding: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { text-align: center; margin: 0; opacity: 0.85; }

/* パンくず */
.breadcrumb { font-size: 0.78rem; color: var(--muted); padding-top: 12px; padding-bottom: 4px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin: 0 0.5em; }
.breadcrumb a { color: var(--muted); }

/* トップ・一覧 */
.hero { background: var(--main-pale); padding: 36px 0; text-align: center; }
.hero__name { margin: 0; font-size: 1.8rem; font-weight: 700; color: var(--main); }
.hero__tagline { margin: 4px 0 0; color: var(--muted); }
.list { padding-top: 24px; }
.section-title { font-size: 1.15rem; margin: 24px 0 16px; padding-left: 12px; border-left: 3px solid var(--main); line-height: 1.5; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s; }
.card a:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.card__thumb { position: relative; aspect-ratio: 1.91 / 1; background: var(--gray-bg); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__cat { position: absolute; left: 0; top: 0; background: var(--main); color: #fff; font-size: 0.72rem; padding: 2px 10px; }
.card__body { padding: 12px 14px 14px; }
.card__title { margin: 0; font-weight: 700; line-height: 1.6; font-size: 0.95rem; }
.card__date { margin: 6px 0 0; color: var(--muted); font-size: 0.75rem; }
.notfound { margin: 0 0 24px; }

/* 記事 */
.article { max-width: calc(var(--content) + 32px); padding-top: 8px; }
.article__head { margin-bottom: 24px; }
.article__cat { display: inline-block; background: var(--main); color: #fff; font-size: 0.75rem; padding: 2px 10px; border-radius: 3px; text-decoration: none; }
.article__title { font-size: 1.6rem; line-height: 1.5; margin: 10px 0 8px; }
.article__dates { margin: 0; color: var(--muted); font-size: 0.8rem; display: flex; gap: 14px; }
.article__dates .pub::before { content: "公開日 "; }
.article__dates .mod::before { content: "更新日 "; }
.pr-notation { margin: 10px 0 0; font-size: 0.75rem; color: var(--muted); }
.article__eyecatch { margin: 16px 0 0; }
.article__eyecatch img { width: 100%; border-radius: var(--radius); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 32px; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 1.4em; }
.toc li { margin: 4px 0; line-height: 1.6; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.article__foot { margin-top: 40px; }
.tag-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; font-size: 0.8rem; border: 1px solid var(--border); border-radius: 99px; padding: 2px 12px; text-decoration: none; color: var(--muted); }
.author-box { background: var(--gray-bg); border-radius: var(--radius); padding: 14px 18px; font-size: 0.9rem; }
.author-box p { margin: 0; }
.related { max-width: calc(var(--content) + 32px); }

/* ---------- 本文（WordPress ブロック・SWELL 部品） ---------- */
.post_content > * { margin-top: 0; margin-bottom: 1.6em; }
.post_content p { margin: 0 0 1.6em; }
.post_content h2 {
  font-size: 1.35rem; line-height: 1.5; margin: 2.8em 0 1.2em; padding: 0.7em 0.9em;
  background: var(--main); color: #fff; border-radius: 4px;
}
.post_content h3 {
  font-size: 1.18rem; line-height: 1.5; margin: 2.4em 0 1em; padding: 0 0.3em 0.45em;
  border-bottom: 2px solid var(--main);
}
.post_content h4 { font-size: 1.05rem; margin: 2em 0 0.8em; padding-left: 12px; border-left: 2px solid var(--main); }
.post_content ul, .post_content ol { padding-left: 1.5em; }
.post_content li { margin: 0.3em 0; }
.post_content strong { font-weight: 700; }
.post_content blockquote { margin: 0 0 1.6em; padding: 1em 1.2em; background: var(--gray-bg); border-left: 3px solid #ccc; }
.post_content blockquote > :last-child { margin-bottom: 0; }

/* 画像 */
.wp-block-image { margin: 0 0 1.6em; text-align: center; }
.wp-block-image img { height: auto; }
.wp-block-image figcaption, .wp-element-caption { font-size: 0.8rem; color: var(--muted); margin-top: 0.5em; text-align: center; }

/* 表 */
.wp-block-table { margin: 0 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.9rem; line-height: 1.6; background: var(--surface); }
.wp-block-table table.has-fixed-layout { table-layout: fixed; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--border); padding: 0.6em 0.7em; vertical-align: top; text-align: left; }
.wp-block-table thead th, .wp-block-table thead td { background: var(--main-pale); font-weight: 700; }
.wp-block-table tbody th { background: var(--gray-bg); }
.wp-block-table figcaption { font-size: 0.8rem; color: var(--muted); }
.c-scrollHint { display: none; text-align: right; font-size: 0.75rem; color: var(--muted); margin: 0 0 4px; }
.c-scrollHint span::after { content: " →"; }
@media (max-width: 599px) {
  .c-scrollHint.sp_ { display: block; }
  /* SWELL の「スマホで横スクロール」表示。列が多い表は最低幅を持たせて横に送る */
  .c-scrollHint + .wp-block-table table, .c-scrollHint + figure table { min-width: 640px; }
}

/* ボタン（SWELL ボタンブロック） */
.swell-block-button { margin: 0 0 1.4em; text-align: center; }
.swell-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: min(100%, 320px); min-height: 52px;
  padding: 0.8em 1.6em; border-radius: 6px; background: var(--main); color: #fff !important; font-weight: 700; text-decoration: none;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15); transition: opacity 0.2s;
}
.swell-block-button__link:hover { opacity: 0.85; }

/* FAQ */
.swell-block-faq { margin: 0 0 2em; }
.swell-block-faq__item { margin: 0 0 1em; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq_q, .faq_a { position: relative; margin: 0; padding: 0.9em 1em 0.9em 3em; }
.faq_q { font-weight: 700; background: var(--main-pale); }
.faq_q::before, .faq_a::before { position: absolute; left: 0.9em; top: 0.75em; font-weight: 700; font-size: 1.1em; }
.faq_q::before { content: "Q"; color: var(--main); }
.faq_a::before { content: "A"; color: var(--accent); }
.faq_a > :last-child { margin-bottom: 0; }

/* マーカー */
.swl-marker { font-weight: inherit; }
.mark_yellow { background: linear-gradient(transparent 60%, var(--marker-yellow) 60%); }
.mark_orange { background: linear-gradient(transparent 60%, var(--marker-orange) 60%); }

/* 埋め込み（X） */
.wp-block-embed { margin: 0 0 1.6em; }
.wp-block-embed__wrapper { display: flex; justify-content: center; }
.wp-block-embed .twitter-tweet { margin: 0 auto !important; }
blockquote.twitter-tweet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1em; max-width: 550px; }

/* グループ */
.wp-block-group { margin: 0 0 1.6em; }
.wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* お問い合わせ */
.req { color: var(--accent); }
.contact-form { max-width: 560px; }
.contact-form__field { margin: 0 0 1.2em; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9c0c6; border-radius: 6px; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { font: inherit; font-weight: 700; min-height: 48px; padding: 0 2.4em; border: 0; border-radius: 6px; background: var(--main); color: #fff; cursor: pointer; }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }
.contact-form__status { min-height: 1.8em; font-weight: 700; }
.contact-form__status.is-error { color: var(--accent); }

@media (max-width: 599px) {
  body { font-size: 15px; }
  .article__title { font-size: 1.35rem; }
  .post_content h2 { font-size: 1.2rem; }
  .post_content h3 { font-size: 1.08rem; }
  .site-header__inner { padding-top: 10px; padding-bottom: 6px; }
  .site-logo { font-size: 1.3rem; }
}
