/* ===== Base ===== */
:root {
  --bg: #fcf9ef;
  --text: #4d322c;
  --muted: #7a6a64;
  --primary: #f68624;
  --surface: #ffffff;
  --border: #e6ddd5;
  --radius: 14px;
  --container: clamp(320px, 92vw, 980px);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Maru Gothic", system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ===== Utilities ===== */
.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
}

/* ===== Header ===== */
.site-header {
  background: var(--bg);
  position: relative;
  z-index: 5;
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
}
.site-title {
  font-size: clamp(20px, 3vw, 28px);
  margin: 0;
}

/* ===== Lang switcher ===== */
.lang-switcher select {
  appearance: none;
  font-size: 16px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.lang-switcher {
  position: relative;
}
.lang-switcher::after {
  content: "";
  position: absolute;
  pointer-events: none;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-top-color: var(--muted);
}

/* ===== Main ===== */
.site-main {
  padding-block: clamp(24px, 4vw, 40px);
}

.pp-head {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.pp-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.6vw, 30px);
}
.pp-updated {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pp-toc {
  background: #fffaf1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.pp-toc ol {
  margin: 0;
  padding-left: 20px;
}
.pp-toc a {
  color: var(--primary);
  text-decoration: none;
}
.pp-toc a:hover {
  text-decoration: underline;
}
/* 両言語共通の本文スタイル */
/* .pp-lang {} */
.pp-lang[hidden] {
  display: none !important;
}
.pp-lang h3 {
  font-size: clamp(18px, 2.6vw, 22px);
  margin: 1.6em 0 0.6em;
}
.pp-lang p {
  margin: 0.6em 0;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 40px;
  /* border-top: 1px solid var(--border); */
  background: var(--bg);
}
.site-footer .container {
  padding-block: 20px;
  text-align: center;
  color: var(--muted);
}
/* 本文の頭がヘッダーに貼り付かないよう少し余白（必要に応じて） */
.page-privacy-policy main.privacy-policy {
  padding-top: 24px;
}
/* ===== Print ===== */
@media print {
  .site-header,
  .site-footer,
  .pp-toc,
  #lang-switcher,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .container {
    width: auto;
    padding: 0;
  }
  .pp-lang {
    display: none !important;
  }
  .pp-lang.is-active {
    display: block !important;
  }
}
/* ===== Header (Title + Lang switcher) ===== */
.pp-head__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap; /* 狭い画面で折り返し対応 */
}

.pp-head__inner h2 {
  margin: 0;
}

.pp-head__inner .lang-switcher {
  flex-shrink: 0;
}
/* 共通ページヘッダー（タイトル右にドロップダウン） */
.pp-pagehead {
  margin-bottom: 20px;
  margin-top: 100px;
}
.pp-head__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pp-title {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 30px);
}
.pp-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
/* フッターは前面、帯は背面 */
.site-footer {
  position: relative;
  z-index: 2;
}
/* ===============================
   プライバシーポリシーページ専用
   フッター波色（黄色→#fcf9ef）上書き
================================= */

.page-id-3 .footer::before {
  background-image: url("/wp-content/themes/hinatan-lp/assets/img/footer/Vector-privacy.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: top center;
}

/* 印刷ではドロップダウン非表示（従来どおり） */
@media print {
  .pp-pagehead .lang-switcher {
    display: none !important;
  }
}
