/* =====================================================================
   瞑想会ホームページ ｜ スタイルシート（見た目の設定）
   ---------------------------------------------------------------------
   色を変えたいときは、下の :root の中の色コードを書き換えてください。
   文字を大きくしたいときは --font-size-base の数値を大きくしてください。
   ===================================================================== */

/* --- 配色・基本設定 -------------------------------------------------- */
:root {
  --navy-deep:  #0a0f24;   /* いちばん深い夜空の色 */
  --navy:       #121a3a;   /* ネイビー */
  --blue:       #2c3a78;   /* ブルー */
  --purple:     #4b3f83;   /* パープル */
  --lavender:   #c9c4ec;   /* ラベンダー */
  --lavender-soft: #a9a4d6;
  --gold:       #ecdca6;   /* 淡いゴールド */
  --gold-soft:  #f3e9c9;
  --white:      #f6f7ff;   /* 白 */

  --text:       #eceeffb;  /* 本文の文字色 */
  --text-main:  #e9ecff;
  --text-muted: #bfc4e6;   /* 補足の文字色 */

  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-sans:  "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  /* 文字サイズ（50代以上の方にも読みやすい大きめ設定） */
  --font-size-base: 1.125rem;   /* = 18px */

  --maxw: 1080px;
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.95;
  color: var(--text-main);
  letter-spacing: 0.02em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 800px at 15% 8%,  rgba(75, 63, 131, 0.55), transparent 60%),
    radial-gradient(1100px 900px at 85% 20%, rgba(44, 58, 120, 0.55), transparent 60%),
    radial-gradient(1400px 1000px at 50% 120%, rgba(60, 50, 110, 0.45), transparent 65%),
    linear-gradient(180deg, #0a0f24 0%, #101736 40%, #0c1330 70%, #0a0f24 100%);
  background-attachment: fixed;
  background-color: var(--navy-deep);
}

html { overflow-x: clip; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); }

/* --- 背景（星空・光） ------------------------------------------------
   固定レイヤーは z-index 0、コンテンツは z-index 1 で重ねています。 */

/* ふんわり動く光の霧 */
.bg-glow {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 46s ease-in-out infinite alternate;
}
.bg-glow span:nth-child(1) { width: 46vw; height: 46vw; left: -8%;  top: 4%;  background: rgba(120, 108, 200, 0.5); }
.bg-glow span:nth-child(2) { width: 40vw; height: 40vw; right: -6%; top: 28%; background: rgba(70, 92, 170, 0.45); animation-duration: 58s; }
.bg-glow span:nth-child(3) { width: 38vw; height: 38vw; left: 20%;  bottom: -6%; background: rgba(150, 140, 210, 0.32); animation-duration: 66s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3%, -4%, 0) scale(1.12); }
}

/* 星空キャンバス */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* コンテンツを背景レイヤーより前面に */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* --- 共通レイアウト ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: clamp(72px, 12vw, 130px) 0;
  position: relative;
}

.section-label {
  display: block;
  font-size: 0.86rem;
  letter-spacing: 0.35em;
  color: var(--lavender);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}

h2.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  line-height: 1.6;
  color: var(--gold-soft);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.section-lead {
  max-width: 40em;
  color: var(--text-muted);
  font-size: 1.06rem;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* --- セクション内の画像 --------------------------------------------- */
.section-figure {
  margin: 0 auto clamp(40px, 6vw, 64px);
  max-width: 980px;
}
.section-figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.4), 0 0 60px rgba(120, 108, 200, 0.18);
}
.section-figure figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* --- ボタン ------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 20px 48px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  isolation: isolate;
  transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #f3e9c9 0%, #ecdca6 55%, #d9cdf0 100%);
  color: #1a1f45;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 14px 40px rgba(150, 140, 220, 0.35);
}
/* 左から右へ「きらり」と光るハイライト */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: btnShine 4.6s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 62%   { left: -75%; }
  80%, 100% { left: 120%; }
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 18px 55px rgba(180, 170, 240, 0.5);
  outline: none;
}
.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  animation-duration: 1.1s;
}
.btn-lg {
  padding: 24px 60px;
  font-size: 1.24rem;
}

/* --- ヘッダー --------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  transition: background 0.6s ease, backdrop-filter 0.6s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background: rgba(10, 15, 36, 0.72);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header .logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.site-header .logo::before { content: "☾"; color: var(--gold); font-size: 1.2em; }
.site-header .btn { padding: 12px 26px; font-size: 0.98rem; }
@media (max-width: 560px) {
  .site-header .logo span { display: none; }
  .site-header .btn { padding: 11px 20px; font-size: 0.9rem; }
}

/* スマートフォンではファーストビューを少しコンパクトに */
@media (max-width: 560px) {
  .hero { padding: 116px 18px 84px; }
  .hero-visual { margin-bottom: 28px; border-radius: 18px; }
  .hero-catch { margin-bottom: 22px; }
  .hero .welcome { margin-bottom: 32px; }
}

/* --- ファーストビュー ------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 110px;
  position: relative;
}
/* ファーストビューのメイン画像（ヘッダー画像） */
.hero-visual {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 26px;
  margin-bottom: 40px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 70px rgba(150, 140, 220, 0.4),
    0 24px 70px rgba(0, 0, 0, 0.45);
  animation:
    riseIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both,
    heroGlow 9s ease-in-out 1.3s infinite alternate;
}
@keyframes heroGlow {
  from { box-shadow: 0 0 0 1px rgba(255,255,255,0.1),  0 0 55px rgba(150,140,220,0.30), 0 24px 70px rgba(0,0,0,0.45); }
  to   { box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 0 90px rgba(150,140,220,0.5),  0 24px 70px rgba(0,0,0,0.45); }
}
.hero-catch {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 5.4vw, 2.6rem);
  line-height: 1.9;
  color: var(--white);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
  margin-bottom: 30px;
  word-break: keep-all;
}

