/* ============================================================================
 * 高畠町観光協会（takahata）Layer 2 スタイル
 * 現行サイト (takahata.info / takahata-redesign250203.css) のカラーパレットを踏襲
 *   - Primary (olive-dark) : #4C4714（見出し帯・リンク）
 *   - Secondary (beige-gold): #B0A174（サブ・区切り）
 *   - Accent (green)       : #6A9349（強調）
 *   - Highlight (gold)     : #EDAD00
 *   - Brown               : #532612（文字強調）
 *   - BG (cream)          : #FFFAED
 *   - Font                : Noto Sans JP（本文）/ 游明朝（見出し）
 * スコープ: [data-template="custom-takahata"]
 * ========================================================================== */

[data-template="custom-takahata"] {
  --tk-olive:      #4C4714;
  --tk-olive-dark: #2f2c0a;
  --tk-olive-soft: #6b6420;
  --tk-beige:      #B0A174;
  --tk-green:      #6A9349;
  --tk-green-dark: #3a7630;
  --tk-gold:       #EDAD00;
  --tk-brown:      #532612;
  --tk-cream:      #FFFAED;
  --tk-cream-deep: #EFEFE3;
  --tk-text:       #2d2a1a;
  --tk-text-sub:   #6b6454;
  --tk-border:     #d9d1b4;
  --tk-shadow:     0 2px 8px rgba(76, 71, 20, 0.10);
}

[data-takahata-root] {
  background: var(--tk-cream);
  color: var(--tk-text);
  line-height: 1.75;
}

[data-takahata-root] a { color: inherit; text-decoration: none; }
[data-takahata-root] img { max-width: 100%; height: auto; display: block; }

