@charset "utf-8";

/* ============================================
  style.css — Lunest
  1.  共通 & リセット
  2.  メイン
  3.  アニメーション
  4.  ヘッダー
  5.  FV
  6.  区切り
  7.  About
  8.  For Tonight
  9.  フッター
  10. Sound ページ
  11. Now Playing
  12. Guide ページ
  13. Analysis ページ
  14. Diary ページ
  15. レスポンシブ
============================================ */


/* 1. 共通 & リセット
============================================ */
:root {
  --bg: #07111f;
  --bg-card: #122033;
  --gold: #c8a96b;
  --purple: #8b82c8;
  --text: #f5f5f2;
  --muted: rgba(245, 245, 242, 0.55);
  --font-en: 'Zen Old Mincho', serif;
  --font-ja: 'Zen Maru Gothic', sans-serif;
  --ease: 0.3s ease;
  --max-w: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

#starCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}



/* 2. メイン
============================================ */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-space {
  padding: 0;
}

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

.section-title {
  font-family: var(--font-en);
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 30px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
}


/* 3. アニメーション
============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  animation-delay: 0.15s;
  transition-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.3s;
  transition-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.45s;
  transition-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.6s;
  transition-delay: 0.4s;
}

.breathe {
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
    filter: blur(60px);
  }

  50% {
    transform: scale(1.12);
    opacity: 0.8;
    filter: blur(50px);
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }

  49% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  50% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

@keyframes waveSweep {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes iconGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(139, 130, 200, 0.6)) drop-shadow(0 0 16px rgba(139, 130, 200, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(139, 130, 200, 0.9)) drop-shadow(0 0 24px rgba(139, 130, 200, 0.5));
  }
}

@keyframes rippleAnim {
  to {
    transform: scale(5);
    opacity: 0;
  }
}


/* 4. ヘッダー
============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 22px 10px;
  transition: background var(--ease), padding var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 17, 31, 0.85);
  padding: 14px 10px;
  border-bottom: 1px solid rgba(139, 130, 200, 0.12);
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-en);
  font-size: 0.82rem;
  color: var(--muted);
  position: relative;
  transition: color var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.is-current::after {
  width: 100%;
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  z-index: 200;
}

.hamburger-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}


/* 5. FV
============================================ */
.fv {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fv-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.fv-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 176, 106, 0.18) 0%, rgba(212, 176, 106, 0.06) 45%, transparent 70%);
  z-index: 1;
}

.fv-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.fv-content {
  position: relative;
  z-index: 3;
  text-align: left;
}

.fv-title {
  font-family: var(--font-en);
  font-size: 70px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(212, 176, 106, 0.5), 0 0 80px rgba(212, 176, 106, 0.2);
  margin-bottom: 18px;
}

.fv-catch {
  font-family: var(--font-en);
  font-size: clamp(1rem, 3vw, 1.35rem);
  color: var(--text);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.fv-desc {
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  color: var(--muted);
  letter-spacing: 0.1em;
}

.fv-scroll {
  position: absolute;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.scroll-text {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--text);
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}


/* 6. 区切り
============================================ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.home-divider {
  padding: 60px 0;
}

.divider.page-top {
  padding-top: 110px;
}

.divider-img {
  max-width: 400px;
  height: auto;
  object-fit: contain;
}


/* 7. About
============================================ */
.about-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-img {
  border-radius: 14px;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.about-lead {
  font-family: var(--font-en);
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  color: var(--text);
  line-height: 2;
  margin-bottom: 20px;
}

.about-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 2.1;
}


/* 8. For Tonight
============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 130, 200, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.card-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 130, 200, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 130, 200, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  animation: iconGlow 2.5s ease-in-out infinite;
}

.card-title {
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text);
}

.card-body {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.9;
}

.card-num {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--purple);
}

/* For Tonight リード文 */
.features-lead {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-top: -16px;
  margin-bottom: 8px;
}

.card-more {
  position: relative;
  display: inline-block;
  margin-top: 14px;
  padding: 7px 20px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--purple);
  border: 1px solid rgba(139, 130, 200, 0.4);
  border-radius: 100px;
  overflow: hidden;
  transition: color var(--ease), background var(--ease);
}

.card-more:hover {
  color: var(--text);
  background: rgba(139, 130, 200, 0.18);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(139, 130, 200, 0.35);
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  animation: rippleAnim 0.65s ease-out forwards;
  pointer-events: none;
}

/* fc カード：上下レイアウト */
.feature-card {
  padding: 0 !important;
  overflow: hidden;
  gap: 0;
}

