/* =========================================================
   アルモニア管弦楽団 デモサイト  スタイル
   色や文字を変えたいときは、下の「基本設定」だけを変更します。
   ========================================================= */

/* ---------- 基本設定（色・文字） ---------- */
:root {
  --white: #ffffff;
  --ivory: #faf8f3;        /* 生成り色（背景の切り替えに使用） */
  --navy: #1b2a4a;         /* メインカラー */
  --navy-deep: #121d35;
  --gold: #b8975a;         /* アクセントカラー */
  --gold-light: #d8c39a;
  --text: #2b2f38;         /* 本文の文字色 */
  --text-soft: #6b6f78;
  --line: #e6e1d6;

  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- リセット・共通 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(860px, 100% - 48px); }
.center { text-align: center; margin-top: 56px; }

/* ---------- 仮・資料待ちの表示 ---------- */
.tbd {
  display: inline-block;
  padding: 0 .7em;
  border: 1px dashed var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: .78em;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.9;
  vertical-align: middle;
  background: rgba(184, 151, 90, .06);
}
.tbd-light { color: var(--gold-light); border-color: var(--gold-light); background: rgba(216, 195, 154, .08); }

.temp {
  display: inline-block;
  margin-left: .5em;
  padding: 0 .5em;
  border-radius: 2px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .1em;
  vertical-align: middle;
}
.temp-light { background: rgba(255, 255, 255, .18); color: var(--gold-light); }

.demo-bar {
  position: relative;
  z-index: 60;
  padding: 8px 16px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}
.demo-bar .tbd { font-size: 11px; color: var(--gold-light); border-color: var(--gold-light); }
.demo-bar .temp { margin-left: 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid transparent;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: .12em;
  line-height: 1.6;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn-gold { border-color: var(--gold); color: var(--white); background: rgba(184, 151, 90, .15); }
.btn-gold:hover { background: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--gold); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);  /* メインビジュアルの上に重ねる */
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

.logo { display: flex; flex-direction: column; line-height: 1.2; color: var(--white); transition: color .5s var(--ease); }
.logo-en { font-family: var(--font-en); font-size: 22px; letter-spacing: .32em; }
.logo-ja { font-family: var(--font-serif); font-size: 12px; letter-spacing: .3em; opacity: .85; }

.global-nav ul { display: flex; gap: 32px; align-items: center; }
.global-nav a {
  position: relative;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--white);
  transition: color .4s var(--ease);
}
.global-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.global-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.global-nav .nav-contact { padding: 8px 20px; border: 1px solid var(--gold); }
.global-nav .nav-contact:hover { background: var(--gold); color: var(--white); }

/* スクロール後のヘッダー（白背景） */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header.is-scrolled .logo,
.site-header.is-scrolled .global-nav a { color: var(--navy); }
.site-header.is-scrolled .global-nav .nav-contact:hover { color: var(--white); }

.menu-toggle { display: none; }

/* ---------- メインビジュアル ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 24px 100px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  /* 写真がないときの背景 */
  background:
    radial-gradient(ellipse at 50% 120%, rgba(184, 151, 90, .22), transparent 60%),
    radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, .07), transparent 50%),
    linear-gradient(160deg, #22355c 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease);
}
.hero-photo.is-loaded {
  opacity: 1;
  animation: heroZoom 18s var(--ease) forwards;
}
.hero-photo.is-loaded::after {   /* 写真の上に薄いネイビーを重ねて文字を読みやすく */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 29, 53, .55) 0%, rgba(18, 29, 53, .35) 45%, rgba(18, 29, 53, .75) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-staff {
  position: absolute;
  left: 0; right: 0;
  bottom: 16%;
  height: 72px;
  opacity: .2;
  pointer-events: none;
}
.hero-staff svg { width: 100%; height: 100%; }
.hero-staff path { stroke: var(--gold-light); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.hero-photo.is-loaded ~ .hero-staff { opacity: .1; }

.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-en {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .5em;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 6.4vw, 72px);
  line-height: 1.4;
  letter-spacing: .14em;
}
.hero-rule {
  display: block;
  width: 64px; height: 1px;
  margin: 32px auto;
  background: var(--gold);
}
.hero-copy {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: .16em;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, .92);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .7);
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 48px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- セクション共通 ---------- */
.section { padding: clamp(88px, 12vw, 140px) 0; }

