/**
 * 草笛の音 — Design Tokens
 * Tailwind CSS + daisyUI 前提。
 * ここではTailwindで表現できないCSS変数と最小限のカスタムスタイルのみ定義。
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600&family=Outfit:wght@300;400;600&display=swap');

/* ===== デザイントークン ===== */
:root {
  /* ブランドカラー */
  --color-primary-math:  #1A3050;
  --color-primary-music: #2D4030;
  --color-accent:        #9E7E30;

  /* 背景 */
  --color-bg-base: #FFFFFF;
  --color-bg-soft: #FAF9F6;

  /* テキスト（WCAG AA準拠） */
  --text-main:      #1D1D1F;
  --text-secondary: #48484A;
  --text-tertiary:  #6E6E73;

  /* シャドウ */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);

  /* グラスモルフィズム */
  --glass-bg:     rgba(255,255,255,0.88);
  --glass-border: rgba(0,0,0,0.06);
}

/* ===== ベーススタイル ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  font-family: 'Outfit', 'Noto Serif JP', -apple-system, 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: var(--color-bg-soft);
  color: var(--text-main);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
}

/* スムーズスクロール。sticky ナビ(約72px)分オフセットし、見出しが隠れないようにする */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ===== タイポグラフィ ===== */
.font-serif,
h1, h2, h3 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

p:not([class]) {
  --tw-text-opacity: 1;
  color: rgb(72 72 74 / var(--tw-text-opacity, 1));
  line-height: 1.9;
}

/* ===== グラスナビゲーション ===== */
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

/* ===== ナビゲーションリンク ===== */
.nav-link {
  color: var(--text-main);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0 1rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link.active {
  color: var(--color-accent);
  font-weight: 500;
}

/* ===== AOSフォールバック ===== */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== ニュースリスト ===== */
.news-item {
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.news-item:hover {
  background-color: var(--color-bg-soft);
}

.news-item a {
  display: block;
  width: 100%;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

/* ===== 価格テーブル ===== */
.price-table td {
  padding: 0.75rem 0;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ===== プロフィール写真 ===== */
.profile-img {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ===== フッター ===== */
footer {
  padding: 2.5rem 0;
}
