/*
Theme Name: EM-NANO 2027
Author: EM-NANO
Description: Official theme for EM-NANO 2027
Version: 1.0
*/
:root {
    --main-green: #2AB882;
    --main-green-dark: #14976a;
    --ink: #111;
    --soft-line: #9fb9c4;
    --panel-width: 250px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Noto Sans JP", Arial, sans-serif;
    background: #fff;
}

a {
    color: var(--main-green-dark);
    text-decoration: underline;
}

a:hover {
    color: var(--main-green);
}


.site-shell {
    min-height: 100vh;
    position: relative;
}

.side-menu {
    background: var(--main-green);
    color: #fff;
    min-height: 100vh;
    padding: 36px 22px 24px;
    display: flex;
}

.nav-inner {
    max-width: 190px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.side-menu h1,
.side-menu h2,
.hero-copy,
.greeting h2,
.block h2,
.under-header,
.under-content h2,
.under-content h3,
.under-content h5,
.sponsor-panel h3,
.site-footer h2 {
    font-family: "Archivo Black", "Arial Black", sans-serif;
}

.side-menu h1 {
    font-size: 30px;
    line-height: 1.08;
    margin: 24px 0 18px;
    letter-spacing: 0;
}

.side-menu h2 {
    font-size: 22px;
    line-height: 1;
    border-bottom: 1px solid rgba(255, 255, 255, .8);
    padding-bottom: 7px;
    margin: 0 0 18px;
}

.side-menu nav {
    display: grid;
    gap: 6px;
}

.side-menu a {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 25px;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.05;
    text-decoration: none;
}

.side-menu a span {
    width: 0;
    height: 0;
    margin-left: 10px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #fff;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.side-menu a:hover span {
    transform: translateX(5px);
}

.side-logo {
    display: block;
    width: 132px;
    max-width: 82%;
    height: auto;
    margin: auto auto 0;
}

.top-page {
    min-height: 1700px;
    background: #fff url("images/footer-back.png") bottom center / 100% auto no-repeat;
    padding: 44px 28px 250px;
    position: relative;
    overflow: hidden;
}

.top-page>*:not(.top-bg-slider) {
    position: relative;
    z-index: 1;
}

.top-bg-slider,
.bg-slide {
    position: absolute;
    inset: 0 0 auto;
    height: min(78vw, 1400px);
}

.top-bg-slider {
    z-index: 0;
    pointer-events: none;
}

.bg-slide {
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    opacity: 0;
    animation: topBackgroundFade 18s infinite;
}

.bg-slide-1 {
    background-image: url("images/back-01.png");
}

.bg-slide-2 {
    background-image: url("images/back-02.png");
    animation-delay: 6s;
}

.bg-slide-3 {
    background-image: url("images/back-03.png");
    animation-delay: 12s;
}

@keyframes topBackgroundFade {

    0%,
    5% {
        opacity: 0;
    }

    12%,
    33% {
        opacity: 1;
    }

    40%,
    100% {
        opacity: 0;
    }
}

.hero {
    max-width: 1050px;
    margin: 0 auto 72px;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 90%;
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
}

.event-logo {
    width: 162px;
    height: 162px;
    justify-self: center;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .2));
}

.hero-copy {
    color: #fff;
    text-align: right;
    text-shadow: 1px 4px 5px rgba(0, 0, 0, .35);
}

.event-name {
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1;
    margin: 0 0 10px;
}

.event-subtitle {
    font-size: 15px;
    line-height: 1.1;
    margin: 0 0 8px;
}

.event-date {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
    margin: 0;
}

.greeting {
    max-width: 860px;
    margin: 0 auto 28px;
    text-align: center;
}

.greeting h2 {
    color: #fff;
    font-size: 35px;
    line-height: 1.2;
    margin: 0 0 18px;
    text-shadow: 1px 4px 5px rgba(0, 0, 0, .4);
}

.greeting-box {
    background: rgba(255, 255, 255, .75);
    padding: 22px;
    text-align: left;
    margin-bottom: 50px;
}

.greeting-box p {
    margin: 0 0 4px;
    font-weight: 500;
    font-size: 1.2em;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.content-wrap {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 46px;
    align-items: start;
}

.main-column {
    padding-top: 18px;
}

.block {
    margin-bottom: 34px;
}

.block h2 {
    color: var(--main-green);
    font-size: 26px;
    line-height: 1.2;
    border-left: 5px solid var(--main-green);
    padding-left: 10px;
    margin: 0 0 24px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 255, 255, 0.9);
}