/* ========== Header ========== */
.tk-sticky { position: sticky; top: 0; z-index: 90; }
.tk-header {
  background: #ffffffee;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--tk-border);
  box-shadow: var(--tk-shadow);
}
.tk-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
}
.tk-header__brand { display: flex; flex-direction: column; line-height: 1.2; }
.tk-header__brand-main {
  font-family: '游明朝', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
  font-weight: 700; font-size: 22px; color: var(--tk-olive); letter-spacing: 0.04em;
}
.tk-header__brand-sub {
  font-size: 11px; color: var(--tk-text-sub); letter-spacing: 0.08em; margin-top: 2px;
}
.tk-header__hamburger {
  position: relative; width: 48px; height: 48px; background: transparent;
  border: 1px solid var(--tk-olive); border-radius: 4px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 10px 10px 16px;
}
.tk-header__hamburger span {
  display: block; width: 22px; height: 2px; background: var(--tk-olive); margin: 2px 0;
  transition: transform 0.2s ease;
}
.tk-header__hamburger small {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: var(--tk-olive); letter-spacing: 0.15em;
}
.tk-header__hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tk-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.tk-header__hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========== Drawer ========== */
.tk-drawer-modal {
  position: fixed; inset: 0; background: rgba(45, 32, 32, 0.5); z-index: 199;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.tk-drawer-modal.is-open { opacity: 1; pointer-events: auto; }
.tk-drawer {
  position: fixed; top: 0; right: 0; width: min(380px, 85vw); height: 100vh;
  background: var(--tk-cream); z-index: 200; padding: 60px 30px 40px;
  transform: translateX(100%); transition: transform 0.3s ease;
  overflow-y: auto;
}
.tk-drawer.is-open { transform: translateX(0); }
.tk-drawer__close {
  position: absolute; top: 14px; right: 14px; background: transparent; border: none;
  cursor: pointer; color: var(--tk-olive); padding: 4px;
}
.tk-drawer__list { list-style: none; padding: 0; margin: 0 0 30px; }
.tk-drawer__list li { border-bottom: 1px solid var(--tk-border); }
.tk-drawer__list a {
  display: block; padding: 14px 8px; font-size: 15px; color: var(--tk-text);
  transition: color 0.2s;
}
.tk-drawer__list a:hover { color: var(--tk-olive); }
.tk-drawer__sns {
  display: flex; gap: 18px; justify-content: center; padding: 20px 0;
  border-top: 1px solid var(--tk-border);
}
.tk-drawer__sns a { color: var(--tk-olive); opacity: 0.85; transition: opacity 0.2s; }
.tk-drawer__sns a:hover { opacity: 1; }

/* ========== Main / Section ========== */
.tk-main { min-height: 50vh; }
.tk-section { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.tk-head {
  font-family: '游明朝', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
  font-weight: 700; font-size: clamp(22px, 3vw, 30px); color: var(--tk-olive);
  text-align: center; margin: 0 0 40px; position: relative; letter-spacing: 0.1em;
}
.tk-head::after {
  content: ''; display: block; width: 50px; height: 2px; background: var(--tk-gold);
  margin: 12px auto 0;
}

/* ========== Hero ========== */
.tk-hero { position: relative; width: 100%; height: clamp(260px, 60vh, 560px); overflow: hidden; }
.tk-hero-slideshow { position: absolute; inset: 0; }
.tk-hero-slideshow__image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.tk-hero-slideshow__image.is-active { opacity: 1; }
.tk-hero__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(76,71,20,0.35) 60%, rgba(76,71,20,0.55) 100%);
  color: #fff; text-align: center; padding: 20px;
}
.tk-hero__catch {
  font-family: '游明朝', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
  font-size: clamp(28px, 6vw, 56px); font-weight: 700; margin: 0;
  letter-spacing: 0.08em; text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.tk-hero__sub {
  font-size: clamp(13px, 2vw, 18px); margin: 10px 0 0; letter-spacing: 0.3em; opacity: 0.95;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ========== Global Nav ========== */
.tk-globalnav {
  background: var(--tk-olive); color: #fff;
  border-bottom: 3px solid var(--tk-gold);
}
.tk-globalnav ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  list-style: none; margin: 0 auto; padding: 0; max-width: 1200px;
}
.tk-globalnav li { flex: 1 1 auto; text-align: center; min-width: 110px; }
.tk-globalnav a {
  display: block; padding: 14px 10px; font-size: 14px; color: #fff;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.tk-globalnav li:last-child a { border-right: none; }
.tk-globalnav a:hover { background: var(--tk-olive-dark); }

/* ========== Category Cards ========== */
.tk-category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 720px) {
  .tk-category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.tk-category-card {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 6px; box-shadow: var(--tk-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tk-category-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(76,71,20,0.18); }
.tk-category-card__image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.4s ease;
}
.tk-category-card:hover .tk-category-card__image { transform: scale(1.06); }
.tk-category-card__label {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: center;
  color: #fff; font-weight: 700; font-size: clamp(16px, 2vw, 20px);
  background: linear-gradient(0deg, rgba(76,71,20,0.65) 0%, rgba(76,71,20,0.25) 100%);
  letter-spacing: 0.1em; text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ========== Top News Cards ========== */
.tk-top-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 720px) { .tk-top-cards { grid-template-columns: 1fr; } }
.tk-top-card {
  display: block; background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: var(--tk-shadow); transition: transform 0.3s ease;
}
.tk-top-card:hover { transform: translateY(-3px); }
.tk-top-card__image {
  width: 100%; aspect-ratio: 16 / 10; background-size: cover; background-position: center;
  background-color: var(--tk-cream-deep);
}
.tk-top-card__image--empty { background: var(--tk-cream-deep); }
.tk-top-card__date {
  font-size: 12px; color: var(--tk-text-sub); padding: 14px 16px 2px; margin: 0;
}
.tk-top-card__title {
  font-size: 15px; line-height: 1.6; padding: 0 16px 16px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tk-topnews__more { text-align: center; margin: 30px 0 0; }
.tk-topnews__more a {
  display: inline-block; padding: 10px 28px; border: 1px solid var(--tk-olive);
  color: var(--tk-olive); font-size: 14px; border-radius: 30px;
  transition: all 0.2s;
}
.tk-topnews__more a:hover { background: var(--tk-olive); color: #fff; }

/* ========== Facility Cards ========== */
.tk-facility-section { background: var(--tk-cream-deep); }
.tk-facility-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 720px) { .tk-facility-grid { grid-template-columns: 1fr; } }
.tk-facility-card {
  background: #fff; padding: 28px 24px; border-radius: 6px;
  border-top: 3px solid var(--tk-olive); box-shadow: var(--tk-shadow);
  transition: transform 0.3s ease;
}
.tk-facility-card:hover { transform: translateY(-3px); }
.tk-facility-card h3 {
  font-family: '游明朝', 'Yu Mincho', 'YuMincho', serif;
  font-size: 18px; color: var(--tk-olive); margin: 0 0 12px;
}
.tk-facility-card p { font-size: 14px; color: var(--tk-text-sub); margin: 0 0 16px; }
.tk-facility-card__arrow { color: var(--tk-olive); font-size: 13px; font-weight: 700; }

/* ========== CTA ========== */
.tk-cta {
  background: var(--tk-olive); color: #fff; padding: 60px 20px;
}
.tk-cta__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.tk-cta__title {
  font-family: '游明朝', 'Yu Mincho', 'YuMincho', serif;
  font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 20px;
}
.tk-cta__body { line-height: 2; margin: 0 0 24px; }
.tk-cta__body a { color: var(--tk-gold); text-decoration: underline; }
.tk-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tk-cta__btn {
  display: inline-block; padding: 12px 32px; background: var(--tk-gold); color: var(--tk-olive-dark);
  font-weight: 700; border-radius: 30px; letter-spacing: 0.1em;
  transition: all 0.2s;
}
.tk-cta__btn:hover { background: #d8b870; }
.tk-cta__btn--sub {
  background: transparent; color: #fff; border: 1px solid #fff;
}
.tk-cta__btn--sub:hover { background: #fff; color: var(--tk-olive); }

/* ========== Footer ========== */
.tk-footer {
  background: var(--tk-olive-dark); color: #e8d9c0; padding: 50px 20px 24px;
}
.tk-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px;
  max-width: 1200px; margin: 0 auto;
}
.tk-footer__title { margin: 0 0 20px; }
.tk-footer__title .name {
  display: block; font-family: '游明朝', 'Yu Mincho', serif;
  font-weight: 700; font-size: 22px; color: #fff; letter-spacing: 0.06em;
}
.tk-footer__title .sub {
  display: block; font-size: 11px; opacity: 0.8; margin-top: 4px; letter-spacing: 0.1em;
}
.tk-footer__address { font-size: 13px; line-height: 1.9; margin: 0 0 16px; opacity: 0.9; }
.tk-footer__address a { color: #fff; text-decoration: underline; }
.tk-footer__copy { font-size: 11px; opacity: 0.7; margin: 20px 0 0; }

.tk-footer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.tk-footer__sns { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.tk-footer__sns a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%;
  color: #fff; transition: background 0.2s;
}
.tk-footer__sns a:hover { background: var(--tk-gold); color: var(--tk-olive-dark); }
.tk-footer__totop {
  font-size: 12px; color: #fff; padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 4px;
  transition: all 0.2s;
}
.tk-footer__totop:hover { background: var(--tk-gold); color: var(--tk-olive-dark); border-color: var(--tk-gold); }

/* ========== Body content pages (tenant_pages / blog) ========== */
.tk-main .p-main,
.tk-main article,
.tk-main .tk-article {
  max-width: 920px; margin: 0 auto; padding: 40px 20px 60px;
}
.tk-main h1, .tk-main h2 {
  font-family: '游明朝', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
  color: var(--tk-olive);
}
.tk-main h2 {
  border-bottom: 2px solid var(--tk-gold); padding-bottom: 8px; margin-top: 2em;
}
.tk-main h3 {
  color: var(--tk-olive-dark); border-left: 4px solid var(--tk-gold);
  padding-left: 10px; margin-top: 1.6em;
}
.tk-main a { color: var(--tk-olive); text-decoration: underline; }
.tk-main img { border-radius: 4px; margin: 10px 0; }
