/* Libra Game Studio（game.libra-fd.com）の共通の見た目。嵐の夜の紺と、ランプの琥珀色（ゲームと同じ色の考え方）。 */
:root {
  --bg: #0b0f19;
  --bg-2: #111725;
  --panel: rgba(18, 24, 37, 0.86);
  --text: #efe6d2;
  --muted: #b6bccb;
  --gold: #e9c27b;
  --gold-strong: #ffd27a;
  --line: rgba(233, 194, 123, 0.32);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-strong); text-underline-offset: 3px; }
a:hover { color: #fff1cf; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.06em; line-height: 1.5; }
ruby rt { font-size: 0.55em; letter-spacing: 0.1em; color: var(--muted); }

.wrap { width: min(var(--wide), 100% - 32px); margin-inline: auto; }

/* 上の帯 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(233, 194, 123, 0.14);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { color: var(--text); text-decoration: none; font-family: var(--serif); letter-spacing: 0.12em; font-size: 17px; white-space: nowrap; }
.brand span { color: var(--gold); }
.brand img { height: 36px; width: auto; display: block; }
.hero-studio-logo { width: min(620px, 84vw); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.75)); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: 0.08em; }
.nav a:hover { color: var(--gold-strong); }

/* 大きな絵の見出し */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 20, 0.92) 0%, rgba(8, 11, 20, 0.55) 45%, rgba(8, 11, 20, 0) 75%),
              linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 25, 0) 30%);
}
.hero .wrap { position: relative; z-index: 1; padding: 0 0 72px; }
.hero-logo { width: min(560px, 82vw); filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6)); }
.hero-lead { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(17px, 2.2vw, 21px); letter-spacing: 0.1em; color: var(--text); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.hero-meta { margin: 6px 0 0; color: var(--muted); letter-spacing: 0.08em; font-size: 15px; }
.hero-title { margin: 0; font-size: clamp(34px, 6vw, 60px); letter-spacing: 0.14em; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7); }
.hero-sub { margin: 4px 0 0; color: var(--gold); font-family: var(--serif); letter-spacing: 0.3em; }

