/* =====================================================
   base.css — 基本スタイル（タイポグラフィ・body・リンク）
   ===================================================== */

body {
  font-family: var(--font-ja);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-base);
  letter-spacing: 0.06em;
  color: var(--color-text-main);
  background-color: var(--color-body-bg);
  background-image: var(--color-body-bg-noise);
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ===== 見出し ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ja);
  color: var(--color-text-main);
}

/* 本文内の見出し (Apple風モダンミニマル) */
.entry-content h2, .page-content h2 {
  font-size: 1.5rem; /* ~24px */
  font-weight: 700;
  padding-left: 0.75rem;
  border-left: 3px solid #dca100; /* テーマカラーのアクセントゴールド */
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.entry-content h3, .page-content h3 {
  font-size: 1.25rem; /* ~20px */
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 0.5rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.entry-content h4, .page-content h4 {
  font-size: 1.1rem; /* ~18px */
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  position: relative;
  padding-left: 0.75rem;
}
.entry-content h4::before, .page-content h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: #dca100;
  border-radius: 50%;
}


/* ===== 本文 ===== */
p {
  margin-bottom: var(--sp-4);
  line-height: var(--lh-base);
  color: var(--color-text-sub);
}

p:last-child {
  margin-bottom: 0;
}

/* ===== リンク ===== */
a {
  transition: color var(--t-fast);
}

/* ===== 強調 ===== */
strong, b {
  font-weight: 700;
}

em {
  font-style: normal;
  font-weight: 500;
}

/* ===== 画像 ===== */
img {
  border-radius: var(--radius-sm);
}

/* ===== セレクション ===== */
::selection {
  background-color: var(--color-accent-light);
  color: var(--color-accent-text);
}

/* ===== WordPress管理バー対応 ===== */
body.admin-bar .site-sidebar {
  top: 32px;
  height: calc(100vh - 32px);
}

body.admin-bar .site-header-mobile {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-sidebar {
    top: 46px;
    height: calc(100vh - 46px);
  }

  body.admin-bar .site-header-mobile {
    top: 46px;
  }
}