/* スクリーンリーダー用（画面には見えないが検索エンジン・音声読み上げに伝わる） */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hero .welcome {
  display: inline-block;
  color: var(--gold-soft);
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  padding: 10px 24px;
  border: 1px solid rgba(236, 220, 166, 0.4);
  border-radius: 999px;
  margin-bottom: 46px;
}
.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--lavender), transparent);
  animation: hint 2.6s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* --- カード類 --------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 34px 30px;
  backdrop-filter: blur(6px);
}
.card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--gold-soft);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.card p { color: var(--text-muted); font-size: 1.02rem; }

/* チェックリスト（星印） */
.star-list { list-style: none; display: grid; gap: 18px; max-width: 40em; }
.star-list li {
  position: relative;
  padding-left: 2em;
  font-size: 1.08rem;
  color: var(--text-main);
}
.star-list li::before {
  content: "✧";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.1em;
}
.star-list.two-col {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  column-gap: 40px;
}

/* --- 引用（瞑想について・なぜみんなで） ------------------------- */
.prose p { margin-bottom: 1.5em; color: var(--text-main); }
.prose p:last-child { margin-bottom: 0; }
.prose .accent {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  color: var(--gold-soft);
  line-height: 2;
}
.callout {
  margin-top: 40px;
  padding: 30px 34px;
  border-left: 2px solid var(--gold);
  background: rgba(236, 220, 166, 0.06);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-serif);
  font-size: 1.14rem;
  color: var(--gold-soft);
  line-height: 2;
}

/* --- 瞑想会について（情報テーブル） --------------------------- */
.info-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 46px);
  backdrop-filter: blur(6px);
}
.info-list { display: grid; gap: 4px; }
.info-list > div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.info-list > div:last-child { border-bottom: none; }
.info-list dt {
  color: var(--lavender);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.info-list dd { color: var(--text-main); font-size: 1.06rem; }
.info-note {
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 1rem;
}
@media (max-width: 560px) {
  .info-list > div { grid-template-columns: 1fr; gap: 4px; }
  .info-list dt { font-size: 0.92rem; }
}

/* --- 当日の流れ ----------------------------------------------- */
.flow { display: grid; gap: 0; max-width: 620px; margin: 0 auto; }
.flow-step {
  text-align: center;
  padding: 22px 26px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  font-size: 1.08rem;
  color: var(--text-main);
}
.flow-arrow {
  text-align: center;
  color: var(--gold);
  font-size: 1.1rem;
  padding: 12px 0;
  opacity: 0.8;
}

/* --- 主催者からのメッセージ ---------------------------------- */
.message-block {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 2.3;
  color: var(--text-main);
  letter-spacing: 0.03em;
}
.message-block p { margin-bottom: 1.6em; }
.message-sign {
  display: block;
  margin-top: 10px;
  color: var(--lavender);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* --- よくある質問 ------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 16px; }
.faq details {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 28px;
  font-size: 1.08rem;
  color: var(--white);
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  transition: background 0.3s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; color: var(--gold); font-family: var(--font-serif); flex-shrink: 0; }
.faq summary::after {
  content: "＋";
  margin-left: auto;
  color: var(--lavender);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { content: "－"; }
.faq summary:hover { background: rgba(255,255,255,0.03); }
.faq .answer {
  padding: 0 28px 26px 28px;
  color: var(--text-muted);
  font-size: 1.03rem;
  display: flex;
  gap: 0.8em;
}
.faq .answer::before { content: "A."; color: var(--lavender-soft); font-family: var(--font-serif); flex-shrink: 0; }

/* --- 最後の参加案内 ---------------------------------------- */
.final-cta {
  text-align: center;
  padding: clamp(90px, 16vw, 160px) 24px;
}
.final-cta h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  line-height: 2;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 46px;
}

/* --- フッター --------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 60px 24px 70px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 2;
}
.site-footer .logo {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  display: inline-block;
  margin-bottom: 14px;
}
.site-footer nav { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; }
.site-footer nav a { color: var(--text-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-soft); }
.site-footer small { display: block; margin-top: 20px; opacity: 0.7; }

/* --- スクロール時のふんわり表示アニメーション ------------- */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 読み込み時に「下から上へ」ふわっと現れる ------------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(42px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.site-header { animation: fadeIn 1.2s ease-out both; }

/* ファーストビューの各要素を、下から順にふわっと表示（.hero-visual は上の定義で対応） */
.hero-catch,
.hero .welcome,
.hero .btn {
  animation: riseIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-catch       { animation-delay: 0.3s; }
.hero .welcome    { animation-delay: 0.46s; }
.hero .btn        { animation-delay: 0.62s; }
.hero .scroll-hint { animation: fadeIn 1s ease-out 1.3s both; }

/* --- 動きを減らす設定の方への配慮 ----------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-glow span,
  .hero-visual,
  .hero-catch,
  .hero .welcome,
  .hero .btn,
  .hero .scroll-hint,
  .site-header,
  .btn-primary::after,
  .scroll-hint::after { animation: none !important; }
  .hero-visual,
  .hero-catch,
  .hero .welcome,
  .hero .btn { opacity: 1; transform: none; }
  .btn-primary::after { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #starfield { display: none; }
}
