/* キャリアみらい — note DESIGN.md準拠（awesome-design-md-jp/design-md/note） */
:root {
  --ink: #08131a;                     /* Text Primary（純黒は使わない） */
  --sub: rgba(8, 19, 26, 0.66);       /* Text Secondary（同色相のopacity違い） */
  --bg: #ffffff;
  --bg-2: #f5f8fa;                    /* Background Secondary */
  --line: rgba(8, 19, 26, 0.14);      /* Border Default */
  --accent: #1e7b65;                  /* Success green（リンク・アクセント、WCAG AA） */
  --cta: #08131a;                     /* CTA Background（ライトモード） */
  --elev-1: 0px 1px 3px 1px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.22);
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.5;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { max-width: 620px; margin: 0 auto; padding: 1rem 1.25rem 4rem; }
main.wide { max-width: 940px; }
a { color: var(--accent); }

/* 見出し: letter-spacing 0.04em + palt は見出し専用（本文には適用しない） */
h1, h2, h3 { letter-spacing: 0.04em; font-feature-settings: "palt"; }
h1 { font-size: 32px; font-weight: 700; line-height: 1.5; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.286; margin-top: 3rem; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.5; }

.site-header {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px; padding: 0 1.25rem;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.15rem; letter-spacing: 0.04em; }
.site-header nav a { margin-left: 1rem; color: var(--sub); text-decoration: none; font-size: 0.9rem; }

.hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.hero p { color: var(--sub); }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; text-align: left; }
.card {
  display: block; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.25rem;
  text-decoration: none; color: var(--ink); box-shadow: var(--elev-1);
}
.card span { display: block; font-size: 0.8rem; color: var(--sub); margin-top: 0.4rem; }

.post-list { list-style: none; padding: 0; }
.post-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.post-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.post-list a:hover { color: var(--accent); }
.post-list time { color: var(--sub); font-size: 0.85rem; white-space: nowrap; }

.post-meta { color: var(--sub); font-size: 0.85rem; }
.post-meta .supervisor { margin-left: 0.8rem; }

/* 記事本文: 18px × line-height 2.0（noteの読み物設定） */
.post-body { font-size: 18px; line-height: 2.0; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 0.85em; line-height: 1.6; }
.post-body th { background: var(--bg-2); }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; }
.post-body blockquote { margin: 1.5rem 0; padding: 0.25rem 1.25rem; border-left: 3px solid var(--line); color: var(--sub); }
.post-body code { background: var(--bg-2); border-radius: 4px; padding: 0.1em 0.4em; font-size: 0.9em; }

.cta-agent {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.25rem 1.5rem; margin: 3rem 0;
  box-shadow: var(--elev-1); font-size: 16px; line-height: 1.7;
}
.cta-agent .cta-button {
  display: inline-block; background: var(--cta); color: #ffffff;
  padding: 0.7rem 1.6rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 16px;
}
.cta-agent .cta-button:hover { background: #202a30; }

.author-box { border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 1.25rem; font-size: 0.9rem; color: var(--sub); }

.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.5rem 1.25rem 2.5rem; text-align: center; color: var(--sub); font-size: 0.85rem; }

@media (max-width: 600px) {
  .site-header { height: 48px; }
  .site-header nav a { margin-left: 0.7rem; font-size: 0.85rem; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .post-body { font-size: 17px; }
}
