﻿/* --- 基本設定 --- */
body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: #1f2937; /* text-gray-800 */
    background-color: #fff; /* bodyの背景色を白に設定 */
    /* ザラザラした質感の背景を追加 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* はみ出し防止 */
}

.site-wrapper {
    margin: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #f9fafb; /* ラッパーの背景色を白系に */
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

/* スマホ表示では余白と角丸をなくす */
@media (max-width: 640px) {
    .site-wrapper {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
}


main {
    flex-grow: 1;
    position: relative; /* この行を追加 */
    overflow: hidden; /* mainからはみ出ないように追加 */
}

.scrolling-text-container {
    position: absolute; /* 'fixed'から'absolute'に変更 */
    top: 0;
    left: 20px;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.scrolling-text-track {
    animation: scroll-up 30s linear infinite; /* アニメーションの速度（30秒で1周） */
}

.scrolling-text {
    display: block;
    font-family: 'Noto Sans JP', sans-serif; /* ゴシック体 */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04); /* 文字の色と透明度 */
    text-transform: uppercase;
    white-space: nowrap;
    padding-bottom: 1em; /* テキスト間のスペース */
}

/* アニメーションの定義 */
@keyframes scroll-up {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%); /* トラックの半分の高さまで移動してループ */
    }
}

/* スマートフォン表示では非表示にする */
@media (max-width: 768px) {
    .scrolling-text-container {
        display: none;
    }
}


/* テキストのはみ出しを全体的に防止 */
*, *::before, *::after {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}



.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* スマートフォン用にパディングを調整 */
    padding-right: 1rem; /* スマートフォン用にパディングを調整 */
    max-width: 1080px;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem; /* 元のパディングに戻す */
        padding-right: 1.5rem; /* 元のパディングに戻す */
    }
}

/* --- ヘッダー --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.9); /* White background */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.logo {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 800; /* font-extrabold */
    background: linear-gradient(45deg, #f78bb5, #75d4f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
@media (min-width: 768px) {
    .logo {
        font-size: 1.875rem; /* md:text-3xl */
    }
}
.main-nav {
    display: none; /* hidden */
}
@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem; /* space-x-8 */
    }
}
.nav-link {
    font-size: 1.125rem; /* text-lg */
    color:  #ec4899;/* text-gray-600 */
    transition: color 0.2s;
    font-weight: 500;
    text-decoration: none;
}
.nav-link:hover {
    color:  #4b5563;/* hover:text-pink-500 */
}

/* --- モバイルメニュー --- */
.hamburger-menu {
    display: block;
    position: relative;
    z-index: 1000; /* Ensure it's on top */
}
@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }
}
.nav-toggle-checkbox {
    display: none;
}
.hamburger-icon {
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.25rem;
}
.hamburger-icon > div {
    width: 100%;
}
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ec4899; /* Pink color for better visibility */
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
}
.hamburger-line-2, .hamburger-line-3 {
    margin-top: 0.375rem; /* mt-1.5 */
}
.nav-toggle-checkbox:checked + #hamburger-icon .hamburger-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle-checkbox:checked + #hamburger-icon .hamburger-line-2 {
    opacity: 0;
}
.nav-toggle-checkbox:checked + #hamburger-icon .hamburger-line-3 {
    transform: rotate(-45deg) translate(7px, -6px);
}
.mobile-menu {
    display: none; /* 初期状態は非表示。JSで制御 */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 1.125rem;
    color: #374151;
    transition: background-color 0.2s;
    font-weight: 500;
    text-decoration: none;
}
.mobile-nav-link:hover {
    background-color: #fff1f2; /* hover:bg-pink-50 */
}