.news-block dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: baseline;
    gap: 20px;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.85);
    padding: 15px 15px 15px 18px;
}

.news-block dt {
    font-size: 20px;
    font-weight: 900;
}

.news-block dd {
    margin: 0;
}

.date-list {
    margin: 0;
    padding: 15px 20px 15px 34px;
    background: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    font-weight: 700;
}

.contact-block p {
    margin: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 15px 20px 15px 18px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.75;
}

.sponsor-panel {
    background: rgba(255, 255, 255, .9);
    padding: 18px 16px 24px;
}

.sponsor-panel section {
    border-bottom: 1px solid var(--soft-line);
    padding-bottom: 22px;
    margin-bottom: 24px;
}

.sponsor-panel section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.sponsor-panel h3 {
    color: var(--main-green);
    font-size: 14px;
    margin: 0 0 18px;
}

.logo-list {
    display: grid;
    gap: 12px;
}

.logo-list span {
    border: 1px solid #111;
    background: #fff;
    display: grid;
    place-items: center;
    color: #000;
    font-weight: 900;
    min-height: 47px;
}

.logo-list.medium {
    justify-items: center;
}

.logo-list.medium span {
    width: 74%;
}

.logo-list.small {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.logo-list.small span {
    min-height: 32px;
    font-size: 11px;
}



.site-footer {
    background: var(--main-green);
    color: #fff;
    padding: 22px 28px;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-footer h2 {
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1;
    margin: 0 0 4px;
}

.site-footer p {
    margin: 0;
    font-family: "Archivo Black", "Arial Black", sans-serif;
    line-height: 1.12;
}

.footer-date {
    font-size: 24px;
    margin-top: 16px !important;
}

.hamburger {
    display: none;
}

@media (min-width: 769px) {
    body::before {
        content: "";
        position: fixed;
        inset: 0 auto 0 0;
        width: var(--panel-width);
        background: var(--main-green);
        z-index: -1;
    }

    .side-menu {
        position: fixed;
        inset: 0 auto 0 0;
        width: var(--panel-width);
        height: 100vh;
        overflow-y: auto;
        /* Scrollbar styling for a cleaner look */
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .side-menu::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }

    .side-logo.desktop-logo {
        position: absolute;
        bottom: 24px;
        left: calc(var(--panel-width) / 2);
        transform: translateX(-50%);
        z-index: 10;
    }

    .side-logo.mobile-logo {
        display: none !important;
    }

    .nav-content {
        padding-bottom: 80px;
        /* Make space for absolutely positioned logo */
    }

    .top-page,
    .under-content,
    .footer-backdrop,
    .site-footer {
        margin-left: var(--panel-width);
    }
}

.under-content {
    padding: 42px 28px 250px;
    background: #fff url("images/footer-back.png") bottom center / 100% auto no-repeat;
}

.under-content .container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.under-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.under-header img {
    width: 92px;
    height: auto;
    flex: 0 0 92px;
}

.under-header h1 {
    font-size: 32px;
    line-height: 1;
    margin: 0 0 6px;
}

.under-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.22;
}

.under-header span {
    font-size: 1.45em;
}

.under-content h2 {
    font-size: 32px;
    margin: 0 0 26px;
}

.under-content h3 {
    color: var(--main-green);
    font-size: 24px;
    margin: 34px 0 20px;
}

.under-content h5 {
    color: var(--main-green-dark);
    font-size: 18px;
    margin: 34px 0 18px;
}

.speaker-card {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
}

.speaker-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    flex: 0 0 150px;
}

.speaker-card div {
    width: 100%;
}

.speaker-card-no-image {
    max-width: 720px;
}

.speaker-card h4 {
    font-size: 18px;
    line-height: 1.35;
    border-bottom: 1px solid var(--main-green);
    padding-bottom: 14px;
    margin: 0 0 14px;
}

.speaker-card p {
    margin: 0;
    line-height: 1.55;
}

.speaker-card span {
    font-size: 19px;
    font-weight: 800;
}

.committee-list-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.committee-list-container tr:nth-child(odd) {
    background: rgba(42, 184, 130, .08);
}

.committee-list-container th,
.committee-list-container td {
    border: 1px solid #888;
    padding: 18px;
    text-align: left;
    vertical-align: top;
}

.committee-list-container th {
    width: 30%;
    font-family: "Archivo Black", "Arial Black", sans-serif;
}

