/* ============================================================
   Phonora Records — スタイルシート
   色や大きさを変えたいときは、主にこのファイルの「変数」を触ります。
   ============================================================ */

/* ---- 書体（すべて Google Fonts。index.html の <link> で読み込み）2026-09-21 決定 ----
   ロゴ「Phonora」・アーティスト名・曲名 … Fraunces（レトロな太いセリフ体）
   ロゴ「Records」・何作目・℗ などの小さなラベル … Courier Prime（タイプライター）
   本文（紹介文・タグ・一覧・ボタン・補足文）… Source Serif 4（素直で読みやすいセリフ体）
   日本語の名前・曲名 … Zen Old Mincho
   コンセプト「90 年代の幻のデッドストックレーベル」に合わせた組み合わせ。
   以前の同梱フォント（fonts/ の中の serif-main / serif-intro）は使っていない。 */
/* 日本語の見出しは Google Fonts の「Zen Old Mincho」を使う（index.html の <link> で読み込み）。
   以前同梱していた DMTShuei4goBStd（Canva の商用フォント）は配信ライセンス未確認のため使用をやめた。 */

/* ---- 全体の変数 ---- */
:root {
  --page-bg: #f6f4ef;         /* ページ全体の背景（生成り） */
  --bar-bg: #000;             /* 上の帯と最下部の黒い帯 */
  --intro-bg: #f6f4ef;        /* 紹介文の帯（ページと同じ色で一続きに） */
  --text: #141a19;            /* 本文の文字色 */
  --muted: #6d6b65;           /* 補助的な文字（タグ、℗ 表記など） */
  --rule: #e1ddd3;            /* 区切り線とカードの縁 */
  --card-bg: #ffffff;         /* 作品カードの背景 */
  --tint: 5%;                 /* 組ごとの色を背景ににじませる濃さ */
  --content-max: 1180px;      /* 中身の最大幅 */
  --card-w: 212px;            /* 作品カードの幅 */
  --card-gap: 18px;           /* カードのあいだ */
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, "Hiragino Mincho ProN", serif;
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }

/* ---- 上部の帯（SNS アイコン） ---- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;                  /* 偶数にして、中のボタンとアイコンが整数ピクセルの位置に乗るようにする */
  background: var(--bar-bg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  z-index: 2;
}
/* SNS アイコン（図形は index.html の <symbol>）。図形は 24 目盛りで描かれているので 24px 表示が最もにじまない。大きさは svg の width/height だけで揃う */
.social {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;     /* 指で押しやすい当たり判定 */
  border-radius: 50%;
  color: #fff;
  opacity: .85;
  transition: opacity .15s, background-color .15s;
}
.social a:hover,
.social a:focus-visible { opacity: 1; background: rgba(255,255,255,.12); }
.social svg { display: block; width: 24px; height: 24px; fill: currentColor;
  filter: drop-shadow(0 0 .6px rgba(255,255,255,.55));   /* 等倍モニターで輪郭の段差が目立たないよう、ごく淡い光で縁を埋める（Retina では差が出ない） */
}

/* ---- ヒーロー（レコード棚の写真＋タイトル） ---- */
.hero {
  position: relative;
  padding-top: 64px;
  background: var(--bar-bg);
}
.hero-photo {
  width: 100%;
  height: 214px;
  object-fit: cover;
  object-position: center 40%;
}

/* ---- 紹介文（白い帯） ---- */
.intro {
  background: var(--intro-bg);
  color: var(--text);
  text-align: center;
  padding: 4px 24px 40px;
}
.intro p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15px;               /* 2026-09-12: 18.6px → 15px。ロゴが主役、紹介文は添え書き（案 4） */
  line-height: 23px;             /* 行の高さは整数 px に（端数が積もるとフッターのアイコンが半端な位置に来る） */
  color: var(--muted);           /* 灰色にして存在感を下げる。文章は変えていない */
  max-width: 560px;
  margin: 0 auto;
}
.intro p + p { margin-top: 12px; }

/* ---- アーティストごとのセクション ---- */
/* ---- 所属アーティスト一覧（紹介文の下。クリックでその組へ） ---- */
.roster {
  max-width: var(--content-max); margin: 0 auto; padding: 4px 24px 10px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
}
.roster a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 6px 0; line-height: 17px; border-bottom: 1px solid transparent;   /* 行の高さと下線は整数 px に */
}
.roster a:hover { color: var(--text); border-bottom-color: var(--bg); }
.roster i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg); }