/* --- ヒーローセクション --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}
@media (min-width: 768px) {
    .hero-section {
        min-height: 100vh;
    }
}
.hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
    filter: blur(2px);/**ぼかし**/
    transform: scale(1.1);
}
.hero-bg-slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Dark overlay for better contrast */
    z-index: 2;
}
.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}
.hero-logo {
    max-width: 90%;
    width: 600px;
    margin: 1rem auto; /* Reduced margin */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
.hero-subtitle {
    font-size: 1.375rem; /* Increased font size */
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.75rem; /* Increased font size */
    }
}
.hero-date {
    font-size: 1.75rem; /* Increased font size */
    font-weight: 700;
    color: #fff;
    margin-top: 1rem; /* Reduced margin */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-date span {
    font-size: 1.375rem; /* Increased font size */
}
@media (min-width: 768px) {
    .hero-date { font-size: 2.5rem; /* Increased font size */ }
}
.hero-location {
    font-size: 1.25rem; /* Increased font size */
    color: #fff;
    margin-top: 0.5rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) {
    .hero-location { font-size: 1.375rem; /* Increased font size */ }
}

/* --- 共通セクションスタイル --- */
.section {
    padding: 5rem 0;
}
@media (min-width: 768px) {
    .section { padding: 8rem 0; }
}

/* --- セクション背景グラデーション --- */
.section-gradient-blue {
    background: linear-gradient(180deg, #e0f2fe 0%, #ffffff 100%);
}
.section-gradient-pink {
    background: linear-gradient(180deg, #fce7f3 0%, #ffffff 100%);
}
.section-gradient-yellow {
    background: linear-gradient(180deg, #fef9c3 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    display: inline-block;
    position: relative;
    padding-bottom: 0.75rem;
    background: linear-gradient(45deg, #f78bb5, #75d4f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #f9a8d4, #a5f3fc);
}
@media (min-width: 768px) {
    .section-title { font-size: 3.75rem; }
}
.section-subtitle {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #082868;
    max-width: 62rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

p {
	color:#082868;
    font-weight: 500;
    font-size: 1.15rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 500;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4b5563;
    font-weight: 500;
}
.highlight {
    font-weight: 700;
    color: #ec4899;
    font-size: 1.5rem;
}

.txt-left {
    text-align: left;
}

/* --- Aboutセクション --- */
.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .about-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.content-image {
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: auto;
}

/* --- スライドショー --- */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.slide {
    display: none;
}
.slide img {
    vertical-align: middle;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 1rem;
    margin-top: -1.75rem;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    transition: 0.3s ease;
    border-radius: 0 5px 5px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}
.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.dots-container {
    text-align: center;
    padding-top: 1rem;
}
.dot {
    cursor: pointer;
    height: 1rem;
    width: 1rem;
    margin: 0 0.25rem;
    background-color: #d1d5db; /* bg-gray-300 */
    border-radius: 9999px;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.active, .dot:hover {
    background-color: #f472b6; /* bg-pink-400 */
}
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}


/* --- 募集要項セクション --- */
.recruit-wrapper { display: flex; flex-direction: column; gap: 3rem; }
.recruit-category-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-bottom: 0.5rem;
}
.recruit-category-title svg { margin-right: 0.75rem; }
.stage-title {
    color: #2563eb;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.booth-title {
    color: #db2777;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.recruit-card-group { display: flex; flex-direction: column; gap: 2rem; }
.recruit-card-horizontal {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.recruit-card-horizontal:hover, .recruit-card-vertical:hover, .sponsor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .recruit-card-horizontal { flex-direction: row; }
}
.recruit-card-image-horizontal {
    border-radius: 0.75rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media (min-width: 768px) {
    .recruit-card-image-horizontal { width: 33.3333%; }
}
.recruit-card-body { flex: 1; }
.recruit-card-title { font-weight: 700; font-size: 1.5rem; color: #1f2937; }
.recruit-card-text {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    color: #4b5563;
    font-weight: 500;
}

.recruit-grid {
    display: grid;
    gap: 2rem;
    padding-top: 1.5rem;
}
@media (min-width: 768px) {
    .recruit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.recruit-card-vertical {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    border: 1px solid #f3f4f6;
    transition: transform 0.3s, box-shadow 0.3s;
}
.recruit-card-image-vertical {
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.application-box {
    margin-top: 4rem;
    background-color: #fff;
    border: 2px dashed #f9a8d4;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}
.application-title { font-size: 1.875rem; font-weight: 700; color: #1f2937; margin-bottom: 1rem; }
.application-text {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.button-primary {
    display: inline-block;
    background: linear-gradient(to right, #ec4899, #f97316);
    color: #fff;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    transform: perspective(1px) translateZ(0);
    transition: transform 0.3s;
    font-size: 1.25rem;
    text-decoration: none;
}
.button-primary:hover {
    transform: scale(1.05);
}
.application-deadline { margin-top: 1.5rem; font-size: 1.5rem; font-weight: 700; }
.application-note {
    margin:0.5rem auto ;
    font-size: 1.2rem;
    color: #082868;
	border: 3px solid #082868;
	padding: 10px;
	max-width: 30rem;
    font-weight: 500;
}
.application-rules ul {
    margin-top: 2rem;
    text-align: left;
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}
.application-rules ul li {
    font-size: 1.1rem;
    color: #082868;
    margin-bottom: 0.25rem;
    font-weight: 500;
	list-style: none;
}

/* --- スポンサーセクション --- */
.sponsor-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
}
.sponsor-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.sponsor-name { font-size: 1.875rem; font-weight: 700; color: #2563eb; margin-bottom: 1rem; }
.sponsor-description {
    font-size: 1.125rem;
    color: #4b5563;
    font-weight: 500;
}

/* --- 実行委員会セクション --- */
.committee-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .committee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .committee-grid { grid-template-columns: repeat(4, 1fr); } }

.committee-member { text-align: center; }
.committee-photo {
    width: 10rem;
    height: 10rem;
    border-radius: 9999px;
    margin: 0 auto 1rem auto;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    border: 4px solid #fff;
}
.committee-name { font-weight: 700; font-size: 1.25rem; }
.committee-school { font-size: 1rem; color: #ec4899; font-weight: 600; }
.committee-comment {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    padding: 1rem;
    background-color: #fff;
    border:1px solid #f9fafb;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* --- フッター --- */
.site-footer {
    background-color: #fff;
    color: #082868;
    border-top:3px solid #082868;
}
.site-footer .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
}
.footer-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
.footer-text {
    font-size: 1.125rem;
    color: #082868;
    font-weight: 500;
}
.footer-bottom { margin-top: 2rem; }

.footer-logo {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(45deg, #f78bb5, #75d4f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.copyright {
    background-color: #fff;
    color: #082868;
    border-top:3px solid #082868;
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 700;
    padding: 10px 0 0 ;
    text-align: center;
}

/* --- アニメーション --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-up {
    animation: fade-in-up-animation 1s ease-out forwards;
    opacity: 0;
}

@keyframes fade-in-up-animation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animation-delay-1 {
    animation-delay: 0.5s;
}

.animation-delay-2 {
    animation-delay: 0.8s;
}

/* --- トップへ戻るボタン --- */
#scrollTopBtn {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    border: none;
    outline: none;
    background-color: #fffb00;
    color: rgb(0, 0, 0);
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s, transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;

}

#scrollTopBtn:hover {
    background-color: #d83c83;
    transform: scale(1.1);
}

#scrollTopBtn svg {
    width: 28px;
    height: 28px;
}

