/* ==========================================================================
   yonabechan - スタイルシート
   Night Ski / 雪夜のナイター をイメージしたダークテーマ
   ========================================================================== */

:root {
  --color-bg: #070c1a;
  --color-bg-alt: #101c38;
  --color-bg-card: #0f1a30;
  --color-text: #e9edf5;
  --color-text-muted: #8b96ac;
  --color-accent: #7dd3fc;       /* 遠くの雪稜を照らす月明かり・アイスブルー */
  --color-accent-warm: #ffbb55;  /* ゲレンデを照らすナイター照明のゴールド */
  --color-border: #1f2c48;
  --max-width: 720px;
  --font-heading: "Poppins", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-base: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "Segoe UI", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(255, 187, 85, 0.06), transparent 60%),
    radial-gradient(ellipse 900px 600px at 90% 0%, rgba(125, 211, 252, 0.06), transparent 60%),
    linear-gradient(180deg, #04081c 0%, #0a1440 45%, #0a1024 100%);
  background-attachment: fixed;
  line-height: 1.8;
  font-size: 16px;
}

/* 降雪の粒子感を出す固定背景レイヤー */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 80% 10%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 40% 60%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 60% 80%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 25% 85%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 92% 55%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 70% 35%, rgba(255, 255, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 400px 400px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

a:hover {
  text-decoration: underline;
  text-shadow: 0 0 12px rgba(255, 187, 85, 0.55);
}

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

/* Header */
.site-header {
  position: relative;
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.6), transparent);
}

.site-header .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.site-title:hover {
  text-decoration: none;
  color: var(--color-accent);
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.45);
}

.site-tagline {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent-warm);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 193, 105, 0.45);
}

/* ナイタースキーの写真をヘッダー装飾として表示 */
.header-scene {
  position: relative;
  height: 200px;
  line-height: 0;
  background-image:
    linear-gradient(180deg, rgba(4, 8, 20, 0.15) 0%, rgba(4, 8, 20, 0.05) 60%, var(--color-bg) 100%),
    url("../img/hero-night-piste.jpg");
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}

/* Main content */
main {
  padding: 40px 0 60px;
  min-height: 55vh;
}

h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2.2em;
  margin-bottom: 0.9em;
  color: var(--color-accent-warm);
  border-left: 3px solid var(--color-accent);
  padding-left: 12px;
}

.intro {
  margin-bottom: 2em;
  color: var(--color-text-muted);
}

/* Post list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  border-bottom: 1px solid var(--color-border);
}

.post-list li a {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 10px;
  margin: 0 -10px;
  border-radius: 6px;
  color: var(--color-text);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.post-list li a:hover {
  text-decoration: none;
  background: var(--color-bg-card);
  box-shadow: 0 0 0 1px var(--color-border), 0 0 20px rgba(255, 193, 105, 0.08);
}

.post-list li a:hover .post-title {
  color: var(--color-accent-warm);
}

.post-date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  min-width: 100px;
  font-variant-numeric: tabular-nums;
}

.post-title {
  transition: color 0.2s ease;
}

/* Article page */
.article-header {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--color-border);
}

.article-date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.article-body p {
  margin: 1.2em 0;
}

.article-body h2 {
  margin-top: 1.6em;
}

.back-link {
  display: inline-block;
  margin-top: 2em;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Profile */
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-bg-card), var(--color-bg-alt));
  background-image: url("../img/profile-photo.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--color-border);
  margin-bottom: 1em;
}

.sns-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-scene {
    height: 130px;
  }

  .post-date {
    min-width: auto;
  }
}
