/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #f08300;
  --red-dark: #d97400;
  --red-light: #fff4e6;
  --black: #2b2b2b;
  --text: #333;
  --text-sub: #777;
  --gray-bg: #f7f7f7;
  --border: #eaeaea;
  --white: #fff;
  --darts-bg: #fff7ec;
  --radius: 8px;
  --shadow: 0 1px 6px rgba(0,0,0,.06);
  --page-max: 720px;
  --page-pad: 16px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Hiragino Sans', 'Noto Sans JP', Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  word-break: break-word;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; vertical-align: bottom; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== PAGE WRAPPER ===== */
.page-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ===== SITE HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--red);
  padding: 10px var(--page-pad) 8px;
  overflow-x: hidden;
}
.site-header-inner {
  /* B46: 情報提供｜Rettyはロゴの下・左寄せ（全幅共通の確定デザイン） */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  max-width: var(--page-max);
  margin: 0 auto;
}
.header-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}
.header-logo-lockup .logo-ds-img {
  height: 24px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}
.header-logo-lockup .header-x {
  color: #ccc;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}
.header-logo-lockup .header-retty-img {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.header-sp { display: none; }
.header-provide { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-provide span { font-size: 11px; color: #8a8a8a; white-space: nowrap; }
.site-header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: auto;
}
.logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: .02em;
  white-space: nowrap;
}
.logo span { color: var(--red); }
.logo-x {
  font-size: 14px;
  color: #bbb;
  font-weight: 400;
}
.logo-retty {
  height: 22px;
  width: auto;
  display: block;
}
.powered {
  margin-left: auto;
  font-size: 10px;
  color: #999;
  white-space: nowrap;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 26px var(--page-pad) 22px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.60) 0%, rgba(10,10,10,.72) 55%, rgba(10,10,10,.82) 100%);
  z-index: -1;
}
.hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(19px, 5vw, 25px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 14px;
  letter-spacing: .01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.hero-chip {
  font-size: 12px;
  color: #555;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
}
.hero-lead {
  font-size: 13px;
  color: #444;
  line-height: 1.85;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ===== TOC ===== */
.toc {
  background: var(--gray-bg);
  border-top: 3px solid var(--red);
  padding: 18px var(--page-pad);
}
.toc-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}
.toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.toc-list {
  list-style: none;
  display: grid;
  gap: 5px;
}
.toc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
}
.toc-num.is-darts {
  background: var(--red-dark);
  font-size: 12px;
}
.toc-list a { color: var(--text); }
.toc-list a:hover { color: var(--red); text-decoration: none; }

/* ===== SECTION LABEL ===== */
.section-label {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 12px;
  display: inline-block;
  margin: 24px 0 0;
}

