/* ==========================================================
   多摩大橋クリーンフェスティバル 2026 — 追加CSS
   index2.html は一切編集せず、このCSSだけでレイアウトを整えます。
   2200px固定の Fireworks 書き出しを、幅に追従する縦長LPに再構成。
   基準: body 幅（最大1100px）= コンテナ。cqw は body 幅の 1%。
   ========================================================== */

:root {
  --ink: #222;
  --pink: #d24d7a;
  --teal: #2bb5a8;
  --paper: #f8f8f8;
  --page-max: 1100px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic", "Meiryo", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0 auto;
  max-width: var(--page-max);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  container-type: inline-size;   /* 以降 cqw = ページ幅の1% */
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; border: 0; }

/* ---------- 1. ヒーロー（table.center-table1） ---------- */

html body table.center-table1 {
  display: block;
  width: 100%;
  margin: 0;
  background-size: 100% 100%;     /* 橋の背景画像を表全体にフィット */
  background-repeat: no-repeat;
}

.center-table1 tbody {
  display: grid;
  grid-template-columns: minmax(0, 675fr) minmax(0, 850fr) minmax(0, 675fr);
  /* r1 / r2 / 会場上の余白(156px相当) / 交通案内 / 橋の見せ場 */
  grid-template-rows: auto auto calc(156 / 2200 * 100cqw) auto auto;
}

.center-table1 tr { display: contents; }

.center-table1 td {
  display: block;
  padding: 0;
  min-width: 0;
}

.center-table1 td img { display: block; width: 100%; height: auto; }

/* スペーサー用の1x1画像セルは不要 */
.center-table1 td:has(> img[src*="spacer"]) { display: none; }

/* タイトル・日時 */
.center-table1 td:has(> img[name="index2_r1_c1"]) { grid-column: 1 / -1; grid-row: 1; }
/* 会場名 */
.center-table1 td:has(> img[name="index2_r2_c1"]) { grid-column: 1 / -1; grid-row: 2; }
/* 昼も！ */
.center-table1 td:has(> img[name="index2_r3_c1"])  { grid-column: 1; grid-row: 3 / 5; }
/* 中央上 */
.center-table1 td:has(> img[name="index2_r3_c7"])  { grid-column: 2; grid-row: 3; }
/* 夜も！ */
.center-table1 td:has(> img[name="index2_r3_c14"]) { grid-column: 3; grid-row: 3 / 5; }
/* 交通案内テキスト */
.center-table1 td:has(> ul.txt01) { grid-column: 2; grid-row: 4; }
/* 橋を見せる空き行 */
.center-table1 td[colspan="18"]:not(:has(img)) {
  grid-column: 1 / -1;
  grid-row: 5;
  aspect-ratio: 2200 / 658;
}

/* 交通案内 */
.txt01 {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: max(11px, 1.7cqw);
  line-height: 1.1;
  font-weight: 500;
  color: #333;
}
.txt01 li {
  position: relative;
  margin: 0 0 0.9em;
  padding-left: 1em;
  padding-bottom: 0;
}
.txt01 li::before {
  content: "○";
  position: absolute;
  left: 0;
}
/* JSで包む「駐車場所〜」の注記。無くても崩れない */
.parking-note {
	display: block;
	margin-left:auto;
	margin-right:auto;
	font-size: 0.8em;
	font-weight: 100;
	line-height: 1.0;
}

/* HTML側で重複している注記(p)は非表示 */

/* ---------- 2. Instagram誘導（body直下のimg） ---------- */

html body > img {
  display: block;
  width: calc(1600 / 2200 * 100%);
  margin: 0 auto;
  height: auto;
}

/* ---------- 3. SPECIAL THANKS（協賛者） ---------- */

html body div.client {
  width: 100%;
  margin: 0 auto;
}

.client p { margin: 0; }
.client img {
  display: block;
  width: calc(1600 / 2200 * 100%);
  margin: 0 auto;
  height: auto;
}

