/* 津山建築祭 2027 — 新デザイン
   2025年版の色（えんじ #c70357）と市松模様を引き継ぎ、紙色の地と明朝見出しで組み直したもの */

:root {
  --crimson: #c70357;
  --crimson-deep: #9a0243;
  --crimson-soft: #f7e6ed;
  --ink: #1f1b1c;
  --ink-sub: #5d5557;
  --paper: #f8f5f0;
  --paper-2: #f1ece4;
  --line: rgba(31, 27, 28, .14);
  --white: #fff;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
figure { margin: 0; }

/* 市松模様（2025年版から継承） */
.mini-check, .hero-mark, .coming-check, .footer-check, .section-head::before {
  --c: var(--crimson);
  background:
    conic-gradient(var(--c) 25%, transparent 0 50%, var(--c) 0 75%, transparent 0)
    0 0 / var(--s, 12px) var(--s, 12px);
}

/* ヘッダー */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(248, 245, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mini-check { width: 24px; height: 24px; --s: 12px; }
.header-logo-ja { font-weight: 700; font-size: 18px; letter-spacing: .12em; color: var(--crimson); }
.header-logo-year { font-family: var(--mincho); font-size: 16px; color: var(--ink); }
.nav { display: flex; gap: clamp(14px, 1.8vw, 28px); font-size: 14px; }
.nav a { text-decoration: none; padding: 6px 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }
.nav-contact { color: var(--crimson); font-weight: 700; }
.nav-toggle { display: none; }

/* ヒーロー */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  height: min(calc(100svh - var(--header-h)), 860px);
  min-height: 560px;
}
.hero-text {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px var(--gutter);
}
.hero-mark {
  position: absolute; top: 0; left: var(--gutter);
  width: 168px; height: 56px; --s: 28px;
}
.hero-logo { display: flex; flex-direction: column; }
.hero-logo-ja {
  font-size: clamp(56px, 7.4vw, 108px);
  line-height: 1.1; letter-spacing: .08em;
  color: var(--crimson);
}
.hero-logo-en {
  margin-top: 14px;
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 500; letter-spacing: .26em; color: var(--ink);
}
.hero-logo-year {
  margin-top: 28px;
  font-family: var(--mincho);
  font-size: clamp(64px, 9vw, 132px);
  line-height: 1; letter-spacing: .02em; font-weight: 500;
}
.hero-date {
  margin: 36px 0 0; padding-top: 20px;
  border-top: 1px solid var(--ink);
  max-width: 420px;
  font-family: var(--mincho); font-size: clamp(20px, 2vw, 26px); font-weight: 700;
}
.hero-date span { display: block; font-family: var(--gothic); font-size: 13px; font-weight: 400; color: var(--ink-sub); }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% 50%; /* hero-joto-yukei.jpg：のれんが入る位置 */
}
.hero-photo figcaption {
  position: absolute; right: 16px; bottom: 12px;
  font-size: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* リード */
.lead {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.lead-catch {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 36px); line-height: 1.7; letter-spacing: .06em;
}
.lead-catch span { display: block; white-space: nowrap; }
.lead-text { font-size: 17px; line-height: 2.2; }

/* セクション共通 */
.section {
  padding: clamp(72px, 9vw, 128px) var(--gutter);
}
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #eee8e6; }
.section-head {
  display: flex; align-items: baseline; gap: 20px;
  padding-top: 28px; margin-bottom: clamp(36px, 5vw, 64px);
  position: relative;
}
.section-head::before {
  content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 8px; --s: 8px;
}
.section-num { margin: 0; font-family: var(--mincho); font-size: 20px; color: var(--crimson); }
.section-dark .section-num { color: #f08ab3; }
.section-dark .section-head::before { --c: #f08ab3; }
.section-title { font-family: var(--mincho); font-size: clamp(28px, 3.4vw, 44px); letter-spacing: .08em; line-height: 1.4; }

/* 建築祭について */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.about-catch { font-family: var(--mincho); font-size: clamp(19px, 1.8vw, 23px); font-weight: 700; line-height: 1.8; margin-bottom: 1.4em; }
.about-body p:not(.about-catch) { font-size: 15.5px; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-a { grid-column: 1 / -1; }
.ph-a img { aspect-ratio: 5 / 3; }
figcaption { font-size: 12px; color: var(--ink-sub); margin-top: 6px; letter-spacing: .06em; }
.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.photo-strip img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

/* プログラム（準備中） */
.coming {
  display: grid; grid-template-columns: 220px 1fr;
  background: var(--white); border: 1px solid var(--line);
}
.coming-check { --s: 44px; opacity: .9; min-height: 220px; }
.coming-body { padding: clamp(28px, 4vw, 56px); }
.coming-label { font-family: var(--mincho); font-size: 40px; line-height: 1; color: var(--crimson); margin-bottom: 16px; }
.coming-title { font-family: var(--mincho); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin-bottom: 10px; }
.coming-text { color: var(--ink-sub); margin-bottom: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border: 1px solid var(--crimson);
  color: var(--crimson); background: transparent;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn::after { content: "→"; }
.btn:hover { background: var(--crimson); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--crimson); }

/* 美作国の建築 */
.area-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.area-map { position: sticky; top: calc(var(--header-h) + 24px); }
.area-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-area {
  display: inline-block; margin-bottom: 8px; padding: 0 10px;
  font-size: 12px; font-weight: 700; color: var(--crimson); border: 1px solid var(--crimson);
}
.card-title { font-family: var(--mincho); font-size: 20px; line-height: 1.5; margin-bottom: 10px; }
.card-body p:last-child { font-size: 14px; line-height: 1.9; margin: 0; color: var(--ink-sub); }

/* 津山について */
.history-intro { columns: 2; column-gap: clamp(32px, 5vw, 72px); font-size: 15.5px; }
.history-intro p { break-inside: avoid; }
.persons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px !important; }
.person, .kabuki {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  padding: 28px; border: 1px solid rgba(255,255,255,.18);
}
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.person-name { font-family: var(--mincho); font-size: 22px; margin-bottom: 10px; color: #fff; }
.person p, .kabuki p { font-size: 15px; }
.kabuki { grid-template-columns: 1fr 1.3fr; margin-top: 24px !important; }
.kabuki figcaption { color: #b9b0ae; }

/* 開催概要 */
.overview { margin-top: 0; border-top: 2px solid var(--ink); }
.overview > div {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.overview dt { font-weight: 700; color: var(--crimson); }
.overview dd { margin: 0; font-size: 17px; }

/* 2025の記録 */
.archive-lead { font-size: 17px; margin-bottom: 48px !important; }
.archive-sub { font-family: var(--mincho); font-size: 20px; margin: 48px auto 16px !important; }
.archive-list { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.archive-list li {
  display: grid; grid-template-columns: 130px 120px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.archive-list-sm li { grid-template-columns: 130px 1fr; }
.a-date { font-family: var(--mincho); font-size: 18px; color: var(--crimson); white-space: nowrap; }
.a-cat { font-size: 12px; font-weight: 700; justify-self: start; padding: 0 10px; background: var(--ink); color: #fff; }
.a-title { font-weight: 500; line-height: 1.7; }
.a-title small { display: block; font-size: 13px; color: var(--ink-sub); font-weight: 400; }
.archive-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.committee dt { font-size: 13px; font-weight: 700; color: var(--crimson); margin-top: 12px; }
.committee dd { margin: 4px 0 0; font-size: 15px; line-height: 1.9; }
.logo-label { font-size: 13px; font-weight: 700; color: var(--crimson); margin: 16px 0 10px; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos a { background: #fff; border: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; height: 72px; }
.logos img { max-height: 44px; width: auto; max-width: 150px; }

/* お問い合わせ */
.contact {
  background: var(--crimson); color: #fff; text-align: center;
  padding: clamp(64px, 8vw, 104px) var(--gutter);
}
.contact-title { font-family: var(--mincho); font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; letter-spacing: .1em; }
.contact .btn { margin: 12px 0 20px; }
.contact-addr { font-size: 13px; opacity: .85; margin: 0; }

/* フッター */
.footer { background: var(--ink); color: #cfc7c5; text-align: center; padding: 0 var(--gutter) 40px; }
.footer-check { --c: var(--crimson); --s: 16px; height: 16px; margin: 0 calc(var(--gutter) * -1) 48px; }
.footer-logo { width: 220px; margin: 0 auto 20px; }
.copy { font-size: 12px; margin: 0; }

/* タブレット */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .25s; }
  .nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; font-size: 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .area-grid { grid-template-columns: 1fr; }
  .area-map { position: static; max-width: 480px; margin: 0 auto; }
}

/* スマホ */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 5; max-height: min(70svh, 620px); width: 100%; }
  .hero-text { padding: 56px var(--gutter) 48px; }
  .hero-mark { width: 112px; height: 28px; --s: 14px; }
  .hero-logo-ja { font-size: clamp(44px, 14vw, 64px); }
  .hero-logo-en { font-size: 10px; letter-spacing: .18em; }
  .hero-logo-year { font-size: 64px; margin-top: 20px; }
  .lead { grid-template-columns: 1fr; gap: 24px; }
  .lead-text { font-size: 15.5px; }
  .about-grid, .persons, .archive-cols, .photo-strip { grid-template-columns: 1fr; }
  .area-cards { grid-template-columns: 1fr; }
  .history-intro { columns: 1; }
  .person { grid-template-columns: 96px 1fr; gap: 16px; padding: 20px; }
  .kabuki { grid-template-columns: 1fr; padding: 20px; }
  .coming { grid-template-columns: 1fr; }
  .coming-check { min-height: 64px; --s: 32px; }
  .overview > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .archive-list li { grid-template-columns: 1fr; gap: 2px; }
  .archive-list-sm li { grid-template-columns: 1fr; }
  .a-cat { margin: 4px 0; }
  .logos a { height: 60px; padding: 10px 12px; }
  .logos img { max-height: 36px; max-width: 120px; }
}

/* 開催概要：実行委員会・企画協力 */
.overview-team { margin-top: 24px !important; }

.committee-asof { font-size: 12px; color: var(--ink-sub); margin: -8px 0 4px; }
.office { margin: 24px auto 0; max-width: 420px; font-size: 14px; line-height: 1.9; }
.office p { margin: 0; }
.office-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; opacity: .85; margin-bottom: 6px !important; }
.office-name { font-family: var(--mincho); font-size: 18px; margin-bottom: 4px !important; }
.office a { color: #fff; }

.overview dd a { color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; }
