/* ==========================================================================
   SCROLL GUIDE CANVAS (固定全画面オーバーレイ)
   ========================================================================== */
#scroll-guide-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background-color: rgba(15, 16, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background-color var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
}

.nav.scrolled {
  padding: 14px 0;
  background-color: rgba(10, 11, 13, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav.scrolled-light {
  padding: 16px 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.logo img {
  height: 40px !important;
  width: auto !important;
  max-height: 40px !important;
}

.logo-img-white {
  display: block !important;
}

.logo-img-black {
  display: none !important;
}

.nav.scrolled-light .logo-img-white {
  display: none !important;
}

.nav.scrolled-light .logo-img-black {
  display: block !important;
}

.nav.scrolled-light .logo {
  color: var(--text-dark);
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-light-muted);
  margin-top: 2px;
}

.nav.scrolled-light .logo-sub {
  color: var(--text-dark-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn,
.mobile-nav-dropdown {
  display: none;
}

@media (max-width: 768px) {
  .nav .container {
    padding: 0 16px;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    gap: 6px;
    width: max-content;
    max-width: calc(100% - 92px);
    box-sizing: border-box;
    justify-content: center;
    margin: 0;
    padding: 0;
    z-index: 10;
  }

  .logo img {
    height: 30px !important;
  }

  .logo-sub {
    font-size: 8px;
  }

  .nav-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }

  .nav-actions .btn-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold-heavy);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }

  .nav:not(.scrolled-light) .hamburger-btn span {
    background-color: var(--accent-gold);
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-nav-dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 20, 28, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(181, 146, 74, 0.3);
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  .nav.scrolled-light .mobile-nav-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(181, 146, 74, 0.2);
  }

  .mobile-nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
  }

  .nav.scrolled-light .mobile-nav-link {
    color: #0f172a;
    background-color: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:active {
    background-color: var(--accent-gold);
    color: var(--bg-dark) !important;
  }
}

@media (max-width: 480px) {
  .nav .container {
    padding: 0 12px;
  }

  .logo {
    gap: 4px;
    max-width: calc(100% - 80px);
    padding: 0;
  }

  .logo img {
    height: 24px !important;
  }

  .logo-text {
    font-size: clamp(11px, 3.8vw, 15px);
    white-space: nowrap;
  }

  .nav-actions {
    right: 12px;
  }
}

.btn-nav {
  padding: 8px 20px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  transition: all var(--transition-fast);
}

.btn-nav:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark) !important;
}

.nav.scrolled-light .btn-nav:hover {
  color: var(--bg-primary) !important;
}

/* ==========================================================================
   BUTTONS (PREMIUM CTA)
   ========================================================================== */
.btn-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px var(--accent-gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(223, 202, 159, 0.5);
  background: linear-gradient(135deg, var(--accent-gold-hover) 0%, #bf9f6b 100%);
}



.btn-line-cta {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-heavy) 100%);
  color: var(--bg-dark);
  font-size: 16px;
  font-weight: 700;
  padding: 18px 48px;
  box-shadow: 0 6px 24px var(--accent-gold-heavy-glow);
  gap: 12px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.btn-line-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(181, 146, 74, 0.45);
  background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold-heavy-hover) 100%);
}

.btn-line-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine 3s infinite ease-in-out;
}

@keyframes shine {
  0% {
    left: -150%;
  }

  20% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.btn-line-cta svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 100px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-quote {
  max-width: 700px;
  margin: 0 auto 80px;
  text-align: center;
}

.footer-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.8vw, 26px);
  line-height: 1.8;
  margin-bottom: 16px;
}



.footer-main {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: 30px;
  }
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 12.5px;
  color: var(--text-light-muted);
}

.footer-link:hover {
  color: var(--accent-gold);
}

.footer-copyright {
  font-family: var(--font-num);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  letter-spacing: 0.05em;
}

.footer-info {
  text-align: center;
}

.footer-address {
  font-size: 12px;
  color: var(--text-light-muted);
  line-height: 1.65;
  margin-top: 12px;
}

.footer-address a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-address a:hover {
  color: var(--accent-gold);
}


