/* BIGWAVE エントリー — モバイルファースト共通スタイル */
:root {
  --bw-blue: #0a6ebd;
  --bw-blue-dark: #084e86;
  --bw-accent: #00b4d8;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --line: #dde5ec;
  --bg: #f4f7fa;
  --ok: #1a9e54;
  --warn: #d98300;
  --err: #d23b3b;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 16px; }
.header {
  background: linear-gradient(120deg, var(--bw-blue), var(--bw-accent));
  color: #fff; padding: 20px 16px;
}
.header h1 { margin: 0; font-size: 1.25rem; }
.header p { margin: 4px 0 0; opacity: .9; font-size: .85rem; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 16px 0;
}
h2 { font-size: 1.1rem; margin: 0 0 12px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .92rem; }
.req { color: var(--err); font-size: .8rem; margin-left: 4px; }
input, select, textarea {
  width: 100%; padding: 12px; font-size: 16px; /* 16px=iOS自動ズーム防止 */
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bw-accent); border-color: var(--bw-accent); }
.fixed-field {
  background: #eef3f8;
  border-color: #c7d3df;
  color: #526270;
  font-weight: 600;
  cursor: not-allowed;
}
.hint { color: var(--muted); font-size: .8rem; margin: 4px 0 0; }
.btn {
  display: inline-block; width: 100%; padding: 14px; margin-top: 20px;
  background: var(--bw-blue); color: #fff; border: 0; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--bw-blue-dark); }
.btn.secondary { background: #fff; color: var(--bw-blue); border: 1px solid var(--bw-blue); }
.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; font-size: .9rem; }
.alert.err { background: #fde8e8; color: #8f1d1d; border: 1px solid #f3b4b4; }
.alert.ok  { background: #e6f6ec; color: #115e34; border: 1px solid #aadcc0; }
.alert.warn{ background: #fdf2e0; color: #7a4d05; border: 1px solid #f0cf91; }
.result-box { text-align: center; padding: 8px 0; }
.result-box .eid { font-size: 2rem; font-weight: 800; color: var(--bw-blue); letter-spacing: 1px; }
.kv { width: 100%; border-collapse: collapse; margin-top: 8px; }
.kv th, .kv td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kv th { color: var(--muted); font-weight: 600; width: 42%; white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }
/* テーブル（管理画面）。スマホは横スクロール */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { width: 100%; border-collapse: collapse; font-size: .85rem; white-space: nowrap; }
table.list th, table.list td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.list th { background: #eef3f8; position: sticky; top: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge.entered { background: #e6f6ec; color: #115e34; }
.badge.cancelled { background: #f0e2e2; color: #8f1d1d; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .num { font-size: 1.6rem; font-weight: 800; color: var(--bw-blue); }
.stat .lbl { font-size: .8rem; color: var(--muted); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- マイページ（Phase2） ---------- */
/* 進捗リスト */
.plist { list-style: none; padding: 0; margin: 0; }
.plist li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem;
}
.plist li:last-child { border-bottom: 0; }
.tag { padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tag.done { background: #e6f6ec; color: #115e34; }
.tag.todo { background: #fde8e8; color: #8f1d1d; }
.tag.soon { background: #eef1f4; color: #5b6b7a; }

/* メンバー入力行 */
.member-head, .member-row {
  display: grid; grid-template-columns: 1.3fr 1.3fr .8fr 1fr; gap: 6px;
}
.member-head { font-size: .75rem; font-weight: 700; color: var(--muted); margin: 14px 0 6px; }
.member-row { margin-bottom: 6px; }
.member-row input, .member-row select { padding: 10px 8px; font-size: 15px; }
@media (max-width: 480px) {
  .member-head { display: none; }
  .member-row { grid-template-columns: 1fr 1fr; border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 10px; }
}

/* ---------- LINE連携CTA ---------- */
.line-cta {
  background: #fff; border: 2px solid #06c755; border-radius: var(--radius);
  padding: 20px; margin: 16px 0;
}
.line-cta-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.line-cta-head h2 { margin: 0; font-size: 1.1rem; }
.line-step { background: #06c755; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.line-cta p { font-size: .92rem; margin: 8px 0; }
.btn-line {
  display: block; text-align: center; text-decoration: none;
  background: #06c755; color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 14px; border-radius: 10px; margin-top: 12px;
}
.btn-line:hover { background: #05a648; }
.line-qr { text-align: center; margin-top: 14px; }
.line-qr img { border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.line-status {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.line-status.linked { background: #e6f6ec; color: #115e34; }
.line-status.unlinked { background: #fde8e8; color: #8f1d1d; }

/* エントリーボタン上の控えめな注意書き */
.note-order { font-size: .82rem; color: var(--muted); text-align: center; margin: 16px 0 0; }

/* LINE連携：STEPラベルと連携コード表示 */
.line-step-label { font-weight: 700; margin-top: 18px; }
.code-box {
  display: flex; align-items: stretch; gap: 8px; margin: 10px 0 4px;
}
.code-box code {
  flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 3px; text-align: center;
  background: #f4f7fa; border: 1px dashed #06c755; border-radius: 8px;
  padding: 12px 8px; color: var(--ink);
}
.btn-copy {
  flex: 0 0 auto; border: 0; border-radius: 8px; background: #06c755; color: #fff;
  font-weight: 700; font-size: .9rem; padding: 0 16px; cursor: pointer; white-space: nowrap;
}
.btn-copy:hover { background: #05a648; }

/* LINE連携フォールバック（折りたたみ） */
.line-fallback { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.line-fallback summary { cursor: pointer; font-size: .85rem; color: var(--muted); font-weight: 700; }
.line-fallback[open] summary { margin-bottom: 8px; }
.hint.center { text-align: center; }

/* エントリーフォームのロック（受付前・終了時） */
.bare { border: 0; margin: 0; padding: 0; min-inline-size: auto; }
.form-wrap { position: relative; }
.form-wrap.locked form { opacity: .5; filter: grayscale(1); }
.form-lock {
  position: absolute; inset: 0; z-index: 5; cursor: not-allowed;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg,
    rgba(120,130,140,.10), rgba(120,130,140,.10) 14px,
    rgba(120,130,140,.20) 14px, rgba(120,130,140,.20) 28px);
}
.form-lock-msg {
  background: rgba(28,39,51,.9); color: #fff;
  padding: 18px 28px; border-radius: 12px; text-align: center;
  font-weight: 800; line-height: 1.7; font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.form-lock-msg strong { color: var(--gold, #f5b32e); }

/* アプリ内ブラウザ案内バナー */
.inapp-banner {
  background: #fff4d6; border: 1px solid #f0cf91; color: #7a4d05;
  border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: .86rem; line-height: 1.6;
}
.inapp-banner strong { color: #6b3d00; }

/* キャンセル・返金ポリシー（アコーディオン） */
.policy {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 16px; margin: 16px 0;
}
.policy > summary {
  cursor: pointer; font-weight: 700; padding: 12px 4px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.policy > summary::after { content: "＋"; color: var(--muted); font-weight: 700; }
.policy[open] > summary::after { content: "－"; }
.policy-body { padding: 4px 2px 14px; }
.policy-body h3 { font-size: .95rem; margin: 12px 0 6px; color: var(--bw-blue); }
.policy-body ul { margin: 0 0 8px; padding-left: 1.2em; }
.policy-body li { font-size: .88rem; line-height: 1.7; margin-bottom: 4px; }

/* マイページ ヘッダーのブランドロゴ */
.mp-brand {
  font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: clamp(1.15rem, 5.2vw, 1.7rem); letter-spacing: .04em; line-height: 1;
  color: #fff; margin-bottom: 12px; transform: skewX(-5deg);
  text-shadow: 2px 2px 0 rgba(8,17,32,.35);
}
.mp-brand .yr { color: #ff5a4d; text-shadow: 2px 2px 0 rgba(8,17,32,.35); }

/* 管理一覧：キャンセル済みの行はグレーアウトして区別 */
table.list tr.row-cancelled td { background: #f3f4f6; color: #9aa6b2; }
table.list tr.row-cancelled td a { color: #9aa6b2; }
table.list tr.row-cancelled td:nth-child(5) { text-decoration: line-through; }

/* 振込名義の案内（目立たせる） */
.pay-name {
  background: #fff8e8; border: 2px solid #f0c040; border-radius: var(--radius);
  padding: 16px; margin: 14px 0;
}
.pay-name-head { font-weight: 800; color: #8a5a00; margin-bottom: 8px; font-size: 1rem; }
.pay-name p { font-size: .9rem; margin: 6px 0; }
.pay-name .code-box code { letter-spacing: 6px; font-size: 1.8rem; border-color: #f0c040; background: #fff; }
.pay-name .btn-copy { background: var(--bw-blue); }
.pay-name .btn-copy:hover { background: var(--bw-blue-dark); }
.pay-ex { background: #fff; border: 1px dashed #c7d3df; border-radius: 8px; padding: 8px 10px; }
.pay-tips { margin: 8px 0 0; padding-left: 1.2em; }
.pay-tips li { font-size: .84rem; line-height: 1.7; margin-bottom: 4px; }

/* 参加同意（電子同意）：書面の表示と同意チェック */
.consent-doc h3 { font-size: .98rem; margin: 20px 0 6px; padding-top: 14px; border-top: 1px dotted var(--line); }
.consent-doc p { font-size: .9rem; line-height: 1.8; margin: 4px 0; }
.consent-check {
  display: flex; gap: 10px; align-items: flex-start; font-weight: 600;
  background: #f4f8fc; border: 1px solid #c7d3df; border-radius: 8px;
  padding: 14px; margin: 14px 0; cursor: pointer;
}
.consent-check input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.consent-check span { font-size: .92rem; line-height: 1.7; }
.consent-body {
  white-space: pre-wrap; font-family: inherit; font-size: .85rem; line-height: 1.7;
  background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; margin: 8px 0 0; overflow-x: auto;
}

/* ラジオ選択（パフォーマンス開始方法など） */
.radio-group { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.radio-item {
  display: flex; gap: 10px; align-items: flex-start; font-weight: 400;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; margin: 0;
}
.radio-item input[type="radio"] { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.radio-item span { font-size: .9rem; line-height: 1.6; }
.radio-item strong { font-size: .95rem; }

/* 音源アップロードの困りごとヒント */
.upload-tips {
  margin-top: 16px; background: #f7f8fa; border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px;
}
.upload-tips-head { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.upload-tips ul { margin: 0; padding-left: 1.2em; }
.upload-tips li { font-size: .84rem; line-height: 1.7; margin-bottom: 6px; }

/* 管理画面など、横に広い表を扱うページ用の広幅コンテナ（モバイルは従来どおり全幅） */
.wrap.wide { max-width: 1200px; }
/* 一覧テーブルは広幅時にゆったり表示 */
.wrap.wide table.list { font-size: .88rem; }
.wrap.wide table.list th, .wrap.wide table.list td { padding: 9px 12px; }
/* 広幅時、直下のアクションボタンが横に伸びすぎないよう抑制（フォーム内・カード内は対象外） */
@media (min-width: 720px) { .wrap.wide > .btn { width: auto; min-width: 260px; margin-right: 8px; } }

/* LINE個別チャット（管理） */
.chat-btn {
  display: inline-block; padding: 6px 12px; border-radius: 6px; white-space: nowrap;
  background: #06c755; color: #fff; font-size: .8rem; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer;
}
.chat-btn:hover { background: #05a648; }
.chat-btn.search { background: #5b6b7a; }
.chat-btn.search:hover { background: #47555f; }
.chat-url-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.chat-url-form input[type="url"] { width: 230px; padding: 6px 8px; font-size: .8rem; }
.chat-url-form .btn { width: auto; margin: 0; padding: 6px 12px; font-size: .8rem; }
.chat-howto { margin: 8px 0 0; padding-left: 1.3em; }
.chat-howto li { font-size: .86rem; line-height: 1.8; }

/* 当日のご案内 */
.guide-doc p { font-size: .92rem; line-height: 1.85; margin: 6px 0; }
.guide-to { font-weight: 700; margin-bottom: 12px !important; }
.guide-sign { text-align: right; font-weight: 700; margin-top: 16px !important; }
.guide-sub {
  font-size: 1rem; margin: 22px 0 8px; padding: 6px 12px;
  background: #eef3f8; border-left: 4px solid var(--bw-blue); border-radius: 4px;
}
.guide-sub:first-child { margin-top: 4px; }
.guide-list { margin: 8px 0; padding-left: 1.3em; }
.guide-list li { font-size: .9rem; line-height: 1.8; margin-bottom: 4px; }
.guide-time { width: 100%; border-collapse: collapse; margin: 10px 0; }
.guide-time th, .guide-time td {
  text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line);
  font-size: .9rem; vertical-align: top;
}
.guide-time th { white-space: nowrap; color: var(--bw-blue); font-weight: 700; width: 38%; }
.guide-note { font-size: .84rem !important; color: var(--muted); margin: 4px 0 !important; }
.guide-hr { border: 0; border-top: 1px dashed var(--line); margin: 18px 0; }
.guide-oc-name { font-weight: 700; text-align: center; margin-top: 14px !important; }
@media (max-width: 420px) {
  .guide-time th { width: 42%; font-size: .86rem; }
  .guide-time td { font-size: .86rem; }
}
