/* Variables */
:root {
    --primary-color: #0056b3;
    /* Deep Blue */
    --secondary-color: #00a8cc;
    /* Cyan/Light Blue */
    --accent-color: #f39c12;
    /* Orange/Gold */
    --text-color: #333333;
    --light-text: #ffffff;
    --bg-color: #f9f9f9;
    --section-bg-alt: #eef2f5;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-en: 'Roboto', sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #008ba8;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
}

.hero-logo img {
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-info {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-date,
.hero-place {
    margin: 10px 0;
    font-weight: 500;
}

.hero-cta {
    font-size: 1.2rem;
    padding: 15px 40px;
}

/* Overview */
.overview-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    opacity: 0;
    /* For animation */
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.overview-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.overview-block:last-child {
    margin-bottom: 0;
}

.overview-block.afternoon {
    flex-direction: row-reverse;
}

.overview-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overview-image:hover img {
    transform: scale(1.05);
}

.overview-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--light-text);
}

.badge-morning {
    background-color: var(--secondary-color);
}

.badge-afternoon {
    background-color: var(--accent-color);
}

.overview-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.overview-desc {
    margin-bottom: 20px;
}

.overview-details {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 20px;
}

.overview-details h4 {
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-details ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.overview-meta {
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Symposium Topics in Overview */
.symposium-topics {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.topic-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.topic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.topic-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.topic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-item:hover .topic-thumb img {
    transform: scale(1.05);
}

.topic-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--accent-color);
}

.topic-item h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-item h4 i {
    color: var(--accent-color);
    background: rgba(243, 156, 18, 0.1);
    padding: 8px;
    border-radius: 50%;
    font-size: 1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Schedule */
.schedule {
    background-color: var(--section-bg-alt);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #ddd;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
    transform: translateX(-30px);
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
    transform: translateX(30px);
}

.timeline-item.visible:nth-child(odd),
.timeline-item.visible:nth-child(even) {
    transform: translateX(0);
}

.timeline-time {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 15px;
    height: 15px;
    background-color: #fff;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -7px;
    box-shadow: 2px -2px 2px rgba(0, 0, 0, 0.02);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -7px;
    box-shadow: -2px 2px 2px rgba(0, 0, 0, 0.02);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 25px;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item:nth-child(odd)::after {
    right: -9px;
}

.timeline-item:nth-child(even)::after {
    left: -9px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-item.break .timeline-content {
    background-color: #f0f0f0;
}

/* Target */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.target-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.target-card:hover {
    transform: translateY(-5px);
}

.target-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.target-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.target-card .note {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Application */
.application {
    background-color: var(--section-bg-alt);
}

.application-info {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.application-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.required {
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Access */
.access-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.access-info {
    flex: 1;
}

.access-map {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.access-list {
    margin-top: 20px;
}

.access-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-list i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.faq-answer {
    padding-left: 34px;
    color: #555;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .header-nav.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-logo img {
        max-width: 80%;
    }

    .overview-block,
    .overview-block.afternoon {
        flex-direction: column;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-item::after {
        left: 11px !important;
        right: auto !important;
    }

    .timeline-content::after {
        left: -7px !important;
        right: auto !important;
        box-shadow: -2px 2px 2px rgba(0, 0, 0, 0.02) !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px;
    line-height: 1.8;
}

.modal-body h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    font-size: 1.2rem;
}

.modal-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

#privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

#privacy-link:hover {
    color: var(--secondary-color);
}

/* Speakers */
.speakers {
    background-color: #fff;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.speaker-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-5px);
}

.speaker-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid var(--section-bg-alt);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.speaker-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.speaker-role {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.speaker-aff {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Revamped Morning Session */
.morning-revamped {
    display: block;
    /* Override .overview-block flex */
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 80px;
}

.overview-header {
    text-align: center;
    margin-bottom: 30px;
}

.overview-header h3 {
    font-size: 2rem;
    margin: 15px 0;
    color: var(--primary-color);
}

.assembly-schematic-full {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.assembly-schematic-full img {
    width: 100%;
    height: auto;
    display: block;
}

.overview-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.detail-column {
    background: var(--section-bg-alt);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.detail-column h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.morning-footer {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.overview-meta.no-margin {
    margin-bottom: 0;
}

.detail-image {
    margin-top: auto;
    padding-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.detail-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .overview-details-grid {
        grid-template-columns: 1fr;
    }
}