/* =================================================
   BWH総合研究所 - 内部ページ共通スタイル（白系権威デザイン）
   ================================================= */

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

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #f9f9f7;
  --color-bg-2: #f2f4f8;
  --color-bg-dark: #0e1a2e;
  --color-surface: #ffffff;
  --color-surface-2: #f4f6fb;
  --color-surface-3: #eaecf4;
  --color-text: #1a2b4a;
  --color-text-muted: #5a6e8e;
  --color-text-light: #ffffff;
  --color-heading: #0d1f3c;
  --color-accent-1: #1e3a8a;
  --color-accent-2: #2563eb;
  --color-accent-3: #3b82f6;
  --color-accent-pale: #dbeafe;
  --color-border: rgba(30,58,138,0.10);
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-en: 'Cormorant Garamond', serif;
  --max-width: 1200px;
  --header-h: 72px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); line-height: 1.8; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(30,58,138,0.07);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.site-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  z-index: 2;
}
.logo-mark {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-accent-1);
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 2;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== ドロップダウンナビ ===== */
.dropdown-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 40px;
  width: 220px;
  background: #ffffff;
  border: 1px solid rgba(30,58,138,0.12);
  box-shadow: 0 16px 48px rgba(30,58,138,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}
.dropdown-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-nav ul { list-style: none; padding: 8px 0; }
.dropdown-nav ul li a {
  display: block;
  padding: 12px 24px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  font-family: var(--font-sans);
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(30,58,138,0.05);
}
.dropdown-nav ul li:last-child a { border-bottom: none; }
.dropdown-nav ul li a:hover {
  background: var(--color-accent-pale);
  color: var(--color-accent-1);
}

/* 旧mobile-navは非表示 */
.mobile-nav { display: none; }

/* ---------- Page Hero ---------- */
.page-hero {
  padding-top: var(--header-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(30,58,138,0.04) 0%, transparent 70%);
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 60px 64px;
  position: relative;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.page-breadcrumb a { color: var(--color-accent-2); transition: opacity 0.3s; }
.page-breadcrumb a:hover { opacity: 0.7; }
.page-breadcrumb span { color: var(--color-text-muted); }
.page-hero-en {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: rgba(30,58,138,0.05);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ---------- Page Content ---------- */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 60px;
}

/* ---------- Btn Outline ---------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  border: 1px solid rgba(30,58,138,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--color-accent-1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,58,138,0.06);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.btn-outline:hover::before { transform: scaleX(1); }
.btn-outline:hover { border-color: rgba(30,58,138,0.6); }

/* ---------- Placeholder SVG ---------- */
.placeholder-svg {
  width: 40px;
  height: 40px;
  color: rgba(30,58,138,0.15);
}

/* ---------- Fade Up Animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section Label ---------- */
.section-label-wrap {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: 2;
}
.section-label-en {
  font-family: var(--font-en);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  color: rgba(30,58,138,0.04);
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}
.section-label-ja {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.footer-logo .logo-mark { color: rgba(255,255,255,0.8); }
.footer-logo .logo-text { color: rgba(255,255,255,0.5); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.8); }
.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-sans);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--color-accent-1);
  border-color: var(--color-accent-1);
  color: #ffffff;
}

/* ---------- Card Grid (list pages) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.list-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(30,58,138,0.04);
}
.list-card:hover {
  border-color: rgba(30,58,138,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(30,58,138,0.09);
}
.list-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.list-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.list-card:hover .list-card-img img { transform: scale(1.05); }
.list-card-img-placeholder {
  width: 100%; height: 100%;
  background: var(--color-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.list-card-body {
  padding: 22px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.list-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 1px solid rgba(30,58,138,0.25);
  color: var(--color-accent-1);
  background: var(--color-accent-pale);
  margin-bottom: 12px;
  align-self: flex-start;
}
.list-card-date {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.list-card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 10px;
  line-height: 1.6;
  flex: 1;
}
.list-card-excerpt {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 14px;
}
.list-card-link {
  font-size: 0.75rem;
  color: var(--color-accent-2);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
  margin-top: auto;
}
.list-card-link:hover { gap: 12px; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: var(--transition);
}
.pagination a:hover, .pagination .current {
  border-color: var(--color-accent-1);
  color: var(--color-accent-1);
  background: var(--color-accent-pale);
}

/* ---------- Detail Page ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}
.detail-main {}
.detail-sidebar {}

.detail-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 48px;
  position: relative;
  border: 1px solid var(--color-border);
}
.detail-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail-hero-img-placeholder {
  width: 100%; height: 100%;
  background: var(--color-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.detail-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border: 1px solid rgba(30,58,138,0.25);
  color: var(--color-accent-1);
  background: var(--color-accent-pale);
}
.detail-date {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.5;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.detail-body {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 2;
}
.detail-body h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-heading);
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent-1);
}
.detail-body h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent-1);
  margin: 32px 0 14px;
}
.detail-body p { margin-bottom: 20px; }
.detail-body ul, .detail-body ol { margin: 16px 0 24px 24px; }
.detail-body li { margin-bottom: 8px; }
.detail-body blockquote {
  border-left: 3px solid var(--color-accent-1);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--color-accent-pale);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---------- Sidebar ---------- */
