/* BukaCura 共通スタイル */
:root {
  --bg: #121212;
  --bg-2: #1c1c1c;
  --line: #2e2e2e;
  --text: #f4f1ec;
  --text-sub: #d6d1c8;
  --text-mute: #b5b0a8;
  --field-bg: #ffffff;
  --field-text: #121212;
  --error: #ff9b8a;
  /* 強調色は --accent に集約。--on-accent は強調色の上に乗る文字色 */
  --accent: #22d3ee;
  --on-accent: #0a0f1c;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 10;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- ヘッダー ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; align-items: center;
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  min-height: 44px; padding: 6px 0;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-name { font-size: 1.3rem; font-weight: 900; letter-spacing: 0.03em; }
.brand-kana { font-size: 0.85rem; font-weight: 700; color: var(--text-sub); }
.brand-by { font-size: 0.8rem; color: var(--text-mute); }
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 0 20px;
  list-style: none; padding: 0;
}
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }

/* ---------- 共通の見出し・段 ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); }
.section-title { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 900; line-height: 1.4; }
.section-lead { margin-top: 12px; color: var(--text-sub); max-width: 760px; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; }
.stack > * + * { margin-top: 24px; }
.badge {
  display: inline-block; margin-left: 10px; padding: 0 8px;
  font-size: 0.75rem; font-weight: 700; line-height: 1.8; vertical-align: middle;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 3px;
  white-space: nowrap;
}

/* ---------- ファーストビュー ---------- */
.hero { padding: 80px 0 72px; }
.hero .container > * + * { margin-top: 24px; }
.eyebrow { font-size: 0.9rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.hero h1 { font-size: clamp(2rem, 9vw, 4.25rem); line-height: 1.25; font-weight: 900; }
.hero-lead { max-width: 680px; font-size: 1.05rem; color: var(--text-sub); }
.hero-note { font-weight: 700; color: var(--text); }

/* ---------- 登録欄 ---------- */
.signup { max-width: 640px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.signup-field { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.signup-field label { font-size: 0.95rem; font-weight: 700; }
.field-input, .field-select, .field-textarea {
  width: 100%; min-height: 52px; padding: 0 16px;
  font: inherit; font-size: 1rem; color: var(--field-text);
  background: var(--field-bg); border: 2px solid transparent; border-radius: 4px;
}
.field-textarea { min-height: 180px; padding: 12px 16px; line-height: 1.7; resize: vertical; }
.field-input:focus-visible, .field-select:focus-visible, .field-textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field-input[aria-invalid="true"], .field-textarea[aria-invalid="true"] { border-color: var(--error); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px;
  font: inherit; font-size: 1rem; font-weight: 900; letter-spacing: 0.04em;
  color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: 4px; cursor: pointer; text-decoration: none;
}
.btn:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-dark { color: var(--text); background: var(--bg); }
.btn-dark:hover { color: var(--text); background: #000; }

.signup-terms {
  margin-top: 16px; padding: 14px 16px;
  font-size: 0.875rem; color: var(--text-sub);
  border-left: 3px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.signup-terms dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; }
.signup-terms dt { font-weight: 700; color: var(--text); }
.signup-terms p { margin-top: 8px; }
.signup-terms a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 480px) {
  .signup-terms dl { grid-template-columns: 1fr; gap: 0; }
  .signup-terms dd + dt { margin-top: 6px; }
}

.form-status { margin-top: 12px; font-weight: 700; min-height: 1.8em; }
.form-status.is-success { color: var(--text); }
.form-status.is-success::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--accent); border-radius: 50%; }
.form-status.is-error { color: var(--error); }
.noscript {
  margin-top: 12px; padding: 12px 16px; font-weight: 700;
  color: var(--text); border: 2px solid var(--accent); border-radius: 4px;
}

/* 迷惑送信よけの隠し入力(画面外) */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 比較表 ---------- */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg); border-top: 4px solid var(--accent);
}
.compare {
  width: 100%; min-width: 760px;
  border-collapse: separate; border-spacing: 0;
  font-size: 0.95rem; text-align: left;
}
.compare th, .compare td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { padding-top: 18px; padding-bottom: 18px; font-weight: 900; }
.compare thead th:first-child, .compare th[scope="row"] {
  position: sticky; left: 0; z-index: 1;
  width: 10rem; font-weight: 400; color: var(--text-mute); background: var(--bg);
  box-shadow: inset -1px 0 0 var(--line);
}
.compare .col-sub { display: block; font-size: 0.8rem; font-weight: 400; color: var(--text-mute); }
.compare .col-sub-accent { color: var(--accent); }
.compare .cell-sub { display: block; font-size: 0.8rem; color: var(--text-mute); }
.compare .row-badge { display: block; font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.compare .strong { font-weight: 700; }
.compare .strong-accent { font-weight: 700; color: var(--accent); }
.table-caption-note { font-size: 0.875rem; color: var(--text-mute); }
.table-hint { display: none; font-size: 0.85rem; color: var(--text-mute); }
.table-notes p { font-size: 0.9rem; color: var(--text-sub); }
.table-notes p + p { margin-top: 8px; }
/* 文中のリンクもタップ対象を 44px 確保 */
.table-notes a, .about a, .page p a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 720px) {
  .compare { min-width: 640px; font-size: 0.9rem; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare thead th:first-child, .compare th[scope="row"] { width: 7.5rem; }
  .table-hint { display: block; }
}

/* ---------- できること・選択肢 ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px; background: var(--line); list-style: none; padding: 0;
}
.feature-grid li { padding: 32px; background: var(--bg); }
.feature-grid li > * + * { margin-top: 12px; }
.feature-num { font-size: 2.5rem; line-height: 1; font-weight: 900; color: var(--accent); }
.feature-grid h3, .option-grid h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.feature-grid p:not(.feature-num), .option-grid p { font-size: 0.95rem; color: var(--text-sub); }

.option-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; list-style: none; padding: 0;
}
.option-grid li { padding: 28px; background: var(--bg); border-top: 4px solid var(--text); }
.option-grid li.is-accent { border-top-color: var(--accent); }
.option-grid h3 { font-size: 1.3rem; font-weight: 900; }
.option-grid li > * + * { margin-top: 10px; }

/* ---------- 載せるもの・載せないもの ---------- */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.policy-box { padding: 28px; border: 1px solid var(--line); background: var(--bg); }
.policy-box h3 { font-size: 1.2rem; font-weight: 900; }
.policy-box.is-yes h3 { color: var(--accent); }
.policy-box ul { margin-top: 12px; padding-left: 1.2em; color: var(--text-sub); }
.policy-box li + li { margin-top: 6px; }
.policy-box .sub { display: block; font-size: 0.875rem; color: var(--text-mute); }

/* ---------- 公開までの予定 ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 32px 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem;
  color: var(--text); border: 2px solid var(--text-mute); border-radius: 50%;
}
.steps li::after {
  content: ""; position: absolute; left: 21px; top: 52px; bottom: 8px;
  width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li.is-now::before { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.steps h3 { font-size: 1.15rem; font-weight: 900; line-height: 44px; }
.steps p { color: var(--text-sub); }

/* ---------- チーム関係者向けの帯 ---------- */
.band-accent { background: var(--accent); color: var(--on-accent); }
.band-accent .container {
  display: flex; flex-wrap: wrap; gap: 24px 32px;
  justify-content: space-between; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.band-accent .band-text { flex: 1 1 420px; }
.band-accent h2 { font-size: clamp(1.35rem, 4.5vw, 1.6rem); font-weight: 900; }
.band-accent p { margin-top: 12px; font-size: 0.95rem; }
.band-accent :focus-visible { outline-color: var(--on-accent); }

/* ---------- 運営者について ---------- */
.about p { color: var(--text-sub); max-width: 760px; }
.about p + p { margin-top: 12px; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: space-between; align-items: flex-start;
  padding-top: 40px; padding-bottom: 48px;
}
.footer-operator { font-weight: 900; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; padding: 0; }
.site-footer a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9rem; text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* ---------- 固定ページ ---------- */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(1.6rem, 6vw, 2.25rem); font-weight: 900; line-height: 1.4; }
.page .updated { margin-top: 8px; font-size: 0.875rem; color: var(--text-mute); }
.page .page-lead { margin-top: 20px; color: var(--text-sub); }
.page h2 {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 1.3rem; font-weight: 900; line-height: 1.5;
}
.page h3 { margin-top: 24px; font-size: 1.05rem; font-weight: 700; }
.page p, .page li, .page dd { color: var(--text-sub); }
.page h2 + p, .page h2 + ul, .page h2 + ol, .page h2 + dl, .page h3 + p, .page h3 + ul { margin-top: 12px; }
.page p + p { margin-top: 10px; }
.page ul, .page ol { padding-left: 1.4em; }
.page li + li { margin-top: 8px; }
.page .rules li { padding-left: 4px; }
.page .note { margin-top: 12px; font-size: 0.9rem; color: var(--text-mute); }
.def-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.def-list dt { font-weight: 700; color: var(--text); }
@media (max-width: 560px) {
  .def-list { grid-template-columns: 1fr; gap: 0; }
  .def-list dd + dt { margin-top: 12px; }
}
.plain-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 0.95rem; }
.plain-table th, .plain-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.plain-table thead th { color: var(--text-mute); font-weight: 400; background: var(--bg-2); }
.plain-table tbody th { font-weight: 700; color: var(--text); }
.plain-table td { color: var(--text-sub); }
@media (max-width: 560px) {
  .plain-table, .plain-table thead, .plain-table tbody, .plain-table tr, .plain-table th, .plain-table td { display: block; }
  .plain-table thead { position: absolute; left: -10000px; }
  .plain-table tr { border: 1px solid var(--line); }
  .plain-table tr + tr { border-top: 0; }
  .plain-table th, .plain-table td { border: 0; }
  .plain-table tbody th { padding-bottom: 0; }
}

