/* 記事ページ共通スタイル。LP（index.html）の配色・字組みに合わせている。
   記事が増えても転送量が膨らまないよう、インラインではなく外部CSSにしている。 */
:root {
  --blue: #2f5d8a; --blue-dark: #234666; --red: #c0392b;
  --bg: #f6f8fa; --ink: #2b3440; --muted: #5a6673; --line: #d7dde3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
       color: var(--ink); line-height: 1.9; background: #fff; }
a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hero a:focus-visible, footer a:focus-visible { outline-color: #fff; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }

.hero { background: linear-gradient(160deg, var(--blue-dark), var(--blue)); color: #fff;
        padding: 48px 0 40px; text-align: center; }
.hero h1 { font-size: 1.65rem; line-height: 1.55; margin-bottom: 12px; }
.hero .site { margin-bottom: 14px; }
.hero .site a { color: #fff; text-decoration: none; font-weight: bold; opacity: .95; }
.hero .sub { font-size: 1.02rem; opacity: .95; }
.hero .meta { font-size: .85rem; opacity: .85; }

.crumbs { background: var(--bg); border-bottom: 1px solid var(--line);
          font-size: .85rem; color: var(--muted); padding: 10px 0; }
.crumbs span { color: var(--ink); }

.post { padding: 40px 0 8px; }
.post h2 { font-size: 1.32rem; color: var(--blue-dark); margin: 44px 0 16px;
           padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.post h3 { font-size: 1.1rem; color: var(--blue-dark); margin: 28px 0 10px; }
.post p { margin-bottom: 18px; }
.post ul, .post ol { margin: 0 0 20px 1.4em; }
.post li { margin-bottom: 8px; }
.post code { background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
             padding: 1px 6px; font-size: .92em; }
.post img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 8px 0 24px; }
.post .cover img { margin-bottom: 32px; }
.post blockquote { border-left: 4px solid var(--line); padding-left: 16px; color: var(--muted); }
.post table { border-collapse: collapse; width: 100%; margin-bottom: 22px; }
.post th, .post td { border: 1px solid var(--line); padding: 8px 12px; }
.post th { background: #eef3f8; }

.cta-band { background: #f0f7f0; border-top: 1px solid #79a879; border-bottom: 1px solid #79a879; }
.cta-band h2 { font-size: 1.3rem; color: #2c6e2c; text-align: center; margin-bottom: 16px; }
.cta-band p { margin-bottom: 12px; }
.cta-wrap { text-align: center; margin: 22px 0 12px; }
.cta { display: inline-block; background: #ffb43a; color: #3a2a00; font-weight: bold;
       font-size: 1.08rem; padding: 14px 40px; border-radius: 999px; text-decoration: none;
       box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.cta:hover { filter: brightness(1.06); }
.note-s { font-size: .85rem; color: var(--muted); text-align: center; }

.alt { background: var(--bg); }
.related h2 { font-size: 1.2rem; color: var(--blue-dark); margin-bottom: 16px; text-align: center; }
.post-list { list-style: none; margin: 0; }
.post-list li { margin-bottom: 12px; }
.post-list.cards li { margin-bottom: 16px; }
.post-card { display: flex; gap: 18px; align-items: center; background: #fff;
             border: 1px solid var(--line); border-radius: 10px;
             padding: 16px 20px; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--blue); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.post-card .thumb { flex: none; width: 150px; height: auto; border-radius: 8px; }
.post-card .body { flex: 1 1 auto; min-width: 0; }
.post-card b { display: block; color: var(--blue-dark); font-size: 1.05rem; margin-bottom: 6px; }
.post-card .body span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.7; }

footer { background: var(--blue-dark); color: #fff; padding: 28px 0; font-size: .85rem; text-align: center; }
footer a { color: #cfe0f0; }
footer p { margin-bottom: 6px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.35rem; }
  section { padding: 36px 0; }
  .post h2 { font-size: 1.18rem; }
  .post-card { gap: 12px; padding: 12px 14px; }
  .post-card .thumb { width: 92px; }
}