.fc-img-area {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.fc-img-area .card-icon {
  position: relative;
  z-index: 1;
}

.fc-sound .fc-img-area {
  background-image: url('../images/feature-sound.webp');
}

.fc-guide .fc-img-area {
  background-image: url('../images/feature-guide.webp');
}

.fc-analysis .fc-img-area {
  background-image: url('../images/feature-analysis.webp');
}

.fc-diary .fc-img-area {
  background-image: url('../images/feature-diary.webp');
}

.fc-sound,
.fc-guide,
.fc-analysis,
.fc-diary {
  background-image: none;
}

.fc-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 9. フッター
============================================ */
.site-footer {
  position: relative;
  padding: 80px 0 48px;
  overflow: hidden;
  margin-top: 150px;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: url('../images/footer-bg.webp') center / cover no-repeat;
}

.footer-overlay {
  position: absolute;
  inset: 0;
}

.site-footer .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

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

.footer-nav a {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--muted);
  transition: color var(--ease);
}

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

.footer-read {
  color: var(--muted);
  font-size: 12px;
}

/* 10. Sound ページ
============================================ */
.page-hero {
  padding: 50px 0;
  text-align: center;
}

.page-title {
  font-family: var(--font-en);
  font-size: 2.5rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-shadow: 0 0 30px rgba(212, 176, 106, 0.4), 0 0 70px rgba(212, 176, 106, 0.15);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--muted);
  letter-spacing: 0.25em;
  margin-bottom: 50px;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.sound-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1.1;
  border: 1px solid rgba(139, 130, 200, 0.15);
  transition: transform var(--ease), border-color var(--ease);
}

.sound-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 130, 200, 0.4);
}

.sound-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.rain-bg {
  background-image: linear-gradient(rgba(13, 31, 53, 0.4), rgba(13, 31, 53, 0.4)), url('../images/rain.webp');
  background-size: cover;
  background-position: center;
}

.ocean-bg {
  background-image: linear-gradient(rgba(13, 37, 53, 0.4), rgba(13, 37, 53, 0.4)), url('../images/ocean.webp');
  background-size: cover;
  background-position: center;
}

.forest-bg {
  background-image: linear-gradient(rgba(13, 34, 22, 0.4), rgba(13, 34, 22, 0.4)), url('../images/forest.webp');
  background-size: cover;
  background-position: center;
}

.fire-bg {
  background-image: linear-gradient(rgba(42, 18, 6, 0.4), rgba(42, 18, 6, 0.4)), url('../images/fireplace.webp');
  background-size: cover;
  background-position: center;
}

.sound-info {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.sound-name {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.sound-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* 再生ボタン（CSS のみ・画像なし） */
.sound-btn {
  margin-top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 242, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), border-color var(--ease);
}

/* ▶ を CSS で描画 */
.sound-btn::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent rgba(245, 245, 242, 0.8);
  margin-left: 3px;
  transition: all var(--ease);
}

/* 再生中：⏸ を CSS で描画 */
.sound-card.is-playing .sound-btn::before {
  content: '' !important;
  width: 3px !important;
  height: 14px !important;
  border: none !important;
  background: var(--gold) !important;
  box-shadow: 6px 0 0 var(--gold) !important;
  margin-left: 0 !important;
}

.sound-btn:hover {
  background: rgba(245, 245, 242, 0.1);
}

.sound-card.is-playing {
  border-color: rgba(200, 169, 107, 0.5);
  box-shadow: 0 0 24px rgba(200, 169, 107, 0.15);
}

.sound-card.is-playing .sound-btn {
  background: rgba(200, 169, 107, 0.15);
  border-color: rgba(200, 169, 107, 0.6);
}


/* 11. Now Playing
============================================ */
.now-playing {
  position: fixed;
  bottom: -90px;
  left: 0;
  width: 100%;
  z-index: 150;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(139, 130, 200, 0.2);
  padding: 16px 0;
  transition: bottom 0.4s ease;
}

.now-playing.is-active {
  bottom: 0;
}

.now-playing .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.np-track {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  min-width: 90px;
  white-space: nowrap;
}

.np-playbtn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 107, 0.5);
  color: var(--gold);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}

.np-playbtn::before {
  content: '▶';
}

.np-playbtn.is-playing::before {
  content: '⏸';
}

.np-playbtn:hover {
  background: rgba(200, 169, 107, 0.15);
}

.np-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.np-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.np-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--purple), var(--gold));
  transition: width 0.1s linear;
}

.np-time {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.np-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.np-vol span {
  font-size: 0.85rem;
}

.np-vol input[type="range"] {
  -webkit-appearance: none;
  width: 72px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

.np-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

.np-vol input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}


/* 12. Guide ページ
============================================ */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 130, 200, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--ease);
}

