@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600;700&family=Shippori+Mincho:wght@400;500;600;700&display=swap');

:root {
  --ink: #1a1208;
  --paper: #f5f0e8;
  --paper-2: #efe8d8;
  --aged: #e8dfc8;
  --vermillion: #c0392b;
  --gold: #8b6914;
  --gold-light: #c9a84c;
  --pine: #33473c;
  --muted: #6b5d4f;
  --border: #c8b89a;
  --white: #fffdf8;
}

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27240%27%20height%3D%27240%27%20viewBox%3D%270%200%20240%20240%27%3E%0A%3Cg%20fill%3D%27none%27%20stroke%3D%27%238b6914%27%20stroke-width%3D%271%27%20opacity%3D%270.05%27%3E%0A%3Cpath%20d%3D%27M120%2C190%20C90%2C160%2090%2C120%20120%2C90%20C150%2C120%20150%2C160%20120%2C190%20Z%27%2F%3E%0A%3Cpath%20d%3D%27M120%2C190%20C80%2C170%2068%2C130%2090%2C95%20C120%2C110%20130%2C150%20120%2C190%20Z%27%2F%3E%0A%3Cpath%20d%3D%27M120%2C190%20C160%2C170%20172%2C130%20150%2C95%20C120%2C110%20110%2C150%20120%2C190%20Z%27%2F%3E%0A%3Cpath%20d%3D%27M120%2C190%20C70%2C180%2050%2C150%2060%2C115%20C95%2C120%20115%2C155%20120%2C190%20Z%27%2F%3E%0A%3Cpath%20d%3D%27M120%2C190%20C170%2C180%20190%2C150%20180%2C115%20C145%2C120%20125%2C155%20120%2C190%20Z%27%2F%3E%0A%3Ccircle%20cx%3D%27120%27%20cy%3D%27190%27%20r%3D%274%27%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E"),
    radial-gradient(ellipse 60% 40% at 12% 8%, rgba(139,105,20,0.05), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 18%, rgba(51,71,60,0.045), transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 85%, rgba(192,57,43,0.03), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 92%, rgba(139,105,20,0.04), transparent 60%),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(139,105,20,0.045) 59px, rgba(139,105,20,0.045) 60px),
    repeating-linear-gradient(180deg, transparent, transparent 39px, rgba(139,105,20,0.035) 39px, rgba(139,105,20,0.035) 40px);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-size: 240px 240px, auto, auto, auto, auto, auto, auto;
  background-attachment: fixed, fixed, fixed, fixed, fixed, scroll, scroll;
  color: var(--ink);
  font-family: 'Noto Serif JP', serif;
  line-height: 1.85;
}

a { color: var(--vermillion); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--vermillion); outline-offset: 3px; }

img { max-width: 100%; display: block; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 160;
  background: rgba(245,240,232,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 880px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700; font-size: 17px; letter-spacing: 0.1em;
  color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex; flex-direction: column; gap: 0; list-style: none;
  position: fixed; top: 0; left: 0; height: 100vh; width: min(300px, 82vw);
  background: var(--paper); border-right: 1px solid var(--border);
  padding: 76px 18px 24px; overflow-y: auto;
  transform: translateX(-100%); transition: transform 0.25s ease;
  z-index: 150; box-shadow: 6px 0 24px rgba(26,18,8,0.12);
}
.nav-links.open { transform: translateX(0); }
.nav-links a {
  display: block; font-size: 15px; letter-spacing: 0.05em;
  color: var(--muted); text-decoration: none; padding: 12px 10px;
  border-bottom: 1px dashed var(--aged);
}
.nav-links a:hover { color: var(--vermillion); background: rgba(139,105,20,0.08); }
.nav-toggle { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 6px 10px; font-size: 19px; cursor: pointer; color: var(--ink); }
.nav-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(26,18,8,0.35); z-index: 140;
}
.nav-backdrop.open { display: block; }

/* ---------- Hero ---------- */
.lotus-icon { width: 44px; height: 26px; color: var(--gold); margin: 16px auto 0; display: block; }