.sidebar-box {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-box-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-list { list-style: none; }
.sidebar-list li { border-bottom: 1px solid var(--color-border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a {
  display: block;
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--color-text);
  transition: color 0.3s;
}
.sidebar-list li a:hover { color: var(--color-accent-2); }

.sidebar-cta {
  background: var(--color-accent-1);
  padding: 28px;
  text-align: center;
}
.sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  line-height: 1.8;
}
.sidebar-cta a {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  transition: background 0.3s;
}
.sidebar-cta a:hover { background: rgba(255,255,255,0.1); }

/* ---------- Service Detail ---------- */
.service-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.service-detail-logo-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.service-detail-logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.service-detail-logo-text .service-num {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 4px;
}
.service-detail-logo-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.3;
}
.service-detail-logo-text p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.service-detail-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--color-border);
}
.service-detail-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-detail-img-placeholder {
  width: 100%; height: 100%;
  background: var(--color-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-body {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 2.1;
}
.service-detail-body h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-heading);
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent-1);
}
.service-detail-body h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-accent-1);
  margin: 28px 0 12px;
  font-weight: 500;
}
.service-detail-body p { margin-bottom: 20px; }
.service-detail-body ul { margin: 0 0 20px 20px; }
.service-detail-body li { margin-bottom: 8px; }

/* Flow steps */
.flow-steps {
  counter-reset: step;
  margin: 32px 0;
}
.flow-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}
.flow-step:last-child { border-bottom: none; }
.flow-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent-1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.flow-step-body h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 8px;
}
.flow-step-body p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin: 0;
}

/* CTA box */
.service-cta-box {
  margin-top: 60px;
  padding: 48px;
  background: var(--color-accent-pale);
  border: 1px solid rgba(30,58,138,0.15);
  text-align: center;
}
.service-cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-heading);
  margin-bottom: 12px;
}
.service-cta-box p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* Back link */
.detail-back {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

/* ---------- Lecture CTA (knowledge list) ---------- */
.lecture-cta {
  margin-top: 80px;
  padding: 60px 48px;
  background: var(--color-accent-1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lecture-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.lecture-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
}
.lecture-cta p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.9;
  position: relative;
}
.lecture-cta a {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: #ffffff;
  transition: background 0.3s;
  position: relative;
}
.lecture-cta a:hover { background: rgba(255,255,255,0.1); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-inner { padding: 0 20px; }
  .page-hero-inner { padding: 60px 24px 48px; }
  .page-content { padding: 60px 24px; }
  .footer-inner { padding: 0 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .service-detail-header { flex-direction: column; align-items: flex-start; }
  .service-cta-box { padding: 32px 24px; }
  .lecture-cta { padding: 40px 24px; }
  .dropdown-nav { right: 16px; width: 200px; }
}

/* ── 480px以下（スマホ縦向き）追加対応 ── */
@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .page-hero-inner { padding: 48px 16px 36px; }
  .page-content { padding: 40px 16px; }
  .footer-inner { padding: 0 16px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .dropdown-nav { right: 8px; width: calc(100vw - 16px); max-width: 300px; }
  .service-cta-box { padding: 24px 16px; }
  .lecture-cta { padding: 32px 16px; }
  /* ページタイトル */
  .page-title { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  /* フィルターバー */
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.72rem; }
}
