/* ==========================================================================
   来堕村観光協会 共通スタイル(v3)
   方針:2020年代後半の一般的なコーポレート/自治体サイトの手触りを参考に、
   太めのゴシック見出し・大きな余白・フラットで柔らかい影・
   はっきりしたコントラストを採用する。モバイル表示を最優先に設計する。
   ========================================================================== */

:root {
  --color-green-deep: #1f4632;
  --color-green: #2f8f5f;
  --color-green-light: #e3f3e9;
  --color-accent: #e2762f;
  --color-bg: #ffffff;
  --color-bg-tint: #f4f8f5;
  --color-bg-paper: #ffffff;
  --color-text: #1c1c1a;
  --color-text-soft: #63645d;
  --color-border: #ebeae3;
  --font-serif: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif;
  --font-sans: "Noto Sans JP", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 26px;
  --shadow-sm: 0 2px 10px rgba(20, 40, 30, 0.06);
  --shadow: 0 16px 40px rgba(20, 40, 30, 0.12);
  --container-w: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.85;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  letter-spacing: 0.01em;
}

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

a { color: var(--color-green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  margin: 0 0 0.55em;
  letter-spacing: 0;
}

h1 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
h3 { font-size: clamp(1.1rem, 3.2vw, 1.25rem); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.band {
  background: var(--color-bg-tint);
  padding: 40px 0;
}

/* ---------- ヘッダー ---------- */

.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}

.site-logo img {
  width: 38px;
  height: 38px;
}

.site-logo .sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--color-text-soft);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 4px;
  margin: 0 10px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-green);
  transition: right 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-green-deep);
  text-decoration: none;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

/* ハンバーガーボタン(モバイルのみ表示) */

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 46px;
  background: var(--color-text);
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__label {
  font-size: 0.55rem;
  color: #fff;
  margin-top: 1px;
}

.nav-toggle[aria-expanded="true"] { background: var(--color-green-deep); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- パンくず ---------- */

.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  padding: 16px 0 0;
}

.breadcrumb a { color: var(--color-text-soft); }

/* ---------- ヒーロー(フルブリード) ---------- */

.hero {
  position: relative;
}

.hero__image {
  width: 100%;
  height: 62vw;
  max-height: 460px;
  min-height: 240px;
  object-fit: cover;
  display: block;
  background: var(--color-green-light);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 30, 22, 0.78) 0%, rgba(15, 30, 22, 0.2) 55%, rgba(15, 30, 22, 0) 100%);
  display: flex;
  align-items: flex-end;
}

.hero__overlay .container {
  padding-bottom: 34px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.hero__overlay h1 {
  color: #fff;
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.hero__overlay p {
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  font-size: 1rem;
  max-width: 34em;
}

.page-hero {
  background: linear-gradient(180deg, var(--color-bg-tint) 0%, var(--color-bg) 100%);
  padding: 40px 0 32px;
  margin-bottom: 36px;
}

.eyebrow {
  font-size: 0.78rem;
  color: var(--color-green);
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
}

.page-hero p {
  margin: 10px 0 0;
  color: var(--color-text-soft);
  font-size: 1.02rem;
}

/* ---------- カード/リスト共通 ---------- */

.card {
  background: var(--color-bg-paper);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  margin-bottom: 24px;
}

.section {
  margin: 52px 0;
}

.section-title {
  position: relative;
  padding-left: 0;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-green);
  display: inline-block;
  flex-shrink: 0;
  transform: translateY(-0.35em);
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-list li {
  border-bottom: 1px solid var(--color-border);
}

.notice-list li:last-child { border-bottom: none; }

.notice-list a {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 8px;
  color: var(--color-text);
  flex-wrap: wrap;
  border-radius: var(--radius-s);
  font-weight: 500;
}

.notice-list a:hover { color: var(--color-green-deep); background: var(--color-bg-tint); text-decoration: none; }

.notice-date {
  font-family: var(--font-sans);
  color: var(--color-text-soft);
  font-size: 0.83rem;
  font-weight: 400;
  min-width: 6.5em;
}

.notice-tag {
  font-size: 0.7rem;
  background: var(--color-green-light);
  color: var(--color-green-deep);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--color-bg-paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.blog-card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.blog-card a:hover { text-decoration: none; }

.blog-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.blog-card__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.5;
}

.blog-card__excerpt {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  flex: 1;
}

.blog-card__thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--color-green-light);
}