.guide-card:hover {
  transform: translateY(-4px);
}

/* カード上部：背景画像 + アイコン重ね */
.guide-card-img {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

/* アイコン画像（オーバーレイの上に表示） */
.guide-card-icon {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* 背景画像（各カード） */
.breathing-img {
  background-image: url('../images/breathing-bg.webp');
}

.stretch-img {
  background-image: url('../images/stretch-bg.webp');
}

.meditation-img {
  background-image: url('../images/meditation-bg.webp');
}

.guide-card-body {
  padding: 20px;
}

.guide-card-title {
  font-family: var(--font-en);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.guide-card-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.guide-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.guide-start {
  display: inline-block;
  padding: 8px 20px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--purple);
  border: 1px solid rgba(139, 130, 200, 0.4);
  border-radius: 100px;
  transition: all var(--ease);
}

.guide-start:hover {
  background: rgba(139, 130, 200, 0.15);
  color: var(--text);
}

/* 呼吸ガイド */
.breathing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  margin-top: 60px;
  margin-bottom: 48px;
}

.breath-wrap {
  display: flex;
  justify-content: center;
}

.breath-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  box-shadow: 0 0 30px rgba(139, 130, 200, 0.4), inset 0 0 20px rgba(139, 130, 200, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: breath 4s ease-in-out infinite alternate;
}

@keyframes breath {
  from {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(139, 130, 200, 0.3);
  }

  to {
    transform: scale(1.18);
    box-shadow: 0 0 50px rgba(139, 130, 200, 0.7);
  }
}

.breath-label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.breath-count {
  font-family: var(--font-en);
  font-size: 1.4rem;
  color: var(--purple);
}

.breath-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 360px;
}

.breath-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--purple);
  color: var(--purple);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-steps strong {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.breath-steps p {
  font-size: 0.82rem;
  color: var(--muted);
}

.guide-btn {
  display: block;
  margin: 0 auto;
  padding: 14px 48px;
  font-family: var(--font-en);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  color: var(--text);
  background: rgba(139, 130, 200, 0.2);
  border: 1px solid rgba(139, 130, 200, 0.5);
  border-radius: 100px;
  transition: background var(--ease);
}

.guide-btn:hover {
  background: rgba(139, 130, 200, 0.35);
}


/* 13. Analysis ページ
============================================ */
.score-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 60px;
  margin-bottom: 48px;
}

.score-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--purple);
  box-shadow: 0 0 30px rgba(139, 130, 200, 0.4), inset 0 0 30px rgba(139, 130, 200, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.score-num {
  font-family: var(--font-en);
  font-size: 3.5rem;
  color: var(--text);
  line-height: 1;
}

.score-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.score-star {
  color: var(--gold);
}

.score-comment {
  background: var(--bg-card);
  border: 1px solid rgba(139, 130, 200, 0.2);
  border-radius: 14px;
  padding: 24px;
  max-width: 360px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 2;
}

.score-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.data-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 130, 200, 0.15);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.data-icon {
  font-size: 1.5rem;
}

.data-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.data-value {
  font-family: var(--font-en);
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
}

.data-value span {
  font-size: 1.2rem;
}

.data-diff {
  font-size: 0.75rem;
}

.data-diff.up {
  color: var(--purple);
}

.data-diff.down {
  color: rgba(200, 169, 107, 0.8);
}

.chart-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(139, 130, 200, 0.15);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  margin-bottom: 10px;
}

.bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
}

.bar.deep {
  background: rgba(139, 130, 200, 0.75);
}

.bar.light {
  background: rgba(139, 130, 200, 0.35);
}

.bar.wake {
  background: rgba(200, 169, 107, 0.45);
}

.chart-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: var(--font-en);
}

.chart-legend {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  list-style: none;
}

.chart-legend li {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chart-legend li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.chart-legend li.wake::before {
  background: rgba(200, 169, 107, 0.6);
}

.chart-legend li.light::before {
  background: rgba(139, 130, 200, 0.4);
}

.chart-legend li.deep::before {
  background: rgba(139, 130, 200, 0.8);
}

.sleep-comment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 130, 200, 0.15);
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.9;
}

.sleep-comment span {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 2px;
}

/* グラフバー アニメーション */
.bar {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s ease;
}

.chart-wrap.is-visible .bar {
  transform: scaleY(1);
}

.chart-wrap.is-visible .bar:nth-child(2) {
  transition-delay: 0.05s;
}

.chart-wrap.is-visible .bar:nth-child(3) {
  transition-delay: 0.10s;
}

.chart-wrap.is-visible .bar:nth-child(4) {
  transition-delay: 0.15s;
}

