/* =====================================================
   40TH ANNIVERSARY PAGE
   ===================================================== */
:root {
  --gold: #c9a84c;
  --gold-light: #e8d48b;
}
body { padding-top: 104px; }

/* ============================================
   40TH ANNIVERSARY — CINEMATIC HERO
   ============================================ */
.hero-40th {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0604 0%, #1a0f08 30%, #0d0805 60%, #120904 100%);
}

/* Radial glow behind the "40" */
.hero-40th::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 700px; height: 700px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(201,168,76,0.10) 0%, rgba(201,168,76,0.03) 40%, transparent 70%);
  pointer-events: none;
}

/* Subtle vignette */
.hero-40th::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* Particle / shimmer field */
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-particles span {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: particleFade 4s ease-in-out infinite;
}
.hero-particles span:nth-child(1)  { top: 15%; left: 10%; animation-delay: 0s; animation-duration: 5s; }
.hero-particles span:nth-child(2)  { top: 25%; left: 85%; animation-delay: 0.7s; animation-duration: 4.2s; }
.hero-particles span:nth-child(3)  { top: 60%; left: 20%; animation-delay: 1.4s; animation-duration: 5.5s; }
.hero-particles span:nth-child(4)  { top: 70%; left: 75%; animation-delay: 2.1s; animation-duration: 3.8s; }
.hero-particles span:nth-child(5)  { top: 40%; left: 50%; animation-delay: 0.3s; animation-duration: 4.6s; }
.hero-particles span:nth-child(6)  { top: 80%; left: 40%; animation-delay: 1.8s; animation-duration: 5.2s; }
.hero-particles span:nth-child(7)  { top: 10%; left: 60%; animation-delay: 2.5s; animation-duration: 4.0s; }
.hero-particles span:nth-child(8)  { top: 50%; left: 5%;  animation-delay: 0.9s; animation-duration: 5.8s; }
.hero-particles span:nth-child(9)  { top: 35%; left: 90%; animation-delay: 3.2s; animation-duration: 4.4s; }
.hero-particles span:nth-child(10) { top: 90%; left: 15%; animation-delay: 1.1s; animation-duration: 5.0s; }
.hero-particles span:nth-child(11) { top: 20%; left: 35%; animation-delay: 2.8s; animation-duration: 4.8s; }
.hero-particles span:nth-child(12) { top: 55%; left: 65%; animation-delay: 0.5s; animation-duration: 5.3s; }
.hero-particles span:nth-child(13) { top: 75%; left: 55%; animation-delay: 3.6s; animation-duration: 4.1s; }
.hero-particles span:nth-child(14) { top: 45%; left: 25%; animation-delay: 1.6s; animation-duration: 5.6s; }
.hero-particles span:nth-child(15) { top: 85%; left: 80%; animation-delay: 2.3s; animation-duration: 3.9s; }
.hero-particles span:nth-child(16) { top: 30%; left: 70%; animation-delay: 0.2s; animation-duration: 5.1s; }
.hero-particles span:nth-child(17) { top: 65%; left: 45%; animation-delay: 3.0s; animation-duration: 4.3s; }
.hero-particles span:nth-child(18) { top: 5%;  left: 50%; animation-delay: 1.3s; animation-duration: 5.4s; }
.hero-particles span:nth-child(19) { top: 48%; left: 12%; animation-delay: 2.6s; animation-duration: 4.7s; }
.hero-particles span:nth-child(20) { top: 92%; left: 60%; animation-delay: 0.8s; animation-duration: 5.9s; }

@keyframes particleFade {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  50% { opacity: 0.7; transform: translateY(-20px) scale(1.5); }
}

/* Horizontal decorative lines */
.hero-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.15), transparent);
  pointer-events: none;
}
.hero-line-top { top: 18%; left: 0; right: 0; }
.hero-line-bottom { bottom: 18%; left: 0; right: 0; }

