/* throwback.osaka-event.app 本実装スタイル（案A「大阪おでかけアルバム」採用版） */
/* 外部サービス（Webフォント・計測・広告・地図タイル）は読み込まない方針。
   書体は端末のシステムフォントだけで組む */

:root {
  --font-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "BIZ UDPMincho", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "BIZ UDPGothic", Meiryo, sans-serif;
  --paper: #f5efe2;
  --paper-deep: #ede4d0;
  --card: #fdfaf2;
  --ink: #3b3129;
  --ink-soft: #675c4f;
  --kaki: #c2603d;      /* 柿色（飾り用） */
  --kaki-deep: #9c4526; /* 柿色（文字用。紙との比 5 以上） */
  --midori: #4e6b52;    /* 深緑 */
  --midori-deep: #3e5742;
  --kiiro: #d9a441;     /* 芥子色 */
  --line: #d8ccb6;
  --stamp: #b5543b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  background-image:
    radial-gradient(rgba(170, 150, 110, 0.08) 1px, transparent 1.4px),
    linear-gradient(180deg, rgba(255,255,255,0.4), transparent 300px);
  background-size: 7px 7px, 100% 100%;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 15px;
}

h1, h2, h3, .serif { font-family: var(--font-serif); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 24px; min-height: 40vh; }

