/* しごとのこびと ブログの見た目。色は note の見出し画像とそろえている */
:root {
  --blue: #2f6ea9; --blue-d: #1f4f7d; --pale: #eaf1f7; --orange: #f0a558; --brown: #3a2e2a;
  --ink: #26303a; --sub: #63717f; --line: #dde6ee; --bg: #ffffff; --card: #ffffff; --soft: #f5f8fb;
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --shadow: 0 1px 2px rgba(31, 79, 125, .06), 0 8px 24px rgba(31, 79, 125, .08);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e6ebf0; --sub: #9fb0bf; --line: #2c3a47; --bg: #141b22; --card: #1b242d; --soft: #1b242d; --pale: #1d2b38; --blue: #78b0e2; --blue-d: #a9cdee; --brown: #f1e9e4; --shadow: none; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.95; letter-spacing: .02em; }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.inner { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 上の帯 */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); font-family: var(--round); font-weight: 700; font-size: 20px; letter-spacing: .06em; margin: 0; }
.brand img { border-radius: 50%; display: block; }
header.site nav { display: flex; gap: 4px; }
header.site nav a { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
header.site nav a:hover { background: var(--pale); color: var(--blue-d); }

/* 最初のページ */
.hero { background: var(--pale); }
.hero .inner { display: grid; grid-template-columns: 1fr 280px; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.hero .kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue-d); background: var(--bg); padding: 2px 14px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { font-family: var(--round); font-size: clamp(26px, 4vw, 38px); line-height: 1.5; color: var(--blue); margin: 0 0 18px; letter-spacing: .04em; }
.hero h1 span { display: inline-block; }
.hero .bar { width: 72px; height: 6px; border-radius: 3px; background: var(--orange); margin: 0 0 18px; }
.hero p.text { margin: 0; color: var(--ink); max-width: 34em; }
.hero img { width: 100%; border-radius: 50%; display: block; }
.section { padding-top: 56px; padding-bottom: 72px; }
.section > h2 { font-family: var(--round); font-size: 24px; margin: 0 0 24px; color: var(--brown); display: flex; align-items: center; gap: 12px; letter-spacing: .06em; }
.section > h2::before { content: ""; width: 10px; height: 26px; border-radius: 5px; background: var(--orange); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); }
.card a { display: block; text-decoration: none; color: inherit; height: 100%; }
.cover { background: var(--blue); padding: 12px; }
.cover div { background: var(--pale); border-radius: 12px; aspect-ratio: 1.91 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 18px; gap: 8px; }
.cover small { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .08em; }
.cover b { font-family: var(--round); font-size: 19px; line-height: 1.5; color: var(--blue); }
.cover i { width: 44px; height: 4px; border-radius: 2px; background: var(--orange); }
.card .body { padding: 16px 20px 20px; }
.card h3 { font-size: 17px; line-height: 1.6; margin: 6px 0 8px; }
.card p { font-size: 14px; line-height: 1.75; color: var(--sub); margin: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--sub); margin: 0; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue-d); background: var(--pale); padding: 0 12px; border-radius: 999px; line-height: 2; }
.tools { background: var(--soft); border-top: 1px solid var(--line); }
.tools ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tools li a { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.tools li a:hover { border-color: var(--blue); }
.tools b { display: block; color: var(--blue); font-family: var(--round); font-size: 17px; }
.tools span { display: block; font-size: 14px; color: var(--sub); line-height: 1.7; margin-top: 4px; }
.tools em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brown); background: #fbe7cf; border-radius: 999px; padding: 1px 10px; margin-left: 8px; vertical-align: 2px; }
@media (prefers-color-scheme: dark) { .tools em { background: #4a3a26; } }

/* 記事 */
.post-head { background: var(--pale); }
.post-head .inner { max-width: 800px; padding-top: 44px; padding-bottom: 40px; }
.post-head h1 { font-family: var(--round); font-size: clamp(24px, 4.2vw, 34px); line-height: 1.55; color: var(--blue); margin: 14px 0 0; letter-spacing: .03em; }
.post-head .bar { width: 64px; height: 5px; border-radius: 3px; background: var(--orange); margin-top: 20px; }
article { max-width: 760px; margin: 0 auto; padding: 36px 20px 72px; }
article > p:first-of-type { font-size: 18px; }
article h1 { font-family: var(--round); color: var(--blue); font-size: 30px; line-height: 1.5; margin: 12px 0 28px; }
article h2 { font-family: var(--round); font-size: 23px; line-height: 1.55; margin: 64px 0 20px; padding-bottom: 12px; color: var(--brown); border-bottom: 2px solid var(--line); position: relative; letter-spacing: .04em; }
article h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 84px; height: 2px; background: var(--orange); }
article h3 { font-size: 18px; margin: 36px 0 10px; }
article p { margin: 0 0 22px; }
article strong { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--orange) 42%, transparent) 62%); font-weight: 700; }
article ul, article ol { margin: 0 0 24px; padding: 0; list-style: none; }
article li { position: relative; padding-left: 34px; margin-bottom: 10px; }
article ul > li::before { content: ""; position: absolute; left: 10px; top: .82em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
article ol { counter-reset: n; }
article ol > li { counter-increment: n; padding-left: 42px; }
article ol > li::before { content: counter(n); position: absolute; left: 0; top: .28em; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--bg); font-size: 14px; font-weight: 700; line-height: 28px; text-align: center; letter-spacing: 0; }
.ad { font-size: 13px; color: var(--sub); background: var(--soft); border: 1px solid var(--line); padding: 4px 14px; border-radius: 8px; }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px 12px; margin: 0 0 32px; }
.toc p { margin: 0 0 8px; font-family: var(--round); font-weight: 700; font-size: 15px; color: var(--brown); letter-spacing: .1em; }
.toc ol { margin: 0; }
.toc ol > li { font-size: 15px; padding-left: 30px; margin-bottom: 6px; }
.toc ol > li::before { background: none; color: var(--blue); font-family: var(--round); width: 22px; height: auto; top: 0; line-height: inherit; font-size: 15px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
figure { margin: 28px 0; }
figure img { display: block; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
figcaption { font-size: 14px; color: var(--sub); margin-top: 10px; text-align: center; line-height: 1.7; }
.table { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.75; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--pale); color: var(--blue-d); font-size: 14px; white-space: nowrap; }
td:first-child { font-weight: 600; min-width: 9em; }
blockquote { margin: 0 0 22px; padding: 14px 18px; background: var(--soft); border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; }
code { background: var(--pale); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.author { display: flex; gap: 18px; align-items: center; margin-top: 64px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.author img { width: 76px; height: 76px; border-radius: 50%; flex: none; }
.author b { font-family: var(--round); font-size: 17px; color: var(--brown); }
.author p { font-size: 14px; line-height: 1.75; margin: 2px 0 0; color: var(--sub); }
.back { margin: 32px 0 0; text-align: center; }
.back a { display: inline-block; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--blue-d); border: 2px solid var(--blue); padding: 6px 28px; border-radius: 999px; }
.back a:hover { background: var(--blue); color: var(--bg); }
h1, h2, h3, p, li, td { overflow-wrap: anywhere; }

/* 下の帯 */
footer.site { background: var(--blue-d); color: #fff; padding: 40px 0 28px; text-align: center; }
@media (prefers-color-scheme: dark) { footer.site { background: #0f151b; } }
footer.site .brand { color: #fff; justify-content: center; }
footer.site p { margin: 0; }
footer.site .tag { font-size: 13px; opacity: .85; margin-top: 6px; }
footer.site .links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; }
footer.site a { color: #fff; }
footer.site .copy { margin-top: 20px; font-size: 12px; opacity: .7; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  header.site .inner { height: 56px; padding: 0 14px; }
  .brand { font-size: 17px; gap: 8px; }
  header.site .brand img { width: 32px; height: 32px; }
  header.site nav a { font-size: 13px; padding: 4px 8px; }
  header.site nav a:nth-child(2) { display: none; }
  .hero .inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; }
  .hero img { width: 120px; order: -1; margin-bottom: -8px; }
  .section { padding-top: 40px; padding-bottom: 52px; }
  article h2 { font-size: 20px; margin-top: 52px; }
  article > p:first-of-type { font-size: 17px; }
  .author { flex-direction: column; text-align: center; }
}

/* 見出しは、言葉の切れ目で折り返す(対応しているブラウザだけ) */
.hero h1, .post-head h1, .cover b, .card h3, article h2 { word-break: auto-phrase; text-wrap: balance; }
