/* MeloDear — 下層ページ共通スタイル
   トークンは _senastra/variables.css + themes.css（hokusai）を使う。
   LP（index.html）のインライン CSS から nav / footer / btn を抜き出して共有化したもの。 */

:root[data-theme="hokusai"] {
  --color-accent:         #B8442E;
  --color-accent-hover:   #943620;
  --color-accent-subtle:  #F7E8E4;
  --color-text-on-accent: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .6em 1.4em;
  border-radius: 7px;
  font-size: .88rem;
  font-family: sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .1s, box-shadow .18s;
  text-decoration: none;
  border: none;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent-subtle); }
.btn[aria-disabled="true"] {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-primary);
  flex-shrink: 0;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: .83rem;
  font-family: sans-serif;
  color: var(--color-text-secondary);
  transition: color .2s;
}
.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a[aria-current="page"] { color: var(--color-accent); }

/* ── Page head ── */
.page-head { padding: 3.5rem 0 2rem; }
.page-head .eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-family: sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .8rem;
}
.page-head h1 {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 .8rem;
  line-height: 1.3;
}
.page-head .lede { color: var(--color-text-secondary); margin: 0; }

/* ── Content ── */
main { padding-bottom: 4rem; }

h2 {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2.6rem 0 .9rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--color-border);
}
h3 { font-size: 1.02rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
p, li { font-size: .93rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .35rem; }

.note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  font-size: .89rem;
}
.note strong { color: var(--color-accent); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .85rem;
  font-family: sans-serif;
}
th, td {
  text-align: left;
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
th { font-weight: 700; color: var(--color-text-secondary); font-size: .78rem; letter-spacing: .04em; }
tr > th:first-child { white-space: nowrap; }
.table-wrap { overflow-x: auto; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: .1em .35em;
  white-space: nowrap;
}

.pill {
  display: inline-block;
  font-size: .7rem;
  font-family: sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .18em .6em;
  border-radius: 999px;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}
.pill-off { background: var(--color-surface); color: var(--color-text-secondary); }

.updated {
  margin-top: 3rem;
  font-size: .78rem;
  font-family: sans-serif;
  color: var(--color-text-secondary);
  opacity: .8;
}

/* ── Footer ── */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--color-text-primary); }
.footer-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .82rem;
  font-family: sans-serif;
  flex-wrap: wrap;
}
.footer-links a { color: var(--color-text-secondary); transition: color .2s; }
.footer-links a:hover { color: var(--color-text-primary); }
.footer-oss {
  width: 100%;
  font-size: .73rem;
  color: var(--color-text-secondary);
  font-family: sans-serif;
  margin-top: .5rem;
  opacity: .65;
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .page-head { padding: 2.5rem 0 1.5rem; }
}
