/* =========================================================================
   SR Site Studio — コラム用スタイルシート
   本体 index.html の <style> から、カラー・リセット・ヘッダー・フッター・
   ボタン・ハンバーガーを忠実に移植し、記事用タイポグラフィを追加したもの。
   本体と「区別がつかない」見た目に揃えることを最優先にしている。
   ========================================================================= */

:root {
  /* Editorial paper palette — 紙質感のあるクリーム + 深い墨 + 一点だけのテラコッタ */
  --paper:    #F1EDE3;
  --paper-2:  #EAE3D2;
  --ink:      #1A1815;
  --ink-2:    #3F3B33;
  --mute:     #888073;
  --line:     #C8BFA9;
  --line-2:   #B6AC93;
  --accent:   #B25A3E;
  --accent-2: #8E4530;

  --maxw: 1280px;
  --pad: 56px;
  --fade-ease: cubic-bezier(.22,.7,.25,1);
}
@media (max-width: 820px) { :root { --pad: 24px; } }

* { box-sizing: border-box; }
/* 横スクロール防止は html/body 両方に指定（本体と同じ理由・clip優先） */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.85;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Type system（本体から）===== */
.min   { font-family: "Shippori Mincho B1", "Noto Serif JP", serif; font-weight: 700; }
.min-h { font-family: "Shippori Mincho B1", "Noto Serif JP", serif; font-weight: 800; }
.fr    { font-family: "Fraunces", "Times New Roman", serif; font-weight: 400; font-variation-settings: "opsz" 96, "SOFT" 0; }
.fr-it { font-family: "Fraunces", serif; font-style: italic; font-weight: 400; }
.label {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-2);
}
.label .dot { color: var(--accent); margin-right: .35em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; }

/* ===== Header（本体から忠実移植・黒基調）===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--ink);
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(26,24,21,.96); border-bottom-color: rgba(241,237,227,.14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark { font-family: "Fraunces", serif; font-weight: 600; font-size: 23px; color: var(--paper); letter-spacing: 0; }
.brand .mark em { font-style: italic; font-weight: 400; color: #E69472; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav a:not(.cta) {
  font-size: 14px; color: var(--paper); letter-spacing: .14em; text-transform: uppercase;
  font-family: "Fraunces", serif; font-weight: 700;
  position: relative; padding: 4px 0;
}
.nav a:not(.cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--paper); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--fade-ease);
}
.nav a:not(.cta):hover::after { transform: scaleX(1); transform-origin: left; }
/* 現在地（コラム一覧など）は下線を常時表示して active を示す */
.nav a:not(.cta).is-active::after { transform: scaleX(1); transform-origin: left; }
.cta {
  background: var(--accent); color: var(--paper);
  padding: 13px 24px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  font-family: "Fraunces", serif; font-weight: 700;
  border: 1px solid var(--accent);
  position: relative; overflow: hidden; z-index: 0;
  transition: color .3s ease, border-color .3s ease;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--fade-ease);
}
.cta:hover::before { transform: scaleX(1); }
.cta:hover { border-color: rgba(241,237,227,.5); }
/* ハンバーガーボタン（PCでは非表示） */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--paper);
  transition: transform .3s var(--fade-ease), opacity .25s ease;
}
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-inner { height: 64px; }
  .brand .mark { font-size: 17px; white-space: nowrap; }
  .nav { gap: 10px; }
  .nav-toggle { display: flex; }
  .cta { padding: 10px 14px; font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 6px 24px 18px;
    border-bottom: 1px solid rgba(241,237,227,.18);
  }
  .site-header.menu-open .nav-links { display: flex; }
  .nav .nav-links a { padding: 15px 0; border-bottom: 1px solid rgba(241,237,227,.1); }
  .nav .nav-links a:last-child { border-bottom: 0; }
}

/* =========================================================================
   コラム固有：本文カラム・記事タイポグラフィ
   ========================================================================= */

/* ヘッダー分の余白を確保するラッパ */
.column-main { padding-top: 78px; }
@media (max-width: 900px) { .column-main { padding-top: 64px; } }

/* 記事・一覧の読みやすい中央カラム */
.col-wrap { max-width: 720px; margin: 0 auto; padding: 56px var(--pad) 40px; }
@media (max-width: 720px) { .col-wrap { padding: 36px var(--pad) 32px; } }

