/* ============================================
   KORUNEO Studio — 特定商取引法ページ
   assets/css/law.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;1,300&family=Noto+Serif+JP:wght@300;400&family=Raleway:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --cream:      #faf8f3;
  --cream-warm: #f5f0e8;
  --gold:       #c9a84c;
  --gold-light: #e8d095;
  --gold-pale:  #f2e8c8;
  --ink:        #2c2620;
  --ink-soft:   #5a5048;
  --border:     #e2dbd0;
  --nav-bg:     rgba(250, 248, 243, 0.97);
  --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

/* ══════════════════════════════════
   NAVIGATION（index.htmlと共通）
══════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--nav-bg);
  box-shadow: 0 1px 20px rgba(44, 38, 32, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 201;
}

.nav-logo img { width: 36px; height: 36px; }

.nav-logo span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--gold); }

/* ── ハンバーガー（SP） ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── ドロワー ── */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(250, 248, 243, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-drawer.open { display: flex; opacity: 1; }

.nav-drawer ul { list-style: none; text-align: center; }

.nav-drawer li { border-bottom: 1px solid var(--gold-pale); }
.nav-drawer li:first-child { border-top: 1px solid var(--gold-pale); }

.nav-drawer a {
  display: block;
  padding: 1.2rem 3rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  transition: color 0.3s;
}

.nav-drawer a:hover { color: var(--gold); }

.drawer-divider {
  width: 40px;
  height: 1px;
  background: var(--gold-light);
  margin: 1.2rem auto;
}

.drawer-legal a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

/* ══════════════════════════════════
   PAGE HEADER
══════════════════════════════════ */
.page-header {
  padding: 8rem 2rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.page-header-line {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: 2rem;
}

/* ══════════════════════════════════
   TABLE（デスクトップ：2カラム）
══════════════════════════════════ */
.law-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.law-table {
  width: 100%;
  border-collapse: collapse;
}

.law-table tr {
  border-bottom: 1px solid var(--border);
}

.law-table th,
.law-table td {
  padding: 1.4rem 1rem;
  font-size: 0.88rem;
  line-height: 1.9;
  letter-spacing: 0.05em;
  vertical-align: top;
  text-align: left;
}

.law-table th {
  width: 220px;
  font-weight: 300;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-right: 2rem;
}

.law-table td {
  color: var(--ink);
}

.law-table td a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.law-table td a:hover { color: var(--ink); }

/* 箇条書き */
.law-table td ul {
  padding-left: 1.1em;
  list-style: disc;
}

.law-table td ul li {
  margin-bottom: 0.3em;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

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

/* ══════════════════════════════════
   RESPONSIVE — スマートフォン
══════════════════════════════════ */
@media (max-width: 767px) {
  /* ナビ */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* ページヘッダー */
  .page-header {
    padding: 6rem 1.2rem 2rem;
  }

  .law-wrap {
    padding: 0 1.2rem 4rem;
  }

  /* テーブル → カード型レイアウト */
  .law-table,
  .law-table tbody,
  .law-table tr,
  .law-table th,
  .law-table td {
    display: block;
    width: 100%;
  }

  .law-table tr {
    border-bottom: none;
    margin-bottom: 0;
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 6px rgba(44, 38, 32, 0.06);
  }

  .law-table th {
    width: 100%;
    white-space: normal;
    background: var(--cream-warm);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    color: var(--ink-soft);
    letter-spacing: 0.1em;
  }

  .law-table td {
    padding: 1rem 1rem 1.1rem;
    font-size: 0.88rem;
  }

  /* フッターリンク縦並び */
  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}
