/* KAIFUKU — 回復カルチャーマガジン v1 */

:root {
  --bg: #0b0c0e;
  --surface: #15171b;
  --line: #26292f;
  --text: #f2f0eb;
  --muted: #9ba0a8;
  --accent: #39ff7a;
  --accent-ink: #0b0c0e;
  --chip-k: #39ff7a;
  --chip-l1: #6ec1ff;
  --chip-l2: #ffb05c;
  --chip-l3: #c79bff;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Anton", "Arial Narrow", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 3rem) 1.1rem;
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: baseline; gap: 0.6rem; }

.logo-en {
  font-family: var(--font-en);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-kanji {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.15rem 0.45rem;
  transform: translateY(-0.2rem);
}

.tagline {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  padding: 0.5rem 0;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- layout ---------- */

.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 4rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.45;
  max-width: 22em;
  margin-top: 0.5rem;
}

.hero-title a:hover { color: var(--accent); }

.hero-kanji {
  position: absolute;
  right: -0.05em;
  bottom: -0.32em;
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57, 255, 122, 0.16);
  pointer-events: none;
  user-select: none;
}

/* ---------- meta / chips ---------- */

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.chip {
  font-family: var(--font-jp);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.55rem;
  border: 1px solid currentColor;
}

.chip-k { color: var(--chip-k); }
.chip-l1 { color: var(--chip-l1); }
.chip-l2 { color: var(--chip-l2); }
.chip-l3 { color: var(--chip-l3); }

/* ---------- feed / cards ---------- */

.feed { padding-top: 2.2rem; }

.feed-heading {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.7rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.card:hover { background: var(--surface); border-color: var(--accent); }

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.7;
  margin-top: 0.8rem;
}

.card:hover .card-title { color: var(--accent); }

/* ---------- article ---------- */

.article {
  max-width: 42rem;
  margin: 0 auto;
  padding-top: clamp(2.2rem, 5vw, 3.6rem);
}

.article-header { margin-bottom: 2.4rem; }

.article-title {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.5;
  margin-top: 0.9rem;
  padding-bottom: 1.3rem;
  border-bottom: 2px solid var(--accent);
}

.article-body h2 {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.6;
  margin: 2.6rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent);
}

.article-body p { margin: 1.1rem 0; }

.article-body ul,
.article-body ol { margin: 1.1rem 0 1.1rem 1.4rem; }

.article-body li { margin: 0.45rem 0; }

.article-body strong { color: #ffffff; }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.article-body a:hover { text-decoration-thickness: 2px; }

.article-back {
  margin: 3rem 0 1rem;
  font-size: 0.9rem;
}

.article-back a { color: var(--muted); }
.article-back a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 2.4rem clamp(1rem, 4vw, 3rem) 3rem;
  max-width: 1100px;
  margin-inline: auto;
}

.footer-logo {
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

.footer-about {
  font-size: 0.92rem;
  max-width: 40em;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 44em;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 2rem;
}

/* ---------- photo covers（2026-08-25 カード写真導入） ---------- */

.cover-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}

.hero-media {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-media .cover-img,
.hero-media svg { width: 100%; height: 100%; transition: transform 0.6s ease; }

.hero-media:hover .cover-img { transform: scale(1.03); }

.hero-kanji { z-index: 0; }

.card { padding: 0 0 1.6rem; }

.card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-cover .cover-img,
.card-cover svg { width: 100%; height: 100%; transition: transform 0.5s ease; }

.card:hover .card-cover .cover-img { transform: scale(1.04); }

.card .article-meta { margin: 1.15rem 1.4rem 0; }

.card .card-title { margin: 0.8rem 1.4rem 0; }

.article-hero { margin: -0.6rem 0 2.4rem; }

.article-hero .cover-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-hero figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: right;
  letter-spacing: 0.04em;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-kanji { display: none; }
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 0.3rem; }
  .tagline { letter-spacing: 0.2em; }
  .hero-kanji { -webkit-text-stroke-color: rgba(57, 255, 122, 0.1); }
}

/* ---------- genre chips / filter（2026-08-25 カテゴリ表示化） ---------- */

.article-meta { flex-wrap: wrap; }

.chip-cat-training { color: #39ff7a; }
.chip-cat-sleep { color: #6ec1ff; }
.chip-cat-sauna { color: #ff9457; }
.chip-cat-recovery { color: #34d9b5; }
.chip-cat-food { color: #ffd166; }
.chip-cat-mind { color: #c79bff; }
.chip-cat-local { color: #ff7ab8; }
.chip-cat-gear { color: #aab8c6; }
.chip-cat-event { color: #ffe066; }
.chip-cat-data { color: #e6e6e6; }

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
}

.cat-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line, #2a2d33);
  color: var(--muted, #9aa3ad);
  font-family: var(--font-jp);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.42rem 0.95rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cat-btn:hover { color: #fff; border-color: #6b7280; }

.cat-btn.is-active {
  color: #0b0c0e;
  background: #39ff7a;
  border-color: #39ff7a;
}

/* ---------- footer links（固定ページ導線・2026-08-25） ---------- */
.footer-links { display: flex; gap: 1.2rem; margin-top: 0.6rem; }
.footer-links a { color: inherit; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; opacity: 0.85; }
.footer-links a:hover { opacity: 1; }

/* 記事下の回遊導線（公開準備 2026-08-26） */
.related{margin-top:64px}
.related .feed-heading{margin-bottom:20px}

/* ---------- newsletter (KAIFUKU LETTER) ---------- */

.newsletter {
  margin: 64px 0 8px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.newsletter::after {
  content: "回";
  position: absolute;
  right: -0.1em;
  bottom: -0.45em;
  font-weight: 900;
  font-size: 9rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
}

.nl-label {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.nl-title {
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0.4rem 0 0.6rem;
  line-height: 1.4;
}

.nl-desc {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 40em;
}

.nl-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0.7rem;
}

.nl-input {
  flex: 1 1 240px;
  max-width: 380px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
}

.nl-input:focus {
  outline: none;
  border-color: var(--accent);
}

.nl-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 1rem;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
}

.nl-btn:hover { opacity: 0.85; }

.nl-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.nl-note a { text-decoration: underline; }

.nl-substack {
  margin: 0.2rem 0 0.7rem;
  font-size: 0.9rem;
}

.nl-substack a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- language switch ---------- */

.lang-switch {
  margin-left: 0.9rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
}
