/* ========================================
   たまこちゃん公式サイト - 共通スタイル
   ======================================== */

/* CSS変数：色やサイズをまとめて管理 */
:root {
  --pink-main: #F8A4C8;        /* メインピンク */
  --pink-deep: #E87BAE;        /* 濃いピンク */
  --pink-light: #FCE4EF;       /* 薄いピンク */
  --pink-bg: #FFF7FB;          /* 背景の薄ピンク */
  --cream: #FFFBF5;            /* クリーム色 */
  --text-main: #4A3744;        /* メイン文字色 */
  --text-sub: #8A7882;         /* サブ文字色 */
  --accent-mint: #A8E6CF;      /* アクセントのミント */
  --accent-yellow: #FFE5A0;    /* アクセントの黄色 */
  --shadow-soft: 0 8px 24px rgba(248, 164, 200, 0.18);
  --shadow-hover: 0 12px 32px rgba(248, 164, 200, 0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 背景の桜花びら装飾 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(248, 164, 200, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(168, 230, 207, 0.06) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(255, 229, 160, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--pink-bg) 100%);
  border-bottom: 3px solid var(--pink-light);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.92);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--pink-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: '🌸';
  font-size: 1.4rem;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.nav a:hover {
  background: var(--pink-light);
  color: var(--pink-deep);
}

.nav a.active {
  background: var(--pink-main);
  color: white;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.container-wide {
  max-width: 1100px;
}

/* ========================================
   ヒーローセクション（トップページ用）
   ======================================== */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: white;
  color: var(--pink-deep);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--pink-light);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.hero h1 .pink {
  color: var(--pink-deep);
  position: relative;
  display: inline-block;
}

.hero h1 .pink::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--pink-light);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--pink-main);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: white;
  color: var(--pink-deep);
  border: 2px solid var(--pink-main);
}

.btn-secondary:hover {
  background: var(--pink-light);
  transform: translateY(-2px);
}

/* ========================================
   統計セクション
   ======================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 64px 0;
  padding: 40px 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--pink-deep);
  display: block;
  line-height: 1;
}

.stat-label {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ========================================
   機能カード（トップページ用）
   ======================================== */
.section-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 48px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.feature-card {
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pink-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--pink-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   ドキュメントページ用（プライバシー・規約・FAQ）
   ======================================== */
.doc-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px dashed var(--pink-light);
}

.doc-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
}

.doc-header .updated {
  color: var(--text-sub);
  font-size: 0.95rem;
}

.doc-content {
  background: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.doc-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-deep);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--pink-main);
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 28px;
  margin-bottom: 12px;
}

.doc-content p {
  margin-bottom: 16px;
  color: var(--text-main);
}

.doc-content ul, .doc-content ol {
  margin: 16px 0 16px 24px;
}

.doc-content li {
  margin-bottom: 8px;
  color: var(--text-main);
}

.doc-content li strong {
  color: var(--pink-deep);
}

.doc-content a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-decoration-color: var(--pink-light);
  text-underline-offset: 3px;
}

.doc-content a:hover {
  text-decoration-color: var(--pink-deep);
}

/* ========================================
   FAQ ページ
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-hover);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
}

.faq-question:hover {
  background: var(--pink-bg);
}

.faq-question::before {
  content: 'Q.';
  color: var(--pink-deep);
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--pink-deep);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 24px 60px;
  color: var(--text-sub);
  line-height: 1.8;
}

.faq-answer-inner::before {
  content: 'A. ';
  color: var(--pink-deep);
  font-weight: 900;
  margin-left: -28px;
  margin-right: 8px;
}

.faq-category {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pink-deep);
  padding-left: 16px;
  border-left: 4px solid var(--pink-main);
}

.faq-category:first-child {
  margin-top: 0;
}

/* ========================================
   フッター
   ======================================== */
.footer {
  background: white;
  border-top: 3px solid var(--pink-light);
  padding: 48px 24px 32px;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

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

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

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

.footer-copyright {
  color: var(--text-sub);
  font-size: 0.85rem;
}

.footer-copyright .heart {
  color: var(--pink-main);
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav {
    gap: 8px;
  }
  
  .nav a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .doc-content {
    padding: 28px 20px;
  }
  
  .hero {
    padding: 48px 20px 40px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .doc-header h1 {
    font-size: 1.8rem;
  }
}
