/* danchi in okayama 共通スタイル
   色を変えたいときは :root の値だけ書き換えればサイト全体に反映されます。 */

:root {
  --bg: #e4e6e3;        /* 打ちっぱなしコンクリート */
  --paper: #f3f4f2;
  --ink: #23272b;
  --muted: #5b6368;
  --mint: #2f6f62;      /* 階段室のペンキの緑 */
  --mint-pale: #cfe3dc;
  --line: #c2c7c4;
  --display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --col: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1e20; --paper: #24282b; --ink: #e5e8e6; --muted: #a3abaf;
    --mint: #82c3b2; --mint-pale: #2b3f3a; --line: #3b4245;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1e20; --paper: #24282b; --ink: #e5e8e6; --muted: #a3abaf;
  --mint: #82c3b2; --mint-pale: #2b3f3a; --line: #3b4245;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.9;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* ヘッダー・フッター */
.site-header {
  max-width: var(--col); margin: 0 auto; padding: 1.25rem 1rem .75rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem;
}
.site-name {
  font-family: var(--display); font-size: 1.35rem; color: var(--ink);
  text-decoration: none; letter-spacing: .01em; line-height: 1.2;
}
.site-name span { color: var(--mint); }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
main { max-width: var(--col); margin: 0 auto; padding: 0 1rem 3rem; }
.site-footer {
  max-width: var(--col); margin: 0 auto; padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
.site-footer p { margin: .25rem 0; }

/* 見出し：団地の壁に塗られた帯と号棟番号のイメージ */
h1, .page-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.25;
  margin: .5rem 0 .25rem; padding-top: 1.1rem;
  border-top: .55rem solid var(--mint);
}
h2 {
  font-family: var(--display); font-weight: 400; font-size: 1.35rem;
  line-height: 1.4; margin: 2.5rem 0 .75rem;
}
p { margin: 0 0 1.1rem; }
.place { color: var(--muted); margin: 0 0 1.5rem; }
.crumb { margin: 1rem 0 0; font-size: .85rem; }
.crumb a { color: var(--muted); }
.intro { margin-bottom: 1.5rem; }
.lead { font-weight: 700; margin-bottom: .6rem; }
.back { margin-top: 3rem; }

/* 表（所在地・竣工年度など） */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
table.data { border-collapse: collapse; background: var(--paper); font-size: .92rem; line-height: 1.6; }
table.data td { border: 1px solid var(--line); padding: .45rem .8rem; vertical-align: top; }
table.data tr:first-child td, table.data td:first-child { color: var(--muted); }

/* 地図 */
.map { margin: 0 0 2rem; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; max-height: 18rem; border: 0; background: var(--paper); display: block; }
.map a { font-size: .85rem; }

/* 写真と説明 */
figure { margin: 0 0 2.25rem; }
figure img { width: 100%; background: var(--paper); }
figcaption { padding-top: .6rem; }

/* 写真一覧（写真館・タンク・パノラマ） */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1.5rem 1rem; }
.grid figure { margin: 0; }
.grid figcaption { font-size: .9rem; line-height: 1.7; }
.wide figure img { width: 100%; }

/* 一覧（団地・給水塔） */
.list { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: baseline;
  padding: .7rem .5rem; color: var(--ink); text-decoration: none;
}
.list a:hover { background: var(--mint-pale); }
.list .name { font-weight: 700; }
.list .place { margin: 0; font-size: .85rem; text-align: right; }
@media (max-width: 30rem) {
  .list a { grid-template-columns: 1fr; }
  .list .place { text-align: left; }
}
.count { color: var(--muted); font-size: .85rem; margin: -.25rem 0 .75rem; }

/* トップページ */
.hero { margin: 1rem 0 2.5rem; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 5rem); line-height: 1.05; margin-bottom: .5rem; }
.hero h1 span { display: block; font-size: .42em; color: var(--mint); margin-top: .4rem; }
.hero img { margin: 1.25rem 0 .75rem; }
.sections { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sections li { border-bottom: 1px solid var(--line); }
.sections a { display: block; padding: .9rem .5rem; text-decoration: none; color: var(--ink); }
.sections a:hover { background: var(--mint-pale); }
.sections b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin-right: .75rem; }
.sections small { color: var(--muted); font-size: .88rem; }
.news { padding-left: 0; list-style: none; }
.news time { font-weight: 700; margin-right: .75rem; }
