/* CSS Variables */
:root {
    --color-brand: #2c3e50;
    --color-brand-dark: #1a252f;
    --color-cta: #dc2626;
    --color-cta-hover: #b91c1c;
    --color-text: #333;
    --color-text-muted: #666;
    --color-bg: #fafafa;
    --color-bg-subtle: #f8f9fa;
    --color-border: #e0e0e0;
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

header h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

header h1 a:hover {
    opacity: 0.8;
}

header .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 40px 0;
}

section {
    background: white;
    margin-bottom: 50px;
    padding: 50px 40px;
    border-radius: var(--radius);
}

section h2 {
    font-size: 1.5rem;
    color: var(--color-brand);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

section p {
    margin-bottom: 15px;
}

/* Hero Section */
.hero {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.hero-description {
    margin-bottom: 24px;
}

.hero-cta {
    margin-top: 24px;
    text-align: center;
}

/* CTA Button (申し込みボタン専用 - ページ内で赤はここだけ) */
.btn-cta {
    display: inline-block;
    background: var(--color-cta);
    color: white;
    padding: 16px 48px;
    border-radius: var(--radius);
    border: none;
    text-decoration: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-cta:hover {
    background: var(--color-cta-hover);
}

/* Info List (開催情報 dl形式) */
.info-list {
    margin-top: 16px;
}

.info-list dt {
    font-weight: 700;
    color: var(--color-brand);
    margin-top: 16px;
}

.info-list dt:first-child {
    margin-top: 0;
}

.info-list dd {
    margin-left: 0;
    padding-left: 16px;
}

.info-list dd a {
    color: var(--color-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.info-list dd a:hover {
    color: var(--color-brand-dark);
}

/* Supplementary Section (補助情報) */
.supplementary {
    font-size: 0.95rem;
    padding: 32px 40px;
}

.supplementary h2 {
    font-size: 1.3rem;
}

.supplementary-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.supplementary-item h3 {
    font-size: 1rem;
    color: var(--color-brand);
    margin-bottom: 4px;
}

.supplementary-item p {
    margin-bottom: 4px;
}

.supplementary-item a {
    color: var(--color-brand);
    text-decoration: underline;
}

.supplementary-item a:hover {
    color: var(--color-brand-dark);
}

/* Access Section */
.access-info {
    background: var(--color-bg-subtle);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.access-info p {
    margin-bottom: 5px;
}

.map {
    border-radius: var(--radius);
    overflow: hidden;
}

.map iframe {
    display: block;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--color-brand);
    color: white;
    padding: 15px 40px;
    border-radius: var(--radius);
    border: none;
    text-decoration: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--color-brand-dark);
}

.btn-disabled,
.btn:disabled {
    background: #ccc !important;
    color: #999 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Footer */
footer {
    background: var(--color-brand);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Form Styles */
.application-form {
    max-width: 600px;
    margin: 30px auto 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-brand);
}

.required {
    color: var(--color-cta);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-brand);
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn-submit {
    background: var(--color-cta);
}

.btn-submit:hover {
    background: var(--color-cta-hover);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.message {
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 30px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.error-message {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.message p {
    margin: 0;
    font-weight: 700;
}

/* Event Info Box */
.event-info-box {
    background: white;
    border-left: 4px solid var(--color-brand);
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--radius);
}

.event-details p {
    margin: 8px 0;
    line-height: 1.6;
}

.event-details strong {
    color: var(--color-brand);
    font-size: 1.1rem;
}

/* Calendar Container */
.calendar-container {
    margin-top: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-container iframe {
    width: 100%;
    max-width: 800px;
    height: 600px;
    display: block;
    margin: 0 auto;
    border: 0;
}

/* Unsubscribe Page */
.unsubscribe-info {
    background: var(--color-bg-subtle);
    padding: 25px;
    border-radius: var(--radius);
    margin: 20px 0;
    border-left: 4px solid var(--color-brand);
}

.unsubscribe-info p {
    margin: 10px 0;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 40px 0;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header .tagline {
        font-size: 1rem;
    }

    section {
        padding: 30px 25px;
        margin-bottom: 30px;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .supplementary {
        padding: 24px 25px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn,
    .btn-cta {
        width: 100%;
    }

    .calendar-container iframe {
        height: 400px;
    }
}