.footer-utility {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.footer-utility .footer-link {
  font-size: 11.5px;
}

/* ==========================================================================
   MODAL DIALOG (VIDEO & PROFILE POPUPS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 16, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 900px;
  background-color: var(--bg-dark-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-dark-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transform: translateY(30px);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.modal-body {
  padding: 0;
  position: relative;
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000000;
}

.modal-video-wrapper iframe,
.modal-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Profile Modal Content */
.profile-modal-content {
  display: flex;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .profile-modal-content {
    flex-direction: column;
  }
}

.profile-modal-img {
  flex: 0 0 50%;
  width: 50%;
  height: 450px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .profile-modal-img {
    flex: none;
    width: 100%;
    height: 300px;
  }
}

.profile-modal-info {
  padding: 50px;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .profile-modal-info {
    padding: 30px;
  }
}

.profile-modal-info h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.profile-modal-info .role {
  font-size: 12px;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.profile-modal-info .comment {
  font-size: 15px;
  color: var(--text-light-muted);
  line-height: 1.8;
  margin-bottom: 30px;
  font-style: italic;
}

.profile-modal-info .bio {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

/* ==========================================================================
   REPORT MODAL LIGHT THEME (活動報告等のライトテーマ用)
   ========================================================================== */
.modal-container:has(.report-modal-content) {
  background-color: #ffffff !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25) !important;
  border: 1px solid rgba(181, 146, 74, 0.3) !important;
}

.modal-container:has(.report-modal-content) .modal-close {
  background-color: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

.modal-container:has(.report-modal-content) .modal-close:hover {
  background-color: var(--accent-gold-heavy) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Activities Section Styles (共通コンポーネント)
   ========================================================================== */
.activities-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 50px;
}

.activity-card {
  display: flex;
  align-items: stretch;
  background-color: var(--bg-primary);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-fast);
  width: 100%;
}

.activity-card:nth-child(even) {
  flex-direction: row-reverse;
}

.activity-img-wrapper {
  flex: 1;
  width: 50%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.activity-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.activity-card:hover .activity-card-img {
  transform: scale(1.05);
}

.activity-card-img.zoom-focus {
  transform: scale(1.12);
}

.activity-card:hover .activity-card-img.zoom-focus {
  transform: scale(1.18);
}

.activity-card-body {
  flex: 1;
  width: 50%;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.bg-dark .activity-card {
  background-color: var(--bg-dark-card);
  border-color: var(--line-dark);
}

.activity-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.bg-dark .activity-card:hover {
  box-shadow: var(--shadow-dark-lg);
}

.meetup-zoom-img {
  object-position: 60% center;
  animation: ken-burns-meetup 28s ease-in-out infinite alternate;
  transform-origin: 60% center;
  will-change: transform;
}

#act-meetup-wrapper {
  position: relative;
}


.activity-label {
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.activity-card h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
}

.activity-card p {
  font-size: 14px;
  color: var(--text-dark-muted);
  line-height: 1.8;
}

.bg-dark .activity-card p {
  color: var(--text-light-muted);
}

/* スマホ表示用レイアウト（縦並び） */
@media (max-width: 768px) {
  .activities-grid {
    gap: 30px;
  }

  .activity-card,
  .activity-card:nth-child(even) {
    flex-direction: column;
  }

  .activity-img-wrapper,
  .activity-card-body {
    width: 100%;
  }

  .activity-card-body {
    padding: 30px 24px;
  }

  .activity-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .activity-card p {
    font-size: 13.5px;
  }
}

/* ==========================================================================
   Numbers Section Styles (共通コンポーネント)
   ========================================================================== */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.number-card {
  text-align: center;
}

.number-value {
  font-family: var(--font-num);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 300;
  color: var(--accent-gold-heavy);
  line-height: 1.1;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.bg-dark .number-value {
  color: var(--accent-gold-heavy);
}

.number-value .suffix {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  color: var(--text-dark);
  margin-left: 4px;
  font-family: var(--font-sans);
}

.number-label {
  font-size: 12.5px;
  color: var(--text-dark-muted);
  line-height: 1.6;
}

.bg-dark .number-label {
  color: var(--text-light-muted);
}

/* タブレット表示用レイアウト（2列） */
@media (max-width: 992px) {
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* モバイル表示用レイアウト（1列） */
@media (max-width: 480px) {
  .numbers-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   Why Text Block Styles (共通コンポーネント)
   ========================================================================== */
.why-text-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.why-lead-text {
  font-size: 16px;
  line-height: 2.1;
  color: var(--text-dark-muted);
  margin-bottom: 50px;
  text-align: center;
}

.bg-dark .why-lead-text {
  color: var(--text-light-muted);
}

.why-quote-block {
  border-top: none;
  padding-top: 30px;
}

.why-quote-message {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3.2vw, 32px);
  line-height: 1.7;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .why-quote-message {
    background-image: linear-gradient(to right, var(--accent-gold-heavy) 50%, var(--text-dark) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 3.5s cubic-bezier(0.3, 0.1, 0.3, 1) 0.8s;
  }

  .reveal.in .why-quote-message {
    background-position: 0 0;
  }
}

/* Header Contact */
.nav-contact {
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav.scrolled-light .nav-contact {
  color: var(--text-dark-muted);
}

.nav-contact:hover {
  color: var(--accent-gold);
}

.nav.scrolled-light .nav-contact:hover {
  color: var(--accent-gold-heavy);
}

@media (max-width: 768px) {
  .nav-contact {
    display: none;
  }
}