/* PIT 診断士デジタル実務：サイト共通のデザイン
   ここを変えると、トップページと全記事の見た目がまとめて変わります */

  /* ===== 色の設定（ここを変えるとサイト全体の色が変わります） ===== */
  :root {
    --navy: #0b1f3a;        /* メインの濃紺 */
    --navy-2: #13315c;      /* 少し明るい濃紺 */
    --cyan: #38bdf8;        /* アクセントの水色 */
    --cyan-soft: #e0f4fd;   /* 薄い水色（背景用） */
    --text: #1e293b;        /* 本文の文字色 */
    --muted: #64748b;       /* 補足の文字色 */
    --bg: #f6f8fb;          /* ページの背景色 */
    --card: #ffffff;        /* カードの背景色 */
    --line: #e2e8f0;        /* 線の色 */
    --warn: #f97316;        /* 締切などの注意色 */
  }

  /* ===== 全体の基本設定 ===== */
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
  }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
  .dummy { font-size: 11px; color: var(--warn); font-weight: 700; }

  /* ===== ヘッダー（ページ上部のロゴとメニュー） ===== */
  header {
    background: var(--navy);
    color: #fff;
    position: sticky; top: 0; z-index: 10;
  }
  .head {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 16px;
  }
  .logo { font-weight: 900; font-size: 20px; letter-spacing: .02em; }
  .logo span { color: var(--cyan); }
  .logo small { display: block; font-size: 10px; font-weight: 400; opacity: .7; letter-spacing: .05em; }
  nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
  nav a:hover { color: var(--cyan); }
  .btn {
    display: inline-block; padding: 10px 20px; border-radius: 999px;
    background: var(--cyan); color: var(--navy); font-weight: 700; font-size: 14px;
    white-space: nowrap;
  }
  .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }

  /* ===== 1. ファーストビュー（最初に見える大きな画面） ===== */
  .hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
  }
  /* 背景の細かい点模様（AI企業っぽい雰囲気） */
  .hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(56,189,248,.25) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .5; pointer-events: none;
  }
  .hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
  .eyebrow { color: var(--cyan); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
  .hero h1 { font-size: 40px; line-height: 1.35; margin: 12px 0 16px; font-weight: 900; }
  .hero h1 em { font-style: normal; color: var(--cyan); }
  .nw { display: inline-block; }
  .hero p { opacity: .85; margin: 0 0 28px; }
  .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

  /* 次回定例会のお知らせカード */
  .next {
    background: rgba(255,255,255,.08); border: 1px solid rgba(56,189,248,.4);
    border-radius: 16px; padding: 24px; backdrop-filter: blur(4px);
  }
  .next .label { font-size: 12px; color: var(--cyan); font-weight: 700; letter-spacing: .1em; }
  .next .date { font-size: 26px; font-weight: 900; margin: 6px 0 2px; }
  .next .time { opacity: .8; font-size: 14px; }
  .next hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 16px 0; }
  .next .theme { font-size: 14px; }

  /* ===== 見出しと区切り（各ブロック共通） ===== */
  section.block { padding: 56px 0; }
  .sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
  .sec-head h2 { margin: 0; font-size: 24px; font-weight: 900; color: var(--navy); }
  .sec-head h2::before { content: ""; display: inline-block; width: 6px; height: 22px; background: var(--cyan); border-radius: 3px; margin-right: 10px; vertical-align: -3px; }
  .more { font-size: 14px; color: var(--navy-2); font-weight: 700; }
  .more:hover { color: var(--cyan); }

  /* ===== 2. 今月の注目 ===== */
  .pickup { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
  .deadline {
    background: var(--card); border-radius: 16px; padding: 20px; border: 1px solid var(--line);
  }
  .deadline h3 { margin: 0 0 12px; font-size: 16px; color: var(--navy); }
  .deadline li { list-style: none; display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
  .deadline ul { margin: 0; padding: 0; }
  .deadline .d { color: var(--warn); font-weight: 700; white-space: nowrap; }
  .articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card {
    background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
    transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column;
  }
  .card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,31,58,.08); }
  .thumb { height: 110px; background: linear-gradient(135deg, var(--navy-2), var(--cyan)); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 28px; }
  .card .body { padding: 14px 16px 18px; }
  .tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--navy-2); background: var(--cyan-soft); padding: 2px 10px; border-radius: 999px; }
  .card h3 { font-size: 15px; margin: 8px 0 0; line-height: 1.5; }

  /* ===== 3. 目的別の入口 ===== */
  .purpose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .p-card {
    background: var(--card); border-radius: 16px; padding: 28px 24px; border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(11,31,58,.05); transition: border-color .15s;
  }
  .p-card:hover { border-color: var(--cyan); }
  .p-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--cyan); display: grid; place-items: center; font-size: 22px; font-weight: 900; }
  .p-card h3 { margin: 16px 0 8px; font-size: 18px; color: var(--navy); }
  .p-card p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
  .p-card .go { font-size: 14px; font-weight: 700; color: var(--navy-2); }

  /* ===== 4. ツール・データ ===== */
  .tools-bg { background: var(--navy); color: #fff; }
  .tools-bg .sec-head h2 { color: #fff; }
  .tools-bg .more { color: var(--cyan); }
  .tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .t-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px; }
  .t-card:hover { border-color: var(--cyan); }
  .t-card .kind { font-size: 11px; color: var(--cyan); font-weight: 700; letter-spacing: .1em; }
  .t-card h3 { margin: 6px 0 6px; font-size: 16px; }
  .t-card p { margin: 0; font-size: 13px; opacity: .75; }

  /* ===== 5. 定例会レポート ===== */
  .reports { background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
  .report { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
  .report:last-child { border-bottom: 0; }
  .report .month { font-weight: 900; color: var(--navy); }
  .report .topics { font-size: 14px; }
  .report .topics span { color: var(--muted); font-size: 12px; display: block; }
  .report .arrow { color: var(--cyan); font-weight: 900; }

  /* ===== 6. PITについて ===== */
  .about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
  .about p { color: var(--muted); }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat { background: var(--cyan-soft); border-radius: 14px; padding: 20px 12px; text-align: center; }
  .stat b { display: block; font-size: 30px; color: var(--navy); font-weight: 900; line-height: 1.2; }
  .stat span { font-size: 12px; color: var(--muted); }
  .steps { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; font-size: 13px; }
  .steps li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
  .steps { padding: 0; }

  /* ===== フッター ===== */
  footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 40px 0 24px; font-size: 13px; }
  .foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
  footer h4 { color: #fff; margin: 0 0 8px; font-size: 14px; }
  footer ul { list-style: none; margin: 0; padding: 0; }
  footer li { margin: 4px 0; }
  footer a:hover { color: var(--cyan); }
  .copy { text-align: center; margin-top: 32px; opacity: .6; font-size: 12px; }

  /* ===== スマホ表示（画面幅が狭いときのレイアウト） ===== */
  @media (max-width: 860px) {
    nav ul { display: none; }               /* スマホではメニューを隠す（本番はハンバーガーメニューに） */
    .hero .wrap, .pickup, .about { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .articles, .purpose { grid-template-columns: 1fr; }
    .tools { grid-template-columns: 1fr 1fr; }
    .report { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
    .report .arrow { display: none; }
    .foot { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 480px) {
    .tools { grid-template-columns: 1fr; }
    .head .btn { display: none; }
  }

/* ===================================================
   記事ページ用のデザイン
   =================================================== */

/* パンくず（いまどこにいるかを示す小さなリンク） */
.crumbs { font-size: 12px; color: var(--muted); padding: 16px 0 0; }
.crumbs a:hover { color: var(--navy-2); text-decoration: underline; }

/* 記事のタイトル部分 */
.a-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 40px 0 36px; }
.a-head .wrap { max-width: 780px; }
.a-head h1 { font-size: 30px; line-height: 1.45; margin: 12px 0 14px; font-weight: 900; }
.a-meta { font-size: 13px; opacity: .8; }

/* 記事の本文（読みやすい幅にしぼる） */
.article { max-width: 780px; margin: 0 auto; padding: 32px 16px 56px; }
.article .lead { font-size: 16px; background: var(--card); border-left: 4px solid var(--cyan); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.article h2 { font-size: 22px; color: var(--navy); margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--cyan); line-height: 1.5; }
.article h3 { font-size: 18px; color: var(--navy-2); margin: 32px 0 10px; line-height: 1.5; }
.article p { margin: 0 0 1em; }
.article strong { background: linear-gradient(transparent 60%, var(--cyan-soft) 60%); }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin: 4px 0; }
.article a { color: var(--navy-2); text-decoration: underline; }

/* 目次 */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-size: 14px; }
.toc b { color: var(--navy); }
.toc ol { margin: 8px 0 0; }

/* AIへの指示文（プロンプト）の例を入れる箱 */
.prompt { background: var(--navy); color: #e2e8f0; border-radius: 12px; padding: 16px 20px; font-size: 14px; white-space: pre-wrap; margin: 12px 0 20px; font-family: inherit; line-height: 1.8; overflow-x: auto; }
.prompt::before { content: "AIへの指示文の例"; display: block; color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .1em; margin-bottom: 6px; }

/* 注意書きの箱 */
.note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin: 16px 0; }
.note b { color: var(--warn); }

/* 表 */
.tbl-wrap { overflow-x: auto; margin: 16px 0 24px; }
.article table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); min-width: 520px; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--cyan-soft); color: var(--navy); }

/* チェックリスト */
.check li { list-style: none; position: relative; padding-left: 1.6em; }
.check li::before { content: "□"; position: absolute; left: 0; color: var(--navy-2); font-weight: 700; }
.check { padding-left: 0 !important; }

/* 記事の最後の署名と、関連記事 */
.sign { margin-top: 40px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.related { margin-top: 32px; }
.related h2 { border: 0; margin-bottom: 12px; }
.related .articles { grid-template-columns: repeat(3, 1fr); }

/* 記事一覧ページ */
.list-sec { padding: 40px 0 8px; }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon { opacity: .55; pointer-events: none; }
.soon .tag::after { content: "　準備中"; color: var(--warn); }

@media (max-width: 860px) {
  .a-head h1 { font-size: 23px; }
  .related .articles, .list-grid { grid-template-columns: 1fr; }
}