/* ===== パンくず ===== */
.breadcrumb {
  font-family: "Noto Sans JP", sans-serif; font-size: 12.5px; letter-spacing: .04em;
  color: var(--mute); line-height: 1.8; margin: 0 0 30px;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--mute); border-bottom: 1px solid transparent; transition: color .2s var(--fade-ease), border-color .2s var(--fade-ease); }
.breadcrumb a:hover { color: var(--accent); border-color: var(--accent); }
.breadcrumb .sep { color: var(--line-2); margin: 0 2px; }
.breadcrumb li[aria-current="page"] { color: var(--ink-2); }

/* ===== 一覧ページ 見出しブロック（本体 .sec-head の雰囲気に寄せる）===== */
.col-head { border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 48px; }
.col-head .label { display: block; margin-bottom: 16px; }
.col-head h1 {
  font-family: "Shippori Mincho B1", serif; font-weight: 800;
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.25; letter-spacing: -.005em;
  margin: 0; color: var(--ink);
}
.col-head h1 em { font-style: normal; color: var(--accent); font-weight: 700; }
.col-head .desc { font-size: 15.5px; color: var(--ink-2); max-width: 520px; margin-top: 18px; }

/* ===== コラムカード（一覧）===== */
.col-list { display: flex; flex-direction: column; gap: 0; }
.col-card {
  display: block; padding: 32px 0;
  border-top: 1px solid var(--line);
}
.col-card:last-child { border-bottom: 1px solid var(--line); }
.col-card .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px;
}
.col-card .date {
  font-family: "Fraunces", serif; font-size: 13px; letter-spacing: .1em; color: var(--mute);
}
.col-card .cat {
  font-family: "Noto Sans JP", sans-serif; font-size: 11.5px; letter-spacing: .08em;
  color: var(--accent); border: 1px solid var(--line-2); border-radius: 2px;
  padding: 3px 10px;
}
.col-card h2 {
  font-family: "Shippori Mincho B1", serif; font-weight: 700;
  font-size: clamp(19px, 2.4vw, 25px); line-height: 1.5; letter-spacing: .005em;
  margin: 0 0 12px; color: var(--ink);
  transition: color .25s var(--fade-ease);
}
.col-card:hover h2 { color: var(--accent); }
.col-card .excerpt { font-size: 14.5px; line-height: 1.9; color: var(--ink-2); margin: 0 0 14px; }
.col-card .more {
  font-family: "Fraunces", serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: 10px;
}
.col-card .more .arr { width: 20px; height: 1px; background: currentColor; position: relative; }
.col-card .more .arr::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg);
}

/* =========================================================================
   記事本文タイポグラフィ
   ========================================================================= */

/* 記事ヘッダー（h1＋メタ） */
.article-header { border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 40px; }
.article-header h1 {
  font-family: "Shippori Mincho B1", serif; font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; letter-spacing: -.005em;
  margin: 0 0 20px; color: var(--ink);
}
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.article-meta .date {
  font-family: "Fraunces", serif; font-size: 13px; letter-spacing: .1em; color: var(--mute);
}
.article-meta .cat {
  font-family: "Noto Sans JP", sans-serif; font-size: 11.5px; letter-spacing: .08em;
  color: var(--accent); border: 1px solid var(--line-2); border-radius: 2px; padding: 3px 10px;
}

/* 本文 */
.article-body { font-size: 16.5px; line-height: 1.95; color: var(--ink-2); }
@media (max-width: 720px) { .article-body { font-size: 16px; line-height: 1.9; } }
.article-body p { margin: 0 0 1.7em; }
.article-body .lead {
  font-size: 18px; line-height: 1.95; color: var(--ink);
  margin-bottom: 2em; padding-bottom: 1.6em; border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .article-body .lead { font-size: 16.5px; } }

/* h2：本体 .sec-head h2 の雰囲気に寄せる。上に区切り線＋テラコッタの見出し感 */
.article-body h2 {
  font-family: "Shippori Mincho B1", serif; font-weight: 800;
  font-size: clamp(22px, 2.8vw, 30px); line-height: 1.45; letter-spacing: -.005em;
  color: var(--ink);
  margin: 2.6em 0 1em; padding-top: 1em; border-top: 1px solid var(--line);
  position: relative;
}
/* 見出し左肩にテラコッタの短い下線でアクセント */
.article-body h2::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 3px;
  background: var(--accent);
}
.article-body h2 em { font-style: normal; color: var(--accent); }