.hero {
  text-align: center; padding: 56px 20px 44px;
  position: relative;
}
.hero .eyebrow {
  font-size: 12.5px; letter-spacing: 0.4em; color: var(--gold); margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700; letter-spacing: 0.12em;
  color: var(--ink);
}
.hero-sub-name {
  display: block;
  font-size: clamp(16px, 3.2vw, 21px);
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero-main-name {
  display: block;
  font-size: clamp(36px, 8vw, 54px);
  letter-spacing: 0.15em;
}
.hero .sub {
  margin-top: 10px; font-size: 15.5px; color: var(--muted); letter-spacing: 0.1em;
}
.hero .call {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 10px 26px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  border-radius: 30px; font-size: 15.5px; letter-spacing: 0.1em;
}
.hero .call:hover { background: var(--vermillion); }

.hero-photo {
  max-width: 880px; margin: 0 auto; padding: 0 20px;
}
.hero-photo img {
  width: 100%; border-radius: 4px; border: 1px solid var(--border);
  box-shadow: 3px 3px 0 rgba(139,105,20,0.1);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; border-bottom: 1px solid var(--aged); }
section:last-of-type { border-bottom: none; }

.section-head { text-align: center; margin-bottom: 36px; }
.section-head::after {
  content: '';
  display: block;
  width: 40px; height: 24px;
  margin: 12px auto 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%2060%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23c9a84c%27%20stroke-width%3D%272%27%3E%3Cpath%20d%3D%27M50%2C55%20C40%2C42%2040%2C28%2050%2C15%20C60%2C28%2060%2C42%2050%2C55%20Z%27%2F%3E%3Cpath%20d%3D%27M50%2C55%20C28%2C48%2020%2C32%2028%2C18%20C42%2C24%2048%2C40%2050%2C55%20Z%27%2F%3E%3Cpath%20d%3D%27M50%2C55%20C72%2C48%2080%2C32%2072%2C18%20C58%2C24%2052%2C40%2050%2C55%20Z%27%2F%3E%3Cpath%20d%3D%27M50%2C55%20C15%2C50%205%2C35%2012%2C22%20C30%2C25%2042%2C42%2050%2C55%20Z%27%20opacity%3D%270.7%27%2F%3E%3Cpath%20d%3D%27M50%2C55%20C85%2C50%2095%2C35%2088%2C22%20C70%2C25%2058%2C42%2050%2C55%20Z%27%20opacity%3D%270.7%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.section-head .eyebrow { font-size: 12.5px; letter-spacing: 0.4em; color: var(--gold); }
.section-head h2 {
  font-family: 'Shippori Mincho', serif; font-weight: 700;
  font-size: clamp(22px, 4vw, 30px); letter-spacing: 0.1em; margin-top: 8px;
}
.section-head p.desc { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 3px;
  box-shadow: 2px 2px 0 rgba(139,105,20,0.08);
  padding: 22px 24px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* news */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { display: flex; gap: 14px; align-items: center; }
.news-item .tag {
  flex-shrink: 0; font-size: 12.5px; letter-spacing: 0.05em; color: var(--vermillion);
  border: 1px solid var(--vermillion); border-radius: 3px; padding: 3px 8px;
}
.news-item a { text-decoration: none; color: var(--ink); font-size: 16px; }
.news-item a:hover { color: var(--vermillion); }

.video-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.video-card img { width: 160px; border-radius: 3px; border: 1px solid var(--border); }
.video-card .video-text { flex: 1; min-width: 200px; }
.video-card a.watch { display: inline-block; margin-top: 8px; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--vermillion); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery a { display: block; overflow: hidden; border-radius: 3px; border: 1px solid var(--border); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* download */
.download-card { display: flex; gap: 14px; align-items: flex-start; }
.download-card .icon { font-size: 26px; line-height: 1; }
.download-card h3 { font-size: 16px; letter-spacing: 0.05em; margin-bottom: 4px; }
.download-card p { font-size: 14.5px; color: var(--muted); }
.download-card .btn {
  display: inline-block; margin-top: 10px; font-size: 14.5px; text-decoration: none;
  color: var(--white); background: var(--pine); padding: 7px 16px; border-radius: 20px; letter-spacing: 0.05em;
}
.download-card .btn:hover { background: var(--ink); }
.badge-soon {
  display: inline-block; font-size: 11.5px; letter-spacing: 0.05em; color: var(--muted);
  border: 1px dashed var(--border); border-radius: 3px; padding: 2px 8px; margin-top: 8px;
}

/* history */
.history-basic {
  background: var(--white); border: 1px solid var(--border); border-radius: 3px;
  padding: 20px 24px; margin-bottom: 32px; font-size: 15px;
  box-shadow: 2px 2px 0 rgba(139,105,20,0.08);
}
.history-basic dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.history-basic dt { color: var(--gold); letter-spacing: 0.05em; white-space: nowrap; }
.history-basic dd { color: var(--ink); }

.history-block { margin-bottom: 34px; }
.history-block h3 {
  font-family: 'Shippori Mincho', serif; font-size: 19px; letter-spacing: 0.08em;
  color: var(--vermillion); margin-bottom: 12px; padding-left: 12px; border-left: 3px solid var(--vermillion);
}
.history-block p { font-size: 16px; margin-bottom: 12px; }
.history-block p:last-child { margin-bottom: 0; }
.callout {
  background: rgba(139,105,20,0.06); border: 1px dashed var(--gold-light); border-radius: 3px;
  padding: 14px 18px; font-size: 15px; color: var(--muted); margin-top: 12px;
}
.callout strong { color: var(--ink); }

/* timeline (signature element) */
.timeline { position: relative; margin-top: 8px; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--border));
}
.t-item { position: relative; padding-bottom: 26px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ''; position: absolute; left: -28px; top: 4px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--gold-light); border: 2px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--gold);
}
.t-item.era .era-label {
  font-size: 13.5px; letter-spacing: 0.1em; color: var(--gold);
  font-weight: 600; margin-bottom: 3px;
}
.t-item.era p { font-size: 15px; color: var(--ink); }

