/* =================================================
   苫前未来会議 テーマスタイル
   ================================================= */

:root {
  /* ライトモード固定（ブラウザの自動ダークモード対策） */
  color-scheme: light;

  --brand-navy: #001a41;
  --brand-green: #1a6640;
  --brand-green-soft: #f0f9f4;
  --ink-muted: #8a93a3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background-color: #fff; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--brand-navy);
  background-color: #fff;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif {
  font-family: 'Shippori Mincho', serif;
}

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

a { color: inherit; }

::-webkit-scrollbar { width: 0px; }

.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}

/* -------------------------------------------------
   ヒーロー
   ------------------------------------------------- */
.hero-gradient {
  background: radial-gradient(circle at 85% 12%, var(--brand-green-soft) 0%, #ffffff 62%);
}

.hero-title {
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin: 0 0 2rem;
}
.hero-title .hero-line { display: block; white-space: nowrap; }
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero-title .hero-line { white-space: normal; }
}

.hero-media {
  position: relative;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #eef4f0 0%, #e3ecf4 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 26, 65, 0.25);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.hero-media__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 26, 65, 1);
}
.hero-media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--brand-green);
}
.hero-media__placeholder span {
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--ink-muted);
}

.turbine-spin {
  animation: tfs-rotate 16s linear infinite;
  transform-origin: center;
}
@keyframes tfs-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* -------------------------------------------------
   スクロール時のフェードアップ
   ------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .turbine-spin { animation: none; }
}

/* -------------------------------------------------
   カード
   ------------------------------------------------- */
.tfs-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 28px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tfs-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -25px rgba(0, 26, 65, 0.22);
}

.news-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef4f0, #e3ecf4);
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------
   右からスライドインするドロワー（対話テーマ詳細）
   ------------------------------------------------- */
.tfs-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 26, 65, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.tfs-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tfs-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 640px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -30px 0 80px -30px rgba(0, 26, 65, 0.35);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tfs-drawer.is-open {
  transform: translateX(0);
}

.tfs-drawer__inner {
  padding: 28px 28px 80px;
}
@media (min-width: 768px) {
  .tfs-drawer__inner { padding: 40px 56px 96px; }
}

.tfs-drawer__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 8px 4px;
  margin-left: -4px;
  cursor: pointer;
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  transition: color 0.2s ease;
  font-family: inherit;
}
.tfs-drawer__close:hover { color: var(--brand-green); }
.tfs-drawer__close svg { width: 18px; height: 18px; }

.tfs-drawer__bracket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
}
.tfs-drawer__list-mark {
  color: var(--brand-green);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.7;
  flex-shrink: 0;
  margin-top: 4px;
}

button.tfs-card {
  font-family: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

body.is-drawer-open { overflow: hidden; }

/* -------------------------------------------------
   WordPress 本文（投稿エディタで書いた内容）の体裁
   ------------------------------------------------- */
.entry-content { line-height: 2.1; font-weight: 300; }
.entry-content h2 { font-size: 1.5rem; margin: 2.4em 0 0.8em; font-weight: 700; }
.entry-content h3 { font-size: 1.2rem; margin: 2em 0 0.6em; font-weight: 700; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content a { color: var(--brand-green); text-decoration: underline; }
.entry-content img { border-radius: 16px; margin: 1.6em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.entry-content blockquote {
  border-left: 3px solid var(--brand-green);
  padding-left: 1.2em;
  color: var(--ink-muted);
  margin: 1.6em 0;
}