/* ---- アーティストの区分：色の箱ではなく、罫線とごく薄い色味で区切る ---- */
.artists { padding: 6px 0 30px; }
.artist {
  /* 組の色は HTML 側の style="--bg: …" 。目印（丸い印、カードの線、ボタンの縁）と背景の薄い色味に使う */
  background: color-mix(in srgb, var(--bg, #888) var(--tint), transparent);
  border-top: 1px solid var(--rule);
  /* 左右の余白：画面が広いときは中央 1180px に収まるように、狭いときは 24px */
  padding: 40px max(24px, calc(50% - var(--content-max) / 2)) 40px;
  scroll-margin-top: 12px;
  /* 冒頭の並び: 1 行目 = 名前 ＋ ボタン（or Linktree）、2 行目 = ハッシュタグ、3 行目 = カード。
     画面が狭くて名前とボタンが入りきらないときは、ボタンが自動で次の行に折り返す */
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 18px; row-gap: 10px;
}
.artist-name {
  order: 1;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;   /* ロゴと同じ書体 */
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  display: flex; align-items: center; gap: 12px;
}
.artist-name::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); flex: none; }
.artist-name.jp {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 900;
}

/* 日本語の名前の行だけ、丸い印と Listen / Follow ボタンを少し下げる。
   Zen Old Mincho は文字の絵が行の下寄りに描かれるため、そのままだと印とボタンが
   文字に対して上にずれて見える（2026-09-23 に画面を実測して 2px と決定）。 */
.artist-name.jp::before { position: relative; top: var(--jp-nudge, 2px); }
.artist-name.jp + .btn-follow,
.artist-name.jp + .linktree { position: relative; top: var(--jp-nudge, 2px); }