.t-item.gap { padding-bottom: 30px; }
.t-item.gap::before {
  background: transparent; border: 2px dashed var(--muted); box-shadow: none;
}
.t-item.gap .era-label { color: var(--muted); }
.t-item.gap p {
  font-size: 14.5px; font-style: italic; color: var(--muted); letter-spacing: 0.03em;
}
.t-item.highlight::before { background: var(--vermillion); box-shadow: 0 0 0 1.5px var(--vermillion); }
.t-item.highlight .era-label { color: var(--vermillion); }

ruby rt { font-size: 0.55em; color: var(--muted); letter-spacing: 0; }
.kotoba-text { font-size: 16px; line-height: 2.7; letter-spacing: 0.04em; margin-bottom: 10px; }
.kotoba-say { font-size: 14.5px; color: var(--vermillion); letter-spacing: 0.1em; margin-bottom: 12px; }
.kokorogamae { padding-left: 20px; font-size: 15px; }
.kokorogamae li { margin-bottom: 8px; }
.kokorogamae li:last-child { margin-bottom: 0; }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); margin-top: 8px; font-size: 14.5px; box-shadow: 1px 1px 0 rgba(139,105,20,0.08); }
table.data-table th { background: var(--ink); color: var(--paper); padding: 9px 12px; font-weight: 400; letter-spacing: 0.08em; text-align: left; }
table.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--aged); vertical-align: top; }
table.data-table tr:hover td { background: rgba(139,105,20,0.05); }

/* tools */
.tool-card { display: block; text-decoration: none; color: inherit; }
.tool-card .icon { font-size: 24px; }
.tool-card h3 { font-size: 16px; margin: 8px 0 6px; color: var(--ink); letter-spacing: 0.05em; }
.tool-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.tool-card .go { font-size: 14px; color: var(--vermillion); }
.tool-card:hover { border-color: var(--gold); }

/* sns */
.sns-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.sns-card { flex: 1; min-width: 220px; }
.sns-card h3 { font-size: 15.5px; margin-bottom: 6px; letter-spacing: 0.05em; }
.sns-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.sns-card a.btn2 {
  display: inline-block; font-size: 14.5px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--border); border-radius: 20px; padding: 6px 16px;
}
.sns-card a.btn2:hover { border-color: var(--vermillion); color: var(--vermillion); }

/* access */
.access-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 15px; margin-bottom: 18px; }
.access-info dt { color: var(--gold); letter-spacing: 0.05em; white-space: nowrap; }
.map-frame { border-radius: 3px; overflow: hidden; border: 1px solid var(--border); margin-top: 16px; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-link { display: inline-block; margin-top: 12px; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--vermillion); }