.chart-wrap.is-visible .bar:nth-child(5) {
  transition-delay: 0.20s;
}

.chart-wrap.is-visible .bar:nth-child(6) {
  transition-delay: 0.25s;
}

.chart-wrap.is-visible .bar:nth-child(7) {
  transition-delay: 0.30s;
}

.chart-wrap.is-visible .bar:nth-child(8) {
  transition-delay: 0.35s;
}

.chart-wrap.is-visible .bar:nth-child(9) {
  transition-delay: 0.40s;
}

.chart-wrap.is-visible .bar:nth-child(10) {
  transition-delay: 0.45s;
}

.chart-wrap.is-visible .bar:nth-child(11) {
  transition-delay: 0.50s;
}

.chart-wrap.is-visible .bar:nth-child(12) {
  transition-delay: 0.55s;
}

.chart-wrap.is-visible .bar:nth-child(13) {
  transition-delay: 0.60s;
}

.chart-wrap.is-visible .bar:nth-child(14) {
  transition-delay: 0.65s;
}

.chart-wrap.is-visible .bar:nth-child(15) {
  transition-delay: 0.70s;
}

.chart-wrap.is-visible .bar:nth-child(16) {
  transition-delay: 0.75s;
}

/* 14. Diary ページ
============================================ */
.entry-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(139, 130, 200, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.entry-text {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 0.9rem;
  line-height: 1.9;
  resize: none;
  height: 140px;
  outline: none;
}

.entry-text::placeholder {
  color: var(--muted);
}

.entry-count {
  text-align: right;
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(139, 130, 200, 0.4);
  font-size: 0.8rem;
  color: var(--muted);
  background: none;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: all var(--ease);
}

.tag.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--text);
}

.save-btn {
  display: block;
  margin-left: auto;
  padding: 12px 32px;
  background: var(--purple);
  color: var(--text);
  border-radius: 100px;
  font-family: var(--font-ja);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  transition: opacity var(--ease);
}

.save-btn:hover {
  opacity: 0.8;
}

.dream-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dream-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 130, 200, 0.15);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform var(--ease);
  cursor: pointer;
}

.dream-item:hover {
  transform: translateY(-4px);
}

.dream-date {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.dream-body {
  flex: 1;
  min-width: 0;
}

.dream-title {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 4px;
}

.dream-desc {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dream-tag {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(139, 130, 200, 0.15);
  border: 1px solid rgba(139, 130, 200, 0.3);
  font-size: 0.72rem;
  color: var(--purple);
  white-space: nowrap;
}

.dream-arrow {
  color: var(--muted);
  font-size: 1rem;
  flex-shrink: 0;
}


/* 15. レスポンシブ
============================================ */
@media (max-width: 800px) {
  .fv-title {
    font-size: 50px;
  }

  .fv-bg {
    background-image: url('../images/fv-bg-mobile.webp');
  }

  .hamburger {
    display: flex;
  }

  .hamburger.is-open .hamburger-img {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(200, 169, 107, 0.8)) drop-shadow(0 0 16px rgba(200, 169, 107, 0.4));
  }

  #headerNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 68%;
    height: 100vh;
    background: rgba(7, 17, 31, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    transition: right 0.4s ease;
  }

  #headerNav.is-open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 44px;
    text-align: center;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .np-vol {
    display: none;
  }

  .fc-img-area {
    aspect-ratio: 16 / 7;
  }

  .fc-body {
    padding: 14px 18px;
  }

  .card-body {
    font-size: 0.8rem;
  }

  .feature-grid {
    gap: 50px;
  }
}

@media (min-width: 801px) {
  * {
    cursor: url('../images/cursor.webp'), auto !important;
  }

  .hamburger {
    display: none;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .section-space {
    padding: 80px 0;
  }

  .fv-bg {
    background-image: url('../images/fv-bg.webp');
  }

  .fv {
    justify-content: flex-start;
    padding-left: 80px;
  }

  .fv-content {
    text-align: left;
    max-width: 520px;
  }

  .fv-scroll {
    left: 80%;
  }

  .about-inner {
    flex-direction: row;
    align-items: center;
    gap: 72px;
  }

  .about-img {
    flex: 1;
    height: 380px;
  }

  .about-text {
    flex: 1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .sound-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .sound-card {
    aspect-ratio: 1 / 1.2;
  }

  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .breathing-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 80px;
  }

  .guide-btn {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 900px;
  }

  .score-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
  }

  .score-comment {
    text-align: left;
  }

  .data-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-nav a {
    font-size: 1.1rem;
  }
}

@media (min-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fv-content {
    padding-left: 80px;
  }
}