/* h3：小見出し */
.article-body h3 {
  font-family: "Shippori Mincho B1", serif; font-weight: 700;
  font-size: clamp(18px, 2.2vw, 21px); line-height: 1.6; color: var(--ink);
  margin: 2em 0 .8em;
}

/* リスト */
.article-body ul, .article-body ol { margin: 0 0 1.7em; padding-left: 1.4em; }
.article-body li { margin-bottom: .7em; line-height: 1.9; padding-left: .2em; }
.article-body ul li::marker { color: var(--accent); }
.article-body ol li::marker { color: var(--accent); font-family: "Fraunces", serif; }

/* 強調（本文の強調は原稿の strong のみ・控えめに） */
.article-body strong { font-weight: 700; color: var(--ink); }

/* ===== 記事末 CTA ボックス（本体 final-cta / btn-fill の雰囲気）===== */
.article-cta {
  background: var(--ink); color: var(--paper);
  padding: 44px 40px; margin: 3.2em 0 0;
  border-radius: 2px;
}
@media (max-width: 720px) { .article-cta { padding: 34px 26px; } }
.article-cta .lab {
  font-family: "Fraunces", serif; font-size: 11.5px; letter-spacing: .25em;
  color: #E69472; text-transform: uppercase; margin: 0 0 14px;
}
.article-cta h2 {
  font-family: "Shippori Mincho B1", serif; font-weight: 800;
  font-size: clamp(22px, 2.8vw, 30px); line-height: 1.4; color: var(--paper);
  margin: 0 0 14px;
}
.article-cta p { font-size: 15px; line-height: 1.9; color: rgba(241,237,227,.8); margin: 0 0 26px; max-width: 480px; }

/* CTA ボタン（本体 btn-fill をベースに、黒地の上なのでテラコッタ地→ホバーで白枠） */
.btn-fill {
  background: var(--accent); color: var(--paper);
  padding: 18px 36px; font-size: 14.5px; letter-spacing: .1em;
  font-family: "Noto Sans JP", sans-serif; font-weight: 700;
  display: inline-flex; align-items: center; gap: 12px;
  position: relative; overflow: hidden; z-index: 0;
  border: 1px solid var(--accent);
  transition: color .3s ease, border-color .3s ease;
}
.btn-fill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--fade-ease);
}
.btn-fill:hover::before { transform: scaleX(1); }
.btn-fill:hover { color: var(--ink); border-color: var(--paper); }
.btn-fill .arr { width: 20px; height: 1px; background: currentColor; position: relative; }
.btn-fill .arr::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg);
}

/* ===== 記事末「一覧へ戻る」 ===== */
.back-link { margin: 44px 0 8px; }
.back-link a {
  font-family: "Fraunces", serif; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: border-color .3s ease;
}
.back-link a:hover { border-bottom-color: var(--ink); }

/* =========================================================================
   Footer（本体から忠実移植）
   ========================================================================= */
footer.site-footer { background: var(--ink); color: rgba(241,237,227,.6); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-bottom: 52px; margin-bottom: 32px; border-bottom: 1px solid rgba(241,237,227,.12); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }
.fg-logo { font-family: "Shippori Mincho B1", serif; font-weight: 700; font-size: 22px; color: var(--paper); margin: 0 0 16px; letter-spacing: .04em; }
.fg-logo em { font-family: "Fraunces", serif; font-style: italic; font-weight: 400; color: #E69472; }
.fg-copy { font-size: 13.5px; line-height: 2; color: rgba(241,237,227,.65); margin: 0; }
.fg-title { font-family: "Fraunces", serif; font-style: italic; font-size: 13px; letter-spacing: .18em; color: #E69472; margin: 0 0 18px; }
.fg-nav ul, .fg-info ul { list-style: none; margin: 0; padding: 0; }
.fg-nav li, .fg-info li { font-size: 13.5px; line-height: 1.7; padding: 5px 0; color: rgba(241,237,227,.75); }
.fg-nav a { color: rgba(241,237,227,.75); transition: color .25s ease; }
.fg-nav a:hover { color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; font-family: "Fraunces", serif; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.footer-inner .left em { font-style: italic; color: #E69472; }
.footer-inner a:hover { color: var(--paper); }
.site-footer .footer-link {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
  transition: color .2s var(--fade-ease), border-color .2s var(--fade-ease);
}
.site-footer .footer-link:hover { color: var(--accent); border-color: var(--accent); }
.site-footer .footer-sep { margin: 0 12px; color: var(--mute); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
