@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Noto+Serif+JP:wght@200;300;400&display=swap');

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

:root {
  --ed-white:       #f4f0e8;
  --ed-dim:         rgba(244, 240, 232, 0.70);
  --ed-faint:       rgba(244, 240, 232, 0.38);
  --ed-line:        rgba(244, 240, 232, 0.20);
  --ed-text:        #38322D;
  --ed-text-light:  #6B6058;
  --ed-accent:      #A6895A;
  --ed-accent-dark: #1C2B1A;
  --ed-card:        rgba(251, 249, 245, 0.92);
}

body {
  min-height: 100vh;
  font-family: 'Noto Serif JP', serif;
  color: var(--ed-text);
  background-color: #1a2318;
}

/* ── 背景 ── */
.ed-bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('http://natsume-still.com/wp-content/uploads/2026/04/ChatGPT-Image-2026%E5%B9%B44%E6%9C%8825%E6%97%A5-14_30_37.png');
  background-size: cover;
  background-position: center 55%;
}

.ed-bg-fixed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 10, 0.38);
}

/* ── ヘッダー ── */
.ed-header {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 2.5vw, 28px) clamp(24px, 4vw, 56px);
  background: rgba(10, 16, 10, 0.45);
  border-bottom: 1px solid var(--ed-line);
}

.ed-header__logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.22em;
  color: var(--ed-white);
  text-decoration: none;
  text-transform: uppercase;
}

.ed-header__nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
}

.ed-header__nav a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.24em;
  color: var(--ed-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.ed-header__nav a:hover { color: var(--ed-white); }

/* ── メインレイアウト ── */
.ed-page {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: clamp(40px, 6vh, 80px) clamp(16px, 4vw, 32px);
}

.ed-card {
  width: 100%;
  max-width: 760px;
  background: var(--ed-card);
  border-radius: 2px;
  padding: clamp(40px, 6vw, 80px) clamp(32px, 6vw, 80px);
  box-shadow: 0 8px 48px rgba(10, 16, 10, 0.32);
}

/* ── ページタイトル（中央揃え・縦線アクセント） ── */
.st-page-title {
  margin-bottom: clamp(40px, 6vh, 64px);
  padding-bottom: clamp(24px, 4vh, 40px);
  border-bottom: 1px solid rgba(166, 137, 90, 0.2);
  text-align: center;
}

.st-page-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.08em;
  color: var(--ed-text);
  line-height: 1;
  text-transform: uppercase;
}

.st-page-divider {
  display: block;
  width: 1px;
  height: clamp(24px, 3vh, 36px);
  background: rgba(166, 137, 90, 0.5);
  margin: 10px auto;
}

.st-page-heading {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ed-accent);
}

/* ── SWELLボタン上書き ── */
.story-content .swell-block-button {
  margin-top: clamp(24px, 4vh, 36px) !important;
}

.story-content .swell-block-button__link {
  background-color: var(--ed-accent-dark) !important;
  border-color: var(--ed-accent-dark) !important;
  border-radius: 0 !important;
  font-family: 'Noto Serif JP', serif !important;
  font-weight: 300 !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
  color: #f4f0e8 !important;
  padding: 14px 36px !important;
}

.story-content .swell-block-button__link:hover {
  background-color: #2e4a2b !important;
  border-color: #2e4a2b !important;
  color: #f4f0e8 !important;
}

/* ── 章見出し ── */
.st-chapter {
  margin-bottom: clamp(40px, 6vh, 64px);
}

.st-chapter__heading {
  margin-bottom: clamp(20px, 3vh, 32px);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(166, 137, 90, 0.2);
}

.st-ch-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.04em;
  color: var(--ed-text);
  line-height: 1;
  margin-bottom: 4px;
}

.st-ch-label {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ed-accent);
  margin-top: 6px;
}

/* ── 本文 ── */
.story-content p {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: var(--ed-text);
  margin-bottom: 1.4em;
}

.story-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: clamp(24px, 4vh, 40px) 0;
}

.story-content hr {
  border: none;
  border-top: 1px solid rgba(166, 137, 90, 0.2);
  margin: clamp(32px, 5vh, 48px) 0;
}

.story-content figure {
  margin: clamp(24px, 4vh, 40px) 0;
}

.story-content figure img {
  margin: 0;
}

/* ── QSMクイズ ── */
.story-content .qmn_quiz_container {
  margin-top: clamp(32px, 5vh, 48px);
}

/* ── フッター ── */
.ed-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px;
  background: rgba(10, 16, 10, 0.55);
  border-top: 1px solid var(--ed-line);
}

.ed-footer p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ed-faint);
}

/* ── モバイル ── */
@media (max-width: 767px) {
  .ed-card { padding: 32px 20px; }
  .ed-header { padding: 14px 20px; }
}
