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

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}
/* PC: 改行しない */
br.sp {
    display: inline;
}

/* スマホ: 改行する */
@media (max-width: 768px) {
    br.sp {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.yellow-bg,
.blue-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 50%;
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.yellow-bg {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    top: 0;
    animation-delay: 0s;
}

.blue-bg {
    background: linear-gradient(135deg, #87CEEB 0%, #4A90A4 100%);
    top: 50%;
    animation-delay: 0.2s;
}

@keyframes slideInFromLeft {
    0% {
        left: -100%;
    }
    100% {
        left: 0;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-a {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInPhoto 0.8s ease-out 1s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes fadeInPhoto {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Popup Elements */
.popup-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.popup-item {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    animation: popupBounceDynamic 1s cubic-bezier(0.68, -0.75, 0.265, 1.75) forwards;
    pointer-events: auto;
}

.popup-logo {
    top: 28%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 65%;
    max-width: 780px;
    z-index: 10;
    animation-delay: 1.6s;
}

.popup-target {
    top: 8%;
    left: 3%;
    width: 32%;
    max-width: 380px;
    z-index: 9;
    animation-delay: 2s;
}

.popup-info {
    bottom: 2%;
    right: 3%;
    width: 35%;
    max-width: 400px;
    z-index: 9;
    animation-delay: 2.4s;
}

.popup-item img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes popupBounceDynamic {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-15deg);
    }
    40% {
        transform: scale(1.25) rotate(5deg);
    }
    65% {
        transform: scale(0.9) rotate(-3deg);
    }
    85% {
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.popup-logo {
    animation-name: popupBounceCenter;
}

@keyframes popupBounceCenter {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0) rotate(-15deg);
    }
    40% {
        transform: translateX(-50%) scale(1.25) rotate(5deg);
    }
    65% {
        transform: translateX(-50%) scale(0.9) rotate(-3deg);
    }
    85% {
        transform: translateX(-50%) scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1) rotate(0deg);
    }
}

/* Event Details Section */
.event-details {
    background: #f8f9fa;
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.event-hero-image {
    margin-bottom: 60px;
    text-align: center;
	font-size: 1.2em;
	color: #8B6502;
}
.event-hero-image img.main-image{
	width:50%;
	heighit:auto;
}
@media (max-width: 768px) {
.event-hero-image img.main-image{
	width:90%;
	heighit:auto;
}
}
.event-info {
	text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.event-info h2 {
    font-size: 2.5em;
    color: #FF6B9D;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.event-info h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FF6B9D);
    margin: 20px auto 0;
    border-radius: 2px;
}

.info-block {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-block h3 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 15px;
    background: #FFA500;
    border-radius: 30px;
}
.info-block p {
	margin: 10px 0 20px 0;
	line-height: 1.25;
}
.highlight-text {
    font-size: 1.8em;
    color: #FF6B9D;
    font-weight: bold;
    margin: 10px 0 0 0;
	font-style: italic;
}
.highlight-text span {
    font-size: 2.4em;
}
.large-text {
    font-size: 2.5em;
    color: #FF6B9D;
    font-weight: bold;
    text-align: center;
}

.note-text {
    color: #FF6B9D;
    font-size: 1.8em;
    font-weight: bold;
    margin:0 0 10px 0;
	font-style: italic;
}

.small-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}
.venue {
	font-weight: bold;
	font-size: 1.2em;
}
/* Map Section */
.map-section {

    margin-top: 30px;
    margin-bottom: 60px;
}

.map-section h4 {
    font-size: 1.6em;
    color: #FFA500;
    text-align: center;
    margin-bottom: 30px;
}

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

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 480px;
}

@media (max-width: 768px) {
    .map-section {
        padding: 30px 0px;
    }
    
    .map-container iframe {
        min-height: 400px;
    }
}


.highlight-box {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

.highlight-box h3 {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.highlight-box .large-text {
    color: white;
}

.highlight-box .small-text {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 50px;
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF1493 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
}

/* Concept Section */
.concept-section {
    background:#C8FEF6;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}
.concept-section h2 {
    font-size: 2.2em;
    color: #FFA500;
    text-align: center;
    margin-bottom: 30px;
}
.concept-section img {
	width: 60%;
	height: auto;
}

@media (max-width: 768px) {
.concept-section img {
	width: 100%;
	height: auto;
}
}


.concept-section p {
	text-align: center;
    font-size: 1.0em;
    line-height: 1.6;
    margin-bottom: 20px;
    color:#011541;
}
@media (max-width: 768px) {
.concept-section p {
	text-align: left;
}
}
/* Forum Section */
.forum-section {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.forum-section h2 {
    font-size: 2.2em;
    color: #4A90A4;
    text-align: center;
    margin-bottom: 40px;
}

.forum-box {
    border: 3px solid #4A90A4;
    border-radius: 5px;
    padding: 40px 5px;
    background: #f0f8ff;
}
.forum-target  {
	width: 50%;
	margin: 0 auto 30px auto;
}
@media (max-width: 768px) {
.forum-target  {
	width: 100%;
}
}
.forum-target p {
	text-align: center;
	padding: 10px;
	margin-bottom: 20px;
	border:#333 solid 1px;
	background: #fff;
}
.forum-box h3 {
    font-size: 1.8em;
	color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.forum-box h3 span {
    font-size: 0.8em;
    color: #4A90A4;
}

.forum-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.speaker-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
}

.speaker {
    width: 45%;
    min-width: 300px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
}
.speaker img {
    width:50%;
	height: auto;
}
@media (max-width: 768px) {
.speaker img {
    width:100%;
	height: auto;
}
}
.speaker h4 {
    background: #4A90A4;
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.speaker-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.speaker-title {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

.organizer-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 30px;
    text-align: center;
}
.organizer-info h4 {
    background: #4A90A4;
    color: white;
    padding: 10px 50px;
    border-radius: 6px;
    font-size: 1.1em;
    margin-bottom: 15px;
    display: inline-block;
}
@media (max-width: 768px) {
.organizer-info {
    margin: 30px 0;
}
.organizer-info h4 {
    display:block;
}
}


/* Footer Info */
.footer-info {
    background:#04266B;
    color: white;
    padding: 40px;
    margin-top: 60px;
}

.organizer {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.cooperation {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 30px;
}

.contact h4 {
    color: #FFD700;
    margin-bottom: 10px;
}

.contact p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 980px) {
.popup-logo {
    top: 28%;
    left: 50%;
    width: 60%;
    max-width: 600px;
    z-index: 10;
    animation-delay: 1.6s;
}

.popup-target {
    top: 8%;
    left: 3%;
    width: 27%;
    max-width: 340px;
}

.popup-info {
    bottom: 5%;
    right: 2%;
    width: 25%;
    max-width: 350px;
}
}
@media (max-width: 819px) {
.popup-logo {
    top: 28%;
    left: 50%;
    width: 45%;
    max-width: 500px;
    animation-delay: 1.6s;
}

.popup-target {
    top: 8%;
    left: 3%;
    width: 22%;
    max-width: 280px;
}

.popup-info {
    bottom: 1%;
    right: 1%;
    width: 25%;
    max-width: 300px;
}
}

@media (max-width: 768px) {
    .popup-logo {
    width: 35%;
    max-width: 400px;
        top: 25%;
    }
    
    .popup-target {
        width: 20%;
    max-width: 180px;
        left: 2%;
        top: 2%;
    }
    
    .popup-info {
        width: 20%;
    max-width: 180px;
        right: 2%;
        bottom: 2%;
    }
    
    .event-info,
    .concept-section,
    .forum-section {
        padding: 30px 10px;
    }
    
    .event-info h2 {
        font-size: 1.8em;
    }
    
    .speaker {
        width: 100%;
    }
    
    .info-block {
        padding: 15px;
    }
}
@media (max-width: 666px) {
    .popup-logo {
        width: 90%;
		min-width: 450px;
        top: 25%;
    }
    
    .popup-target {
        width: 35%;
        left: 2%;
        top: 2%;
    }
    
    .popup-info {
        width: 40%;
        right: 2%;
        bottom: 10%;
    }
}
@media (max-width: 480px) {
    .popup-logo {
        width: 90%;
		max-width: 410px;
		mim-width: 400px;
        top: 25%;
    }
    
    .popup-target {
        width: 42%;
		min-width: 280px;
        top: 2%;
    }
    
    .popup-info {
        width: 48%;
		min-width: 280px;
        bottom: 8%;
    }
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ページトップボタン */
.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF1493 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.page-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.page-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

@media (max-width: 768px) {
    .page-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}



/* プログラムギャラリーセクション */
/* プログラムギャラリー外側ラッパー */
.program-gallery-outer {
    position: relative;
    width: 100%;
}

/* プログラムギャラリーセクション */
.program-gallery-section {
    background: #fff;
    padding: 60px 0;
    margin-bottom: 60px;
    overflow: hidden;
}

.program-gallery-container {
    max-width: 100%;
    margin: 0 auto;
}

.program-gallery-container h2 {
    font-size: 2.2em;
    color: #FFA500;
    text-align: center;
    margin-bottom: 40px;
}

.program-gallery-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #FFA500 #f0f0f0;
    scroll-behavior: smooth;
}

.program-gallery-wrapper::-webkit-scrollbar {
    height: 8px;
}

.program-gallery-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.program-gallery-wrapper::-webkit-scrollbar-thumb {
    background: #FFA500;
    border-radius: 4px;
}

.program-gallery-track {
    display: flex;
    gap: 20px;
    padding: 20px;
    animation: programAutoScroll 40s linear infinite;
}

.program-gallery-track:hover {
    animation-play-state: paused;
}

@keyframes programAutoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.program-gallery-item {
    flex: 0 0 auto;
    width: 350px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.program-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.program-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 210 / 297;
    object-fit: cover;
}

/* スクロールボタン（PCのみ表示） - 外側に固定 */
.program-scroll-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 165, 0, 0.9);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.program-scroll-btn:hover {
    background: rgba(255, 107, 157, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.program-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.program-scroll-left {
    left: 20px;
}

.program-scroll-right {
    right: 20px;
}

@media (min-width: 769px) {
    .program-scroll-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* モバイル表示 */
@media (max-width: 768px) {
    .program-gallery-item {
        width: 250px;
    }
    
    .program-gallery-section {
        padding: 40px 0;
    }
    
    .program-gallery-container h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
}

/* モーダル */
.program-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.program-modal.program-modal-active {
    display: flex !important;
}

.program-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: programModalZoom 0.3s ease-out;
    cursor: pointer;
}

@keyframes programModalZoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.program-modal-close {
    position: fixed;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 107, 157, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.program-modal-close:hover,
.program-modal-close:focus {
    background: rgba(255, 20, 147, 1);
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 768px) {
    .program-modal-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 50px;
        height: 50px;
    }
    
    .program-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
}