@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Noto+Sans+JP:wght@400;700;900&display=swap');

html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-y: scroll; }
body, button, input, select, textarea { font-family: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'メイリオ', sans-serif; font-feature-settings: "palt"; letter-spacing: 0.04em; }
body { margin: 0; padding: 78px 0 0 0; background-color: #f8fbff; color: #313131; line-height: 1.65; }
h1, h2, h3, header nav a, footer nav a { font-family: 'Inter', 'Noto Sans JP', sans-serif; font-weight: 600; letter-spacing: 0.08em; }
a { color: #007bff; text-decoration: none; transition: color 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; }
}
a:active { text-decoration: none !important; }

@keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero > * { opacity: 0; animation: slideUpFade 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.1s; }
section:nth-of-type(1) { opacity: 0; animation: slideUpFade 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.3s; }
section:nth-of-type(2) { opacity: 0; animation: slideUpFade 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.5s; }
section:nth-of-type(3) { opacity: 0; animation: slideUpFade 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.7s; }
section:nth-of-type(4) { opacity: 0; animation: slideUpFade 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.9s; }
section:nth-of-type(5) { opacity: 0; animation: slideUpFade 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 1.1s; }
section:nth-of-type(6) { opacity: 0; animation: slideUpFade 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 1.3s; }
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; padding: 0 2rem; height: 78px; box-sizing: border-box; display: flex; align-items: center; }
.header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; }
.logo-img { height: 52px; width: auto; object-fit: contain; margin-right: 0.2rem; border-radius: 8px; }
.brand { display: flex; align-items: center; }
.brand a { border-radius: 8px; display: flex; align-items: center; }
.brand-title { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; margin-bottom: 4px; }
header h1 { margin: 0; font-size: 1.8rem; color: #333; letter-spacing: 2px; line-height: 1.1; }
.brand-subtitle { margin-top: 0.1rem; font-size: 0.75rem; color: #555; line-height: 1; font-weight: 500; }
header nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.5rem; }
header nav a { display: inline-block; padding: 12px 14px; border-radius: 6px; color: #555; text-decoration: none; font-weight: bold; font-size: 0.9em; text-transform: uppercase; transition: color 0.3s; }
header nav a:hover { color: #007bff; text-decoration: none; }
.hero { background: linear-gradient(to bottom, #d0e8ff, #f8fbff); padding: 150px 20px 100px; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero h2 { font-size: 2.8rem; margin: 0; color: #222; letter-spacing: 1.5px; }
section { padding: 30px 40px 40px; box-sizing: border-box; width: calc(100% - 30px); max-width: 1000px; margin: 3rem auto; background-color: #ffffff; border: 1px solid #dee2e6; border-top: 4px solid #007bff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
section h2 { width: fit-content; margin: 0 auto 2rem; padding-bottom: 0.5rem; border-bottom: 2px solid #007bff; font-size: 1.8rem; color: #222; }
.news-item, .event-item { display: flex; padding: 20px 0; border-bottom: 1px solid #eee; }
.news-item:last-child, .event-item:last-child { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
  .news-item:last-child, .event-item:last-child { padding-bottom: 0; }
}
.news-date, .event-date { width: 150px; color: #333; font-weight: 500; }
.news-title, .event-title { color: #333; }
.news-link, .event-link { text-align: center; margin-top: 40px; margin-bottom: 0; padding: 0; }
.news-accordion { border: 1px solid #eee; border-radius: 8px; margin-bottom: 1.5rem; background: #fff; overflow: hidden; transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); scroll-margin-top: 100px; }
.news-accordion:last-child { margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .news-accordion:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
}
@media (hover: none) {
  .news-accordion:active {
    transform: scale(0.98);
    box-shadow: inset 0 6px 12px rgba(0,40,100,0.08) !important;
    transition: transform 0.1s ease-out, box-shadow 0s;
  }
  .news-accordion:active .summary {
    background-color: #f0f6ff !important;
    transition: background-color 0s;
  }
}
.news-accordion .summary { list-style: none; cursor: pointer; padding: 20px 20px 20px 20px; background-color: #f8fbff; border-left: 5px solid #007bff; color: #333; font-size: 1.25rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1); user-select: none; }
.news-accordion .summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .news-accordion .summary:hover { background-color: rgba(0, 123, 255, 0.15); }
}
.news-accordion .summary::after { content: '+'; font-size: 1.5rem; color: #007bff; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s; line-height: 1; display: inline-block; transform-origin: center; }
.news-accordion.is-open .summary { border-bottom: 1px solid #eee; }
.news-accordion.is-open .summary::after { content: '−'; transform: rotate(180deg); color: #888; }
.news-accordion-content { max-height: 0; padding: 0 25px; opacity: 0; overflow: hidden; transform: translateY(-15px) scaleY(0.95); transition: opacity 0.1s ease-out, transform 0s ease 0.1s, max-height 0.15s ease-out 0.1s, padding 0.15s ease-out 0.1s; transform-origin: top center; }
.news-accordion.is-open .news-accordion-content { max-height: 1500px; padding: 5px 25px 25px; opacity: 1; transform: translateY(0) scaleY(1); transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out 0.1s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.news-view-more-btn { position: relative; z-index: 1; overflow: hidden; display: flex; width: max-content; align-items: center; justify-content: center; margin: 5px auto 0; padding: 14px 45px; background: #f5f5f7; color: #1d1d1f; border: none; border-radius: 980px; cursor: pointer; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.05em; text-decoration: none !important; transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); }
@media (hover: hover) and (pointer: fine) {
  .news-view-more-btn { background: transparent; color: #007bff; border: 1px solid transparent; border-radius: 50px; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .news-view-more-btn:hover { background: rgba(0, 123, 255, 0.15); color: #0056b3; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none !important; }
}
@media (hover: none) {
  .news-view-more-btn:active {
    transform: scale(0.96);
    background-color: #d2d2d7 !important;
    text-decoration: none !important;
    transition: background-color 0s, transform 0.1s ease-out;
  }
}

.vod-placeholder-container { margin-top: 10px; padding-top: 15px; border-top: 1px solid transparent; display: flex; justify-content: center; visibility: hidden; pointer-events: none; }
@media (min-width: 768px) {
  .vod-placeholder-container { display: none !important; margin: 0; padding: 0; }
}


.watch-match-btn { position: relative; z-index: 1; overflow: hidden; display: flex; width: max-content; align-items: center; justify-content: center; margin: 5px auto 0; padding: 14px 45px; background: #0071e3; color: #ffffff; border: none; border-radius: 980px; cursor: pointer; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em; text-decoration: none !important; transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); }
@media (hover: hover) and (pointer: fine) {
  .watch-match-btn:hover { background: #0077ED; text-decoration: none !important; color: #ffffff; }
}
@media (hover: none) {
  .watch-match-btn:active {
    transform: scale(0.96);
    background-color: #0060C0 !important;
    color: #ffffff;
    text-decoration: none !important;
    transition: background-color 0s, transform 0.1s ease-out;
  }
}
.news-view-more-icon { display: block; position: absolute; z-index: 1; width: 16px; height: 16px; opacity: 0; transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); fill: currentColor; }
.news-view-more-icon.down-icon { right: 22px; transform: translateX(-15px) rotate(0deg); }
.news-view-more-btn:hover .news-view-more-icon.down-icon, .watch-match-btn:hover .news-view-more-icon.down-icon { opacity: 1; transform: translateX(0) rotate(0deg); }
.news-view-more-icon.close-icon { right: 22px; transform: translateX(-15px) rotate(180deg); }
.news-view-more-btn:hover .news-view-more-icon.close-icon, .watch-match-btn:hover .news-view-more-icon.close-icon { opacity: 1; transform: translateX(0) rotate(180deg); }
.news-view-more-icon.right-icon { right: 22px; transform: translateX(-15px) rotate(-90deg); }
.news-view-more-btn:hover .news-view-more-icon.right-icon, .watch-match-btn:hover .news-view-more-icon.right-icon { opacity: 1; transform: translateX(0) rotate(-90deg); }
.news-view-more-icon.left-icon { left: 22px; transform: translateX(15px) rotate(90deg); }
.news-view-more-btn:hover .news-view-more-icon.left-icon, .watch-match-btn:hover .news-view-more-icon.left-icon { opacity: 1; transform: translateX(0) rotate(90deg); }
.news-limited-list .news-item { display: flex !important; }
.news-limited-list .news-item:nth-child(n+6) { max-height: 500px; overflow: hidden; transform: translateY(0) scaleY(1); opacity: 1; border-bottom-color: #eee; transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out 0.1s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-bottom-color 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.news-limited-list.is-collapsed .news-item:nth-child(n+6) { max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-color: transparent; opacity: 0; transform: translateY(-15px) scaleY(0.95); transition: opacity 0.1s ease-out, transform 0s ease 0.1s, max-height 0.15s ease-out 0.1s, padding 0.15s ease-out 0.1s, border-bottom-color 0.1s ease-out 0.1s; }
.news-limited-list.is-collapsed .news-item:nth-child(5) { border-bottom: none; }
.view-more-wrapper { margin-top: 1.5rem; margin-bottom: -20px; text-align: center; }
.pickup-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.pickup-item-link { text-decoration: none; color: inherit; }
.pickup-item-link:hover { text-decoration: none; }
.pickup-item { background: #ffffff; padding: 2rem; border: 1px solid #dee2e6; border-left: 4px solid #007bff; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1); height: 100%; box-sizing: border-box; }
@media (hover: hover) and (pointer: fine) {
  .pickup-item:hover { transform: translateX(5px); box-shadow: 0 6px 15px rgba(0, 123, 255, 0.15); }
}
@media (hover: none) {
  .pickup-item:active {
    transform: scale(0.96);
    background-color: #f0f6ff !important;
    box-shadow: inset 0 6px 12px rgba(0,40,100,0.08) !important;
    transition: background-color 0s, transform 0.1s ease-out, box-shadow 0s;
  }
}
.pickup-item h3 { margin-top: 0; color: #222; font-size: 1.1rem; margin-bottom: 0.5rem; }
.pickup-item p { margin-bottom: 0; color: #555; font-size: 0.9rem; }
.about-content { display: flex; gap: 3rem; align-items: center; }
@media (max-width: 767px) { .about-content { flex-direction: column; } }
.about-logo { flex-shrink: 0; }
.logo-img-about { width: 100%; max-width: 200px; height: auto; object-fit: contain; }
.about-text { flex: 1; }
.about-text p { margin-top: 0; color: #555; margin-bottom: 1.5rem; }
.about-text p:last-child { margin-bottom: 0; }
.about dl { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; background-color: #f8fbff; padding: 1.5rem; border-radius: 8px; margin: 0; border: 1px solid #e0f2ff; }
.about dt { font-weight: bold; color: #333; }
.about dd { margin: 0; color: #555; }
.sns { text-align: center; }
.sns-links { margin-top: 1.5rem; }
.sns-links a { display: inline-block; margin: 0 1rem; padding: 10px 30px; background: transparent; color: #007bff; text-decoration: none !important; font-weight: bold; border: 2px solid #007bff; border-radius: 980px; transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); }
@media (hover: hover) and (pointer: fine) {
  .sns-links a:hover { background-color: #007bff; color: #ffffff; text-decoration: none !important; }
}
@media (hover: none) {
  .sns-links a:active { transform: scale(0.96); background-color: #007bff !important; color: #ffffff !important; text-decoration: none !important; transition: background-color 0s, color 0s, transform 0.1s ease-out; }
}
footer { background-color: #e9ecef; color: #666; text-align: center; padding: 3rem 2rem; border-top: 1px solid #dee2e6; margin-top: 4rem; font-size: 0.9em; }
footer nav { margin-bottom: 1.5rem; }
footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
footer nav a { display: inline-block; padding: 10px 16px; border-radius: 6px; color: #666; text-decoration: none; transition: all 0.2s ease; text-transform: uppercase; font-size: 0.85em; font-weight: bold; }
@media (hover: hover) and (pointer: fine) {
  footer nav a:hover { color: #007bff; background-color: rgba(0, 123, 255, 0.08); text-decoration: none; }
}
@media (hover: none) {
  footer nav a:active { opacity: 0.6; transition: opacity 0.1s ease-out; }
}
.footer-logo a { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 6px; color: #007bff; font-size: 1.1em; letter-spacing: 1px; text-decoration: none; transition: all 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-logo a:hover { background-color: rgba(0, 123, 255, 0.08); text-decoration: none; }
}
@media (hover: none) {
  .footer-logo a:active { opacity: 0.6; transition: opacity 0.1s ease-out; }
}
.logo-img-footer { height: 30px; width: auto; object-fit: contain; display: block; margin: 0; }

.event-grid { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 1.5rem; }
.event-grid.stretch-centered { justify-content: center; }
.event-grid.stretch-centered > * { flex: 1 1 260px; max-width: 350px; }
.event-grid.fixed-grid { justify-content: center; }
.event-grid.fixed-grid > * { flex: 0 0 calc((100% - 60px) / 3 - 0.5px); }
.event-card { box-sizing: border-box; background-color: #fff; border-radius: 8px; border: 1px solid #eee; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none; color: inherit; height: 100%; }
@media (hover: hover) and (pointer: fine) {
  .event-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 123, 255, 0.15); text-decoration: none; }
}
@media (hover: none) {
  .event-card:active {
    transform: scale(0.96);
    background-color: #f0f6ff !important;
    box-shadow: inset 0 6px 12px rgba(0,40,100,0.08) !important;
    transition: background-color 0s, transform 0.1s ease-out, box-shadow 0s;
  }
  .event-card:active .event-card-img {
    filter: brightness(0.9);
    transition: filter 0s;
  }
}
.event-card-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid #eee; display: block; flex-shrink: 0; }
.event-card-content { padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; flex-grow: 1; align-items: center; text-align: center; }
.event-card-date { font-size: 0.9em; color: #555; margin-bottom: 8px; }
.event-card-title { width: 100%; font-size: 1.1em; font-weight: 600; color: #333; line-height: 1.5; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; box-orient: vertical; overflow: hidden; }

/* Event Detail Page Styles */
.event-detail { max-width: 900px; margin: 3rem auto; padding: 0 20px; }
.event-detail-card { background: #fff; padding: 2.5rem; border-radius: 8px; border: 1px solid #eee; box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.event-detail-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid #eee; margin-bottom: 2rem; }
.event-detail-header { margin-bottom: 2.5rem; border-bottom: 2px solid #f0f0f0; padding-bottom: 1.5rem; }
.event-detail-date { display: inline-block; background: #e0f2ff; color: #007bff; padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 0.9em; margin-bottom: 1rem; }
.event-detail-title { margin: 0; font-size: 2.2rem; color: #111; line-height: 1.3; }
.event-detail-body { font-size: 1.05rem; line-height: 1.8; color: #444; }
.back-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 2.5rem; padding: 12px 24px; background: #f8fbff; color: #007bff; font-weight: bold; border-radius: 30px; text-decoration: none; border: 1px solid #cce5ff; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) and (pointer: fine) {
  .back-link:hover { background: #e0f2ff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,123,255,0.1); }
}
@media (hover: none) {
  .back-link:active {
    transform: scale(0.96);
    background-color: #f0f6ff !important;
    box-shadow: inset 0 6px 12px rgba(0,40,100,0.08) !important;
    transition: background-color 0s, transform 0.1s ease-out, box-shadow 0s;
  }
}

/* 404 Not Found Styles */
.not-found-container { text-align: center; padding: 120px 20px; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; }
.not-found-title { font-size: 10rem; margin: 0; color: #dce4ec; font-weight: 900; line-height: 1; letter-spacing: -4px; position: relative; z-index: 0; user-select: none; }
.not-found-subtitle { font-size: 1.8rem; color: #333; margin: -50px 0 1.5rem 0; z-index: 1; position: relative; font-weight: bold; letter-spacing: 1px; }
.not-found-text { color: #666; font-size: 1.05rem; margin-bottom: 3rem; line-height: 1.7; z-index: 1; position: relative; }
/* ========================
   Tablet Responsive Styles
   ======================== */
@media (max-width: 1024px) {
  .event-grid.fixed-grid > * { flex: 0 0 calc((100% - 30px) / 2 - 0.5px); }
}

/* ========================
   Responsive & Mobile Styles
   ======================== */
.menu-toggle { display: none; }
.mobile-only-toggle { display: none; }

@media (max-width: 767px) {
  /* General Responsive Padding / Margin */
  section { padding: 20px 20px 30px; margin: 3rem 15px; }
  .event-grid.fixed-grid { justify-content: center; }
  .event-grid.fixed-grid > * { flex: 1 1 100%; max-width: 350px; }
  .news-link, .event-link { margin-top: 30px; }
  .view-more-wrapper { margin-top: 15px; margin-bottom: -15px; }
  .hero { padding: 120px 20px 60px; }
  .hero h2 { font-size: clamp(1.6rem, 6vw, 2.6rem); }
  header { padding: 0 1rem; } /* PADDING ONLY TWEAKED FOR SIDES, TOP/BOTTOM SAME AS PC (1rem) */
  
  .about-content { gap: 0.5rem; align-items: center; }
  .logo-img-about { width: 100%; max-width: 220px; margin: -40px 0 -20px; }
  
  .news-item, .event-item { flex-direction: column; gap: 8px; padding: 15px 0; }
  .news-date, .event-date { width: auto; font-size: 0.9em; }
  .news-title, .event-title { padding-left: 1rem; }
  
  footer nav ul { flex-wrap: nowrap; justify-content: space-evenly; gap: 0; overflow: hidden; padding-bottom: 0; }
  footer nav a { padding: 6px 1.5vw; font-size: clamp(9px, 2.8vw, 13px); white-space: nowrap; letter-spacing: 0; }
  
  /* Hamburger Menu Toggle Button */
  .menu-toggle { 
    display: flex; flex-direction: column; justify-content: space-between; 
    width: 28px; height: 20px; background: transparent; border: none; cursor: pointer; 
    padding: 0; z-index: 1002; position: relative; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  /* Expand clickable area */
  .menu-toggle::before {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%; background-color: transparent; transition: background-color 0.4s ease;
  }
  .menu-toggle span { display: block; width: 100%; height: 2.5px; background-color: #333; border-radius: 3px; transition: all 0.3s ease; }
  .menu-toggle:hover span { background-color: #007bff; }
  .mobile-only-toggle { display: block; }
  
  body.menu-open { overflow: hidden; }
  .menu-overlay { visibility: hidden; opacity: 0; transition: all 0.3s ease; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); z-index: 999; }
  body.menu-open .menu-overlay { visibility: visible; opacity: 1; }

  /* ========================
     Hamburger Menu (CSS)
     ======================== */
  .menu-toggle span { transition: all 0.3s ease; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  header nav {
    position: absolute; top: 0; right: -100%; width: 280px; height: 100vh;
    background: #ffffff; padding-top: 90px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001; overflow-y: auto;
  }
  header nav.active { right: 0; }
  
  header nav ul { flex-direction: column; align-items: stretch; padding: 0; gap: 0; }
  header nav a { 
    display: block; padding: 15px 30px; border-bottom: 1px solid #f0f0f0; 
    font-size: 1.1rem; opacity: 0; transform: translateY(15px); transition: all 0.3s ease; 
  }
  header nav li:last-child a { border-bottom: none; }
  header nav.active a { opacity: 1; transform: translateY(0); }
  @media (hover: none) {
    header nav a:active { background-color: #f0f5fa !important; transition: background-color 0s !important; }
    .menu-toggle:active { transform: scale(0.85); transition: transform 0.1s ease-out; }
    .menu-toggle:active::before { background-color: rgba(0, 123, 255, 0.08); transition: background-color 0s; }
  }
  header nav.active li:nth-child(1) a { transition-delay: 0.1s; }
  header nav.active li:nth-child(2) a { transition-delay: 0.15s; }
  header nav.active li:nth-child(3) a { transition-delay: 0.2s; }
  header nav.active li:nth-child(4) a { transition-delay: 0.25s; }
  header nav.active li:nth-child(5) a { transition-delay: 0.3s; }
}
