:root {
  --primary: #B5714A;
  --primary-dark: #8F4F2A;
  --primary-light: #FBF2EA;
  --accent: #E8302A;
  --text: #4a3a30;
  --text-muted: #8d7b6e;
  --border: #f0e4d8;
  --bg: #FEFCF9;
  --white: #ffffff;
  --hero-bg: #F5EDE0;
  --maru: 'Zen Maru Gothic', sans-serif;
  --klee: 'Klee One', cursive;
  --display: 'DM Serif Display', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--maru);
  background: var(--bg);
  color: var(--text);
  line-height: 2.1;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254,252,249,.92); backdrop-filter: blur(8px);
  padding: 0 1.5rem; border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 66px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; }
.nav-logo img { height: 34px; width: auto; }
.nav-brand { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--text); }
@media (max-width: 480px) { .nav-brand { display: none; } }
.nav-links { display: flex; gap: 1.9rem; align-items: center; }
.nav-links a { font-size: 13px; letter-spacing: .06em; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a .p { font-size: 10px; display: inline-block; transform: translateY(-1px) rotate(-10deg); margin-right: 3px; }
.nav-cta {
  background: var(--primary-dark); color: #fff !important;
  padding: 11px 26px; border-radius: 30px; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 0 #6B3A1E; transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 #6B3A1E; }
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--text); transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; background: var(--white);
  border-bottom: 1px solid var(--border); padding: 1rem 1.5rem 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 14px; padding: .7rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta {
  margin-top: .75rem; background: var(--primary-dark); color: #fff !important;
  text-align: center; padding: 11px; border-radius: 30px; font-weight: 700; border-bottom: none;
  box-shadow: 0 4px 0 #6B3A1E;
}

.page-main { max-width: 720px; margin: 0 auto; padding: 5rem 2rem; }
.page-eyebrow { font-family: var(--klee); font-size: 12px; color: var(--primary); letter-spacing: .14em; margin-bottom: .75rem; }
.page-title { font-size: clamp(24px, 4vw, 32px); font-weight: 700; letter-spacing: .04em; margin-bottom: .75rem; line-height: 1.6; }
.page-lead { font-size: 14px; color: var(--text-muted); margin-bottom: 2.5rem; }
.page-title .mk, h2 .mk { background: linear-gradient(transparent 62%, #F3D9C5 62%); padding: 0 .1em; }
h2 {
  font-size: 17px; font-weight: 700; margin: 2.5rem 0 .9rem;
  padding-left: .9rem; border-left: 3px solid var(--primary); letter-spacing: .04em; line-height: 1.6;
}
p, li { font-size: 14px; line-height: 2.1; margin-bottom: 1rem; }
ul { list-style: none; padding: 0; }
ul li { padding: .3rem 0 .3rem 1.25rem; position: relative; }
ul li::before {
  content: ''; position: absolute; left: 0; top: .9em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}
a.inline-link { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }

footer {
  background: var(--primary-light); padding: 4.5rem 2rem 2.5rem;
  font-size: 12.5px; color: var(--text-muted);
  border-radius: 48px 48px 0 0; margin: 2rem 1rem 0;
}
.ft { max-width: 1000px; margin: 0 auto; text-align: center; }
.ft .pawline { font-size: 15px; letter-spacing: 1.2em; color: var(--primary); opacity: .5; margin-bottom: 1.4rem; }
.ft .links { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 1.4rem 0 2rem; }
.ft .links a:hover { color: var(--primary-dark); }

@media (max-width: 680px) { .nav-links { display: none; } .hamburger { display: flex; } }
@media (max-width: 640px) {
  .page-main { padding: 3.5rem 1.25rem; }
  nav { padding: 0 1.25rem; }
  footer { margin-left: .5rem; margin-right: .5rem; }
}

/* FAQ page */
.category { margin-bottom: 3.5rem; }
.category-header {
  font-family: var(--klee); font-size: 12px; color: var(--primary);
  letter-spacing: .14em; margin-bottom: 1.75rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; padding: 1.25rem 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  cursor: pointer; text-align: left; font-family: var(--maru);
}
.faq-question-text { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.6; }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--primary-dark); transition: transform .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  overflow: hidden; max-height: 0; transition: max-height .4s ease;
  font-size: 14px; color: var(--text-muted); line-height: 2.1; padding-bottom: 0;
}
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 1.5rem; }
.faq-answer a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.cta-box {
  background: var(--primary-dark); padding: 3rem 2rem; text-align: center; margin-top: 1rem;
  border-radius: 32px;
}
.cta-box h2 { font-size: clamp(18px, 3vw, 22px); font-weight: 700; color: rgba(255,255,255,.92); margin-bottom: .75rem; border: none; padding: 0; }
.cta-box p { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 2rem; }
.cta-btn {
  display: inline-block; background: #fff; color: var(--primary-dark);
  font-size: 14px; font-weight: 700; letter-spacing: .06em; padding: 14px 40px;
  border-radius: 32px; box-shadow: 0 5px 0 rgba(0,0,0,.15);
}

/* Tokushoho table */
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: .875rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 14px; vertical-align: top; line-height: 2.1;
}
th { width: 32%; background: var(--white); font-weight: 500; color: var(--text-muted); font-size: 13px; border-right: 1px solid var(--border); }
td a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
tr:first-child th, tr:first-child td { border-top: 1px solid var(--border); }
.note { font-size: 13px; color: var(--text-muted); margin-top: 1.5rem; }

/* Emergency privacy */
.scope-list { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.scope-list li { font-size: 14px; line-height: 2.1; display: flex; gap: .6rem; }
.scope-list .ok { color: var(--primary-dark); font-weight: 700; }
.scope-list .ng { color: var(--text-muted); font-weight: 700; }
.url-box { background: var(--white); border: 1px solid var(--border); padding: .875rem 1.25rem; font-size: 13px; color: var(--text-muted); margin: .75rem 0 1.25rem; word-break: break-all; border-radius: 12px; }
.back-btn { display: inline-flex; margin-top: 2.5rem; padding: 12px 24px; background: var(--white); border: 2px solid var(--border); border-radius: 32px; font-size: 13px; }
