/* ═══════════════════════════════════════════════════════
   components.css — 全ページ共通コンポーネント (v2 かわいいポップ)
   ═══════════════════════════════════════════════════════ */

/* ═══ ナビゲーション ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}
.nav-links a {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 2px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad-idol);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-expo);
}
.nav-links a:hover { color: var(--pink-strong); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a[aria-current="page"] { color: var(--pink-strong); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--pink-strong);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-2) var(--gutter) var(--sp-3);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease-expo);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
}

/* ═══ セクション見出し ═══ */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  color: var(--ruby);
  letter-spacing: 0.1em;
}
.section-head .title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(30px, 3.6vw, 50px);
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.section-head .en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--pink);
  margin-left: auto;
  white-space: nowrap;
}
.section-head.ruled {
  border-bottom: 2px solid var(--line);
  padding-bottom: var(--sp-2);
}

/* ═══ ページ共通ヘッダー（songs / gallery で共用: タイトル + 写真の2カラム） ═══ */
.page-head {
  padding: calc(var(--nav-h) + clamp(48px, 6vw, 88px)) 0 clamp(40px, 4.5vw, 72px);
  background: linear-gradient(var(--paper-pink), var(--paper));
}
.head-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
}
.page-head .overline { display: block; margin-bottom: var(--sp-2); }
.page-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(38px, 4.8vw, 76px);
  letter-spacing: 0.08em;
  line-height: 1.45;
}
.page-title .accent { color: var(--ruby); }
.page-title .nowrap { white-space: nowrap; }

/* 数字サマリー（データから算出して表示） */
.page-counts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-3);
}
.page-counts .count-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.page-counts .count-label {
  font-size: 14.5px;
  font-weight: var(--body-bold);
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.page-counts .count-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(30px, 2.8vw, 46px);
  line-height: 1.1;
  background: var(--grad-idol);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-counts .count-unit {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 16px;
  color: var(--ink-soft);
}

/* ヘッダー写真（二重フレーム） */
.head-photo { position: relative; }
.head-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 24px 60px -24px rgba(226, 111, 158, 0.5);
}
.head-photo::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  z-index: -1;
}
@media (max-width: 980px) {
  .head-grid { grid-template-columns: 1fr; }
}

/* ═══ テキストリンク ═══ */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--body-bold);
  letter-spacing: 0.1em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--line-strong);
  transition: border-color 0.3s, color 0.3s;
}
.textlink .arrow { transition: transform 0.35s var(--ease-expo); }
.textlink:hover { color: var(--ruby); border-color: var(--ruby); }
.textlink:hover .arrow { transform: translateX(5px); }

/* ═══ ボタン（明確にクリックできる見た目の誘導） ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--body-bold);
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--grad-idol);
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 8px 22px -10px rgba(226, 111, 158, 0.55);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease-soft);
}
.btn .arrow { transition: transform 0.35s var(--ease-expo); }
.btn .btn-ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: #fff;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(226, 111, 158, 0.65);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-outline {
  color: var(--pink-strong);
  background: #fff;
  border: 2px solid var(--pink);
  box-shadow: none;
}
.btn-outline:hover { box-shadow: 0 10px 24px -12px rgba(226, 111, 158, 0.4); }

/* ═══ フォトフレーム（白フチ+丸み） ═══ */
.frame {
  position: relative;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow:
    0 2px 6px rgba(240, 130, 170, 0.08),
    0 18px 46px -18px rgba(226, 111, 158, 0.28);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}

/* フォトキャプション */
.artlabel {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--ink-soft);
}
.artlabel .t {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 13.5px;
  color: var(--ink);
  display: block;
}

/* ═══ 落款「ぴ」 ═══ */
.seal {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--ruby);
  color: #fff;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 20px;
  line-height: 1;
  border-radius: 10px;
  transform: rotate(-4deg);
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--ruby) 55%, transparent);
}

/* ═══ ライトボックス ═══ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 4vmin;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto; height: auto;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}

/* ═══ カウントダウン/告知ストリップ ═══ */
.countdown-strip {
  background: var(--grad-soft);
  padding: clamp(40px, 5vw, 72px) var(--gutter);
  text-align: center;
}
.countdown-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ruby);
  margin-bottom: var(--sp-2);
}
.countdown-tbd {
  font-size: 17px;
  line-height: 2.2;
  color: var(--ink);
}
.countdown-tbd a {
  display: inline-block;
  margin-top: 6px;
  font-weight: var(--body-bold);
  color: var(--pink-strong);
  border-bottom: 2px solid var(--pink);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.countdown-tbd a:hover { color: var(--ruby); border-color: var(--ruby); }
.countdown-event {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 26px;
  letter-spacing: 0.06em;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  margin-top: var(--sp-3);
}
.countdown-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.2;
  background: var(--grad-idol);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.countdown-unit-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
}
.countdown-latest { margin-top: var(--sp-3); font-size: 15px; }
.countdown-latest a {
  font-weight: var(--body-bold);
  color: var(--ruby);
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}
.countdown-latest a:hover { border-color: var(--ruby); }

/* ストリップの小見出し（左右のヘアラインで領域を静かに宣言する） */
.strip-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: var(--sp-3);
}
.strip-head span {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.strip-head::before,
.strip-head::after {
  content: '';
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

/* ニュースカード（イベント未定時の主役）: サムネイル + 見出し + 明確なボタン */
.news-card {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  max-width: 1060px;
  margin-inline: auto;
  text-align: left;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px clamp(16px, 2vw, 28px);
  box-shadow: 0 10px 32px -18px rgba(226, 111, 158, 0.35);
  transition: transform 0.4s var(--ease-bounce), border-color 0.3s, box-shadow 0.4s;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: 0 18px 44px -18px rgba(226, 111, 158, 0.5);
}
.news-thumb {
  flex-shrink: 0;
  width: clamp(140px, 15vw, 200px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-s);
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { flex-grow: 1; min-width: 0; }
.news-body .badge-row { margin-bottom: 6px; }
.news-title {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink);
  white-space: nowrap;    /* 1行厳守（折返しはレイアウト崩れのもと） */
}
@media (max-width: 900px) {
  .news-title { white-space: normal; }
}
.news-card .btn { flex-shrink: 0; }
.news-sub {
  margin-top: var(--sp-3);
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-align: center;
}
.news-sub a {
  font-weight: var(--body-bold);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  margin-left: 10px;
  transition: color 0.3s, border-color 0.3s;
}
.news-sub a:hover { color: var(--ruby); border-color: var(--ruby); }
@media (max-width: 768px) {
  .news-card { flex-direction: column; text-align: center; }
  .news-card .news-body .badge-row { justify-content: center; }
}

/* ═══ フッター ═══ */
.footer {
  border-top: 2px solid var(--line);
  background: linear-gradient(var(--paper), var(--paper-pink));
  padding: var(--sp-5) 0 var(--sp-4);
  text-align: center;
}
.pinotea-quote {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 17px;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}
.pinotea-quote::before { content: '「 '; color: var(--pink); }
.pinotea-quote::after  { content: ' 」'; color: var(--pink); }
.footer-copy {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.footer-sub {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-top: 8px;
}
.asset-credits {
  max-width: 680px;
  margin: var(--sp-4) auto 0;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.asset-credits summary {
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.12em;
  padding: 6px;
}
.asset-credits ul { margin-top: var(--sp-2); line-height: 2.3; }
.asset-credits a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.asset-credits a:hover { color: var(--ruby); }
