/* ============================================
   OVERRIDES & ENHANCEMENTS — effects2.css
   maji-me.co.jp
============================================ */

/* ----------------------------------------
   GLOBAL — word-break で変な改行を防止
---------------------------------------- */
h1, h2, h3, h4, h5, h6, p, span, a, li {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ----------------------------------------
   HERO TEXT — glow を鋭く + 黒影で読みやすく
---------------------------------------- */
.neon-pink {
    color: #f20da6;
    text-shadow:
        0 0 1px rgba(242, 13, 166, 1),
        0 0 8px rgba(242, 13, 166, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.7),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        -1px -1px 0 rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.25);
}

.neon-blue {
    color: #00f2ff;
    text-shadow:
        0 0 1px rgba(0, 242, 255, 1),
        0 0 8px rgba(0, 242, 255, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.7),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        -1px -1px 0 rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.25);
}

/* 青字「強制的に」の靄を除去 + 黒影追加 */
.neon-royal {
    color: #0d59f2;
    text-shadow:
        0 0 1px rgba(13, 89, 242, 1),
        0 0 8px rgba(13, 89, 242, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.7),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        -1px -1px 0 rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.25);
}

/* ----------------------------------------
   HERO DESCRIPTION — 薄い背景で読みやすく
---------------------------------------- */
#home .hero-content > p {
    background: rgba(0, 0, 0, 0.45);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: inline-block;
}

/* ----------------------------------------
   SECTION BACKGROUNDS — セクションごとに個性
---------------------------------------- */

/* INFLUENCER — 深いマゼンタ/パープル */
#influencer {
    background: linear-gradient(160deg, #130018 0%, #07000d 100%);
    border-top: 1px solid rgba(242, 13, 166, 0.45);
    border-bottom: 1px solid rgba(242, 13, 166, 0.1);
}

/* ATHLETE — 深いエレクトリックブルー */
#athlete {
    background: linear-gradient(160deg, #001535 0%, #000b1e 100%) !important;
    border-top: 1px solid rgba(0, 110, 255, 0.45) !important;
    border-bottom: 1px solid rgba(0, 110, 255, 0.1) !important;
}

/* CORPORATE — ダークチャコール、ウォームトーン */
#corporate {
    background: linear-gradient(160deg, #0f0d0b 0%, #080706 100%);
    border-top: 1px solid rgba(195, 158, 70, 0.4);
    border-bottom: 1px solid rgba(195, 158, 70, 0.1);
}

/* WEBTOOLS — ダークフォレストグリーン */
#webtools {
    background: linear-gradient(160deg, #011a06 0%, #000d03 100%);
    border-top: 1px solid rgba(57, 255, 20, 0.45) !important;
    border-bottom: none;
}

/* ----------------------------------------
   SECTION LEFT ACCENT LINE
---------------------------------------- */
#influencer,
#athlete,
#corporate,
#webtools {
    position: relative;
    overflow: hidden;
}

#influencer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #f20da6 30%, #f20da6 70%, transparent);
    border-radius: 2px;
    z-index: 2;
}

#athlete::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #006eff 30%, #006eff 70%, transparent);
    border-radius: 2px;
    z-index: 2;
}

#corporate::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #c39e46 30%, #c39e46 70%, transparent);
    border-radius: 2px;
    z-index: 2;
}

#webtools::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #39ff14 30%, #39ff14 70%, transparent);
    border-radius: 2px;
    z-index: 2;
}

/* ----------------------------------------
   SECTION BG CANVAS (動くエレメント用)
---------------------------------------- */
.section-bg-fx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3 !important;
}

/* セクション内コンテンツを前面に */
#influencer > *:not(.section-bg-fx):not(canvas),
#athlete > *:not(.section-bg-fx):not(canvas),
#corporate > *:not(.section-bg-fx):not(canvas),
#webtools > *:not(.section-bg-fx):not(canvas) {
    position: relative;
    z-index: 1;
}

/* ----------------------------------------
   3D HERO CANVAS
---------------------------------------- */
#hero-3d {
    position: absolute;
    top: 0;
    right: -5%;
    width: 60%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* Hero content stays above canvas */
#home .hero-content {
    position: relative;
    z-index: 2;
}

/* ----------------------------------------
   SECTION CORNER LABEL
---------------------------------------- */
.section-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    opacity: 0.4;
    display: block;
    margin-bottom: 0.5rem;
}

/* ----------------------------------------
   FOOTER — 上のセクションと明確に分離
---------------------------------------- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #020202;
}

/* ----------------------------------------
   FIX: Hero parallax overlap
---------------------------------------- */
#home {
    transform: none !important;
}


/* FIX: prevent scroll-reveal from hiding bg canvases */
.section-bg-fx.reveal {
    opacity: 0.3 !important;
    transform: none !important;
    transition: none !important;
}


/* ----------------------------------------
   3D NAVIGATION LABELS
---------------------------------------- */
#hero-nav-3d {
    position: relative;
    cursor: grab;
}
#nav3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
#nav3d-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}
.nav3d-label {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: all;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.nav3d-label:hover {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 20px currentColor, inset 0 0 10px rgba(255,255,255,0.05);
    transform: translate(-50%, -50%) scale(1.15) !important;
}
.nav3d-icon {
    font-size: 1.2rem;
}
.nav3d-text {
    font-size: 0.7rem;
}

/* Mobile: smaller labels */
@media (max-width: 768px) {
    #hero-nav-3d {
        height: 300px !important;
    }
    .nav3d-label {
        padding: 0.35rem 0.8rem;
        font-size: 0.6rem;
    }
    .nav3d-icon { font-size: 1rem; }
    .nav3d-text { font-size: 0.55rem; }
}


/* MOBILE: webtools matrix bg even more subtle */


/* ===== Mobile Nav Grid (HTML-based, no JS dependency) ===== */
#mobile-nav-grid {
    display: none;
}

.mnav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mnav-card:active {
    transform: scale(0.96);
}

.mnav-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: top center;
}

.mnav-label {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    #mobile-nav-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; margin: 0 auto; }
    #nav3d-canvas, #nav3d-labels { display: none !important; }
    #hero-nav-3d { height: auto !important; }
    .section-bg-fx { opacity: 0.2 !important; display: block !important; visibility: visible !important; pointer-events: none !important; }
    #webtools .section-bg-fx { opacity: 0.15 !important; display: block !important; }
    section { overflow-x: hidden !important; max-width: 100vw !important; }
    section.max-w-7xl, section .max-w-7xl { max-width: 100vw !important; width: 100% !important; box-sizing: border-box !important; }

  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  #webtools, #webtools * { visibility: visible !important; }
  #webtools .reveal { opacity: 1 !important; }
}