/* ---------- 依頼フォーム ---------- */
.form-notes { margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--bg-2); }
.form-notes ul { padding-left: 1.2em; }
.contact-form { margin-top: 32px; }
.contact-form > * + * { margin-top: 24px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row > label, .form-row legend { font-weight: 700; color: var(--text); }
.req, .opt { margin-left: 8px; font-size: 0.8rem; font-weight: 700; }
.req { color: var(--accent); }
.opt { color: var(--text-mute); }
fieldset.form-row { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.form-row legend { padding: 0; margin-bottom: 8px; }
.radio-list { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.radio-item {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2);
  cursor: pointer; color: var(--text);
}
.radio-item input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.radio-item:has(input:checked) { border-color: var(--accent); }
.field-select { padding-right: 12px; }
.field-hint { font-size: 0.85rem; color: var(--text-mute); }

/* 依頼の種別: 写真の取り下げの選択肢は2行(下の行に対象の方) */
.radio-item { max-width: 100%; }
.radio-item.has-sub { padding-top: 8px; padding-bottom: 8px; line-height: 1.5; }
.radio-text { display: flex; flex-direction: column; min-width: 0; }
.radio-sub { font-size: 0.8rem; color: var(--text-mute); }

/* 写真の取り下げを選んだときの説明 */
.page .photo-notes { margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--bg-2); }
.page .photo-notes h2 { margin: 0; padding: 0; border: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.page .photo-notes ul { margin-top: 8px; padding-left: 1.2em; }
.page .photo-notes li + li { margin-top: 4px; }

/* 短めの入力欄(どの写真か) */
.field-textarea.is-short { min-height: 104px; }

/* hidden 属性の欄は、display の指定より優先して隠す */
[hidden] { display: none !important; }

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .feature-grid li, .option-grid li, .policy-box { padding: 24px 20px; }
  .btn { width: 100%; }
  .steps li { padding-left: 60px; }
}

/* ---------- チームページ ---------- */
.team-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.page .team-review {
  margin-bottom: 28px; padding: 10px 14px;
  font-size: 0.875rem; color: var(--text-sub);
  border-left: 3px solid var(--accent); background: var(--bg-2);
}
/* チームに確認済みのページ: 線を太くし、文字を本文の色にする */
.page .team-review.is-confirmed { color: var(--text); border-left-width: 6px; }
.team-meta {
  display: flex; flex-wrap: wrap; gap: 4px 28px;
  margin-top: 16px; font-size: 0.95rem;
}
.team-meta > div { display: flex; gap: 10px; min-width: 0; }
.team-meta dt { flex: none; color: var(--text-mute); }
.team-meta dd { color: var(--text); min-width: 0; }
.team-meta .team-meta-wide { flex-basis: 100%; }
.page .team-scope { margin-top: 12px; color: var(--text); }
.page .team-official { margin-top: 8px; }
.team-official-link { font-weight: 700; }
.team-items { display: grid; gap: 12px; margin-top: 16px; }
.team-item { padding: 16px 20px; background: var(--bg-2); border-left: 4px solid var(--accent); }
.team-item.is-unknown { background: transparent; border: 1px dashed var(--line); border-left: 4px dashed var(--text-mute); }
.page .team-item-title { margin-top: 0; font-size: 0.9rem; font-weight: 700; color: var(--text-mute); }
.page .team-item-text { margin-top: 4px; font-size: 1.05rem; color: var(--text); }
.page .team-item-gap { margin-top: 6px; font-size: 0.9rem; color: var(--text-sub); }
.page .team-item-unknown { margin-top: 4px; color: var(--text-mute); }
.page .team-item-source { margin-top: 4px; font-size: 0.8rem; color: var(--text-mute); }
.team-fix { margin-top: 12px; }
.team-fix .team-fix-btn { margin-top: 16px; }
.team-notes { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.page .team-notes .note { margin-top: 0; }
.page .team-notes .note + .note { margin-top: 8px; }
@media (max-width: 480px) {
  .team-item { padding: 14px 16px; }
  .team-meta { gap: 2px 20px; }
}

/* チーム名とロゴ(ロゴがなければ、全チーム同じ色の角丸に頭文字) */
.team-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.team-head h1 { min-width: 0; }
.team-logo { flex: none; width: 72px; height: 72px; }
.team-logo img { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #ffffff; }
.team-logo-ph {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 8px;
  font-size: 1.9rem; font-weight: 900; line-height: 1;
  color: #e3ecf2; background: #26313b;
}

/* 写真(最大3枚。全チーム同じ 3:2 の枠で切り抜く)。.page ul / .page li の余白より強く効くよう .page を付ける */
.page .team-photos {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.page .team-photos li { margin: 0; padding: 0; min-width: 0; }
.team-photo { margin: 0; min-width: 0; }
.team-photo-frame { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.team-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page .team-photo figcaption { margin-top: 6px; font-size: 0.85rem; line-height: 1.6; color: var(--text-sub); }
.page .team-media-source { margin-top: 10px; font-size: 0.8rem; color: var(--text-mute); }
.page .team-media-note { margin-top: 12px; font-size: 0.9rem; color: var(--text-mute); }
/* 写真の下の、写真の取り下げの入口 */
.page .team-photo-takedown { margin-top: 4px; font-size: 0.875rem; color: var(--text-sub); }
.page .team-photo-takedown a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 560px) {
  /* スマホ: 1枚目を横いっぱい、残り2枚を半分の幅で下に並べる */
  .page .team-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .page .team-photos > li:first-child { grid-column: 1 / -1; }
  .team-head { gap: 12px; }
  .team-logo, .team-logo img, .team-logo-ph { width: 56px; height: 56px; }
  .team-logo-ph { font-size: 1.5rem; }
}

/* 掲載しているチームの一覧と、チームページの戻りリンク */
.page .team-back { margin-top: 32px; }
.page .team-back a { display: inline-flex; align-items: center; min-height: 44px; }
.hero .hero-teams-link { margin-top: 20px; font-size: 0.95rem; }
.hero .hero-teams-link a { display: inline-flex; align-items: center; min-height: 44px; }
.team-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.team-list li { margin: 0; }
.team-list-link {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  min-height: 44px; padding: 10px 16px;
  background: var(--bg-2); border-left: 4px solid var(--accent);
  color: var(--text); text-decoration: none; min-width: 0;
}
.team-list-name { font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.team-list-meta { font-size: 0.9rem; color: var(--text-mute); }
.team-list-link:hover .team-list-name, .team-list-link:focus-visible .team-list-name { text-decoration-thickness: 2px; }
.team-list-intro p { margin-top: 12px; }
.team-links { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.team-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.team-links a { display: inline-flex; align-items: center; min-height: 44px; }