.section-head { text-align: center; margin-bottom: clamp(48px, 7vw, 72px); }
.section-head-left { text-align: left; margin-bottom: 32px; }
.section-en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: 4px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: .2em;
  color: var(--navy);
  line-height: 1.6;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px; height: 1px;
  margin: 20px auto 0;
  background: var(--gold);
}
.section-head-left .section-title::after { margin-left: 0; }
.section-en-light { color: var(--gold-light); }
.section-title-light { color: var(--white); }

/* ---------- 写真の仮置き枠 ---------- */
.photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(184, 151, 90, .07) 14px 15px),
    linear-gradient(160deg, #eef0f4, #e3e6ec);
  background-size: cover;
  background-position: center;
}
.photo::before {   /* 枠線 */
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 151, 90, .45);
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
.photo-label {
  position: relative;
  padding: 0 16px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .1em;
  color: var(--navy);
  opacity: .7;
}
.photo-label small { font-family: var(--font-sans); font-size: 11px; color: var(--text-soft); letter-spacing: .04em; }
.photo.is-loaded .photo-label,
.photo.is-loaded::before { opacity: 0; }

/* ---------- 次回演奏会 ---------- */
.concert { background: var(--ivory); }

.concert-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(27, 42, 74, .35);
  position: relative;
}
.concert-card::before {   /* 金色の細い内枠 */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 151, 90, .3);
  pointer-events: none;
}
.concert-flyer { aspect-ratio: 1240 / 1754; }

.concert-number { font-family: var(--font-serif); color: var(--gold); letter-spacing: .14em; margin-bottom: 8px; }
.concert-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 28px;
}
.concert-info { border-top: 1px solid var(--line); margin-bottom: 36px; }
.concert-info > div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.concert-info dt { font-family: var(--font-serif); color: var(--navy); letter-spacing: .2em; }
.concert-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- お知らせ ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-list li {
  display: grid;
  grid-template-columns: 7.5em 7em 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease);
}
.news-list li:hover { background: var(--ivory); }
.news-list time { font-family: var(--font-en); font-size: 17px; color: var(--text-soft); letter-spacing: .1em; }
.news-cat {
  justify-self: start;
  padding: 0 12px;
  border: 1px solid var(--navy);
  font-size: 12px;
  line-height: 2;
  color: var(--navy);
}

/* ---------- 楽団について ---------- */
.about { background: var(--ivory); position: relative; overflow: hidden; }
.about::before {   /* 背景の大きな英字 */
  content: "Armonia";
  position: absolute;
  right: -2%;
  bottom: -0.25em;
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(100px, 18vw, 240px);
  line-height: 1;
  color: rgba(184, 151, 90, .08);
  pointer-events: none;
}
.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-photo { aspect-ratio: 4 / 3; }
.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 21px);
  color: var(--navy);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-text > p { margin-bottom: 16px; color: var(--text); }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
  border-top: 1px solid var(--gold);
}
.about-facts > div { padding: 16px 8px 0; text-align: center; }
.about-facts > div + div { border-left: 1px solid var(--line); }
.about-facts dt { font-family: var(--font-serif); font-size: 13px; color: var(--gold); letter-spacing: .2em; }
.about-facts dd { margin-top: 4px; }

/* ---------- これまでの演奏会 ---------- */
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.history-card { background: var(--white); }
.history-photo { aspect-ratio: 3 / 2; }
.history-photo.is-loaded { transition: transform 1.2s var(--ease); }
.history-card:hover .history-photo.is-loaded { transform: scale(1.03); }
.history-body { padding: 24px 4px 0; }
.history-date { margin-bottom: 8px; }
.history-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ---------- 団員募集 ---------- */
.recruit {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(184, 151, 90, .18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
}
.recruit::before {   /* 五線の飾り */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 64px;
  height: 49px;
  background: repeating-linear-gradient(180deg, rgba(216, 195, 154, .14) 0 1px, transparent 1px 12px);
  pointer-events: none;
}
.recruit .section-title::after { background: var(--gold); }
.recruit-lead {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 2.1;
  letter-spacing: .12em;
  margin-bottom: 56px;
  text-wrap: balance;
}
.recruit-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(216, 195, 154, .3);
  border: 1px solid rgba(216, 195, 154, .3);
}
.recruit-info > div { padding: 28px 32px; background: var(--navy); }
.recruit-info dt {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold-light);
  letter-spacing: .2em;
  margin-bottom: 6px;
}

