/*
 * ネーミングライツ募集ナビ 公開ページ
 * コンセプト: 公共サイン × 新聞の相場表 ＋ まちのイラストと柔らかい配色（KICKOFF 6-2 / docs/mockup/top.html）
 * カードの格子・グラデーション・丸いアイコンチップは使わない。
 */
:root {
  --ink: #141414;
  --ink-2: #3d3d3d;
  --rule: #d4d4d4;
  --bg: #ffffff;
  --green: #0b6b3a;
  --red: #b3261e;
  --kinari: #f7f2e8;
  --kinari-rule: #e6decf;
  --green-pale: #eef5f0;
  --red-pale: #fbeae6;
  --red-pale-rule: #f0cfc8;
  --gray-stamp: #6b6b6b;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-head: "Zen Maru Gothic", "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
a { color: var(--ink); }
img { max-width: 100%; height: auto; }
.num, .price { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---- 最上部の帯 ---- */
.topbar { background: var(--green); color: #e8f1ec; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding-top: 8px; padding-bottom: 8px; font-size: 13px; }

/* ---- ヘッダー・ロゴ ---- */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 44px; height: 56px; }
.logo__text { display: flex; flex-direction: column; }
.logo__upper { font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; }
.logo__lower { font-family: var(--font-head); font-size: 27px; font-weight: 900; line-height: 1.1; }
.logo__accent { color: var(--green); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* ---- 見出し（下に緑の罫線 3px） ---- */
h1, h2 { font-family: var(--font-head); font-weight: 700; }
.stitle { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 3px solid var(--green); padding-bottom: 10px; margin-bottom: 0; }
.stitle h2, .stitle h3 { margin: 0; font-size: 25px; line-height: 1.4; }
.columns__side .stitle h2 { font-size: 21px; }
.stitle a { font-size: 14px; }

/* ---- メインビジュアル ---- */
.hero { background: var(--kinari); border-top: 1px solid var(--kinari-rule); }
.hero__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 52px; }
.hero__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero__eyebrow { margin: 0; font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: 0.08em; }
.hero__title { margin: 0; font-size: 42px; line-height: 1.45; }
.hero__lead { margin: 0; font-size: 17px; line-height: 1.9; color: var(--ink-2); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__figure { flex: 1 1 460px; min-width: 0; margin: 0; }
.hero__figure img { display: block; width: 100%; max-width: 580px; margin: 0 auto; }
.hero__figure figcaption { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; border: 2px solid var(--green); cursor: pointer; font-family: inherit; }
.btn--fill { background: var(--green); color: #fff; }
.btn--line { background: #fff; color: var(--green); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---- 注目の帯 ---- */
.featured { background: var(--red-pale); border-top: 1px solid var(--red-pale-rule); border-bottom: 1px solid var(--red-pale-rule); }
.featured__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 18px; padding-bottom: 18px; text-decoration: none; color: var(--ink); }
.chip { display: inline-block; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 8px; border-radius: 3px; }
.featured__title { flex: 1 1 360px; font-size: 17px; font-weight: 700; line-height: 1.6; }
.featured__price { font-size: 15px; font-variant-numeric: tabular-nums; }
.featured__price small { font-size: 12px; color: var(--ink-2); }

.issuer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding-top: 18px; font-size: 15px; }
.issuer-links__label { font-size: 13px; color: var(--ink-2); }

/* ---- 2段組 ---- */
.columns { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 32px; padding-bottom: 48px; }
.columns__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.columns__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* ---- 募集一覧（カードではなく罫線で区切った行） ---- */
.olist { display: flex; flex-direction: column; }
.olist__head { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--ink); font-size: 12px; color: var(--ink-2); }
.olist__c1 { flex: 0 0 84px; }
.olist__c2 { flex: 1 1 260px; min-width: 0; }
.olist__c3 { flex: 0 0 150px; text-align: right; }
.olist__c4 { flex: 0 0 180px; }
.olist__count { margin: 16px 0 0; font-weight: 700; }
.orow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.orow:hover .orow__facility { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.orow__name { display: flex; flex-direction: column; gap: 2px; }
.orow__meta { font-size: 13px; color: var(--ink-2); }
.orow__facility { font-size: 17px; font-weight: 700; line-height: 1.5; }
.orow__price { display: flex; flex-direction: column; }
.orow__price .price { font-size: 22px; font-weight: 700; line-height: 1.3; }
.orow__sub { font-size: 12px; color: var(--ink-2); }
.orow__terms { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.6; }
.orow__sub2 { color: var(--ink-2); }
.deadline { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.more { padding-top: 14px; margin: 0; font-size: 15px; font-weight: 700; }
.empty { padding: 16px 0; margin: 0; color: var(--ink-2); }
.subhead { margin: 28px 0 0; font-size: 16px; color: var(--ink-2); }

/* ---- 状況の印（四角い枠線の判子） ---- */
.stamp { display: inline-block; border: 2px solid var(--ink-2); color: var(--ink-2); font-size: 13px; font-weight: 700; padding: 2px 6px; border-radius: 3px; line-height: 1.5; white-space: nowrap; }
.stamp--open { border-color: var(--red); color: var(--red); }
.stamp--soon { border-color: var(--red); background: var(--red); color: #fff; }
.stamp--planned, .stamp--sounding { border-color: var(--gray-stamp); color: var(--ink-2); }
.stamp--yearround { border-color: var(--green); color: var(--green); }
.stamp--proposal { border-color: var(--green); background: var(--green); color: #fff; }
.stamp--closed, .stamp--result { border-color: var(--rule); color: #6b6b6b; }

/* ---- 決まった愛称 ---- */
.decided { background: var(--green-pale); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.decided__grid { display: flex; flex-wrap: wrap; gap: 20px; }
.decided__item { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.plate { background: var(--green); color: #fff; border-radius: 6px; padding: 14px 16px; box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 4px #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.4; }
.decided__meta { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

.about-nr p { margin: 14px 0 0; line-height: 1.9; color: var(--ink-2); }

/* ---- 右欄 ---- */
.market { display: flex; flex-direction: column; gap: 14px; }
.market__note { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.market__row { display: flex; flex-direction: column; gap: 4px; }
.market__label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.market__label .num { font-weight: 700; }
.bar { height: 10px; background: #ededed; }
.bar__fill { height: 10px; background: var(--ink); }
.strong-link { font-size: 14px; font-weight: 700; }
.alist { display: flex; flex-direction: column; }
.alist__item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.6; }
.alist__item:hover span:last-child { text-decoration: underline; }
.alist__no { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.note-panel { background: var(--kinari); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.note-panel h2 { margin: 0; font-size: 17px; }
.note-panel h2 + p { margin-top: 0; }
.note-panel p { margin: 0 0 8px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.note-panel .small { font-size: 13px; line-height: 1.8; }
.report { font-size: 13px; }

/* ---- 下層ページ ---- */
.page { padding-top: 16px; padding-bottom: 56px; }
.page--narrow { max-width: 820px; }
.page__title { margin: 8px 0 12px; font-size: 30px; line-height: 1.45; }
.page__lead { margin: 0 0 16px; color: var(--ink-2); }
.crumbs { font-size: 13px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }

.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 16px; background: var(--kinari); border-radius: 16px; }
.filters__item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); flex: 1 1 160px; }
.filters__item select { font: inherit; font-size: 15px; color: var(--ink); padding: 8px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.filters__check { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 42px; }
.filters__actions { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.method-notes { margin: 16px 0 0; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.method-notes div { display: flex; gap: 8px; }
.method-notes dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.method-notes dd { margin: 0; }

.detail { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.detail__main { flex: 999 1 600px; min-width: 0; }
.detail__side { flex: 1 1 280px; min-width: 0; }
.detail__status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 0; }
.detail__issuer { margin: 0; color: var(--ink-2); }
.detail__summary { font-size: 16px; line-height: 1.9; }
.spec { margin: 24px 0; border-top: 1px solid var(--ink); }
.spec > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec dt { flex: 0 0 150px; font-size: 14px; color: var(--ink-2); }
.spec dd { flex: 1 1 300px; margin: 0; }
.spec .price { font-weight: 700; font-size: 18px; }
.spec__note { display: block; font-size: 13px; color: var(--ink-2); }
.sources-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.source-line { font-size: 13px; color: var(--ink-2); word-break: break-all; }
.source-line a { color: var(--ink-2); }
.caution { margin: 20px 0 8px; padding: 16px; background: var(--kinari); border-left: 4px solid var(--green); font-size: 14px; line-height: 1.8; }
.strong-link-wrap { margin-top: 24px; }

.issuer-meta { font-size: 14px; color: var(--ink-2); margin: 0 0 24px; }
.page section + section { margin-top: 40px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table thead th { border-bottom: 1px solid var(--ink); font-size: 12px; color: var(--ink-2); font-weight: normal; white-space: nowrap; }
.table .num { font-weight: 700; white-space: nowrap; }
.table small { font-weight: normal; font-size: 11px; color: var(--ink-2); }
.source-list { list-style: none; padding: 0; margin: 12px 0 0; }
.source-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; word-break: break-all; }
.source-list__type { font-weight: 700; }

.article-index { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.article-index li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.article-index a { font-size: 18px; font-weight: 700; }
.article-index__date { display: block; font-size: 13px; color: var(--ink-2); }
.article-index p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.article__dates { font-size: 13px; color: var(--ink-2); }
.prose { line-height: 1.95; }
.prose h2 { font-size: 23px; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--green); }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.prose thead th { border-bottom: 1px solid var(--ink); }
.prose a { color: var(--green); }
.effective { margin-top: 32px; color: var(--ink-2); }
.error-page { padding-top: 48px; }

/* ---- フッター ---- */
.footer { background: var(--kinari); border-top: 1px solid var(--kinari-rule); }
.footer__inner { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; padding-bottom: 40px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.footer__note { margin: 0; font-size: 13px; line-height: 1.8; color: var(--ink-2); }

/* ---- スマホ ---- */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header { padding-top: 14px; padding-bottom: 10px; gap: 8px; }
  .nav { gap: 0 18px; font-size: 14px; }
  .nav a { padding: 6px 0; }
  .hero__inner { padding-top: 32px; padding-bottom: 36px; gap: 24px; }
  .hero__title { font-size: 32px; }
  .hero__lead { font-size: 16px; }
  .olist__head { display: none; }
  /* 行内で折り返す: 判子＋発行元・施設 → 年額 → 契約・締切 */
  .orow { align-items: flex-start; }
  .olist__c1 { flex: 0 0 auto; }
  .olist__c2 { flex: 1 1 200px; }
  .olist__c3 { flex: 1 1 auto; text-align: left; flex-direction: row; align-items: baseline; gap: 8px; }
  .olist__c4 { flex: 1 1 100%; }
  .stitle h2 { font-size: 22px; }
  .page__title { font-size: 25px; }
  .spec dt { flex-basis: 100%; }
  .decided { padding: 18px; }
}