footer { text-align: center; padding: 30px 20px 50px; font-size: 13.5px; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- Sub-page header (events / youtube / faq / lotus) ---------- */
.page-hero {
  text-align: center; padding: 48px 20px 36px;
}
.page-hero .eyebrow { font-size: 12.5px; letter-spacing: 0.4em; color: var(--gold); margin-bottom: 12px; }
.page-hero h1 {
  font-family: 'Shippori Mincho', serif; font-weight: 700; letter-spacing: 0.1em;
  font-size: clamp(24px, 5vw, 34px); color: var(--ink);
}
.page-hero p.desc { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.back-home {
  display: inline-block; margin-top: 16px; font-size: 13.5px; letter-spacing: 0.1em;
  color: var(--muted); text-decoration: none; border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 16px; background: var(--white);
}
.back-home:hover { color: var(--vermillion); border-color: var(--vermillion); }

/* ---------- Events page ---------- */
.event-card { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.event-card:last-child { margin-bottom: 0; }
.event-date {
  flex-shrink: 0; width: 92px; text-align: center; background: var(--pine); color: var(--white);
  border-radius: 4px; padding: 10px 6px; font-size: 13.5px; letter-spacing: 0.05em; line-height: 1.5;
}
.event-body h3 { font-size: 16.5px; letter-spacing: 0.05em; margin-bottom: 6px; }
.event-body p { font-size: 15px; color: var(--muted); }

/* ---------- YouTube page ---------- */
.video-embed { position: relative; padding-top: 56.25%; border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-list-card { display: flex; gap: 14px; align-items: center; }
.video-list-card img { width: 120px; border-radius: 3px; border: 1px solid var(--border); flex-shrink: 0; }
.video-list-card .vtext { flex: 1; }
.video-list-card h3 { font-size: 16px; margin-bottom: 4px; }
.video-list-card p { font-size: 14px; color: var(--muted); }

/* ---------- FAQ page ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 3px; background: var(--white); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  display: flex; align-items: baseline; gap: 10px; padding: 16px 20px; cursor: pointer;
  font-size: 16px; letter-spacing: 0.03em; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .q-mark { color: var(--vermillion); font-weight: 700; flex-shrink: 0; }
.faq-a { padding: 0 20px 18px 46px; font-size: 15px; color: var(--muted); line-height: 1.9; }
.faq-cat { font-size: 13.5px; letter-spacing: 0.15em; color: var(--gold); margin: 30px 0 12px; }
.faq-cat:first-child { margin-top: 0; }
.faq-note {
  margin-top: 30px; padding: 16px 20px; background: rgba(139,105,20,0.06);
  border: 1px dashed var(--gold-light); border-radius: 3px; font-size: 14.5px; color: var(--muted);
}

/* ---------- Lotus page ---------- */
.lotus-lead { text-align: center; font-size: 15.5px; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.lotus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .lotus-grid { grid-template-columns: repeat(2, 1fr); } }
.lotus-placeholder {
  aspect-ratio: 1/1; border: 1.5px dashed var(--border); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted); font-size: 13.5px; background: rgba(139,105,20,0.03);
  text-align: center; padding: 12px;
}
.lotus-placeholder svg { width: 34px; height: 34px; color: var(--gold-light); }

/* ---------- Dendou keijiban (bulletin board) ---------- */
.month-word-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  padding: 48px 32px; text-align: center; box-shadow: 3px 3px 0 rgba(139,105,20,0.1);
  position: relative; max-width: 600px; margin: 0 auto;
}
.month-word-card .month-label {
  font-size: 13.5px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 20px;
}
.month-word-card .word-text {
  font-family: 'Shippori Mincho', serif; font-weight: 600; letter-spacing: 0.08em;
  font-size: clamp(22px, 5vw, 32px); line-height: 1.7; color: var(--ink);
  writing-mode: horizontal-tb;
}
.month-word-card .word-note {
  margin-top: 22px; font-size: 14.5px; color: var(--muted); line-height: 1.8;
}
.month-word-card .word-source {
  margin-top: 16px; font-size: 13.5px; color: var(--gold); letter-spacing: 0.1em;
}

.like-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  background: var(--paper-2); border: 1px solid var(--border); border-radius: 30px;
  padding: 8px 22px; cursor: pointer; font-size: 15.5px; color: var(--muted);
  font-family: 'Noto Serif JP', serif; transition: all 0.15s;
}
.like-btn:hover { border-color: var(--vermillion); }
.like-btn.liked { background: rgba(192,57,43,0.08); border-color: var(--vermillion); color: var(--vermillion); }
.like-btn .heart { font-size: 17px; }
.like-btn .like-count { font-weight: 700; min-width: 1.2em; text-align: left; }

.word-archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .word-archive-grid { grid-template-columns: 1fr; } }
.word-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  padding: 26px 22px; box-shadow: 2px 2px 0 rgba(139,105,20,0.08);
}
.word-card .month-label { font-size: 12.5px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 12px; }
.word-card .word-text {
  font-family: 'Shippori Mincho', serif; font-weight: 600; letter-spacing: 0.05em;
  font-size: 18px; line-height: 1.8; color: var(--ink); margin-bottom: 10px;
}
.word-card .word-note { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.word-card .like-btn { margin-top: 0; padding: 6px 16px; font-size: 14.5px; }

/* ---------- Keijiban (Dendou message board) ---------- */
.keijiban-board {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 44px 30px 34px;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(139,105,20,0.1);
  max-width: 640px;
  margin: 0 auto;
}
.keijiban-board::before {
  content: '📌';
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 22px;
}
.keijiban-month {
  font-size: 13.5px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 18px;
}
.keijiban-text {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(20px, 4.2vw, 28px);
  line-height: 2;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: pre-line;
}
.keijiban-note {
  margin-top: 18px; font-size: 14.5px; color: var(--muted); line-height: 1.8;
}
.keijiban-list-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  padding: 24px 26px; margin-bottom: 16px;
  box-shadow: 2px 2px 0 rgba(139,105,20,0.08);
}
.keijiban-list-item .keijiban-month { margin-bottom: 12px; text-align: left; }
.keijiban-list-item .keijiban-text {
  font-size: 19px; line-height: 1.9; text-align: left; white-space: pre-line;
}
.keijiban-list-item .keijiban-note { text-align: left; }