/* ===== RESTAURANT CARD ===== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 10px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.card-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  min-width: 32px;
  margin-top: 2px;
}
.card-h2 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 3px;
}
.card-name {
  font-size: 12px;
  color: var(--text-sub);
}

/* ── TAGS ── */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
}
.tag-genre { color: #555; border-color: #ccc; background: #fafafa; }
.tag-area  { color: #555; border-color: #ccc; background: #fafafa; }
.tag-scene { color: var(--red-dark); border-color: #ffc98a; background: var(--red-light); }

/* ── PHOTO GRID ──
   ▲FB 2026-08-03（B49）：行を固定px・列を1frにしていたため、カード幅が広いほど
   サブ写真が横長スリットに潰れ、正方形素材で最大62%が切り落とされていた
   （640px幅でサブ2が2.32:1、1440px幅で2.63:1）。
   列・行とも比率で定義し、どの幅でもメイン＝ほぼ正方形／サブ＝約5:4に収める。 */
.photo-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 13 / 8;
  gap: 2px;
  background: #ddd;
}
.photo-grid .photo-main {
  grid-column: 1;
  grid-row: 1 / 3;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;  /* 既定は中央。個別指定は texts 側の photos[].pos で上書き */
  display: block;
}

/* ── PHOTO GRID／パターンB：正方形×3 ──
   2026-08-03 デザイン比較用。3枚を等幅の正方形で横並びにする。
   コンテナ側に aspect-ratio を持たせると gap の分だけ縦長になるため、
   各 img に aspect-ratio:1 を与えてセルを厳密な正方形にする。
   → 正方形素材の切り落としは3枚とも0%（現行パターンはサブ2枚が20%）。
   generate.py の PHOTO_LAYOUT=square3 のとき .photo-3sq が付く。 */
.photo-grid.photo-3sq {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  aspect-ratio: auto;
}
.photo-grid.photo-3sq .photo-main {
  grid-column: auto;
  grid-row: auto;
}
.photo-grid.photo-3sq img {
  aspect-ratio: 1 / 1;
  height: auto;
}

/* ▲2026-09-09: 画像フォールバック（imgFB）が全候補を使い切ったときの代替表示。
   min-height をインラインで当てるとグリッドの列最小幅が膨らみ、SPで3枚目が
   はみ出すため、寸法は各レイアウトの規則に従わせる。 */
img.img-fb {
  background: #eceff3;
  display: block;
  min-width: 0;
  min-height: 0;
}
.photo-grid img.img-fb { width: 100%; height: 100%; }
.photo-grid.photo-3sq img.img-fb { height: auto; aspect-ratio: 1 / 1; }
.darts-map img.img-fb { width: 100%; height: 100%; }
/* ▲2026-08-24: CDN変換でEXIF Orientationが落ちた場合の保険。
   既定値だが明示しておく（枠は aspect-ratio で守られるためレイアウトは崩れない）。
   焼き込み済みの横倒しは texts側の photos[].rotate で個別是正する（B50/C30）。 */
.photo-grid img { image-orientation: from-image; }

/* ── CARD BODY ── */
.card-body {
  padding: 14px;
}
.card-desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 14px;
}

/* ── REVIEWS ── */
.reviews-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.reviews-head::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.review-list { display: grid; gap: 5px; margin-bottom: 14px; }
.review-item {
  background: var(--gray-bg);
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ── INFO TABLE ── */
.info-table {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  font-size: 12px;
}
.info-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  background: var(--gray-bg);
  padding: 7px 9px;
  font-weight: 700;
  color: var(--text-sub);
  display: flex;
  align-items: center;
}
.info-val {
  padding: 7px 9px;
  color: var(--text);
}

/* ── CTA ── */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 360px) {
  .cta-row { grid-template-columns: 1fr; }
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  transition: opacity .15s;
}
.btn:hover { opacity: .82; text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-outline  { background: #fff; color: var(--red); border: 2px solid var(--red); }
.cta-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 7px;
}

/* ===== DARTS SECTION ===== */
.darts-section {
  background: var(--darts-bg);
  border: 1px solid #ffe2c2;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 4px 0 20px;
}
.darts-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid #ffe2c2;
}
.darts-eyebrow {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 5px;
}
.darts-h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 8px;
}
.darts-lead {
  font-size: 12px;
  color: #777;
  line-height: 1.75;
}
.darts-shop {
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.darts-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
@media (max-width: 400px) {
  .darts-shop { flex-direction: column; }
  .darts-img { width: 100%; height: 160px; }
}
.darts-info { flex: 1; min-width: 0; }
.darts-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}
.darts-meta {
  font-size: 11px;
  color: #888;
  line-height: 1.65;
  margin-bottom: 6px;
}
.darts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}
.darts-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid #ffc98a;
  color: var(--red-dark);
  background: var(--red-light);
  white-space: nowrap;
}
.darts-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 10px;
}
.btn-darts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.btn-darts:hover { opacity: .85; text-decoration: none; }
.btn-darts::after { content: ' →'; }