.article-hero-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-s);
  margin-bottom: 22px;
}

@media (max-width: 760px) {
  .article-hero-img { height: 200px; }
}

.article-inline-figure {
  margin: 26px 0;
}

.article-inline-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-s);
  display: block;
  background: var(--color-green-light);
}

@media (max-width: 760px) {
  .article-inline-img { height: 180px; }
}

.spot-card img {
  border-radius: var(--radius) var(--radius) 0 0;
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.spot-card {
  background: var(--color-bg-paper);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.spot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.spot-card__body { padding: 22px; }

.btn {
  display: inline-block;
  background: var(--color-green);
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { background: var(--color-green-deep); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn.btn-outline {
  background: transparent;
  color: var(--color-green-deep);
  border: 1.5px solid var(--color-green);
  box-shadow: none;
}

.btn.btn-outline:hover { background: var(--color-green-light); }

.btn.btn-small { padding: 9px 18px; font-size: 0.82rem; }

table.timeline {
  width: 100%;
  border-collapse: collapse;
}

table.timeline th, table.timeline td {
  text-align: left;
  vertical-align: top;
  padding: 16px 14px;
  border-bottom: 1px solid var(--color-border);
}

table.timeline th {
  white-space: nowrap;
  color: var(--color-green-deep);
  font-family: var(--font-serif);
  width: 9.5em;
  font-weight: 700;
  font-size: 0.92rem;
}

table.timeline tr.is-key > th,
table.timeline tr.is-key > td { background: #fbf6ef; }

table.timeline tr.is-key > th {
  color: #b4571c;
  box-shadow: inset 3px 0 0 var(--color-accent);
}

table.timeline tr.is-key > td strong {
  color: #b4571c;
  font-weight: 700;
}

blockquote.legend {
  background: var(--color-green-light);
  border-left: 4px solid var(--color-green);
  margin: 0;
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text);
}

figure.family-tree {
  background: var(--color-bg-tint);
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
}

figure.family-tree pre {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.subnav a {
  padding: 10px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.86rem;
  background: var(--color-bg-paper);
  font-weight: 700;
}

.subnav a[aria-current="page"] {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

/* ---------- ブログ記事 ---------- */

.article-meta {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.article-body {
  font-size: 1rem;
}

.article-body p { margin-bottom: 1.15em; }

.qa-q { font-weight: 700; color: var(--color-green-deep); }

.staff-sign {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-sign img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

/* ---------- 資料(拡大表示)ページ ---------- */

.doc-viewer {
  background: #1c1c1a;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.doc-viewer img {
  margin: 0 auto;
  max-height: 80vh;
  border: 6px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border-radius: 4px;
}

.doc-url-box {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.doc-url-box input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-s);
  font-family: monospace;
  font-size: 0.85rem;
  background: var(--color-bg-paper);
}

.copy-feedback {
  font-size: 0.85rem;
  color: var(--color-green-deep);
  font-weight: 700;
  visibility: hidden;
}

.copy-feedback.show { visibility: visible; }

/* ---------- お問い合わせ ---------- */

.contact-notice {
  background: #fef4e6;
  border: none;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: #7a5217;
  margin-bottom: 28px;
}

/* いたずら投稿についての注意書き(赤字) */
.contact-notice--alert {
  background: #fdeceb;
  color: #a3241a;
  font-weight: 500;
}

.contact-form {
  background: var(--color-bg-paper);
  border: none;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 44px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 0.92rem;
}

.contact-form input[type="text"],
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 22px;
  background: var(--color-bg-tint);
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-green);
  outline-offset: 1px;
  background: #fff;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.radio-row {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}

.radio-row label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  margin-bottom: 20px;
}

.form-note--alert {
  color: #a3241a;
}

/* ---------- スレッド一覧(アコーディオン) ---------- */

.thread-list-hint {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}

.thread {
  border: none;
  border-radius: var(--radius);
  background: var(--color-bg-paper);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.thread.thread--mine {
  box-shadow: 0 0 0 2.5px var(--color-green), var(--shadow-sm);
}

.thread__summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.thread__summary:hover { background: var(--color-bg-tint); }

.thread__summary .thread-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-green-light);
  color: var(--color-green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.thread--mine .thread__summary .thread-icon {
  background: var(--color-green);
  color: #fff;
}

.thread__summary .thread-preview {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.thread__summary .thread-preview-q {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread__summary .thread-preview-meta {
  font-size: 0.76rem;
  color: var(--color-text-soft);
}

.thread__summary .thread-chevron {
  flex-shrink: 0;
  color: var(--color-text-soft);
  transition: transform 0.18s ease;
  font-size: 0.8rem;
}

.thread.is-open .thread__summary .thread-chevron { transform: rotate(180deg); }

.thread__body {
  display: none;
  border-top: 1px solid var(--color-border);
}

.thread.is-open .thread__body { display: block; }

/* 非公開・承認待ちの投稿(押しても開かない、質問文だけの枠) */

.thread--private {
  background: var(--color-bg-tint);
}

.thread-private__body {
  padding: 17px 20px;
}

.thread-private__q {
  margin: 0 0 10px;
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.thread-private__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-private {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-soft);
  background: var(--color-border);
  border-radius: 999px;
  padding: 4px 12px;
}

.thread__q, .thread__a {
  padding: 16px 20px;
}

.thread__q + .thread__q,
.thread__a + .thread__q,
.thread__q + .thread__a,
.thread__a + .thread__a {
  border-top: 1px dashed var(--color-border);
}

.thread__q { background: var(--color-bg-tint); }

.thread-no {
  font-size: 0.72rem;
  color: var(--color-text-soft);
  font-family: monospace;
}

.thread-name {
  font-weight: 700;
  color: var(--color-green-deep);
  margin-right: 8px;
}

.thread__a .thread-name { color: var(--color-accent); }

.thread-date {
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

.thread-body { margin-top: 6px; white-space: pre-wrap; }

.thread__a.no-reply {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  font-style: italic;
}

.thread img.attach-thumb {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  cursor: zoom-in;
  max-width: 220px;
}

.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-green-light);
  color: var(--color-green-deep);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 4px 0 16px;
}

/* ---------- モーダル(画像拡大) ---------- */

.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 12, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

.img-modal.open { display: flex; }

.img-modal img {
  max-width: 100%;
  max-height: 90vh;
  border: 6px solid #fff;
  box-shadow: 0 6px 30px rgba(0,0,0,0.5);
  border-radius: 4px;
}

.img-modal__close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--color-text);
  color: #d8dbd4;
  margin-top: 70px;
  padding: 40px 0 24px;
  font-size: 0.85rem;
}

.site-footer a { color: #f2f3ee; }

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 20px;
}

.site-footer .copyright {
  color: #97998e;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  margin-top: 18px;
}

/* ---------- レスポンシブ(モバイル優先) ---------- */

@media (max-width: 760px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-paper);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 10px;
    gap: 2px;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 15px 16px;
    margin: 0;
    border-radius: var(--radius-s);
    font-size: 1.02rem;
  }

  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--color-green-light); }

  .nav-toggle { display: flex; }

  .hero__image { max-height: 300px; }

  .container { padding: 0 16px; }
  .card { padding: 22px; }
  .contact-form { padding: 22px; }
  .band { padding: 30px 0; }

  table.timeline th, table.timeline td { display: block; width: 100%; }
  table.timeline th { border-bottom: none; padding-bottom: 0; }
  table.timeline tr.is-key > th,
  table.timeline tr.is-key > td { box-shadow: inset 3px 0 0 var(--color-accent); }

  .thread__summary { padding: 14px 15px; }
  .thread__q, .thread__a { padding: 13px 15px; }
}
