:root {
  --primary-color: #00a4ef;
  --secondary-color: #ff9900;
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f5f7fa;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* SP: ハンバーガー ⇄ 閉じる(X) アイコン morph アニメーション */
.menu-icon .menu-icon-line {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}
.menu-icon.is-open .menu-icon-line:nth-of-type(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-icon.is-open .menu-icon-line:nth-of-type(2) {
  opacity: 0;
}
.menu-icon.is-open .menu-icon-line:nth-of-type(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-color);
  line-height: 1.8;
}

/* 共通レイアウト (footer.html, terms/privacy で使用) */
.site-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* スマホ下部固定 CTA ボタンの基本スタイル
 * (index.html のスティッキー CTA `class="btn btn-primary btn-sticky"`) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn.btn-primary {
  background: linear-gradient(180deg, #fd8401 0%, #f73f01 100%);
  color: white;
  padding: 1rem 3rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(255, 153, 0, 0.3);
  font-size: 1.25rem;
}

.btn.btn-primary:hover {
  background: linear-gradient(180deg, #e87601 0%, #d83801 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 153, 0, 0.4);
}

/* AOS (Animate On Scroll) 補助: 非表示時はクリック透過 */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* スマホ用画面下部固定 CTA バー */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
  }
}

.mobile-sticky-cta .btn-sticky {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.1rem;
}

/* ============================================
 * 共通フッター (components/footer.html)
 * ============================================ */
footer {
  background-color: #1a202c;
  color: white;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  footer {
    padding-bottom: 6rem;
    /* モバイル下部固定CTAの分空ける */
  }
}

footer .footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

footer .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

footer .footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

footer .footer-links a:hover {
  color: white;
}

footer .copyright {
  text-align: center;
  color: #718096;
  font-size: 0.875rem;
  border-top: 1px solid #2d3748;
  padding-top: 2rem;
}

/* ============================================
 * 利用規約・プライバシーポリシーページ
 * (terms-of-service.html, privacy-policy.html)
 * ============================================ */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.legal-block {
  margin-bottom: 5rem;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .legal-block {
    padding: 1.5rem;
    margin-bottom: 3rem;
  }
}

.legal-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-title span {
  color: var(--primary-color);
}

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

.legal-table th,
.legal-table td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.legal-table th {
  width: 30%;
  font-weight: 700;
  color: #4a5568;
  background-color: #f8fafc;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    border-bottom: none;
    padding-bottom: 0.5rem;
    background-color: transparent;
  }

  .legal-table td {
    padding-top: 0;
  }
}

.legal-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.legal-text p {
  margin-bottom: 1rem;
  color: #4a5568;
  line-height: 1.8;
}

.legal-text ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-text ul li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

/* ============================================
 * Material Symbols Rounded アイコンフォント
 * ligature でアイコン名を実際のアイコンに置き換えるための基本クラス
 * (Google Fonts CSS2 が常にクラス定義を含めるとは限らないため明示定義)
 * ============================================ */
.material-symbols-rounded {
  font-family: "Material Symbols Rounded", "Material Icons Rounded";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
