/* みんなで作る-HESPOT- 共通スタイル（和風テーマ）
   和紙の地に、藍・朱・金。見出しは明朝、本文はゴシックで読みやすく。 */
* { box-sizing: border-box; }
:root {
  --washi: #f6f1e5;
  --washi-deep: #efe7d3;
  --ai: #20365c;        /* 藍色 */
  --ai-deep: #16263f;
  --shu: #b03a2e;       /* 朱色 */
  --gold: #b8860b;      /* 金 */
  --gold-light: #c9a227;
  --sumi: #26241f;      /* 墨 */
  --paper-card: #fffdf6;
}
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201,162,39,0.06), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(32,54,92,0.05), transparent 50%),
    var(--washi);
  color: var(--sumi);
  line-height: 1.8;
}
a { color: var(--ai); }
h1, h2, h3, .serif {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

/* ヘッダー：藍地に青海波の帯 */
.site-header {
  background: var(--ai-deep);
  color: #f3ecd9;
  padding: 26px 16px 20px;
  text-align: center;
  border-bottom: 4px solid var(--gold);
  position: relative;
}
.site-header::after {
  content: "";
  display: block;
  height: 18px;
  margin-top: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='18' viewBox='0 0 56 18'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='0.65'%3E%3Cpath d='M-14 18a14 12 0 0 1 28 0a14 12 0 0 1 28 0a14 12 0 0 1 28 0'/%3E%3Cpath d='M0 18a14 12 0 0 1 28 0a14 12 0 0 1 28 0' transform='translate(0,-7)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}
.site-header h1 { margin: 0; font-size: 1.9rem; letter-spacing: 0.14em; font-weight: 800; }
.site-header h1 .gold { color: var(--gold-light); }
.site-header p { margin: 6px 0 0; font-size: 0.95rem; opacity: 0.92; letter-spacing: 0.06em; }

main { max-width: 960px; margin: 0 auto; padding: 0 14px 48px; }
section.block { margin-top: 40px; }
section.block > h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ai-deep);
  border-bottom: 2px solid var(--ai);
  padding-bottom: 6px;
  margin: 0 0 16px;
  position: relative;
}
section.block > h2::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 72px; height: 3px; background: var(--shu);
}
.note { color: #6d675a; font-size: 0.9rem; }

/* ヒーロー画像＋縦書きキャッチ */
.hero-wrap { display: flex; gap: 10px; align-items: stretch; margin-top: 22px; }
.hero-vertical {
  writing-mode: vertical-rl;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  color: var(--ai);
  padding: 10px 2px;
  border-right: 1px solid rgba(32,54,92,0.35);
  white-space: nowrap;
}
.hero {
  flex: 1; display: block; border-radius: 6px; overflow: hidden;
  border: 3px double var(--ai);
  box-shadow: 0 6px 20px rgba(22,38,63,0.18);
}
.hero img { width: 100%; display: block; }
.hero-caption { text-align: center; font-size: 0.85rem; color: #6d675a; margin-top: 8px; }

/* 制覇カウンター */
.counter {
  background: var(--paper-card);
  border: 1px solid var(--ai);
  outline: 3px double rgba(32,54,92,0.4);
  outline-offset: -8px;
  border-radius: 4px; padding: 22px 20px;
  text-align: center;
}
.counter .big {
  font-family: "Shippori Mincho B1", serif;
  font-size: 2.1rem; font-weight: 800; color: var(--shu);
}
.counter-bar-bg { background: var(--washi-deep); border: 1px solid rgba(32,54,92,0.3); border-radius: 999px; height: 14px; margin-top: 12px; overflow: hidden; }
#counter-bar { background: linear-gradient(90deg, var(--ai), var(--gold)); height: 100%; width: 0; transition: width 0.6s; }

/* タイル地図 */
#tilemap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.tile {
  border-radius: 4px; padding: 6px 2px; text-align: center;
  text-decoration: none; color: var(--sumi); min-height: 52px;
  display: flex; flex-direction: column; justify-content: center;
  background-size: cover; background-position: center;
  font-size: 0.72rem; line-height: 1.3;
}
.tile.filled { background-color: #d7e0ec; border: 1.5px solid var(--ai); }
.tile.empty { background-color: #e3ddcb; border: 1.5px dashed #a79c7f; color: #7a7260; }
.tile.has-photo { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.tile-name { font-weight: 700; font-family: "Shippori Mincho B1", serif; }
.tile-state { font-size: 0.62rem; }

/* マイマップ */
#mymap-wrap iframe { width: 100%; height: 420px; border: 1px solid var(--ai); border-radius: 4px; }

/* 防衛戦カード：朱と藍の対戦枠 */
.battle-card {
  background: var(--ai-deep); color: #f3ecd9;
  border: 2px solid var(--gold);
  border-radius: 6px;
  padding: 18px 20px; margin-bottom: 14px;
}
.battle-card h3 { margin: 0 0 8px; color: var(--gold-light); letter-spacing: 0.1em; }
.battle-card .note { color: #cfc7ae; }
.vs {
  display: inline-block; margin: 0 10px; font-weight: 800; color: #fff;
  background: var(--shu); border-radius: 50%;
  width: 2em; height: 2em; line-height: 2em; text-align: center;
  font-size: 0.85em; vertical-align: middle;
}
.vs-line { font-size: 1.05rem; }

/* 県カード */
.pref-card {
  background: var(--paper-card);
  border: 1px solid rgba(32,54,92,0.55);
  border-radius: 4px;
  padding: 18px 20px;
  box-shadow: 0 2px 6px rgba(22,38,63,0.08);
  margin-bottom: 14px;
}
.pref-card h3 {
  margin: 0 0 8px; font-size: 1.2rem; color: var(--ai-deep);
  border-left: 5px solid var(--shu); padding-left: 10px; letter-spacing: 0.08em;
}
.holder-spot { font-size: 1.18rem; font-weight: 700; margin: 4px 0; font-family: "Shippori Mincho B1", serif; }
.holder-pen { margin: 2px 0; color: #55503f; }
.badge {
  background: var(--gold); color: #fff; border-radius: 2px;
  padding: 1px 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
}
.ratings { list-style: none; padding: 0; margin: 8px 0; font-size: 0.92rem; }
.ratings li { color: #8a6d1d; }
.ratings li::before { content: "・"; color: var(--ai); }
.vacant { color: #7a7260; }
.challengers { color: var(--shu); font-weight: 600; }
.comments { border-top: 1px dashed rgba(32,54,92,0.4); margin-top: 10px; padding-top: 8px; }
.comments h4 { margin: 0 0 4px; font-size: 0.9rem; color: var(--ai); font-family: "Shippori Mincho B1", serif; }
.comments ul { margin: 0; padding-left: 18px; font-size: 0.92rem; }

/* ボタン：朱の主ボタン、藍の副ボタン */
.btn {
  display: inline-block; background: var(--shu); color: #fff; text-decoration: none;
  border-radius: 3px; padding: 12px 30px; font-weight: 700; letter-spacing: 0.08em;
  margin: 6px 6px 6px 0; box-shadow: 0 3px 8px rgba(176,58,46,0.3);
}
.btn.sub { background: var(--ai); box-shadow: 0 3px 8px rgba(32,54,92,0.3); }
.btn.disabled { background: #b3ab97; box-shadow: none; pointer-events: none; }

.rules {
  background: var(--paper-card);
  border: 1px solid rgba(32,54,92,0.55);
  border-radius: 4px; padding: 18px 20px;
}
.rules ol { margin: 8px 0; padding-left: 22px; }

.site-footer {
  text-align: center; color: #f3ecd9; font-size: 0.85rem;
  background: var(--ai-deep); padding: 26px 12px 34px;
  border-top: 4px solid var(--gold);
}

@media (max-width: 640px) {
  .tile { font-size: 0.58rem; min-height: 44px; }
  .tile-state { display: none; }
  #mymap-wrap iframe { height: 320px; }
  .hero-vertical { display: none; }
  .site-header h1 { font-size: 1.45rem; }
}