/* ボタン */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 6px;
  font-weight: 700; letter-spacing: 0.06em; text-decoration: none; font-size: 16px;
}
.btn-primary { background: linear-gradient(180deg, #f7d58c, #d9a957); color: #1a1205; box-shadow: 0 6px 20px rgba(217, 169, 87, 0.28); }
.btn-primary:hover { color: #1a1205; filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(11, 15, 25, 0.5); }
.btn-ghost:hover { color: var(--gold-strong); border-color: var(--gold); }
.btn[aria-disabled="true"] { background: rgba(233, 194, 123, 0.14); color: var(--gold); box-shadow: none; cursor: default; }

/* 節 */
section { padding: 88px 0; }
section + section { border-top: 1px solid rgba(233, 194, 123, 0.08); }
.section-title { font-size: clamp(22px, 3vw, 28px); margin: 0 0 28px; display: flex; align-items: center; gap: 16px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.lead { font-family: var(--serif); font-size: clamp(17px, 2vw, 20px); line-height: 2.1; max-width: 46em; }
.prose p { max-width: 42em; margin: 0 0 1.1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* 作品の札（スタジオのトップ） */
.work { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.work-img { min-height: 320px; background: #000; }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.work-body { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.work-body .logo { width: min(340px, 100%); }
.work-body h3 { margin: 4px 0 0; font-size: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line); color: var(--gold); border-radius: 999px; padding: 2px 12px; font-size: 13px; }

/* 作品の一覧（スタジオのトップ）：同じ形の札を並べる */
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid rgba(233, 194, 123, 0.2); border-radius: 12px; overflow: hidden; }
.card-img { aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 20px; letter-spacing: 0.04em; }
.card-body p { margin: 0; font-size: 15px; line-height: 1.8; }
.card-for { color: var(--muted); font-size: 13px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.badges li { font-size: 12px; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); }
.badges li.status { background: rgba(233, 194, 123, 0.14); }
.card-links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.card-links .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }
/* スタジオのトップの見出し：4作の絵を並べる */
.hero-strip { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-strip img { width: 100%; height: 100%; object-fit: cover; }
.hero.studio::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(8, 11, 20, 0.78) 26%, rgba(8, 11, 20, 0.12) 58%, rgba(8, 11, 20, 0.05) 100%); }

/* 規約の頁（プライバシーポリシー・サポート） */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 6px; }
.legal .app-name { color: var(--gold); margin: 0 0 28px; letter-spacing: 0.06em; }
.legal h2 { font-size: 19px; margin: 40px 0 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(233, 194, 123, 0.18); }
.legal p, .legal li { max-width: 46em; }
.legal ul { padding-left: 1.3em; }
.legal .dates { color: var(--muted); font-size: 14px; margin-top: 48px; }
.legal .faq dt { font-weight: 700; color: var(--gold-strong); margin-top: 18px; }
.legal .faq dd { margin: 4px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* 予告編 */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: center / cover no-repeat; }
.video-soon::before { content: ""; position: absolute; inset: 0; background: rgba(8, 11, 20, 0.62); }
.video-soon p { position: relative; margin: 0; font-family: var(--serif); letter-spacing: 0.2em; font-size: clamp(16px, 2.4vw, 22px); }

/* 特徴 */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid rgba(233, 194, 123, 0.18); border-radius: 10px; padding: 24px 26px; }
.feature h3 { margin: 0 0 8px; color: var(--gold-strong); font-size: 18px; }
.feature p { margin: 0; color: var(--text); }

/* スクリーンショット */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shots figure { margin: 0; grid-column: span 2; }
.shots figure:nth-child(-n+2) { grid-column: span 3; }
.shots img { border-radius: 8px; border: 1px solid rgba(233, 194, 123, 0.18); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shots figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* 島の人々 */
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.person { margin: 0; text-align: center; }
.person img { border-radius: 10px; border: 1px solid rgba(233, 194, 123, 0.2); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; width: 100%; }
.person figcaption { margin-top: 10px; line-height: 1.6; }
.person .name { font-family: var(--serif); font-size: 18px; letter-spacing: 0.08em; }
.person .role { display: block; color: var(--muted); font-size: 13px; }
.person.lead-person { grid-column: span 2; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.person.lead-person figcaption { margin: 0; }

/* 基本の情報 */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid rgba(233, 194, 123, 0.14); }
.facts th { width: 9em; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* 枠で囲む知らせ */
.note { background: var(--panel); border-left: 3px solid var(--gold); border-radius: 6px; padding: 20px 24px; }
.note p { margin: 0 0 0.6em; }
.note p:last-child { margin-bottom: 0; }

/* 配る画像の一覧（プレスキット） */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.downloads li { background: var(--panel); border: 1px solid rgba(233, 194, 123, 0.18); border-radius: 8px; overflow: hidden; }
.downloads img { aspect-ratio: 16 / 9; object-fit: contain; width: 100%; background: #1a2030; }
.downloads a { display: block; padding: 10px 12px; font-size: 14px; text-decoration: none; }
.downloads .size { color: var(--muted); font-size: 12px; }

/* 下の帯 */
.site-footer { padding: 48px 0 56px; border-top: 1px solid rgba(233, 194, 123, 0.14); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-strong); }

@media (max-width: 760px) {
  section { padding: 64px 0; }
  /* 上の帯：名前の下に案内を1行で並べ、はみ出す分は横に送る。帯は付いてこない（画面を狭めないように） */
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; gap: 0; padding: 10px 0 6px; min-height: 0; }
  .nav { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 18px; overflow-x: auto; padding: 6px 0 4px; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  /* 見出し：縦の絵を上に置き、題名と文はその下の暗い所に重ねる（澪の顔にかからないように） */
  .hero { display: block; min-height: 0; }
  .hero picture { position: relative; display: block; height: 72vh; min-height: 480px; }
  .hero picture img { object-position: 50% 0; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 34%, rgba(8, 11, 20, 0.55) 52%, rgba(8, 11, 20, 0) 68%); }
  .hero .wrap { margin-top: -150px; padding-bottom: 40px; }
  .hero-logo { width: 78vw; }
  .hero.studio { min-height: 0; }
  .hero.studio .hero-strip { position: relative; height: 62vh; min-height: 420px; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
  .hero.studio .wrap { margin-top: -120px; }
  .work { grid-template-columns: 1fr; }
  .work-img { min-height: 200px; }
  .work-body { padding: 24px 20px; }
  .shots { grid-template-columns: 1fr; }
  .shots figure, .shots figure:nth-child(-n+2) { grid-column: auto; }
  .person.lead-person { grid-column: 1 / -1; }
  .facts th { width: auto; white-space: normal; }
  .facts th, .facts td { display: block; padding: 6px 0; border: 0; }
  .facts tr { display: block; padding: 10px 0; border-bottom: 1px solid rgba(233, 194, 123, 0.14); }
  .nav { gap: 14px; }
  .btn { width: 100%; }
}
