@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Playfair+Display:ital@0;1&display=swap');

:root {
  --bg: #F2F2F2;
  --bg-white: #FFFFFF;
  --accent: #F05A5A;
  --accent-dark: #D94848;
  --text: #2D2D2D;
  --text-sub: #777777;
  --border: #E0E0E0;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--text);
}

/* ===== HAMBURGER NAV ===== */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--bg-white);
  z-index: 201;
  transition: right 0.3s ease;
  padding: 24px 0;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
}

.nav-drawer.open { right: 0; }
.nav-overlay.open { display: block; }

.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-sub);
  position: absolute;
  top: 16px;
  right: 20px;
}

.nav-drawer ul {
  list-style: none;
  margin-top: 40px;
}

.nav-drawer ul li a {
  display: block;
  padding: 14px 28px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.nav-drawer ul li a:hover { background: var(--bg); }
.nav-drawer ul li a.active { color: var(--accent); font-weight: 500; }

/* ===== MAIN ===== */
main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  width: 100%;
}

/* ===== PAGE TITLE ===== */
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ===== LEGAL TEXT ===== */
.legal-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.legal-section h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.legal-section h2:first-child { margin-top: 0; }

.legal-section p {
  color: var(--text);
  margin-bottom: 10px;
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-section ul li { margin-bottom: 4px; }

.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.legal-section table th,
.legal-section table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}

.legal-section table th {
  background: var(--bg);
  font-weight: 500;
  white-space: nowrap;
  width: 38%;
}

.updated {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 12px;
  color: var(--text-sub);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .legal-section { padding: 20px 16px; }
  .legal-section table th { width: 42%; }
}
