
body {
  overflow-y: scroll;
}

.terms-page {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'BIZ UDPGothic', sans-serif;
  color: rgb(1, 29, 69);
  min-height: 100vh;
  background: #fff;
  padding-top: 70px; /* fixed header分 */
}

/* ヒーロー */
.terms-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 48px;
  text-align: center;
  border-bottom: 0.5px solid rgba(1, 29, 69, 0.08);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff3e0;
  color: #bf6f00;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: orange;
}

.terms-hero h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: rgb(1, 29, 69);
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 14px;
  color: rgba(1, 29, 69, 0.5);
  line-height: 1.6;
}

/* レイアウト：目次 + 本文 */
.terms-layout {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 100px;
  gap: 48px;
  align-items: flex-start;
}

/* 目次 */
.terms-toc {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.toc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(1, 29, 69, 0.35);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.terms-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-toc li {
  margin-bottom: 4px;
}

.terms-toc a {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(1, 29, 69, 0.45);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.terms-toc a:hover {
  color: rgb(1, 29, 69);
  background: rgba(1, 29, 69, 0.04);
}

.terms-toc a.active {
  color: rgb(1, 29, 69);
  font-weight: 700;
  border-left-color: orange;
  background: rgba(1, 29, 69, 0.04);
}

/* 本文 */
.terms-body {
  flex: 1;
  min-width: 0;
}

.terms-intro {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(1, 29, 69, 0.65);
  background: rgba(1, 29, 69, 0.03);
  border-left: 3px solid orange;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 48px;
}

section {
  margin-bottom: 52px;
  scroll-margin-top: 90px;
}

section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: rgb(1, 29, 69);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid rgba(1, 29, 69, 0.1);
}

.section-num {
  font-size: 11px;
  font-weight: 700;
  color: orange;
  background: #fff3e0;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

section p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(1, 29, 69, 0.7);
  margin-bottom: 14px;
}

section p:last-child {
  margin-bottom: 0;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.terms-list li {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(1, 29, 69, 0.7);
  padding: 8px 12px 8px 32px;
  position: relative;
  border-radius: 8px;
  transition: background 0.15s;
}

.terms-list li:hover {
  background: rgba(1, 29, 69, 0.03);
}

.terms-list li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: orange;
  flex-shrink: 0;
}

/* ノート */
.terms-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff3e0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(1, 29, 69, 0.7);
  line-height: 1.7;
}

.note-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* フッターノート */
.terms-footer-note {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(1, 29, 69, 0.1);
  font-size: 12px;
  color: rgba(1, 29, 69, 0.4);
  line-height: 2;
}

.terms-footer-note a {
  color: rgb(1, 29, 69);
  font-weight: 600;
  text-decoration: none;
}

.terms-footer-note a:hover {
  color: orange;
}

/* レスポンシブ */
@media (max-width: 720px) {
  .terms-layout {
    flex-direction: column;
    gap: 0;
    padding: 32px 20px 80px;
  }

  .terms-toc {
    width: 100%;
    position: static;
    background: rgba(1, 29, 69, 0.02);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 36px;
  }

  .terms-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .terms-toc li {
    margin-bottom: 0;
  }

  .terms-toc a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 4px 8px;
    font-size: 11px;
  }

  .terms-toc a.active {
    border-left-color: transparent;
    border-bottom-color: orange;
  }

  .terms-hero h1 {
    font-size: 32px;
  }

  section h2 {
    font-size: 17px;
  }
}

/* お問い合わせリンク（privacy.html用） */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 24px;
  background: rgb(1, 29, 69);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.contact-link:hover {
  background: orange;
}

.contact-arrow {
  transition: transform 0.2s;
}

.contact-link:hover .contact-arrow {
  transform: translateX(4px);
}
