@charset "UTF-8";

/* ==========================================================
   Lunatic Locus 本体サイト共通スタイル
   トップ / work / dj / request / about / terms で共用します。
   ブレークポイントは 600px の 1 箇所だけです。
   （CD 特設ページは各ページの tokusetu.css 等を使うのでここは無関係）
   ========================================================== */

:root {
  --text-main:   #555;     /* 本文の基本色。旧デザインの #666 より少し濃くして読みやすく */
  --text-sub:    #777;     /* 補足・フッタ */
  --link:        #2a5bc4;  /* リンク色（旧 #36c 系） */
  --link-hover:  #d2477e;  /* リンクのホバー / フォーカス */
  --accent:      #4a7bd9;  /* 見出しの下線・ボタンの枠 */
  --accent-soft: #eef3ff;  /* ボタン・カードの背景 */
  --line:        #d5dcec;  /* 区切り線 */
  --page-width:  760px;    /* 本文カラムの最大幅 */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 16px 40px;
  background: #fff;
  color: var(--text-main);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: var(--page-width);
  margin: 0 auto;
}

/* 画像・埋め込みは絶対に画面幅からはみ出させない */
img, iframe, video, audio { max-width: 100%; }
img { height: auto; border: 0; vertical-align: bottom; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible,
.btn:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }


/* ---------- ヘッダ（タイトル + メニュー） ---------- */
.site-header {
  padding: 32px 0 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.site-title {
  margin: 0;
  font-size: 32px;
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.site-title a { color: var(--text-main); text-decoration: none; }
.tagline { margin: 6px 0 0; font-size: 15px; color: var(--text-sub); }

/* 旧「丸ボタン画像」の代わり。テキストだけのピル型ボタン */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.nav a,
.btn {
  display: inline-block;
  min-width: 96px;
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--link);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.nav a:hover,
.btn:hover { background: var(--accent); color: #fff; }
.nav a[aria-current="page"] { background: var(--accent); color: #fff; }


/* ---------- セクション ---------- */
.section { margin: 40px 0 0; }

h2 {
  margin: 0 0 16px;
  padding: 0 0 4px;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.4;
  border-bottom: 2px solid var(--accent);
}
h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  line-height: 1.5;
}
.section > h2 + h3 { margin-top: 0; }

p { margin: 0 0 1em; }
.note { font-size: 14px; color: var(--text-sub); }


/* ---------- 最新作 ---------- */
.latest { text-align: center; }
.latest img {
  width: 100%;
  max-width: 360px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.latest .caption { margin: 10px 0 0; font-size: 15px; }


/* ---------- YouTube（16:9 で可変） ---------- */
.movie {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.movie iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ---------- 案内カード（work / dj / request への入口） ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  text-align: center;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p  { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.card .btn { min-width: 0; }


/* ---------- 外部リンク一覧 ---------- */
.linklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}


/* ---------- フッタ ---------- */
.site-footer {
  margin: 48px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
  text-align: center;
}


/* ---------- 下層ページの見出し ---------- */
.page-title {
  margin: 32px 0 0;
  font-size: 26px;
  font-weight: normal;
  line-height: 1.4;
  text-align: center;
}
.section > h2:first-child { margin-top: 0; }


/* ---------- 受付状況（/request） ----------
   状況を変えるときは .status-open ↔ .status-closed と、
   バッジの文字（受付中 / 停止中）を書き換えます。 */
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
}
.badge {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
}
.status-date { margin-left: auto; color: var(--text-sub); font-size: 13px; }
.status-open   .badge { background: #2e8b57; }
.status-closed .badge { background: #999; }


/* ---------- 依頼の流れ（番号付きステップ） ---------- */
ol.flow {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
ol.flow li {
  position: relative;
  margin: 0 0 6px;
  padding: 8px 12px 8px 46px;
  border-radius: 6px;
  background: var(--accent-soft);
  counter-increment: step;
}
ol.flow li::before {
  content: counter(step);
  position: absolute;
  top: 8px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}


/* ---------- 料金・納期の表 ---------- */
table.spec {
  width: 100%;
  margin: 0 0 12px;
  border-collapse: collapse;
}
table.spec th,
table.spec td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.spec th {
  width: 12em;
  background: var(--accent-soft);
  font-weight: normal;
}

ul.plain { margin: 0 0 1em; padding-left: 1.4em; }


/* ---------- 折りたたみ（使用機材など） ---------- */
details {
  margin: 0 0 1em;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
details summary { cursor: pointer; }
details[open] summary { margin-bottom: 8px; }
details h3 { margin: 12px 0 4px; font-size: 15px; }
details ul { margin: 0; padding-left: 1.4em; font-size: 15px; line-height: 1.7; }


/* ---------- 作品一覧（/work） ----------
   ジャケット（正方形）は格子状、バナー（500x100）は縦に並べます。 */
.works-jacket {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 20px;
}
.works-jacket a { display: block; text-align: center; font-size: 14px; line-height: 1.5; text-decoration: none; }
.works-jacket img {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  border-radius: 6px;
  aspect-ratio: 1 / 1;   /* 元画像が微妙に正方形でないもの (STAR DRIVE) も揃える */
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.works-banner {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.works-banner a { display: block; max-width: 500px; }
.works-banner img { width: 100%; border: 1px solid var(--line); border-radius: 4px; }

iframe.nico { width: 100%; max-width: 450px; height: 200px; border: 0; }


/* ---------- DJ 出演実績（/dj） ----------
   1 行 = 日付 | イベント名（太字）+ 種別・開催地（小さく下に） */
.events { margin: 0 0 20px; padding: 0; list-style: none; }
.event {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 0 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.event time { color: var(--text-sub); font-size: 14px; white-space: nowrap; }
.event .ev-name { font-weight: bold; }
.event .ev-meta { grid-column: 2; color: var(--text-sub); font-size: 14px; }


/* ==========================================================
   スマホ（600px 以下）
   ========================================================== */
@media (max-width: 600px) {
  body          { padding: 0 12px 32px; }
  .site-header  { padding: 24px 0 16px; }
  .site-title   { font-size: 26px; }
  .nav a, .btn  { padding: 10px 16px; }   /* 指で押しやすい高さに */
  .section      { margin-top: 32px; }
  h2            { font-size: 20px; }
  .cards        { grid-template-columns: 1fr; }
  .page-title   { margin-top: 24px; font-size: 22px; }
  table.spec th { width: 7em; }
  .works-jacket { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .event        { grid-template-columns: 5.6em 1fr; gap: 0 8px; }
}
