/*
Theme Name: 摂津国分寺
Theme URI: https://kokubunji.osaka/
Author: 見やすい案内テーマ
Description: 摂津国分寺公式サイト向けの再構成テーマ。和紙色の余白と大きな見出しで、全ページを同じトーンに揃えます。Cocoonからの乗せ替えを想定しています。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: settsu-kokubunji
*/

:root {
  --ink: #2a2118;
  --muted: #5c5348;
  --paper: #f6f1e6;
  --card: #fffdf8;
  --line: #e2d6c4;
  --gold: #b0893a;
  --gold-deep: #8a6a28;
  --plum: #4a2c4a;
  --plum-soft: #6b3d6b;
  --accent: #7a2e3a;
  --shadow: 0 10px 30px rgba(42, 33, 24, 0.08);
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(176, 137, 58, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf7ef 0%, var(--paper) 18%, #efe6d6 100%);
  line-height: 1.8;
  font-size: 16px;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a { color: var(--plum-soft); }
a:hover { color: var(--plum); }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header
---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(246, 241, 230, 0.9);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand small {
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--gold-deep);
}

.brand strong {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
  font-size: 14px;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-cat > a {
  color: var(--plum-soft);
}

/* Hero / page title
---------------------------------------- */
.hero,
.page-hero {
  padding: 48px 0 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  color: var(--gold-deep);
  letter-spacing: 0.22em;
  font-size: 13px;
  margin: 0 0 10px;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  line-height: 1.35;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin: 0 0 16px;
}

.lead,
.page-hero .lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 22px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { color: #fff; background: var(--plum-soft); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }

.hero-card,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-card h2,
.card h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.facts { display: grid; gap: 12px; }
.fact {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.fact:last-child { border: 0; padding-bottom: 0; }
.fact dt { color: var(--gold-deep); font-size: 13px; font-weight: 700; }
.fact dd { margin: 0; }

/* Sections
---------------------------------------- */
.section { padding: 36px 0; }
.sec-title { font-size: 28px; margin: 0 0 8px; }
.sec-lead { color: var(--muted); margin: 0 0 22px; }

.grid-3,
.grid-2,
.posts-grid {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2,
.posts-grid { grid-template-columns: repeat(2, 1fr); }

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

ul.clean { margin: 8px 0 0; padding-left: 1.15em; }
ul.clean li { color: var(--muted); }

.notice {
  border-left: 5px solid var(--accent);
}

/* Content / posts
---------------------------------------- */
.site-main { padding-bottom: 48px; }

.entry,
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-card a.thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #efe4d0;
  overflow: hidden;
}
.post-card a.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .body,
.entry-inner {
  padding: 22px 24px 26px;
}

.post-card h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.entry-content {
  font-size: 16.5px;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.6em 0 0.5em;
}
.entry-content p,
.entry-content li {
  color: #3a3228;
}
.entry-content img {
  border-radius: 12px;
}
.entry-content figure {
  margin: 1.4em 0;
}
.entry-content blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  border-left: 4px solid var(--gold);
  background: #f8f1e3;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.pagination,
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.pagination a,
.pagination span,
.post-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink);
}

.search-box {
  display: flex;
  gap: 8px;
}
.search-box input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
}
.search-box button {
  border: 0;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

/* Footer
---------------------------------------- */
.site-footer {
  margin-top: 12px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.site-footer strong {
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
}

iframe.map {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}

/* Responsive
---------------------------------------- */
@media (max-width: 860px) {
  .hero,
  .grid-3,
  .grid-2,
  .posts-grid,
  .foot-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; }
  .head-inner { flex-wrap: wrap; }
  .primary-nav.is-open { display: block; }
  .primary-nav.is-open ul { flex-direction: column; padding: 8px 0 12px; }

  .fact { grid-template-columns: 72px 1fr; }
}
