/* ==========================================================
   げぇくま — 北海道の山と川の記録
   レイアウトは「北海道キャンプ場見聞録」寄り。
   色と文字はやわらかめ（濃いベタ塗りと真っ黒を使わない）。
   前の版: _style-quiet-backup.css（明朝・落ち着いた版）
   ========================================================== */

:root {
  /* 色（ライト） — 全体に彩度を落として、白と黒に寄せない */
  --bg:          #fdfaec;   /* うすい黄色の紙。前より少し明るく */
  --bg-raised:   #fffdf5;
  --ink:         #4a443c;   /* 真っ黒にしない。茶色寄りの墨 */
  --ink-soft:    #746c60;
  --ink-faint:   #a8a094;
  --band:        #3f6b46;   /* 帯は緑のベタ塗り。このほうが見やすい */
  --band-ink:    #ffffff;   /* 帯の上の文字 */
  --accent:      #4f7a52;   /* 森の緑 */
  --accent-soft: #eef3e8;
  --link:        #4c7f92;   /* くすんだ青 */
  --line:        #e8dfc8;   /* 罫線もうすく */

  /* 文字 — 丸ゴシック → UD系 → 游ゴシックMedium の順。どれも角がやわらかい */
  --sans: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic Medium",
          "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;

  --measure: 47rem;
  --radius: 5px;            /* ほんの少しだけ角を丸く */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #201e18;
    --bg-raised:   #29261e;
    --ink:         #ddd7c8;   /* 真っ白にしない */
    --ink-soft:    #a9a294;
    --ink-faint:   #837c6e;
    --band:        #33553a;
    --band-ink:    #e8f0e6;
    --accent:      #9dbd95;
    --accent-soft: #2b3327;
    --link:        #8fbccb;
    --line:        #423d30;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;   /* 少し広げるとやわらかく見える */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- レイアウト ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* ---------- ヘッダー ---------- */

.site-header {
  background: var(--band);
  color: var(--band-ink);
  padding: 1.2rem 0 0;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 600;         /* 太字を一段落とす */
  letter-spacing: 0.14em;
  margin: 0;
}

.site-title a { color: var(--band-ink); text-decoration: none; }
.site-title a:hover { text-decoration: none; opacity: 0.75; }

.site-tagline {
  margin: 0.35rem 0 0;
  color: var(--band-ink);
  opacity: 0.75;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* 日英併記のグローバルナビ */
.site-nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  flex: 1 1 0;
  min-width: 5.5rem;
  text-align: center;
  color: var(--band-ink);
  text-decoration: none;
  padding: 0.45rem 0.4rem 0.55rem;
  border-left: 1px solid rgba(255,255,255,0.25);
  line-height: 1.4;
}

.site-nav a:last-child { border-right: 1px solid rgba(255,255,255,0.25); }
.site-nav a:hover { background: rgba(0,0,0,0.13); text-decoration: none; }

.site-nav .ja { display: block; font-size: 0.85rem; }
.site-nav .en { display: block; font-size: 0.6rem; letter-spacing: 0.16em; opacity: 0.65; }

/* ---------- パンくず ---------- */

.breadcrumb {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.breadcrumb a { color: var(--ink-soft); }

/* ---------- トップ ---------- */

.greeting {
  margin: 1.6rem 0 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  font-size: 0.93rem;
  line-height: 2.05;
}
.greeting p { margin: 0 0 0.9rem; }
.greeting p:last-child { margin-bottom: 0; }

/* カテゴリの入口 */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  list-style: none;
  padding: 0;
}

.cats a {
  display: block;
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.3rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.45;
}
.cats a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cats .ja { display: block; font-size: 0.95rem; font-weight: 600; }
.cats .en { display: block; font-size: 0.6rem; letter-spacing: 0.14em; color: var(--ink-faint); }

/* 見出し帯 */
.section-label {
  margin: 2.4rem 0 0;
  background: var(--band);
  color: var(--band-ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* 新着情報 */
.news-list {
  margin: 0;
  padding: 0.4rem 0 0;
  list-style: none;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg-raised);
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9rem;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px dotted var(--line);
  font-size: 0.9rem;
  line-height: 1.85;
}
.news-list li:last-child { border-bottom: none; }

.news-list time {
  color: var(--ink-faint);
  font-size: 0.78rem;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.news-list .tag {
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.08rem 0.6rem;
  white-space: nowrap;
  align-self: center;
}

.news-list .news-title { flex: 1 1 14rem; }

/* ---------- 記事ページ ---------- */

.post-header {
  margin: 1.5rem 0 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px dotted var(--line);   /* 二重線をやめた */
}

.post-header .date {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0;
}

.post-header h1 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
  margin: 0.4rem 0 0;
}

.post-body { font-size: 1rem; }

.post-body p { margin: 0 0 1.45rem; }

.post-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2.6rem 0 1rem;
  padding: 0.35rem 0.8rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.65;
}

.post-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.7rem;
  color: var(--accent);
  border-bottom: 1px dotted var(--line);
  padding-bottom: 0.3rem;
}

.post-body ul, .post-body ol { margin: 0 0 1.6rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: 0.4rem; }

.post-body blockquote {
  margin: 1.8rem 0;
  padding: 0.85rem 1.15rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body hr {
  border: none;
  border-top: 1px dotted var(--line);
  margin: 2.4rem 0;
}

/* 写真＋一行キャプション */
figure { margin: 1.7rem 0; }
figure img { border: 1px solid var(--line); border-radius: var(--radius); }
figcaption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.75;
  text-align: center;
}

/* 表 */
.table-scroll { overflow-x: auto; margin: 1.8rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
  background: var(--bg-raised);
}
th, td { padding: 0.6rem 0.85rem; border: 1px solid var(--line); text-align: left; }
th { background: var(--accent-soft); font-weight: 600; font-size: 0.82rem; }

/* 補足ボックス */
.note-box {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.05rem 1.25rem;
  margin: 1.8rem 0;
  font-size: 0.92rem;
  line-height: 1.95;
}
.note-box p:last-child { margin-bottom: 0; }
.note-box strong { color: var(--accent); }

/* 記事末の導線 */
.post-footer { margin: 2.8rem 0 0; }

.cta {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  font-size: 0.9rem;
  line-height: 2;
}
.cta p { margin: 0 0 0.4rem; }
.cta p:last-child { margin-bottom: 0; }

.pager { margin: 2rem 0 0; font-size: 0.9rem; }

/* ---------- プロフィール ---------- */

.profile-links { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.profile-links li {
  padding: 0.6rem 0.95rem;
  border-bottom: 1px dotted var(--line);
  font-size: 0.92rem;
  background: var(--bg-raised);
}
.profile-links li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.profile-links li:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.profile-links span {
  display: inline-block;
  min-width: 6rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

/* ---------- フッター ---------- */

.site-footer {
  margin-top: 3.5rem;
  background: var(--band);
  color: var(--band-ink);
  padding: 1.7rem 0;
  font-size: 0.76rem;
  line-height: 2;
  text-align: center;
}

.site-footer a { color: var(--band-ink); text-decoration: underline; }

.since { opacity: 0.65; font-size: 0.72rem; }

/* ---------- 小さい画面 ---------- */

@media (max-width: 560px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .site-nav a { min-width: 33%; }
  .post-header h1 { font-size: 1.25rem; }
  .news-list time { flex: 0 0 auto; }
}