.client [class^="box"] > div {
  text-align: center;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* 金額別4段階: サイズは box1 > box2 > box3 > box4 */
.box1 {
  margin: 3cqw auto 7cqw;
  padding: 0 4%;
  text-align: center;
}
.box1 > div {
  font-size: max(15px, 3.1cqw);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.box2, .box3, .box4 {
  display: grid;
  margin: 1cqw auto 5cqw;
  gap: 0 2cqw;
  align-items: start;
  white-space:nowrap;
}
.box2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 74%; font-size: max(12px, 2cqw);  line-height: 1.75; }
.box3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 76%; font-size: max(11px, 1.7cqw); line-height: 1.7; }
.box4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 86%; font-size: max(10px, 1.4cqw); line-height: 1.7; }

/* ---------- 4. パンフレット ---------- */

.pamphlet {
  margin: 8cqw auto;
  text-align: center;
  font-size: max(15px, 3cqw);
  font-weight: 500;
  letter-spacing: 0.18em;
}
.pamphlet a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 0.15em;
}
.pamphlet a:hover,
.pamphlet a:focus-visible { color: var(--pink); }

/* ---------- 5. ACCESS ---------- */

/* 空のダミー表は非表示 */
div.access > table { display: none; }

div.access { margin: 0; }
div.access h2 { margin: 0 auto; width: 80%; }
div.access h2 img { display: block; width: 100%; height: auto; }

html body table.access {
  display: block;
  width: 80%;
  margin: 0 auto 6cqw;
}
table.access tbody {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  align-items: center;
}
table.access tr { display: contents; }
table.access td { display: block; width: auto; padding: 0; }
table.access td img { display: block; width: 100%; height: auto; }
table.access td iframe {
  display: block;
  width: 100%;
  aspect-ratio: 1100 / 718;
  height: auto;
  border: 0;
}
table.access td p {
  margin: 0;
  padding-left: 12%;
  font-size: max(14px, 2.5cqw);
  font-weight: 500;
  line-height: 1.7;
}
table.access td p strong { font-weight: 500; }

/* ---------- 6. フッター ---------- */

html body div.footer {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: auto;
  aspect-ratio: 2200 / 750;
  padding: 0 5% 1.8cqw;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.footer2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 3cqw;
  margin-bottom: 2.4cqw;
}
.footerlogo img { display: block; width: calc(328 / 2200 * 100cqw); height: auto; }
.footerline img { display: block; width: calc(250 / 2200 * 100cqw); height: auto; }

.footertxt h3 {
  margin: 0 0 0.4em;
  font-size: max(11px, 1.7cqw);
  font-weight: 700;
}
.footertxt p {
  margin: 0;
  font-size: max(10px, 1.45cqw);
  line-height: 1.65;
  color: #333;
}

/* 主催・後援 */
.footer > div:last-child {
  text-align: center;
  font-size: max(9px, 1.3cqw);
  line-height: 1.6;
  color: #333;
}

div.client {
	margin-left: auto;
	margin-right: auto;
	/* または margin: 0 auto; でも可 */
    width: 2200px; /* 必要に応じて幅を指定 */
}

div.footer footerlogo {
	margin: 0;
}
div.footer footeline {
	margin: 0;
}
div.access td {
	width: 50%;
}
div.access td p {
	font-size:24px;
	font-weight:200;
}


/* ---------- 7. スクロール表示（JSが .js-reveal を付けたときだけ有効） ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .js-reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- 8. スマホ（〜560px） ---------- */

@media (max-width: 560px) {
  html body div.footer {
    aspect-ratio: auto;
    min-height: 92cqw;
    padding: 24cqw 5% 3cqw;
    background-size: cover;
  }
  .footer2 {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
    gap: 3cqw;
  }
  .footerlogo img { width: 34cqw; }
  .footerline img { width: 26cqw; }
  .box2 { max-width: 92%; }
  .box3 { max-width: 94%; }
  .box4 { max-width: 96%; gap: 0 1cqw; }
  table.access td p { padding-left: 6%; }
}
