/* ============================================================
   のろろ 個人サイト  style.css
   ============================================================ */

/* ---------- 色の設定 ---------- */
:root {
  --color-bg: #ffffff;       /* 背景 */
  --color-text: #333333;     /* 本文 */
  --color-link: #0000ee;     /* リンク */
  --color-visited: #551a8b;  /* 訪問済み */
  --color-line: #999999;     /* 線 */
  --color-sub: #777777;      /* 補足・注釈 */
}

/* ---------- 全体 ---------- */
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

/* 中身の幅 */
.wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ---------- リンク ---------- */
a {
  color: var(--color-link);
}
a:visited {
  color: var(--color-visited);
}
a:hover {
  text-decoration: none;
}

/* ---------- 区切り線 ---------- */
hr {
  border: none;
  border-top: 1px dashed var(--color-line);
  margin: 32px 0;
}

/* ---------- ヘッダー ---------- */
.site-header {
  text-align: center;
}
.site-title {
  font-size: 24px;
  margin: 8px 0;
}
/* タイトル横のアイコン */
.site-icon {
  vertical-align: middle;
  margin-right: 4px;
}
.site-subtitle {
  font-size: 13px;
  color: var(--color-sub);
  margin: 0 0 16px;
}
.site-nav {
  font-size: 14px;
}

/* ---------- 見出し ---------- */
h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  margin: 20px 0 4px;
}

/* ---------- リスト ---------- */
ul {
  margin: 0;
  padding-left: 1.5em;
}

/* ---------- 自己紹介 ---------- */
.profile dt {
  float: left;
  clear: left;
  width: 6em;
  font-weight: bold;
}
.profile dd {
  margin: 0 0 4px 6em;
}

/* ---------- 自己紹介の画像 ---------- */
/* イラストの枠 */
.profile-illust img {
  border: 1px solid var(--color-line);
}

/* イラストと説明文 */
.profile-illust {
  margin: 0 0 16px;
  text-align: center;
}
.profile-illust img {
  max-width: 100%;   /* 狭い画面で縮小 */
  height: auto;
}
.profile-illust figcaption {
  font-size: 13px;
  color: var(--color-sub);
}

/* ---------- 年表（活動歴・資格・職歴） ---------- */
.history {
  width: 100%;
  border-collapse: collapse;
}
.history th,
.history td {
  border: 1px solid var(--color-line);
  padding: 4px 8px;
  vertical-align: top;
  text-align: left;
}
.history th {
  width: 8em;
  white-space: nowrap;
  font-weight: normal;
}

/* 注釈 */
.note {
  font-size: 13px;
  color: var(--color-sub);
}

/* ---------- フッター ---------- */
.site-footer {
  text-align: center;
  font-size: 13px;
}
.site-footer p {
  margin: 4px 0;
}

/* ---------- スマホ向け（幅600px以下） ---------- */
@media (max-width: 600px) {
  /* 年表：日付→内容の縦並び */
  .history th,
  .history td {
    display: block;
    width: auto;
  }
  .history th {
    border-bottom: none;
    font-weight: bold;
  }
  .history tr + tr th {
    border-top: none;
  }
  .history td {
    border-top: none;
  }

  /* 自己紹介も縦並び */
  .profile dt {
    float: none;
    width: auto;
  }
  .profile dd {
    margin: 0 0 8px 1em;
  }
}

/* ---------- 活動歴（年ごとの年表） ---------- */
/* 年の見出し */
.year {
  margin: 20px 0 4px;
  border-bottom: 1px solid var(--color-line);
}

/* 月＋内容 */
.timeline {
  list-style: none;
  padding-left: 0;
}
.timeline li {
  display: flex;
  margin-bottom: 4px;
}
.timeline .month {
  flex-shrink: 0;
  width: 3.5em;   /* 月の欄の幅 */
}

/* 【小説】などのラベル */
.timeline .tag {
  color: var(--color-text);
}

/* 名義の注記 */
.timeline .name {
  font-size: 13px;
  color: var(--color-sub);
}