.sample-band {
  background: #8a6d1f; color: #fff;
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  padding: 6px 10px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ── ヘッダー ── */
.site-head {
  text-align: center;
  padding: 30px 16px 20px;
  border-bottom: 3px double var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
}
.site-head .en {
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--kaki-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.site-head .site-title {
  font-family: var(--font-serif);
  font-size: clamp(25px, 6vw, 36px);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.site-head .site-title a { color: inherit; text-decoration: none; }
.site-head .tagline {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  letter-spacing: 0.12em;
}
.site-nav {
  display: flex; justify-content: center; align-items: center; gap: 4px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  background: rgba(253,250,242,0.6);
}
.site-nav a {
  color: var(--ink); text-decoration: none;
  font-size: 13px; letter-spacing: 0.1em;
  padding: 5px 14px; border-radius: 999px;
}
/* 白13px文字とのコントラスト4.5以上を保つため、柿色は文字用の濃い方を使う */
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--kaki-deep); color: #fff; }
.site-nav a.map-cta {
  background: var(--midori); color: #fff;
  border: 1.5px solid var(--midori);
  font-weight: 700;
}
.site-nav a.map-cta:hover { background: var(--midori-deep); border-color: var(--midori-deep); }

/* ── パンくず ── */
.breadcrumb {
  max-width: 860px; margin: 0 auto; padding: 14px 16px 0;
  font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--kaki-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 表紙(トップ) ── */
.cover { text-align: center; padding: 40px 0 8px; }
.cover .stamp-circle {
  width: 92px; height: 92px; margin: 0 auto 18px;
  border: 2.5px solid var(--stamp); border-radius: 50%;
  color: var(--stamp);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transform: rotate(-8deg);
  font-family: var(--font-serif);
  opacity: 0.85;
}
.stamp-circle .big { font-size: 20px; font-weight: 700; letter-spacing: 0.2em; line-height: 1.3; }
.stamp-circle .small { font-size: 9.5px; letter-spacing: 0.12em; }
.cover h1, .cover .cover-h {
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: 0.18em;
  font-weight: 600;
}
.cover p.lead {
  max-width: 560px; margin: 14px auto 0;
  color: var(--ink-soft); font-size: 14px;
}

/* ── トップのイラスト ── */
.hero-art { margin: 34px auto 6px; max-width: 680px; }
.hero-art svg {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 2px 3px 0 rgba(120, 100, 70, 0.16);
}
.hero-art figcaption {
  text-align: center; font-size: 10.5px; color: var(--ink-soft);
  letter-spacing: 0.08em; margin-top: 7px;
}

/* ── 「いまのイベント」案内 ── */
.now-note {
  margin: 26px auto 0; max-width: 560px;
  text-align: center; font-size: 13px; color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.now-note a { color: var(--midori-deep); font-weight: 700; text-decoration: none; }
.now-note a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── 見出し ── */
.section-title {
  display: flex; align-items: center; gap: 14px;
  font-size: 17px; letter-spacing: 0.22em; font-weight: 600;
  margin: 42px 0 18px;
}
.section-title::before, .section-title::after {
  content: ""; height: 1px; background: var(--line); flex: 1;
}
.page-h {
  text-align: center; padding: 36px 0 6px;
}
.page-h h1 { font-size: clamp(22px, 5vw, 30px); letter-spacing: 0.18em; font-weight: 600; }
.page-h .lead { margin-top: 10px; color: var(--ink-soft); font-size: 14px; }

/* ── 年の棚（月一覧を年ごとに整理） ── */
.year-block { margin-bottom: 26px; }
.year-title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 16px; letter-spacing: 0.14em; font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}
.year-title a { color: inherit; text-decoration: none; }
.year-title a:hover { color: var(--kaki-deep); text-decoration: underline; text-underline-offset: 5px; }
.year-title .year-sum { margin-left: auto; font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0.06em; }

/* ── 月のアルバム棚 ── */
.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  list-style: none;
}
.albums a {
  display: block; text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 7px solid var(--midori);
  border-radius: 4px;
  padding: 16px 14px 13px;
  color: var(--ink);
  box-shadow: 1.5px 2.5px 0 rgba(120, 100, 70, 0.18);
  transition: transform 0.15s ease;
}
.albums li:nth-child(3n+2) a { border-left-color: var(--kaki); }
.albums li:nth-child(3n) a { border-left-color: var(--kiiro); }
.albums a:hover { transform: translateY(-3px) rotate(-0.6deg); }
.albums .ym { font-family: var(--font-serif); font-size: 19px; font-weight: 700; letter-spacing: 0.08em; }
.albums .n { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ── 半券カード ── */
.stub-list { list-style: none; display: grid; gap: 16px; margin-top: 6px; }
.stub {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 96px 1fr;
  overflow: hidden;
  box-shadow: 2px 3px 0 rgba(120, 100, 70, 0.14);
}
.stub:hover { box-shadow: 3px 5px 0 rgba(160, 90, 50, 0.22); }
.stub .date-block {
  background: repeating-linear-gradient(-45deg, var(--paper-deep) 0 6px, #e6dcc6 6px 12px);
  border-right: 2px dashed #c9bda4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 6px;
  font-family: var(--font-serif);
  position: relative;
}
.stub .date-block::before, .stub .date-block::after {
  content: ""; position: absolute; right: -8px; width: 14px; height: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
}
.stub .date-block::before { top: -8px; }
.stub .date-block::after { bottom: -8px; }
.stub .date-block .m { font-size: 11px; letter-spacing: 0.15em; color: var(--kaki-deep); }
.stub .date-block .d { font-size: 27px; font-weight: 700; line-height: 1.15; }
.stub .date-block .w { font-size: 11px; color: var(--ink-soft); }
.stub .body { padding: 13px 16px 12px; min-width: 0; }
.stub .body h3 { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0.03em; font-family: var(--font-serif); }
.stub .body h3 a { color: inherit; text-decoration: none; }
.stub .body h3 a:hover { color: var(--kaki-deep); text-decoration: underline; text-underline-offset: 4px; }
.stub .meta { margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.stub .meta .k { color: var(--kaki-deep); font-size: 11px; }
.hanko-row { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.hanko {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.08em;
  border: 1px solid var(--midori); color: var(--midori-deep);
  border-radius: 3px; padding: 1.5px 8px;
  background: rgba(78,107,82,0.05);
  text-decoration: none;
}
a.hanko:hover { background: var(--midori); color: #fff; }

/* ── 月送り ── */
.month-move {
  display: flex; justify-content: space-between; gap: 10px;
  margin: 30px 0 0; font-size: 13px;
}
.month-move a {
  color: var(--kaki-deep); text-decoration: none; letter-spacing: 0.06em;
  padding: 6px 2px;
}
.month-move a:hover { text-decoration: underline; text-underline-offset: 4px; }
.month-move .ph { visibility: hidden; }

/* ── ジャンル入口 ── */
.genre-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px; list-style: none;
}
.genre-grid a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 13px 16px; text-decoration: none; color: var(--ink);
  box-shadow: 1.5px 2.5px 0 rgba(120, 100, 70, 0.14);
}
.genre-grid a:hover { border-color: var(--kaki); color: var(--kaki-deep); }
.genre-grid .n { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

/* ── 詳細：記録はがき ── */
.record-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 3px 5px 0 rgba(120, 100, 70, 0.16);
  margin-top: 30px;
  padding: clamp(22px, 5vw, 44px);
  position: relative;
  overflow: hidden;
}
.record-card::before {
  content: "保存";
  position: absolute; top: 18px; right: 18px;
  width: 74px; height: 74px;
  border: 2.5px solid var(--stamp); border-radius: 50%;
  color: var(--stamp); opacity: 0.55;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 21px; font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(12deg);
}
.record-card .kicker { font-size: 12px; letter-spacing: 0.22em; color: var(--kaki-deep); margin-bottom: 10px; padding-right: 84px; }
.record-card h1 { font-size: clamp(21px, 4.6vw, 29px); font-weight: 700; line-height: 1.55; letter-spacing: 0.05em; padding-right: 70px; }
.record-card .summary { margin-top: 18px; font-size: 15px; max-width: 620px; }
.record-table { margin-top: 26px; width: 100%; border-collapse: collapse; font-size: 14px; }
.record-table th, .record-table td { border-top: 1px solid var(--line); padding: 10px 6px; text-align: left; vertical-align: top; }
.record-table th { width: 92px; color: var(--kaki-deep); font-weight: 600; letter-spacing: 0.12em; font-family: var(--font-serif); white-space: nowrap; }
.record-table .sub { color: var(--ink-soft); font-size: 13px; }
.note {
  margin-top: 26px; padding: 13px 16px;
  background: var(--paper-deep); border-radius: 6px;
  font-size: 12px; color: var(--ink-soft);
}
.note a { color: var(--midori-deep); }
.backlink { display: inline-block; margin-top: 26px; color: var(--kaki-deep); font-size: 13.5px; text-decoration: none; letter-spacing: 0.06em; }
.backlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.more { margin-top: 44px; }

/* ── 文章ページ（about） ── */
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 {
  font-size: 18px; letter-spacing: 0.14em; font-weight: 600;
  margin: 38px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.prose p, .prose ul { margin: 10px 0; font-size: 14.5px; }
.prose ul { padding-left: 1.4em; }
.prose a { color: var(--midori-deep); }

/* ── 空状態 ── */
.empty {
  text-align: center; margin: 40px auto; max-width: 480px;
  background: var(--card); border: 1px dashed var(--line); border-radius: 8px;
  padding: 36px 20px; color: var(--ink-soft); font-size: 14px;
}

/* ── フッター ── */
.site-foot {
  margin-top: 64px;
  border-top: 3px double var(--line);
  padding: 26px 16px 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 2;
}
.site-foot a { color: var(--ink-soft); }
.site-foot a.map-foot { color: var(--midori-deep); font-weight: 700; }
.site-foot .foot-nav { margin-top: 6px; }
.site-foot .foot-nav a { margin: 0 8px; }

@media (max-width: 480px) {
  .stub { grid-template-columns: 78px 1fr; }
  .stub .date-block .d { font-size: 22px; }
  .record-card h1 { padding-right: 0; }
  .record-card .kicker { padding-right: 70px; }
  .record-card::before { width: 58px; height: 58px; font-size: 15px; top: 12px; right: 12px; opacity: 0.35; }
}
