:root {
  --color-bg: #f4f6fb;         /* ページ全体の背景色 */
  --color-surface: #ffffff;    /* セクションの背景色 */
  --color-text: #2b2d33;       /* 基本の文字色 */
  --color-text-muted: #6b7280; /* 少し薄めの文字色 */
  --color-primary: #2563eb;    /* リンクや見出しに使う青 */
  --color-primary-dark: #1d4ed8; /* ホバー時などに使用 */
  --radius: 12px;              /* 角丸の大きさ */
}

* {
  box-sizing: border-box;
}


body {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;
  line-height: 1.8;

  color: var(--color-text);
  background-color: var(--color-bg);
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

header {
  text-align: center;
  padding: 60px 20px 40px;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.site-nav a {
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover {
  background-color: var(--color-surface);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.site-nav a.active {
  background-color: var(--color-primary);
  color: #ffffff;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.site-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

header h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0;
  color: var(--color-primary-dark);
}

header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0;
}

section {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

section h2 {
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

section p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

li:last-child {
  border-bottom: none;
}

.spec-label {
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 4px;
  font-weight: 600;
  border-bottom: 1px solid #ccc;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

/*
  ここから、アマチュア無線ページ・旅行ページ
*/

.profile-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 10px;
  margin: 0;
}

.profile-list dt {
  color: var(--color-text-muted);
  font-weight: 600;
}

.profile-list dd {
  margin: 0;
}

.log-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 8px;
}

.log-table th,
.log-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  overflow-wrap: break-word;
}

.log-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
}

/* 入賞順位のセルだけ、少し目立つ色と太さ*/
.log-table td.rank {
  color: var(--color-primary-dark);
  font-weight: 700;
  white-space: nowrap; /* 「全国1位」などは途中で改行しない */
}

/*
  コンテスト実績の表
*/
.log-table th:nth-child(1),
.log-table td:nth-child(1) {
  width: 15%;
}

.log-table th:nth-child(2),
.log-table td:nth-child(2) {
  width: 27%;
}

.log-table th:nth-child(3),
.log-table td:nth-child(3) {
  width: 40%;
}

.log-table th:nth-child(4),
.log-table td:nth-child(4) {
  width: 18%;
}

section h3 {
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 24px 0 8px;
}

section h3:first-of-type {
  margin-top: 4px;
}

.note-list {
  margin-top: 10px;
  padding-left: 1.2em;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.note-list li {
  padding: 2px 0;
  border-bottom: none;
  list-style: disc;
}

.place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.place-tags li {
  background-color: var(--color-bg);
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  border-bottom: none;
}

.travel-entry {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.travel-entry:last-child {
  margin-bottom: 0;
}

.travel-entry h3 {
  margin: 0 0 6px;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
}

.travel-entry p {
  color: var(--color-text-muted);
}

.travel-photo {
  width: 180px;
  height: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius);
  background-color: var(--color-bg);
  border: 2px dashed #c9d3e0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

img.travel-photo {
  object-fit: cover;
  padding: 0;
  background-color: transparent;
  border: none;
}

/*
著作権表示
*/
footer {
  text-align: center;
  padding: 30px 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  header {
    padding: 40px 12px 24px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  section {
    padding: 20px 20px;
  }

  .travel-entry {
    flex-direction: column;
  }

  .travel-photo {
    width: 100%;
    height: 160px;
  }

  .profile-list {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .log-table th,
  .log-table td {
    padding: 6px 6px;
    font-size: 0.82rem;
  }
}
