/* ============================================================
   共通ページレイアウト (layout-page.njk) スタイル
   ── About / Blog / Contact / Privacy / Usage / Tools等で使用
   元: src/_includes/layout-page.njk の <style> 部分から外部化 (2026-05-20)
   ============================================================ */

/* ===== カラーパレット (トップと統一) ===== */
:root {
  --bg:        #ede4d3;
  --bg-soft:   #f5eee0;
  --bg-warm:   #e0d4be;
  --ink:       #2a2218;
  --ink2:      #5b4a35;
  --ink3:      #8b7861;
  --line:      rgba(42,34,24,0.12);
  --line-strong: rgba(42,34,24,0.22);
  --accent:    #c8541e;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle, rgba(42,34,24,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
input, select, textarea, button { font: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== ヘッダー (浮遊型) ===== */
.th-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 32px;
  pointer-events: none;
}
.th-header > * { pointer-events: auto; }
.th-header__logo {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.th-logo-text {
  font-family: "Cormorant Garamond", "Yu Mincho", serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.th-logo-em { color: var(--accent); }
.th-logo-tagline {
  font-size: 0.7rem;
  color: var(--ink3);
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.th-nav__list {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 6px 0 0;
}
.th-nav__list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.th-nav__list a:hover { color: var(--accent); }
.th-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.th-nav__list a:hover::after { transform: scaleX(1); }
.th-nav { display: flex; align-items: center; gap: 18px; }
.th-header__sns {
  color: var(--ink2);
  transition: color 0.2s;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
}
.th-header__sns:hover { color: var(--accent); }

/* モバイル用ハンバーガー */
.th-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.th-menu-btn__bar {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.th-menu-btn--open .th-menu-btn__bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.th-menu-btn--open .th-menu-btn__bar:nth-child(2) {
  opacity: 0;
}
.th-menu-btn--open .th-menu-btn__bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ===== メインコンテンツ ===== */
.th-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 28px 80px;
}
.th-article h1, .th-article h2, .th-article h3 {
  font-family: "Cormorant Garamond", "Yu Mincho", serif;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.th-article h1 {
  font-size: 2.4rem;
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.3;
}
.th-article > .th-page-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  margin-bottom: 10px;
}
.th-article h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 48px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.th-article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink2);
}
.th-article p {
  color: var(--ink2);
  margin: 14px 0;
  font-size: 1rem;
  line-height: 1.85;
}
.th-article ul, .th-article ol {
  margin: 14px 0 14px 20px;
  color: var(--ink2);
}
.th-article li { margin: 8px 0; line-height: 1.75; }
/* 本文中の通常リンク (class未指定) だけにスタイル適用 ─
   .th-cta__btn / .th-blog-card / .guide-*__cta 等のクラス付きリンクには影響しない */
.th-article a:not([class]) {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,84,30,0.3);
  transition: border-color 0.2s;
}
.th-article a:not([class]):hover {
  border-bottom-color: var(--accent);
}
.th-article strong { color: var(--ink); font-weight: 700; }
.th-article hr {
  border: none;
  border-top: 1px dashed var(--line-strong);
  margin: 36px 0;
}

/* テーブル */
.th-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: var(--bg-soft);
  font-size: 0.95rem;
}
.th-article th, .th-article td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.th-article th {
  background: var(--bg-warm);
  color: var(--ink);
  font-weight: 600;
  width: 160px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.th-article td { color: var(--ink2); }
.th-article tr:last-child th,
.th-article tr:last-child td { border-bottom: none; }

/* リード文 */
.th-lead {
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.8;
  margin: 0 0 30px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
}

/* ===== フッター ===== */
.th-footer {
  margin-top: 60px;
  padding: 40px 28px 36px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.th-footer__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.th-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.th-footer__tag {
  font-size: 0.78rem;
  color: var(--ink3);
  letter-spacing: 0.1em;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
}
.th-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}
.th-footer__nav a {
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s;
}
.th-footer__nav a:hover { color: var(--accent); }
.th-footer__bottom {
  color: var(--ink3);
  font-size: 0.78rem;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .th-header { padding: 16px 18px; }
  .th-logo-text { font-size: 1.15rem; }
  .th-logo-tagline { font-size: 0.62rem; }
  .th-menu-btn { display: flex; }
  .th-nav {
    position: fixed;
    top: 64px;
    right: 16px;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    background: rgba(245,238,224,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(42,34,24,0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }
  .th-nav.th-nav--open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    padding: 16px 22px;
  }
  .th-nav__list {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: flex-end;
  }
  .th-header__sns { margin-top: 8px; }

  .th-main { padding: 120px 20px 60px; }
  .th-article h1 { font-size: 1.9rem; }
  .th-article h2 { font-size: 1.3rem; }
  .th-article table { font-size: 0.88rem; }
  .th-article th { width: 110px; padding: 10px 12px; }
  .th-article td { padding: 10px 12px; }
}