/* ===== DARTS AREA CTA ===== */
.darts-cta {
  background: var(--darts-bg);
  border: 1.5px solid #ffce99;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0 20px;
  box-shadow: 0 2px 12px rgba(240,131,0,.1);
}
.darts-cta-head {
  padding: 18px 18px 14px;
}
.darts-cta-eyebrow {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.darts-cta-h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 8px;
}
.darts-cta-lead {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}
.darts-map {
  position: relative; display: block; margin: 0 18px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffe2c2;
  /* ▲B33再発(2026-08-24): 支給PNGに右11〜12px・下16pxの白余白が焼き込まれており、
     枠比(1304/625=2.086)と実画像の内容比が合わず右下に隙間が出ていた。
     余白をトリムした実寸 686x312 を正とし、枠比を実画像に一致させる。 */
  aspect-ratio: 686 / 312;
  background:#f0f0f0;
}
.darts-map img {
  position: absolute; inset: 0;
  width:100%; height:100%;
  object-fit:cover; object-position: center center;
  display:block; transition:transform .3s ease;
}
.darts-map:hover img { transform: scale(1.03); }
.darts-map-caption {
  position:absolute; left:0; right:0; bottom:0;
  padding:18px 12px 8px;
  background:linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  color:#fff; font-size:12px; font-weight:600; z-index:2;
  display:flex; align-items:center; gap:6px;
}
.darts-map-caption::before { content:'📍'; font-size:11px; }
.darts-cta-foot {
  padding: 14px 18px 18px;
}
.darts-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.darts-feature {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #ffc98a;
  color: var(--red-dark);
  background: var(--red-light);
  white-space: nowrap;
}
.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  /* ▲2026-09-01 ダーツライブ指摘: SPで長いエリア名が折り返す際にテキストが
     ボタン端に接していたため、左右に余白を確保し中央揃えを明示する */
  padding: 14px 16px;
  text-align: center;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(240,131,0,.3);
}
.btn-map:hover { opacity: .9; text-decoration: none; }
.btn-map::after { content: ' →'; }
.darts-cta-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 10px;
  line-height: 1.6;
}

/* ===== SUMMARY ===== */
.summary {
  background: var(--gray-bg);
  border-top: 3px solid var(--red);
  padding: 22px var(--page-pad);
  margin: 0 calc(-1 * var(--page-pad));
}
.summary h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}
.summary p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 8px;
}
.summary p:last-child { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq { margin: 18px 0 28px; }
.faq-title {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.faq-q {
  display: flex;
  gap: 8px;
  padding: 11px 12px;
  background: var(--gray-bg);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  align-items: flex-start;
}
.faq-q::before {
  content: 'Q';
  background: var(--red);
  color: #fff;
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 12px;
  margin-top: 1px;
}
.faq-a {
  display: flex;
  gap: 8px;
  padding: 11px 12px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.75;
  align-items: flex-start;
}
.faq-a::before {
  content: 'A';
  background: #444;
  color: #fff;
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 12px;
  margin-top: 1px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #fafafa;
  color: #999;
  padding: 24px var(--page-pad);
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer-ds { color: var(--black); }
.footer-ds .ll { color: var(--red); }
.footer-x { color: #bbb; font-weight: 400; }
.footer-retty { height: 26px; width: auto; }

/* ===== UTILITY ===== */
.mt-0 { margin-top: 0; }

.logo-ds-img { height: 26px; width: auto; display:block; }
.footer-ds-img { height: 26px; width: auto; display:block; }
.footer-logo { display:flex; align-items:center; justify-content:center; gap:10px; }

/* ===== SP header adjustments ===== */
/* 縦積み(ロゴ下の情報提供)は全幅共通(B46)。SPではロゴ高さのみ縮小 */
@media (max-width: 600px) {
  .site-header { padding: 8px var(--page-pad) 7px; }
  .header-logo-lockup .logo-ds-img { height: 22px; }
  .header-logo-lockup .header-retty-img { height: 22px; }
  .header-provide span { font-size: 11px; }
}
@media (max-width: 380px) {
  .header-logo-lockup .logo-ds-img { height: 20px; }
  .header-logo-lockup .header-retty-img { height: 20px; }
  .header-logo-lockup .header-x { font-size: 13px; }
  .header-provide span { font-size: 10px; }
}

/* ===== 極小画面(320px)対応: フッターロゴの横溢れを防ぐ ===== */
@media (max-width: 360px) {
  .footer-logo { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .footer-ds-img { height: 22px; }
  .footer-retty  { height: 22px; }
  .footer-x { font-size: 12px; }
}
@media (max-width: 330px) {
  .footer-logo { flex-direction: column; gap: 4px; }
  .footer-x { display: none; }
}
