/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #213260;
    --secondary-color: #4a90e2;
    --accent-color: #f5a623;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 57px;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/IMG_5290.JPG');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.3vw, 1.8rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* h3タグの統一スタイル */
h3 {
    color: #213260;
}

/* セクション共通 */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-intro {
    text-align: right;
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 概要セクション */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 離島の魅力セクション */
.islands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.island-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.island-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

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

.island-content {
    padding: 2rem;
}

.island-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.island-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* スケジュールセクション */
.schedule-content {
    margin-bottom: 3rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.schedule-date {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1rem;
}

.schedule-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.schedule-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.schedule-info ul {
    list-style: none;
    padding-left: 0;
}

.schedule-info li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.schedule-info li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.schedule-info li br {
    display: block;
    content: '';
    margin-top: 0.3rem;
}

.schedule-note {
    background: #e8f4f8;
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.schedule-note h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.schedule-note p {
    color: var(--text-light);
    margin: 0;
}

.presentation-details {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.presentation-details p {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.presentation-details strong {
    color: var(--primary-color);
    font-weight: 600;
}

.schedule-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.detail-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.detail-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detail-item p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.detail-item .detail-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* フォームセクション */
.apply-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 50, 96, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* フッター */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

    .schedule-item {
        grid-template-columns: 1fr;
    }

    .schedule-date {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .apply-form {
        padding: 2rem 1.5rem;
    }

    .section {
        padding: 60px 0;
    }
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 開催概要リスト */
.overview-list {
    max-width: 800px;
    margin: 2rem auto 0;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.overview-list-item {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.overview-list-item:last-of-type {
    border-bottom: none;
}

.overview-label {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 140px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.overview-value {
    color: var(--text-dark);
    line-height: 1.8;
    flex: 1;
}

.overview-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    font-style: italic;
}

.overview-link-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-color);
}

.overview-link-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.overview-link-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .overview-list {
        padding: 1.5rem;
    }

    .overview-list-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .overview-label {
        min-width: auto;
        font-size: 1rem;
    }
}

/* ページヘッダー */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    opacity: 0.95;
}

/* 応募テーマセクション */
.themes-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.themes-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.theme-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.theme-number {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.theme-content {
    padding: 2rem;
}

.theme-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.theme-content > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.theme-keywords {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
}

.theme-keywords li {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.themes-note {
    background: #fff3cd;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.themes-note p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.8;
}

/* 応募要項セクション */
.requirements-content {
    max-width: 1000px;
    margin: 0 auto;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.requirement-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.requirement-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.requirement-card ul {
    list-style: none;
    padding: 0;
}

.requirement-card li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.requirement-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.requirements-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.detail-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-box p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.fee-amount {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem !important;
    text-align: center;
}

.fee-amount strong {
    font-size: 1.8rem;
    font-weight: bold;
}

.fee-amount small {
    font-size: 0.6em;
    font-weight: normal;
    vertical-align: baseline;
}

.fee-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.fee-note p {
    margin-bottom: 0.8rem;
}

.fee-note ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.fee-note li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.fee-note li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.fee-warning {
    background: #fff3cd;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border-left: 3px solid var(--accent-color);
    margin-top: 1rem !important;
    color: var(--text-dark) !important;
    font-size: 0.95rem;
}

.detail-box ul {
    list-style: none;
    padding: 0;
}

.detail-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.detail-box li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.detail-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary-color);
}

/* Q&Aセクション */
.qa-content {
    max-width: 900px;
    margin: 0 auto;
}

.qa-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.qa-question {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-light);
    gap: 1rem;
}

.qa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.qa-question h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.qa-answer {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    gap: 1rem;
}

.qa-answer .qa-icon {
    background: var(--accent-color);
}

.qa-answer-content {
    flex: 1;
}

.qa-answer-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.qa-contact {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.qa-contact p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* レスポンシブ追加 */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 2rem;
    }

    .hero-buttons {
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .cta-button {
        width: 100%;
        max-width: 200px;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 15px;
    }

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

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

    .requirements-details {
        grid-template-columns: 1fr;
    }

    .qa-question,
    .qa-answer {
        flex-direction: column;
        gap: 1rem;
    }

    .page-header {
        padding: 120px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        margin-bottom: 1.5rem;
    }

    .hero-buttons .cta-button {
        max-width: 200px;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}