/* ===== レクピン デザイントークン & ベース ===== */

:root {
  --ink: #2a241c;
  --ink-soft: #4a4036;
  --vermilion: #c8453a;
  --vermilion-dark: #a3362c;
  --washi: #f5efe4;
  --washi-dark: #ebe3d3;
  --washi-line: #d8cfbc;
  --gold: #b89968;
  --green-soft: #6c8a3c;
  --white: #fbf8f1;
  --shadow: 0 2px 12px rgba(42, 36, 28, 0.08);
  --radius: 10px;
  --tap-min: 44px;

  --fs-base: 19px;
  --lh-base: 1.9;
  --fs-hero: 44px;
  --fs-h2: 31px;
  --fs-h3: 24px;
  --fs-meta: 16px;
}

html.text-large {
  --fs-base: 22px;
  --fs-hero: 50px;
  --fs-h2: 35px;
  --fs-h3: 27px;
  --fs-meta: 18px;
  --lh-base: 1.95;
}

html.text-xlarge {
  --fs-base: 26px;
  --fs-hero: 58px;
  --fs-h2: 41px;
  --fs-h3: 32px;
  --fs-meta: 21px;
  --lh-base: 2.05;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Zen Kaku Gothic New', system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--washi);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
h1 { font-size: var(--fs-hero); margin: 0 0 0.4em; letter-spacing: 0.02em; }
h2 { font-size: var(--fs-h2); margin: 0 0 0.6em; }
h3 { font-size: var(--fs-h3); margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

a { color: var(--vermilion-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--vermilion); }

img { max-width: 100%; display: block; }
ul { padding-left: 1.4em; }
button { font: inherit; }

/* ===== レイアウト ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--washi-line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.site-logo .mark { color: var(--vermilion); margin-right: 4px; }
.site-tagline {
  font-size: var(--fs-meta);
  color: var(--ink-soft);
}

.search-bar {
  flex: 1;
  max-width: 460px;
  margin: 0 24px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--washi-line);
  border-radius: 999px;
  background: var(--washi);
  padding: 6px 16px;
  min-height: var(--tap-min);
}
.search-bar input {
  border: none;
  background: transparent;
  font: inherit;
  flex: 1;
  outline: none;
  color: var(--ink);
}
.search-bar input::placeholder { color: var(--ink-soft); opacity: 0.6; }
.search-bar .icon { margin-right: 8px; opacity: 0.6; }

/* ===== パンくず ===== */
.breadcrumb {
  font-size: var(--fs-meta);
  color: var(--ink-soft);
  padding: 16px 0;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--vermilion); text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* ===== フッター ===== */
.site-footer {
  margin-top: 64px;
  padding: 32px 24px;
  background: var(--ink);
  color: var(--washi-dark);
  text-align: center;
  font-size: var(--fs-meta);
}
.site-footer a { color: var(--washi); }

/* ===== 文字サイズ切替 ===== */
.text-size-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  background: var(--white);
  border: 1.5px solid var(--washi-line);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100;
  overflow: hidden;
}
.text-size-toggle button {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-family: 'Shippori Mincho', serif;
  cursor: pointer;
  color: var(--ink-soft);
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border-right: 1px solid var(--washi-line);
}
.text-size-toggle button:last-child { border-right: none; }
.text-size-toggle button[aria-pressed="true"] { background: var(--vermilion); color: white; }
.text-size-toggle button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.text-size-toggle .ts-s { font-size: 16px; }
.text-size-toggle .ts-m { font-size: 20px; }
.text-size-toggle .ts-l { font-size: 26px; }

/* ===== レスポンシブ（共通） ===== */
@media (max-width: 900px) {
  .search-bar { display: none; }
}
@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .text-size-toggle { bottom: 12px; right: 12px; }
}