/* ---------- お問い合わせ ---------- */
.contact-lead { text-align: center; margin-bottom: 48px; text-wrap: balance; }
.contact-box {
  max-width: 560px;
  margin-inline: auto;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--ivory);
}
.contact-label { font-family: var(--font-serif); color: var(--navy); letter-spacing: .2em; margin-bottom: 12px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 72px 0 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; line-height: 1.4; color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 13px; }
.footer-nav a { transition: color .3s; }
.footer-nav a:hover { color: var(--gold-light); }
.copyright {
  width: 100%;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .14em;
}

/* ---------- ページ上部へ戻るボタン ---------- */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, .92);
  color: var(--gold);
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .5s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--white); }

/* ---------- ふわっと表示するアニメーション ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* メインビジュアルは順番に表示 */
.js .hero .reveal:nth-child(2) { transition-delay: .15s; }
.js .hero .reveal:nth-child(3) { transition-delay: .35s; }
.js .hero .reveal:nth-child(4) { transition-delay: .5s; }
.js .hero .reveal:nth-child(5) { transition-delay: .65s; }

/* ---------- タブレット・スマートフォン ---------- */
.sp-only { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .menu-toggle {
    position: relative;
    z-index: 70;
    display: block;
    width: 44px; height: 44px;
    margin-right: -10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    left: 11px;
    width: 22px; height: 1px;
    background: var(--white);
    transition: transform .4s var(--ease), opacity .3s, background-color .4s;
  }
  .menu-toggle span:nth-child(1) { top: 15px; }
  .menu-toggle span:nth-child(2) { top: 22px; }
  .menu-toggle span:nth-child(3) { top: 29px; }
  .site-header.is-scrolled .menu-toggle span { background: var(--navy); }

  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .global-nav ul { flex-direction: column; gap: 28px; }
  .global-nav a,
  .site-header.is-scrolled .global-nav a { color: var(--white); font-size: 17px; }

  .menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .global-nav { opacity: 1; visibility: visible; }
  .menu-open .menu-toggle span { background: var(--white) !important; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-open .logo { color: var(--white) !important; position: relative; z-index: 70; }

  .concert-card { grid-template-columns: 1fr; }
  .concert-flyer { max-width: 360px; width: 100%; margin-inline: auto; }

  .about-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.95; }
  .container, .container-narrow { width: calc(100% - 40px); }
  .pc-only { display: none; }
  .sp-only { display: inline; }

  .logo-en { font-size: 19px; }
  .logo-ja { font-size: 11px; }

  .hero-en { letter-spacing: .3em; }
  .hero-title { letter-spacing: .08em; }

  .concert-card { padding: 28px 20px; }
  .concert-info > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .concert-actions .btn { width: 100%; text-align: center; }

  .news-list li { grid-template-columns: auto 1fr; gap: 4px 12px; padding: 20px 4px; }
  .news-list li p { grid-column: 1 / -1; }

  .about-facts dt { letter-spacing: .1em; }

  .history-grid { grid-template-columns: 1fr; }

  .recruit-info { grid-template-columns: 1fr; }
  .recruit-info > div { padding: 22px 24px; }

  .btn { padding: 14px 28px; }
}

/* 端末で「視差効果を減らす」が設定されている場合は動きを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-photo { transform: none; }
}

/* ---------- Eleventy版で追加：曲目リスト・本文 ---------- */
.program-list { display: grid; gap: 6px; }
.program-list li { display: flex; flex-wrap: wrap; gap: 0 1em; line-height: 1.8; }
.program-composer { color: var(--navy); font-family: var(--font-serif); }
.about-body p { margin-bottom: 16px; color: var(--text); }
.contact-value p { margin: 0; }
.contact-value a { color: var(--navy); border-bottom: 1px solid var(--gold); }