.like-row { display: flex; justify-content: center; margin-top: 24px; }
.keijiban-list-item .like-row { justify-content: flex-start; margin-top: 16px; }
.like-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 30px;
  padding: 8px 20px; cursor: pointer; font-size: 15.5px; color: var(--muted);
  font-family: inherit; transition: all 0.15s;
}
.like-btn:hover { border-color: var(--vermillion); color: var(--vermillion); }
.like-btn .heart { font-size: 17px; }
.like-btn.liked { border-color: var(--vermillion); color: var(--vermillion); background: rgba(192,57,43,0.06); }
.like-btn.liked .heart { color: var(--vermillion); }
.like-btn .like-count { font-weight: 700; min-width: 1.2em; display: inline-block; }

/* ---------- Keijiban essay (今月のお言葉について) ---------- */
.keijiban-essay {
  max-width: 640px;
  margin: 40px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 30px;
  box-shadow: 2px 2px 0 rgba(139,105,20,0.08);
}
.keijiban-essay h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.keijiban-essay p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 18px;
}
.keijiban-essay p:last-child { margin-bottom: 0; }

/* ---------- Comments display ---------- */
.comment-item {
  border-bottom: 1px dashed var(--aged);
  padding: 12px 0;
}
.comment-item:last-child { border-bottom: none; }
.comment-name {
  font-size: 13.5px; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 4px;
}
.comment-text {
  font-size: 15.5px; color: var(--ink); line-height: 1.8;
}