/* 「🎧 Listen / Follow」ボタン */
.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;                     /* 名前（26px の太字）の添え物に見える大きさ。2026-09-22 に 32px から縮小 */
  padding: 0 12px;
  order: 2; margin: 0;              /* 名前と同じ行に並ぶ */
  border: 1px solid var(--bg);
  border-radius: 13px;
  font-size: 11.5px;
  color: var(--text);
  transition: background-color .15s, color .15s;
}
.btn-follow:hover { background: var(--bg); color: #fff; }

/* Linktree 行 */
.linktree {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  order: 2; margin: 0;              /* ボタンの代わりに名前と同じ行に並ぶ */
}
.linktree img { width: 15px; height: 19px; filter: invert(1); }   /* 白いアイコンを黒に */

/* 補助的な文字：文章は本文と同じ書体、「何作目」や ℗ のようなラベルはタイプライター */
.tags, .release .note, .roster a { font-weight: 400; }
.release .ordinal, .archived, .services .soon, .pline, .footer .copyright {
  font-family: "Courier Prime", "Courier New", monospace;
  font-weight: 400;
  letter-spacing: 0;
}
.tags {
  order: 3; flex-basis: 100%;       /* 2 行目に 1 行で */
  margin: 2px 0 0;                  /* row-gap 10px と合わせて名前の行から 12px */
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- 作品カード：ジャケットを大きく、情報はその下に ---- */
.releases {
  order: 4; flex-basis: 100%;       /* 3 行目 */
  margin-top: 12px;                 /* row-gap 10px と合わせてタグから 22px */
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--card-w));
  gap: var(--card-gap);
}
.release {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--bg);      /* 組の色の目印 */
  border-radius: 8px;
  padding: 14px 14px 16px;
  display: flex; flex-direction: column;
}
/* 並び順：ジャケット → 曲名 → 何作目 → 補足 → 配信アイコン → ℗ */
.media { order: 1; position: relative; }
.release h3 {
  order: 2;
  margin: 14px 0 0;
  font-family: "Fraunces", Georgia, serif;   /* ロゴと同じ書体 */
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;   /* 長い曲名は 2 行まで */
  min-height: 2.8em;
}
.release h3.jp {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 900;
}
.release .ordinal { order: 3; margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }   /* 「4th single」のまま表示（大文字化しない） */
.release .note { order: 4; margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.cover {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(0,0,0,.06);
}
/* YouTube Short：ジャケットの右下に小さな縦長の窓として重ねる。クリックで大きく再生 */
.short { position: absolute; right: 8px; bottom: 8px; width: 42px; display: block; font-size: 0; color: inherit; }
.short span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* 読み上げ用の文字 */
.short .thumb {
  position: relative; display: block;
  width: 42px; height: 74px;
  border: 2px solid #fff; border-radius: 6px;
  overflow: hidden; background: #000;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.short .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.short:hover .thumb img { transform: scale(1.05); }
.short .play {
  position: absolute; right: 3px; bottom: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0,0,0,.55);
}
.short .play::after {
  content: ""; position: absolute; left: 6px; top: 4px;
  border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.services { order: 5; display: flex; align-items: center; gap: 8px; list-style: none; margin: auto 0 0; padding: 14px 0 0; }   /* margin-top: auto で ℗ ごと箱の底に貼り付ける */
.services a { display: block; }
.services img { width: 22px; height: 22px; }
.archived { order: 5; margin: auto 0 0; padding-top: 12px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }   /* 配信アイコンの代わりの文。同じく底に */
.services svg.yt { width: 24px; height: 22px; fill: #ff0000; display: block; }   /* 長い動画（通常の YouTube）へのリンク。YouTube Music と区別するため、列のいちばん最後に置く */
.services .soon { white-space: nowrap; font-size: 11.5px; line-height: 1.45; color: var(--muted); }   /* 配信開始前の「Out on …」 */
.pline { order: 6; margin: 12px 0 0; font-size: 11px; color: var(--muted); }   /* 配信アイコンの直下。アイコン側が底に貼り付くので、同じ列のカードでアイコンと ℗ の両方が下揃えになる */

/* ---- フッター ---- */
.footer {
  background: var(--bar-bg);
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 40px 24px 64px;
  flex-wrap: wrap;
}
.footer .copyright { margin: 0; font-size: 13.3px; line-height: 17px; }
.footer { color: #fff; }   /* 黒い帯なので白文字 */
.footer .social { gap: 8px; margin-left: auto; }   /* 幅が足りずに下の段へ回ったときも右端に揃える */
.footer .social a { width: 48px; height: 48px; }
.footer .social svg { width: 24px; height: 24px; }
/* アクセス解析の告知：著作権表示の下に小さく、半透明の白で控えめに */
.footer .analytics-note {
  margin: 16px 0 0;   /* 著作権表示から少し離して、別の話だと分かるように */
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);   /* 小さい文字でも読める明るさ。白そのものにはしない */
}
.footer .analytics-note + .analytics-note { margin-top: 2px; }
.footer .analytics-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer .analytics-note a:hover { color: #fff; }

/* 幅 900px 未満：著作権表示とアイコンを中央揃えで縦に並べる（中途半端な幅で崩れないように） */
@media (max-width: 900px) {
  .footer { flex-direction: column; justify-content: center; text-align: center; gap: 12px; padding: 24px 20px; }
  .footer .social { margin-left: 0; }
  .footer .analytics-note { max-width: 560px; margin-left: auto; margin-right: auto; }   /* 縦並びのときは行が長くなりすぎないように */
}

/* ---- スマホ向け ---- */
@media (max-width: 720px) {
  .topbar { padding: 0 8px; }
  .social { gap: 2px; }
  .social a { width: 36px; height: 36px; }
  .social svg { width: 20px; height: 20px; }
  .artist { padding: 24px 16px 26px; }
  .artist-name { font-size: 22px; }
  .releases { grid-template-columns: repeat(2, 1fr); gap: 12px; }   /* スマホは 2 列 */
  .release { padding: 12px 12px 14px; }
  .release h3 { font-size: 15px; }
  .short { width: 36px; right: 6px; bottom: 6px; }
  .short .thumb { width: 36px; height: 64px; }
  .footer .social { gap: 4px; }
  .footer .social a { width: 44px; height: 44px; }
  .footer .social svg { width: 24px; height: 24px; }
}


/* ---- 動画を大きく再生する窓（案 A） ---- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.88);
}
.lightbox[hidden] { display: none; }   /* 閉じているときは確実に消す */
.lightbox-inner {
  position: relative;
  aspect-ratio: 9 / 16;
  height: min(88vh, 720px);
  max-width: 92vw;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox-inner iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close {
  position: absolute; right: 8px; top: 8px;
  z-index: 1;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff; font-size: 22px; line-height: 36px;
  cursor: pointer;
}

/* ---- ヘッダーのロゴ：狐のマーク（写真と白い帯の境目にまたがる）＋ 文字ロゴ ---- */
.hero-mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 112px; height: 112px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  z-index: 2;
}
.hero-mark img { width: 100%; height: 100%; border-radius: 50%; }
.hero-mark { bottom: -56px; }          /* 高さの半分だけ写真にかかる */
.intro { padding-top: 76px; }


/* ---- 文字ロゴ「Phonora Records」（画像ではなく文字で組んでいる） ----
   「Phonora」は Google Fonts の Fraunces（800）、「o」はレコード盤の図形（index.html 内の svg）。
   「Records」は Google Fonts の Courier Prime（タイプライター風）。字間は --wm-track で調整。
   コンセプト「90 年代の幻のデッドストックレーベル」に合わせ、社名の判子＋タイプされた品目名のような組み合わせにした。 */
.wm-text { width: auto; margin: 0 auto 32px; color: #111; line-height: 1; }
.wm-name {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: 84px;
  letter-spacing: var(--wm-track, 0.015em);   /* ← 字間。ここを増やすと広がる */
  white-space: nowrap;
}
.wm-o { display: inline-block; width: 1.3ex; height: 1.3ex; vertical-align: -0.04ex; margin: 0 .02em; }   /* 書体の x の高さに合わせる */
.wm-o svg { display: block; width: 100%; height: 100%; }
.wm-sub {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 8px;
  font-family: "Courier Prime", "Courier New", monospace;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: .16em;     /* 字間を広めにしてタイプされた文字らしく */
  color: #3a3a3a;
}
.wm-sub i { display: block; width: 84px; height: 1.5px; background: #d0271f; opacity: .9; }
@media (max-width: 720px) {
  .wm-name { font-size: 58px; }
  .wm-sub { font-size: 24px; gap: 10px; }
  .wm-sub i { width: 56px; }
}