.committee-list-container td span {
    font-size: .85em;
}



img.access-img {
    width: 100%;
}
.access-joetsu-container {
    width: 100%;
    margin: 0 auto;
    overflow-x: auto !important;
}
.access-joetsu {
    min-width: 1200px;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1.4fr 1fr;
    grid-template-rows: 0.2fr 1fr 1.3fr 1fr;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
    margin: 0 auto;
}
.access-joetsu a {
    font-size: 0.8em;
}
.access-joetsu p {
    margin-bottom: 0;
}
.access-joetsu img {
    width: 100%;
}

@media (max-width: 1020px) {
    .hero-inner {
        grid-template-columns: 170px 1fr;
    }

    .content-wrap {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .sponsor-panel {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .side-menu {
        min-height: auto;
        padding: 20px;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .sp-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .side-menu h1 {
        margin: 0;
        font-size: 1.3rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 3px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: center;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

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

    .hamburger.open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .nav-content {
        display: none;
        padding-top: 20px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--main-green);
        padding: 20px;
        z-index: 100;
    }

    .nav-content.open {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-inner {
        max-width: none;
    }

    .side-menu nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 18px;
    }

    .side-logo.mobile-logo {
        margin: 22px 0 0;
        width: 100px;
    }

    .side-logo.desktop-logo {
        display: none !important;
    }

    .top-page {
        min-height: auto;
        padding: 28px 18px 150px;
    }

    .top-bg-slider,
    .bg-slide {
        height: 560px;
    }

    .bg-slide {
        background-size: auto 560px;
        background-position: top right;
    }

    .hero {
        min-height: 360px;
        margin-bottom: 28px;
        align-items: flex-start;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-copy {
        text-align: right;
    }

    .event-logo {
        width: 120px;
        height: 120px;
        justify-self: end;
    }

    .event-subtitle {
        color: #fff;
        font-size: 13px;
    }

    .greeting h2 {
        text-shadow: none;
    }

    .news-block dl {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-left: 0;
        padding-left: 10px;
    }

    .footer-inner {
        display: block;
        text-align: center;
    }

    .under-content {
        padding: 32px 18px 150px;
    }

    .under-header,
    .speaker-card {
        display: block;
    }

    .under-header img {
        width: 86px;
        margin-bottom: 14px;
    }

    .speaker-card img {
        width: 130px;
        height: 130px;
        margin-bottom: 14px;
    }

    .committee-list-container {
        overflow-x: auto;
    }

    .committee-list-container table {
        min-width: 620px;
    }
}

@media (max-width: 460px) {
    .side-menu nav {
        grid-template-columns: 1fr;
    }

    .event-name {
        font-size: 38px;
    }

    .event-date,
    .footer-date {
        font-size: 21px;
    }

    .block h2 {
        font-size: 22px;
    }
}

/* Note PC and narrow height screens */
@media (max-width: 1440px) and (min-width: 769px),
       (max-height: 900px) and (min-width: 769px) {
    body {
        font-size: 14px;
    }
    
    .side-menu {
        position: absolute;
        height: 100%;
        overflow-y: visible;
        padding-top: 20px;
    }
    
    .side-menu h1 {
        font-size: 21px;
        margin: 10px 0 12px;
    }
    
    .side-menu h2 {
        font-size: 17px;
        margin: 0 0 12px;
    }
    
    .side-menu nav {
        gap: 4px;
    }
    
    .side-menu a {
        font-size: 12px;
        min-height: 20px;
        padding: 2px 0;
        line-height: 1.1;
    }
    
    .nav-content {
        padding-bottom: 30px;
    }

    .hero-copy .event-name {
        font-size: clamp(32px, 5vw, 60px);
    }
    
    .greeting h2 {
        font-size: 30px;
    }
    
    .block h2 {
        font-size: 24px;
    }
    
    .under-content h2 {
        font-size: 28px;
    }
}

/* Page Top Button */
.page-top {
    position: fixed;
    right: 30px;
    bottom: -80px;
    width: 54px;
    height: 54px;
    background: var(--main-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-top svg {
    width: 28px;
    height: 28px;
    margin-top: 2px;
}

.page-top:hover {
    background: var(--main-green-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-top.is-show {
    bottom: 40px;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .page-top {
        right: 18px;
        width: 48px;
        height: 48px;
    }
    .page-top.is-show {
        bottom: 24px;
    }
}