/* ---------- Free message board (jiyuu-keijiban) ---------- */
.jk-form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  padding: 24px 22px; margin-bottom: 28px;
  box-shadow: 2px 2px 0 rgba(139,105,20,0.08);
}
.jk-form-row { margin-bottom: 16px; }
.jk-form-row:last-of-type { margin-bottom: 0; }
.jk-form-row label {
  display: block; font-size: 13.5px; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 6px;
}
.jk-form-row input[type="text"], .jk-form-row textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper, #fdfaf3); border: 1px solid var(--border); border-radius: 3px;
  padding: 10px 12px; resize: vertical;
}
.jk-form-row input[type="text"]:focus, .jk-form-row textarea:focus {
  outline: none; border-color: var(--gold);
}
.jk-char-count { text-align: right; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.jk-submit-btn {
  display: block; width: 100%; margin-top: 18px;
  background: var(--pine); color: var(--white); border: none; border-radius: 24px;
  font-family: inherit; font-size: 15.5px; letter-spacing: 0.08em;
  padding: 11px 0; cursor: pointer; transition: opacity 0.15s;
}
.jk-submit-btn:hover { opacity: 0.88; }
.jk-submit-btn:disabled { cursor: not-allowed; }
.jk-form-msg { text-align: center; font-size: 13.5px; color: var(--vermillion); margin-top: 10px; min-height: 1.2em; }

.jk-empty { text-align: center; font-size: 14.5px; color: var(--muted); padding: 30px 0; }

.jk-post {
  position: relative;
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  padding: 18px 20px; margin-bottom: 14px;
  box-shadow: 2px 2px 0 rgba(139,105,20,0.06);
}
.jk-post-header {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
  margin-bottom: 8px;
}
.jk-post-name { font-size: 14.5px; color: var(--gold); letter-spacing: 0.04em; font-weight: 600; }
.jk-post-date { font-size: 12px; color: var(--muted); }
.jk-post-text { font-size: 15.5px; color: var(--ink); line-height: 1.85; white-space: pre-line; }
.jk-delete-link {
  display: inline-block; margin-top: 10px;
  background: none; border: none; font-family: inherit; font-size: 12px; color: var(--muted);
  text-decoration: underline; cursor: pointer; padding: 2px 0;
}
.jk-delete-link:hover { color: var(--vermillion); }

/* ---------- Lightbox (photo viewer without leaving the page) ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(26,18,8,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px; z-index: 500;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 100%; max-height: 88vh; border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.4);
  color: #fff; font-size: 22px; line-height: 1; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer;
}
.lightbox-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 13.5px; letter-spacing: 0.05em;
}

/* ===== 動作画面（仏教ゲーム・お役立ちツール共通） ===== */
.shots-label { font-size: 12.5px; color: var(--muted); margin: 14px 0 6px; letter-spacing: 0.05em; }
.shots { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; margin-bottom: 12px; }
.shots img { width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; display: block; border: 1px solid var(--border); border-radius: 6px; background: #eee; cursor: zoom-in; }
.shots-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(20, 14, 8, 0.88); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.shots-lb img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 6px 30px rgba(0,0,0,.6); }
.shots-lb span { position: absolute; top: 10px; right: 14px; color: #fff; font-size: 14px; background: rgba(0,0,0,.45); border-radius: 999px; padding: 6px 14px; }

.shots.land { grid-template-columns: 1fr; }
.shots.land img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center; }

/* ---------- メニューの小見出し ---------- */
.nav-links .nav-group { font-size: 12px; letter-spacing: 0.2em; color: var(--gold); padding: 16px 10px 4px; border-bottom: 1px solid var(--aged); margin-bottom: 2px; }
.nav-links .nav-group:first-child { padding-top: 0; }
/* ---------- トップのクイックリンク・グループ見出し ---------- */
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 640px; margin: 18px auto 28px; padding: 0 16px; }
.quick-links a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 15px; letter-spacing: 0.04em; }
.quick-links a:hover { border-color: var(--gold); }
@media (min-width: 641px) { .quick-links { grid-template-columns: repeat(4, 1fr); max-width: 760px; } }
.quick-links a.hl { background: #fff8e6; border-color: var(--gold); font-weight: 700; }
.group-head { font-size: 15px; letter-spacing: 0.12em; color: var(--gold); margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--aged); }
.group-head:first-of-type { margin-top: 0; }

/* ---------- トップの特集カード（ゲーム・ツール・動画） ---------- */
.feature-list { display: grid; gap: 14px; }
.feature-card { display: block; text-decoration: none; color: inherit; border-color: var(--gold); }
.feature-card:hover { border-color: var(--vermillion); }
.feature-label { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.feature-label span { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--white); background: var(--vermillion); border-radius: 999px; padding: 2px 10px; }
.feature-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.feature-shots img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--aged); display: block; }
.feature-yt { position: relative; margin-bottom: 10px; }
.feature-yt img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; }
.feature-yt .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 56px; height: 40px; line-height: 40px; text-align: center; background: rgba(200,30,30,.92); color: #fff; border-radius: 10px; font-size: 18px; }
.feature-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 8px; line-height: 1.7; }
.feature-card .go { font-size: 14.5px; color: var(--vermillion); font-weight: 700; }
@media (min-width: 900px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .quick-links a:last-child:nth-child(odd) { grid-column: 1 / -1; } }
