/*
 * 記事本文（ブロックエディターの内容）の装飾。
 * 値はプロトタイプの記事詳細（GATUN-13a / 15a / 18a）に合わせている。
 * 編集画面で選べる「ブロックのスタイル」（is-style-gatun-*）もここで定義する。
 */

.gt-entry-wrap { padding: clamp(40px, 6vw, 72px) clamp(22px, 5.5vw, 64px) clamp(56px, 9vw, 100px); background: #fff; }
.gt-entry-wrap .entry-content { max-width: 820px; margin: 0 auto; }

.entry-content { font-size: 1rem; line-height: 2.15; color: #48587A; overflow-wrap: anywhere; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 20px; text-wrap: pretty; }
.entry-content h2 { margin: 44px 0 18px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; line-height: 1.6; color: #1A2B47; scroll-margin-top: 110px; }
.entry-content h3 { margin: 32px 0 12px; font-size: 1.1875rem; font-weight: 800; line-height: 1.6; color: #1A2B47; scroll-margin-top: 110px; }
.entry-content h4 { margin: 24px 0 10px; font-size: 1.0625rem; font-weight: 800; line-height: 1.6; color: #1A2B47; }
.entry-content strong, .entry-content b { color: #1A2B47; font-weight: 800; }
.entry-content a { color: #1565C0; text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #0D47A1; }
.entry-content ul, .entry-content ol { margin: 0 0 24px; padding-left: 1.4em; }
.entry-content li { margin: 0 0 6px; }
.entry-content li::marker { color: #0097A7; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content figure { margin: 32px 0; }
.entry-content figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.8; color: #8A99B3; text-align: center; }
.entry-content hr { margin: 44px 0; border: none; border-top: 1px solid #E3E9F2; }
.entry-content blockquote { margin: 32px 0; padding: 22px 26px; border-left: 3px solid #0097A7; border-radius: 0 12px 12px 0; background: #F7FBFB; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content cite { display: block; margin-top: 10px; font-size: .8125rem; font-style: normal; color: #8A99B3; }
.entry-content table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: .9375rem; line-height: 1.9; }
.entry-content th, .entry-content td { padding: 14px 16px; border: 1px solid #E3E9F2; text-align: left; vertical-align: top; }
.entry-content th { background: #F2F6FC; color: #1A2B47; font-weight: 800; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content code { padding: 2px 6px; border-radius: 4px; background: #EEF3F9; font-size: .875em; }
.entry-content .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9999px; padding: 16px 34px; background: linear-gradient(135deg, #0D47A1 0%, #0097A7 55%, #43A047 100%); box-shadow: 0 12px 30px rgba(21, 101, 192, .26); color: #fff; font-weight: 700; text-decoration: none; transition: box-shadow 240ms; }
.entry-content .wp-block-button__link::after { content: "→"; font-family: Poppins, sans-serif; font-size: 1.05em; line-height: 1; }
.entry-content .wp-block-button__link:hover { color: #fff; box-shadow: 0 16px 38px rgba(21, 101, 192, .34); }
.entry-content .is-style-outline .wp-block-button__link { background: #fff; color: #0D47A1; border: 1.5px solid #0D47A1; box-shadow: none; }
.entry-content .wp-block-embed iframe { max-width: 100%; }

/* 囲み（グレー） */
.entry-content .is-style-gatun-box { margin: 0 0 44px; border-radius: 16px; border: 1px solid #E3E9F2; background: #FAFCFE; padding: 28px 30px; }
.entry-content .is-style-gatun-box > :last-child { margin-bottom: 0; }
.entry-content .is-style-gatun-box > h3:first-child, .entry-content .is-style-gatun-box > p:first-child strong:only-child { font-size: .8125rem; color: #0097A7; }
/* 補足（青い線） */
.entry-content .is-style-gatun-note { margin: 28px 0; padding: 18px 22px; border-left: 3px solid #0D47A1; background: #F2F6FC; border-radius: 0 12px 12px 0; font-size: .9375rem; }
.entry-content .is-style-gatun-note > :last-child { margin-bottom: 0; }
/* リード文 */
.entry-content .is-style-gatun-lead { font-size: 1.0625rem; line-height: 2.05; }
/* 注記（小さい文字）：数値の補足など。成果カードの直後に置くとカードに寄せる */
.entry-content .is-style-gatun-small { font-size: .8125rem; line-height: 1.9; color: #8A99B3; }
.entry-content .is-style-gatun-results + .is-style-gatun-small { margin-top: -24px; margin-bottom: 48px; }

/* ステップ（番号付きリスト → STEP 1 / STEP 2 …） */
.entry-content .is-style-gatun-steps { margin: 0 0 44px; padding: 0; list-style: none; counter-reset: gt-step; }
.entry-content .is-style-gatun-steps > li { counter-increment: gt-step; display: grid; grid-template-columns: 80px 1fr; gap: 20px; margin: 0; padding: 18px 4px; border-top: 1px solid #E3E9F2; color: #1A2B47; line-height: 1.9; }
.entry-content .is-style-gatun-steps > li:last-child { border-bottom: 1px solid #E3E9F2; }
.entry-content .is-style-gatun-steps > li::before { content: "STEP " counter(gt-step); font-family: Poppins, sans-serif; font-size: .8125rem; font-weight: 600; color: #0097A7; padding-top: 3px; }
/* タイムライン（各行の太字が見出し：例「第1〜2回」） */
.entry-content .is-style-gatun-timeline { margin: 0 0 44px; padding: 0; list-style: none; }
.entry-content .is-style-gatun-timeline > li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; margin: 0; padding: 18px 4px; border-top: 1px solid #E3E9F2; line-height: 1.9; }
.entry-content .is-style-gatun-timeline > li:last-child { border-bottom: 1px solid #E3E9F2; }
.entry-content .is-style-gatun-timeline > li > strong:first-child { font-size: .875rem; color: #0097A7; }
/* 成果カード（各行の太字が見出し） */
.entry-content .is-style-gatun-results { margin: 0 0 48px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.entry-content .is-style-gatun-results > li { margin: 0; border-radius: 16px; border: 1px solid #E3E9F2; background: #FAFCFE; padding: 28px 26px; font-size: 1.0625rem; font-weight: 800; line-height: 1.7; color: #1A2B47; }
.entry-content .is-style-gatun-results > li > strong:first-child { display: block; margin-bottom: 10px; font-size: .8125rem; font-weight: 700; line-height: 1.8; color: #8A99B3; }
/* チェックリスト */
.entry-content .is-style-gatun-checks { padding: 0; list-style: none; }
.entry-content .is-style-gatun-checks > li { position: relative; padding-left: 30px; }
.entry-content .is-style-gatun-checks > li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 14px; height: 8px; border-left: 2.5px solid #0097A7; border-bottom: 2.5px solid #0097A7; transform: translateY(-60%) rotate(-45deg); }
/* お客様の声 */
.entry-content .is-style-gatun-voice { margin: 0 0 48px; border: none; border-left: 3px solid #0097A7; border-radius: 20px; background: #F7F9FC; padding: 32px 34px; }
.entry-content .is-style-gatun-voice p { line-height: 2.1; color: #1A2B47; }
.entry-content .is-style-gatun-voice cite { margin-top: 16px; }
/* 表（GATUN） */
.entry-content .is-style-gatun-table table { border-radius: 14px; overflow: hidden; }

/* 目次 */
.gt-toc { margin: 0 0 44px; border-radius: 16px; border: 1px solid #E3E9F2; background: #FAFCFE; padding: 24px 28px; }
.gt-toc__title { margin: 0 0 10px; font-family: Poppins, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .22em; color: #0097A7; }
.gt-toc ol { margin: 0; padding-left: 1.4em; }
.gt-toc li { margin: 4px 0; font-size: .9375rem; line-height: 1.8; }
.gt-toc li li { font-size: .875rem; }
.gt-toc a { color: #1A2B47; text-decoration: none; }
.gt-toc a:hover { color: #0097A7; }

/* 執筆者 */
.gt-writer { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start; margin: 48px 0 0; padding: 26px 28px; border-radius: 16px; border: 1px solid #E3E9F2; background: #fff; }
.gt-writer img { width: 88px; height: 88px; border-radius: 9999px; object-fit: cover; }
.gt-writer__role { margin: 0 0 4px; font-size: .75rem; font-weight: 700; color: #8A99B3; }
.gt-writer__name { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 800; color: #1A2B47; }
.gt-writer__name a { color: inherit; }
.gt-writer__bio { margin: 0; font-size: .875rem; line-height: 1.9; color: #48587A; }
@media (max-width: 560px) { .gt-writer { grid-template-columns: 1fr; } }