.hero-content {
  position: relative; z-index: 2;
  padding: 40px 24px;
  animation: heroFadeIn 1.5s ease-out both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-year-span {
  font-family: "Noto Serif JP", serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.5em;
  margin-bottom: 20px;
  opacity: 0.8;
}

.hero-number {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(100px, 20vw, 200px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(
    135deg,
    #b8962a 0%,
    #e8d48b 25%,
    #c9a84c 50%,
    #f5e6a3 75%,
    #b8962a 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGold 4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.15));
  position: relative;
}

@keyframes shimmerGold {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-th {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 400;
  display: inline-block;
  vertical-align: super;
  margin-left: 4px;
  background: linear-gradient(135deg, #c9a84c, #e8d48b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-anniversary {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 400;
  letter-spacing: 0.6em;
  color: rgba(232,212,139,0.7);
  margin-top: 8px;
  text-transform: uppercase;
}

.hero-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 28px auto;
}

.hero-company {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(16px, 2.8vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.15em;
}

.hero-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em;
  margin-top: 10px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(201,168,76,0.4);
  font-size: 0.65rem; letter-spacing: 0.3em;
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.3;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(5px); }
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
  background: #0a0604;
  padding: 80px 0;
  position: relative;
}
.video-section::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #0a0604, transparent);
  pointer-events: none;
}
.video-section .container { max-width: 800px; }
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.1);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ============================================
   MANIFESTO SECTION
   ============================================ */
.manifesto-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: var(--white);
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.manifesto-bg {
  position: absolute; inset: 0;
  background-image: url('../Picture/近隣の全景.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.manifesto-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,6,4,0.92) 0%,
    rgba(43,24,16,0.88) 40%,
    rgba(10,6,4,0.92) 100%
  );
}
.manifesto-content {
  position: relative; z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.manifesto-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 24px;
  border-radius: 50px;
  margin-bottom: 40px;
  text-transform: uppercase;
}
.manifesto-text {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 2.4;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
}
.manifesto-text em {
  font-style: normal;
  color: var(--gold-light);
}
.manifesto-divider {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 40px auto;
  opacity: 0.4;
}
.manifesto-signature {
  font-family: "Noto Serif JP", serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  line-height: 2;
}
.manifesto-signature strong {
  display: block;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* ============================================
   HISTORY TIMELINE
   ============================================ */
.history-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #fafaf7 0%, #fff 100%);
  position: relative;
}
.history-header {
  text-align: center;
  margin-bottom: 64px;
}
.history-header-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.history-header h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--brown-dark);
}
.history-header-line {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 20px auto 0;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold) 10%,
    var(--gold) 90%,
    transparent
  );
  opacity: 0.3;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: 0 0 48px;
  display: flex;
  align-items: flex-start;
}
.timeline-item:last-child { padding-bottom: 0; }

/* Alternating layout */
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right; padding-right: 40px;
}
.timeline-item:nth-child(even) .timeline-content {
  text-align: left; padding-left: 40px;
}

.timeline-content {
  flex: 1;
}

/* Dot on the timeline */
.timeline-dot {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
}
.timeline-dot::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #fff;
  transition: all 0.3s;
}
.timeline-dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  animation: dotPulse 3s ease-in-out infinite;
}
.timeline-item:last-child .timeline-dot::before {
  background: var(--gold);
  width: 14px; height: 14px;
  box-shadow: 0 0 12px rgba(201,168,76,0.4);
}

@keyframes dotPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.timeline-year {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
}
.timeline-item:last-child .timeline-year {
  color: var(--orange-dark);
  font-size: 1.2rem;
}
.timeline-item:last-child .timeline-desc {
  color: var(--gray-800);
  font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-40th {
  background: linear-gradient(160deg, #0a0604 0%, var(--brown-dark) 100%);
  padding: 100px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-40th::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-40th-content {
  position: relative; z-index: 1;
}
.cta-40th h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-40th-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  margin-bottom: 48px;
}
.cta-40th-tel-label {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.cta-40th-tel {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  margin-bottom: 8px;
  transition: all 0.3s;
}
.cta-40th-tel:hover {
  color: #fff;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}
.cta-40th-hours {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
}
.cta-40th-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--brown-dark);
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(201,168,76,0.2);
}
.cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.35);
}
.cta-btn-secondary {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ============================================
   MAP
   ============================================ */
.map-info { text-align: center; margin-bottom: 24px; }
.map-address { font-size: 0.95rem; font-weight: 600; color: var(--brown-dark); margin-bottom: 4px; }
.map-tel { font-size: 0.85rem; color: var(--gray-600); }
.map-tel a { color: var(--orange-dark); font-weight: 600; }
.map-tel a:hover { text-decoration: underline; }
.map-wrap {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-200);
}
.map-wrap iframe { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1a1a1a; color: rgba(255,255,255,0.5);
  padding: 32px 0; font-size: 0.8rem;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; object-fit: contain; }
.footer-brand span { color: rgba(255,255,255,0.7); font-weight: 600; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.4); transition: color 0.3s; }
.footer-links a:hover { color: var(--orange-light); }
.footer-cert { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-copy {
  text-align: center; margin-top: 16px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem; color: rgba(255,255,255,0.3);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  body { padding-top: 72px; }

  .hero-40th { min-height: 100svh; }
  .hero-year-span { font-size: 0.75rem; letter-spacing: 0.3em; }
  .hero-anniversary { letter-spacing: 0.3em; }

  .video-section { padding: 60px 0; }
  .video-wrapper { border-radius: 8px; }

  .manifesto-section { padding: 80px 0; min-height: auto; }
  .manifesto-bg { background-attachment: scroll; }
  .manifesto-text { font-size: 0.95rem; line-height: 2.2; }

  .history-section { padding: 64px 0; }

  /* Collapse timeline to left-aligned */
  .timeline::before {
    left: 8px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row !important;
  }
  .timeline-dot { margin-right: 0; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left !important;
    padding-left: 20px !important;
    padding-right: 0 !important;
  }

  .cta-40th { padding: 64px 0; }
  .cta-40th-buttons { flex-direction: column; align-items: center; }
  .cta-btn-primary, .cta-btn-secondary { width: 100%; max-width: 280px; text-align: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-company { font-size: 16px; }
  .manifesto-label { font-size: 0.6rem; padding: 5px 18px; }
}
