/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Preloader Styles */
.preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    transition: opacity .3s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;

    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 20px;
}

.preloader-logo {
    width: 40%;
    max-width: 200px;
    height: auto;
}

.progress-bar {
    width: 300px;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background-color: #f3f3f3;
}

.progress-inner {
    width: 100%;
    height: 100%;
    background-color: #990000;
    animation: progress 1s linear;

    transform-origin: left;
}

@keyframes progress {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

body {
    overflow-x: hidden;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

/* Common Card Styles */
.card-base {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 8px;
    background: white;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card-base:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}
/* 768px for PC */
.sansoukanmap {
    width: 90%;
    height: 350px;
}
@media screen and (min-width: 768px) {
    .sansoukanmap {
        width: 600px;
        height: 450px;
    }
}

/* Common Colors */
:root {
    --border-color: rgba(0, 0, 0, .06);

    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --accent-color: #990000;
}

.conference-video-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    margin: 0 auto 3rem;
    overflow: hidden;
    border-radius: 8px;
    background: #000000;

    aspect-ratio: 16 / 9;
}

.conference-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #000000;

    object-fit: contain;
}

@media (min-width: 769px) {
    .conference-video-container {
        width: calc(80vh * 16 / 9);
        max-width: 100%;
        height: 80vh;
    }

    .conference-video {
        object-fit: contain;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

h1 {
    font-weight: 700;
    font-size: 4rem;
    line-height: 1.1;
}

h2 {
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    color: #666666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Section Titles */
.section-title {
    margin: 3rem auto;
    padding: 0 1rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    margin: 5rem 0;
    background: rgba(0, 0, 0, .08);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .98);

    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
}

.nav-menu {
    display: flex;
    align-items: center;

    gap: 2rem;
}

.nav-link {
    padding: 8px 0;
    color: #666666;
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    transition: color .2s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-actions {
    display: flex;
    align-items: center;

    gap: 1rem;
}

.apply-btn {
    border: none;
    background: #990000;
    color: white;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
}

.apply-btn:hover {
    transform: translateY(-1px);
    background: #333333;
}

/* Fixed CTA Button */
.fixed-cta {
    display: flex;
    justify-content: center;
    opacity: 0;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 98;
    padding: 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
    background: rgba(255, 255, 255, .75);
    transition: all .3s ease-in-out;

            backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fixed-cta.visible {
    opacity: 1;
}

.fixed-cta.absolute {
    opacity: 1;
    position: absolute;
    bottom: 100%;
}

.fixed-cta .apply-btn {
    min-width: 300px;
    max-width: 90vw;
    padding: 20px 60px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.25rem;
    letter-spacing: .05em;
    text-decoration: none;
    text-align: center;
}

.fixed-cta .apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(153, 0, 0, .3);
    background: #990000;
}

@media (max-width: 768px) {
    .fixed-cta .apply-btn {
        width: 90%;
        min-width: auto;
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    padding: 4px;
    cursor: pointer;
}

.bar {
    width: 24px;
    height: 2px;
    margin: 3px 0;
    border-radius: 2px;
    background: #1a1a1a;
    transition: .3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        position: relative;
        height: auto;
        min-height: 100vh;
        overflow: hidden;
    }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-height: 56.25vw; /* 16:9のアスペクト比（9/16 = 0.5625） */

    object-fit: cover;
}
.hero-text-title {
    color: #222222;
    font-weight: bolder;
    font-size: 1.5rem;
}
@media (max-width: 768px) {
    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 70vh;
        height: 70vh; /* モバイルでの高さを70vhに制限 */
        min-height: auto;
        min-height: auto;
    }
    .hero-text-title {
        font-size: 1.1rem;
    }
}

.hero-overlay {
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(255, 255, 255, .5);
    transition: opacity 1.5s ease;
}

.hero-overlay.visible {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 25vh;  /* ビューポート高さの25%の位置から開始 */
    padding-top: 40px;
}

@media (max-width: 768px) {
    .hero-content {
        margin-top: calc(25vh + 200px);  /* モバイルでは200px下に移動 */
    }
}

.hero-title {
    min-height: 160px;
    margin-bottom: 2rem;
    color: #222222;
    font-weight: 700;
    font-size: 4.5rem;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 4px rgba(255, 255, 255, .9);
}

.typewriter-text {
    display: inline-block;
    max-width: 100%;
    word-break: keep-all;
    word-wrap: break-word;

    overflow-wrap: break-word;
}

.cursor {
    display: inline-block;
    color: white;
    font-weight: normal;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}


.hero-details {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 200px; /* 上部に200pxのマージンを追加 */
    padding: 24px 0;
    background: rgba(255, 255, 255, .8);

    backdrop-filter: blur(10px);
}
.hero-details .moushiukomi {
    display: block;
    width: 350px;
    margin: 1em auto 1.5em auto;
    padding: .5em;
    border: 0;
    border-radius: 10px;
    background: #990000;
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    text-align: center;
}


.hero-kouen h3 {
    margin-bottom: .5rem;
    font-size: 1.5rem;
    text-align: left; /* 見出しを左揃えに統一 */
}
.hero-kouen ul {
    display: block; /* li を縦に並べる（PCでも改行する） */
    list-style: none;
    margin: 0;
    padding: 0;
}
.hero-kouen ul li {
    display: block;
    margin: 0 0 .5rem 0; /* 各行ごとに改行・間隔 */
    text-align: left; /* 左詰め */
}
.hero-kouen ul li a {
    display: inline-block;
    color: #333333;
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-kouen {
        margin-top: 1rem;
        padding-left: 1rem; /* 左詰めに見せるための余白 */
    }
    .hero-kouen h3 {
        text-align: left;
    }
    .hero-kouen ul {
        flex-direction: column; /* 縦並び */
        align-items: flex-start; /* 左詰め */

        gap: .5rem;
    }
}

/* hero-tadantai: hero-kouen と hero-kyouryoku を横並び（PC）/縦並び（モバイル）にする */
.hero-tadantai {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 横並び時は中央揃え */
    align-items: flex-start;
    max-width: 1000px;
    margin: 1.25rem auto 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;

    gap: 2rem;
}
.hero-tadantai > .hero-kouen, .hero-tadantai > .hero-kyouryoku {
    flex: 1 1 420px; /* 横並び時の幅目安 */
    min-width: 260px;
}
.hero-tadantai > .hero-kouen, .hero-tadantai > .hero-kyouryoku {
    /* 見出しの上を揃えるため、各カラムを縦方向のフレックスにして上詰めにする */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.hero-tadantai h3 {
    margin-top: 0; /* 余分な上マージンを消す */
    margin-bottom: .5rem; /* 見出し下の余白を統一 */
    font-size: 1.1rem; /* 見出しサイズを150%に */
    line-height: 1.2;
}
.hero-kyouryoku h3 {
    margin-bottom: .5rem;
    font-size: 1.5rem;
    text-align: left; /* 見出しを左揃えに統一 */
}
.hero-kyouryoku {
    /* 内部の li が直接並んでいるケースに備えて整える */
}
.hero-kyouryoku li {
    display: block;
    list-style: none;
    margin-bottom: .5rem;
    text-align: left;
}
.hero-kyouryoku li a {
    color: #333333;
    font-weight: 500;
    text-decoration: none;
}
.hero-tadantai ul {
    width: 90%;
    margin: 1.5em auto;
}
@media (max-width: 768px) {
    .hero-tadantai {
        display: block; /* 縦並び */
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-right: 1rem;
        padding-left: 1rem;
    }
    /* スマホでは hero-kouen の下に区切り線 */
    .hero-tadantai > .hero-kouen {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, .15);
    }
    .hero-tadantai > .hero-kouen, .hero-tadantai > .hero-kyouryoku {
        flex: none;
        width: 100%;
        min-width: 0;
        margin-bottom: .75rem;
    }
    .hero-kyouryoku h3, .hero-kouen h3 {
        text-align: left;
    }
    /* hero-kyouryoku の li 要素は左詰め */
    .hero-kyouryoku li {
        margin-left: 0;
    }
}

/* PCでは hero-kouen の右に区切り線 */
@media (min-width: 769px) {
    .hero-tadantai > .hero-kouen {
        margin-right: 1rem;
        padding-right: 1rem;
        border-right: 1px solid rgba(0, 0, 0, .15);
    }
    .hero-tadantai > .hero-kyouryoku {
        padding-left: 1rem;
    }
}

.detail-grid {
    display: grid;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    padding: 8px;
    text-align: center;
}

.detail-label {
    display: block;
    margin-bottom: 4px;
    color: #666666;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.detail-value {
    display: block;
    color: #1a1a1a;
    color: #660000;
    font-weight: 600;
    font-size: 28px;
}
.detail-value i {
    font-style: normal;
    font-size: 80%;

            filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.detail-value-timing {
    display: block;
    font-size: 1.2rem;
}

/* Conference Section */
.conference {
    position: relative;
    padding: 5rem 0;
    background: #ffffff;
}

.conference-content {
    max-width: 900px;
    margin: 0 auto;
}

.conference .section-title {
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 2.rem;
    letter-spacing: .02em;
}

.conference-overview {
    width: 80%;
    margin: 2em auto;
    letter-spacing: 1px;
    text-align: center;
}

.conference-overview p {
    margin-bottom: 1rem;
    color: #666666;
    font-size: 1.2rem;
    line-height: 1.8;
}

.conference-highlights {
    display: flex;
    flex-direction: column;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.highlight-section-title {
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-size: 2rem;
    text-align: center;
}

.conference-highlights-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.highlight-item {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}
.highlight-item img {
    display: block;
    max-width: 80%;
    margin: 1.5em auto;
    border-radius: 100%;
}
.highlight-icon {
    margin-bottom: 1.5rem;
    color: #374151;
    font-size: 2.5rem;
}

.highlight-item h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.4rem;
}

.highlight-item p {
    padding: 0 1rem;
    color: #666666;
    font-size: 1rem;
    line-height: 1.7;
}

/* Lectures Section */
.lectures {
    position: relative;
    padding: 0 0 5rem 0;
    overflow: hidden;
    background: #eeeeee;
}

.lecture-eyecatch {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 4rem;
    overflow: hidden;
}

.lecture-eyecatch-img {
    width: 100%;
    height: 100%;
    transition: transform .3s ease;

    object-fit: cover;
    object-position: center;
}

.lecture-eyecatch:hover .lecture-eyecatch-img {
    transform: scale(1.05);
}

/* メディアクエリでモバイル対応 */
@media (max-width: 768px) {
    .lecture-eyecatch {
        height: 250px;
        margin-bottom: 3rem;
    }
}

.lectures::before, .lectures::after {
    position: absolute;
    transform: rotate(-3deg);
    width: 120%;
    height: 100px;
    content: "";
}

.lectures::before {
    background: #ffffff;
}

.lectures::after {
    background: #ffffff;
}

.lectures::before {
    top: -50px;
    left: -10%;
}

.lectures::after {
    bottom: -50px;
    left: -10%;
}

.lecture-headere {
    width: 80%;
    margin: 2em auto;
    letter-spacing: 1px;
}
.lecture-content {
    max-width: 960px;
    margin: 0 auto;
}

.lecture-panel {
    margin: 0 1rem;
    padding: 3rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.lecture-panel h3 {
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-size: 1.8rem;
    text-align: center;
}

.panel-members {
    display: flex;
    flex-direction: row;
    width: 96%;

    gap: 25px;
}

.moderator {
    flex: 0 0 40%;
}

.panelists {
    flex: 0 0 60%;
}

.moderator h4, .panelists h4 {
    margin-bottom: 1.5rem;
    color: #374151;
    font-size: 1.3rem;
    text-align: center;
}

.speakers-grid {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .panel-members {
        flex-direction: column;
    }

    .moderator, .panelists {
        flex: 0 0 100%;
    }

    .speakers-grid {
        grid-template-columns: 1fr;
    }
}

.speaker {
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.speaker:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.speaker-name {
    margin-bottom: .5rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.2rem;
}
.speaker-image img {
    display: block;
    max-width: 80%;
    margin: 1.5em auto;
    border-radius: 100%;
}
.speaker-company {
    margin: 0;
    color: #6b7280;
    font-size: .9rem;
}

/* Grand Prix Section */
.grandprix {
    position: relative;
    padding: 0 0 5rem 0;
    overflow: hidden;
    background: #ffffff;
}

.award-categories {
    margin: 4rem auto;
    text-align: center;
}

.award-grid {
    display: grid;
    margin-top: 2rem;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.award-item {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    background: #ffffff;
    transition: transform .3s ease;
}


.award-icon img {
    display: block;
    max-width: 50%;
    margin: 1em auto;

    object-fit: cover;
}

.award-item:hover {
    transform: translateY(-5px);
}

.award-item h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.5rem;
}

.previous-winners {
    margin: 4rem auto;
    text-align: center;
}

.main-winners {
    display: grid;
    max-width: 1000px;
    margin: 2rem auto;

    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.special-prizes {
    margin-top: 4rem;
}

.special-prizes-grid {
    display: grid;
    max-width: 1200px;
    margin: 2rem auto;

    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.winner-item {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    background: #ffffff;
    text-align: left;
}

.winner-item.grand-prize {
    border: 2px solid #d4af37;
    background: linear-gradient(135deg, #fef6e4, #ffffff);
}

.winner-item.runner-up {
    border: 2px solid #c0c0c0;
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

.winner-image {
    margin: -2rem -2rem 2rem -2rem;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.shop-image {
    width: 100%;
    height: 200px;
    transition: transform .3s ease;

    object-fit: cover;
}

.winner-item:hover .shop-image {
    transform: scale(1.05);
}

@media (max-width: 968px) {
    .main-winners {
        grid-template-columns: 1fr;
    }

    .special-prizes-grid {
        grid-template-columns: 1fr;
    }
}

.winner-content {
    margin-top: 1rem;
}

.winner-content h5 {
    margin-bottom: .5rem;
    color: #1a1a1a;
    font-size: 1.2rem;
}

.winner-link {
    display: inline-block;
    margin-top: .5rem;
    padding: .5rem 1rem;
    border: 1px solid #990000;
    border-radius: 4px;
    color: #990000;
    text-decoration: none;
    transition: all .3s ease;
}

.winner-link:hover {
    background: #990000;
    color: #ffffff;
}

.award-ceremony {
    margin: 4rem auto;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.ceremony-details {
    margin-top: 1rem;
}

.ceremony-details p {
    margin: .5rem 0;
    color: #666666;
}

.grandprix-eyecatch {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 4rem;
    overflow: hidden;
}

.grandprix-eyecatch-img {
    width: 100%;
    height: 100%;
    transition: transform .3s ease;

    object-fit: cover;
    object-position: center;
}

.grandprix-eyecatch:hover .grandprix-eyecatch-img {
    transform: scale(1.05);
}

/* メディアクエリでモバイル対応 */
@media (max-width: 768px) {
    .grandprix-eyecatch {
        height: 250px;
        margin-bottom: 3rem;
    }
}

.grandprix-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.grandprix-description {
    margin-bottom: 3rem;
}

.grandprix-description p {
    color: #666666;
    font-size: 1.2rem;
    line-height: 1.6;
}

.detail-box {
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 8px;
    background: white;
    transition: transform .2s ease, box-shadow .2s ease;
}

.detail-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.detail-box h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.75rem;
}

.detail-box p {
    margin-bottom: .5rem;
    color: #666666;
    font-size: 1.1rem;
}

/* Schedule Section */
.schedule {
    padding: 6rem 0;
    background: #ffffff;
}

.schedule-timeline {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    transition: all .2s ease;

    gap: 2rem;
}

.timeline-item:hover {
    padding-left: 1rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, .02);
}

.timeline-time {
    display: flex;
    align-items: center;
    min-width: 120px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.1rem;

    gap: .5rem;
}

.time-icon {
    width: 20px;
    height: 20px;
    color: #666666;
}

.timeline-content h3 {
    margin-bottom: .5rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.2rem;
}

.timeline-content p {
    margin: 0;
    color: #666666;
    font-size: .9rem;
}

.venue {
    padding: 6rem 0;
    background: #ffffff;
}

.venue-info {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.venue-card {
    display: inline-flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    background: white;
    transition: transform .2s ease;

    gap: 1rem;
}

.venue-card:hover {
    transform: translateY(-2px);
}

.venue-icon {
    width: 24px;
    height: 24px;
    color: #666666;
}

.venue-details h3 {
    margin-bottom: .25rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.1rem;
}

.venue-details p {
    margin: 0;
    color: #666666;
    font-size: 1rem;
}

.venue-map {
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 8px;
}

.venue-access {
    padding: 2rem;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: left;
}

.venue-access h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.2rem;
}

.venue-access ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.venue-map iframe {
    border: 0;
}
.venue-map p a {
    display: block;
    width: 50%;
    margin: 1em auto;
    padding: .5em;
    border: #333333 solid 1px;
    border-radius: 3px;
    color: #333333;
    text-decoration: none;
}

.venue-access li {
    position: relative;
    margin-bottom: .5rem;
    padding-left: 1.5rem;
    color: #666666;
    font-size: 1rem;
    line-height: 1.6;
}

.venue-access li::before {
    position: absolute;
    top: 10px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #666666;
    content: "";
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .testimonials-carousel {
        padding: 0;

        gap: 0;
    }

    .carousel-container {
        width: 100%;
        overflow-x: scroll;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-track {
        display: flex;
        transform: none !important;
        width: 300%;
        transition: none;

        scroll-behavior: smooth;
    }

    .testimonial-slide {
        display: block;
        flex: 0 0 33.333%;
        width: 33.333%;
        padding: 1rem;

        scroll-snap-align: start;
    }

    .testimonial-card {
        height: 100%;
        margin: 0;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        position: relative;
        margin-top: 2rem;

        gap: 1rem;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0, 0, 0, .2);
        transition: all .3s ease;
    }

    .dot.active {
        background: var(--accent-color, #990000);
    }
}

.testimonials-carousel {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;

    gap: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x pinch-zoom;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    width: 300%;
    transition: transform .5s ease-in-out;
}

.testimonial-slide {
    display: grid;
    flex: 0 0 33.333%;
    padding: 2rem;

    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 100%;
        width: 100%;
        padding: 1rem;

        grid-template-columns: 1fr;
    }

    .carousel-track {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
    }

    .testimonial-card + .testimonial-card {
        margin-top: 1rem;
    }

    .testimonial-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .testimonial-card p {
        margin-bottom: 1rem;
        font-size: .95rem;
        line-height: 1.6;
    }

    .testimonial-author {
        flex-direction: row;
        align-items: center;

        gap: .5rem;
    }

    .author-name, .author-company {
        font-size: .9rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
        background: rgba(255, 255, 255, .9);
    }

    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }

    .testimonials {
        padding: 3rem 0;
    }

    .testimonials .section-title {
        margin: 1.5rem auto;
        font-size: 1.75rem;
    }

    .carousel-container {
        width: 100%;
        overflow: hidden;
    }

    .testimonials-carousel {
        padding: 0 1rem;
    }

    .carousel-arrow {
        display: none;
    }
}

.testimonial-card {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 8px;
    background: white;
    transition: transform .2s ease, box-shadow .2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.testimonial-card p {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;

    gap: .25rem;
}

.author-name {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
}

.author-company {
    color: #666666;
    font-size: .9rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;

    gap: .5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: background .2s ease;
}

.dot.active {
    background: #1a1a1a;
}

.carousel-arrow {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    background: white;
    cursor: pointer;
    transition: all .2s ease;
}

.carousel-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    background: #f8f9fa;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    color: #1a1a1a;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #ffffff;
}
.about_images img {
    display: block;
    max-width: 33%;
    margin: 1.5em auto;
}
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.activities-title {
    margin: 4rem 0 2rem;
    color: #1a1a1a;
    font-size: 2rem;
    text-align: center;
}

.events-cards {
    display: grid;
    margin: 2rem 0;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    background: #ffffff;
    transition: transform .3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    transition: transform .3s ease;

    object-fit: cover;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 2rem;
}

.event-icon {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.event-content h3 {
    margin: 1rem 0;
    color: #1a1a1a;
    font-size: 1.5rem;
}

.event-content p {
    margin-bottom: 0;
    color: #666666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .events-cards {
        padding: 0 1rem;

        grid-template-columns: 1fr;
    }

    .event-card {
        max-width: 100%;
    }

    .activities-title {
        padding: 0 1rem;
        font-size: 1.75rem;
    }
}

.about-description {
    margin: 4rem auto;
    padding: 2rem;
    border-radius: 16px;
    background: #f8f9fa;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
}

.description-content p {
    margin-bottom: 1.5rem;
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.8;
    letter-spacing: .02em;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    margin-bottom: 4rem;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.feature-icon {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}
.feature-icon img {
    display: block;
    max-width: 60%;
    margin: 1.5em auto;
}
.feature-item h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.2rem;
}

.feature-item p {
    margin: 0;
    color: #666666;
    font-size: .95rem;
}

.about-activities {
    text-align: center;
}

.about-activities h3 {
    margin-bottom: 2.5rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.75rem;
}

.activities-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-item {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 8px;
    background: white;
    transition: transform .2s ease, box-shadow .2s ease;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.activity-item h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.2rem;
}

.activity-item p {
    margin: 0;
    color: #666666;
    font-size: .95rem;
}

/* Footer */
.footer {
    position: relative;
    z-index: 99;
    padding: 2rem 0;
    background: #f8f9fa;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-info p {
    opacity: .7;
    margin: 0;
    font-size: .9rem;
}

/* Responsive Design */
/* Responsive Styles */
@media (max-width: 768px) {
    /* Base Layout */
    html, body {
        width: 100%;
        min-width: 320px;
        overflow-x: hidden;
    }

    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    .container {
        padding: 0 20px;
    }

    /* Typography */
    .section-title {
        margin: 2rem auto;
        font-size: 2rem;
    }

    /* Navigation */
    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        padding: 2rem 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, .05);
        background: rgba(255, 255, 255, .98);
        text-align: center;
        transition: .3s;

        gap: 1rem;
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu .apply-btn {
        display: none;
    }

    /* Hero Section */
    .hero-content {
        position: relative;
        z-index: 2;
        margin-top: 45vh;
        padding: 20px;
    }

    .hero-title {
        min-height: 120px;
        font-size: 3rem;
    }

    .typewriter-text {
        padding: 0 10px;
        font-size: 2.5rem;
        line-height: 1.3;
    }

    /* Grid Layouts */
    .detail-grid, .feature-grid, .activities-grid, .speakers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Carousel */
    .testimonial-slide {
        padding: 1rem;

        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .carousel-track {
        width: 100%;
    }

    .testimonials-carousel {
        flex-direction: column;

        gap: 1.5rem;
    }

    .carousel-arrow {
        position: absolute;
        top: 50%;
        z-index: 10;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
    }

    .carousel-arrow-left {
        left: -20px;
    }

    .carousel-arrow-right {
        right: -20px;
    }

    /* Timeline */
    .timeline-item {
        flex-direction: column;
        text-align: center;

        gap: 1rem;
    }

    .timeline-time {
        justify-content: center;
        min-width: auto;
    }

    /* Venue */
    .venue-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    /* Sections Padding */
    .lecture-panel {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    /* Base Layout */
    .container, .nav-container {
        padding: 0 16px;
    }

    /* Typography */
    .section-title {
        font-size: 1.75rem;
    }

    /* Hero Section */
    .hero-content {
        margin-top: 15vh;
    }

    .hero-title {
        min-height: auto;
        padding: 20px 0;
        font-size: 2rem;
    }

    .typewriter-text {
        padding: 0 5px;
        font-size: 2rem;
        line-height: 1.4;
    }

    /* Sections */
    .lecture-panel, .highlight-item {
        padding: 1.5rem 1rem;
    }

    /* Carousel */
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow-left {
        left: -18px;
    }

    .carousel-arrow-right {
        right: -18px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Animations */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Fix: Align first characters in hero columns --- */
.hero-kouen, .hero-kyouryoku {
    margin-left: 0;
    padding-left: 0;
}

.hero-kouen h3, .hero-kyouryoku h3 {
    text-align: left;
}

.hero-kouen ul, .hero-kyouryoku ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-kouen ul li, .hero-kyouryoku li, .hero-kyouryoku ul li {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
}

.hero-kouen ul li a, .hero-kyouryoku li a, .hero-kyouryoku ul li a {
    display: inline-block;
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
}
/* --- Override: Ensure hero headings are large --- */
.hero-kouen h3, .hero-kyouryoku h3, .hero-tadantai h3 {
    font-size: 1.5rem;
}

/* --- Parallelogram frame for headings in hero-tadantai --- */
.hero-tadantai h3 {
    display: inline-block;
    position: relative;
    z-index: 0; /* for pseudo-element layering */
    padding: .35rem 1.5rem;
    line-height: 1.2;
}

.hero-tadantai h3::before {
    position: absolute;
    z-index: -1; /* put the frame behind the text */
    transform: skewX(-18deg);
    border: 1px solid #999999;
    background: transparent;
    content: "";

    inset: 0; /* cover the heading box */
    transform-origin: left center;
    pointer-events: none;
}

/* Center the framed heading on mobile (keeps your earlier text-align) */
@media (max-width: 768px) {
    .hero-tadantai h3 {
        margin-right: auto;
        margin-left: auto;
    }
}

/* Desktop: remove the h3 parallelogram frame */
@media (min-width: 769px) {
    .hero-tadantai h3::before {
        border: 0 !important;
        content: none !important;
    }
}

/* --- Mobile overrides: center headings and list box --- */
@media (max-width: 768px) {
    /* h3 を中央揃え */
    .hero-kouen h3, .hero-kyouryoku h3 {
        text-align: center;
    }

    /* UL を 90% 幅にして中央配置 */
    .hero-kouen ul, .hero-kyouryoku ul {
        width: 90%;
        margin: 0 auto;
    }

    /* hero-kouen の左パディングを打ち消して中央に寄せる */
    .hero-kouen {
        padding-left: 0;
    }

    /* Fallback: hero-kyouryoku に UL が無い場合でもボックスを中央に */
    .hero-kyouryoku {
        width: 90%;
        margin: 0 auto;
    }
}