/* ===== リセット & ベース ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* テーマカラー */
  --color-vision: #3B82C4;
  --color-action: #4CAF50;
  --color-heaven: #78909C;
  --color-earth: #607D8B;
  --color-community: #F5A623;
  --color-leadership: #C0392B;

  /* 基本色 */
  --color-text: #2c3e50;
  --color-text-light: #5a6c7d;
  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-link: #3B82C4;
  --color-dark: #1a1a2e;

  /* フォント */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', 'Zen Kaku Gothic New', sans-serif;
  --font-script: 'Georgia', 'Times New Roman', serif;

  /* スペーシング */
  --header-height: 60px;
  --section-padding: 80px;
  --content-max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2563a0;
  text-decoration: underline;
}

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

/* ===== ヘッダー ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 0.3s;
}

#site-header.scrolled .logo {
  color: var(--color-text);
}

.logo-text {
  letter-spacing: 0.5px;
}

.logo-text-img {
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

#site-header.scrolled .logo-text-img {
  filter: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

#site-header.scrolled .nav-link {
  color: var(--color-text);
}

#site-header.scrolled .nav-link:hover {
  background: rgba(59, 130, 196, 0.08);
  color: var(--color-vision);
}

/* モバイルメニューボタン */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

#site-header.scrolled .mobile-menu-btn span {
  background: var(--color-text);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== ヒーローセクション ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      rgba(0, 0, 0, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-welcome {
  font-family: var(--font-script);
  font-size: 2.5rem;
  font-style: italic;
  opacity: 0.95;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-logo-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
  margin-bottom: 24px;
}

.hero-logo-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-logo-text-img {
  height: 50px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 2px;
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-scroll-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  opacity: 0.7;
  animation: bounce 2s infinite;
  text-decoration: none;
}

.hero-scroll-btn:hover {
  opacity: 1;
  text-decoration: none;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== コンテンツセクション共通 ===== */
.content-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-image-banner {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-overlay {
  position: absolute;
  inset: 0;
}

.vision-overlay {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.5) 100%);
  border-bottom: 4px solid var(--color-vision);
}

.action-overlay {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.5) 100%);
  border-bottom: 4px solid var(--color-action);
}

.heaven-overlay {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.5) 100%);
  border-bottom: 4px solid #a8c56c;
}

.earth-overlay {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.5) 100%);
  border-bottom: 4px solid var(--color-earth);
}

.community-overlay {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.5) 100%);
  border-bottom: 4px solid var(--color-community);
}

.leadership-overlay {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.5) 100%);
  border-bottom: 4px solid var(--color-leadership);
}

.section-body {
  position: relative;
  padding: var(--section-padding) 24px;
  background: var(--color-bg);
}

.section-body::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--color-bg));
  pointer-events: none;
}

.section-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* セクションアイコン */
.section-icon-block {
  text-align: center;
  padding: 20px;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.direction-icon {
  margin-bottom: 12px;
}

.direction-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.direction-desc {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.vision-color {
  color: var(--color-vision);
}

.action-color {
  color: var(--color-action);
}

.heaven-color {
  color: var(--color-heaven);
}

.earth-color {
  color: var(--color-earth);
}

.community-color {
  color: var(--color-community);
}

.leadership-color {
  color: var(--color-leadership);
}

/* セクションテキスト */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
  letter-spacing: 1px;
}

.section-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8ecef;
}

.section-text-block p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.9;
}

.subsection-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.section-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--color-text);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.section-cta:hover {
  background: var(--color-vision);
  color: white;
  text-decoration: none;
}

/* 引用ハイライト */
.quote-highlight {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-heaven);
  padding: 24px 28px;
  background: linear-gradient(135deg, #f8f9fa, #eef2f6);
  border-left: 4px solid var(--color-heaven);
  border-radius: 0 8px 8px 0;
  line-height: 2.2;
  margin: 24px 0;
}

/* 仕組みリスト */
.how-it-works-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.how-it-works-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
}

.how-it-works-list li:last-child {
  border-bottom: none;
}

.how-it-works-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-earth);
}

/* ホストCTA */
.host-cta-block {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* 活用事例カード */
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.use-case-card {
  padding: 28px 24px;
  background: var(--color-bg-light);
  border-radius: 12px;
  border: 1px solid #e8ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.use-case-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-leadership);
}

.use-case-card p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== ボタン共通 ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-text);
  color: white;
  border-color: var(--color-text);
}

.btn-primary:hover {
  background: var(--color-vision);
  border-color: var(--color-vision);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: white;
}

.btn-light {
  background: white;
  color: var(--color-text);
  border-color: white;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-vision);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border-color: white;
}

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

/* ===== ゲームを探すセクション ===== */
.games-section {
  position: relative;
  padding: 100px 24px;
  color: white;
  overflow: hidden;
}

.games-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.games-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(26, 26, 46, 0.88) 0%,
      rgba(44, 62, 80, 0.82) 100%);
}

.games-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.games-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.games-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 12px;
  line-height: 1.8;
}

.games-desc {
  font-size: 0.92rem;
  opacity: 0.8;
  margin-bottom: 32px;
}

.games-cta-block {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.games-how {
  text-align: left;
}

.games-how h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 32px;
}

.games-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 28px 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-vision);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

.step-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* ===== お問い合わせ ===== */
.contact-section {
  padding: 80px 24px;
  background: var(--color-bg-light);
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-heading {
  margin-bottom: 20px;
}

.contact-inner>p {
  font-size: 0.95rem;
  margin-bottom: 28px;
  color: var(--color-text-light);
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== フッター ===== */
#site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .section-inner {
    grid-template-columns: 180px 1fr;
    gap: 32px;
  }

  .use-cases {
    grid-template-columns: 1fr;
  }

  .games-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
    --header-height: 56px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  #main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 80px 24px 32px;
    transition: right 0.3s ease;
    z-index: 1005;
    overflow-y: auto;
  }

  #main-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    color: var(--color-text);
    padding: 14px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
  }

  .nav-link:hover {
    background: rgba(59, 130, 196, 0.08);
    color: var(--color-vision);
  }

  .hero-welcome {
    font-size: 1.8rem;
  }

  .hero-logo-text {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 20px;
  }

  .section-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-icon-block {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    text-align: left;
    padding: 16px;
  }

  .direction-icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }

  .direction-icon svg {
    width: 60px;
    height: 60px;
  }

  .direction-title {
    align-self: end;
  }

  .direction-desc {
    align-self: start;
  }

  .section-image-banner {
    height: 40vh;
    min-height: 250px;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .games-section {
    padding: 60px 20px;
  }

  .games-heading {
    font-size: 1.5rem;
  }

  .games-steps {
    grid-template-columns: 1fr;
  }

  .host-cta-block,
  .games-cta-block,
  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-welcome {
    font-size: 1.4rem;
  }

  .hero-logo-block {
    padding: 10px 20px;
  }

  .hero-logo-text {
    font-size: 1.3rem;
  }

  .hero-logo-icon {
    width: 36px;
    height: 36px;
  }

  .section-heading {
    font-size: 1.3rem;
  }
}

/* ===== ユーティリティアニメーション ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}