/* =========================================
   Reset and Base Variables
========================================= */
:root {
    --color-primary: #efe800; /* Accent Color */
    --color-primary-hover: #d9d200;
    --color-bg: #ffffff; /* Base White */
    --color-bg-light: #f9fbfa;
    --color-bg-accent: rgba(239, 232, 0, 0.05);
    --color-text: #2c3e50;
    --color-text-light: #6c7a89;
    --color-white: #ffffff;
    
    --font-main: 'Noto Sans JP', sans-serif;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   Typography & Utilities
========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

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

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.bg-light { background-color: var(--color-bg-light); border-top: 1px solid rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.03); }
.bg-accent-light { background-color: var(--color-bg-accent); }

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-accent {
    background-color: var(--color-primary);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(239, 232, 0, 0.4);
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-accent:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 232, 0, 0.6);
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-schedule {
    padding: 6px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* =========================================
   Header
========================================= */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.logo i {
    color: var(--color-primary);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* =========================================
   Hero Section
========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    /* Placeholder for the generated image, using a pleasant gradient if image is missing */
    background-image: url('../images/hero.png'), linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 1s ease forwards;
}

.hero-catch {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--color-primary);
    border-radius: 4px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--color-text);
    background: linear-gradient(120deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-sub {
    font-size: 1.3rem;
    color: var(--color-text-light);
    font-weight: 500;
}

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

/* =========================================
   Introduction Section
========================================= */
.intro-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.intro-message {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.4;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.target-card {
    background: var(--color-white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid var(--color-primary);
}

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

.target-icon {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.target-icon::after {
    content: '';
    position: absolute;
    width: 40px; height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    z-index: -1;
    top: -5px; right: -10px;
    opacity: 0.6;
}

.target-card p {
    font-weight: 700;
    font-size: 1.05rem;
}

/* =========================================
   Program Section
========================================= */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 15px;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-bg) 0%, rgba(239, 232, 0, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

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

.program-card:hover::before {
    opacity: 1;
}

.program-icon {
    width: 60px; height: 60px;
    background-color: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1a1a1a;
    transform: rotate(-5deg);
    transition: var(--transition);
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: center;
}

.program-card:hover .program-icon {
    transform: rotate(0) scale(1.1);
}

.program-title {
    font-size: 1.25rem;
    font-weight: 700;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: center;
}

.program-desc {
    color: var(--color-text-light);
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

/* =========================================
   Schedule Section
========================================= */
.table-responsive {
    overflow-x: auto;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.schedule-table th, 
.schedule-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.schedule-table th {
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.schedule-table tbody tr {
    transition: var(--transition);
}

.schedule-table tbody tr:hover {
    background-color: var(--color-bg-accent);
}

.schedule-table td.date {
    white-space: nowrap;
}

.date-badge {
    display: inline-block;
    width: 120px;
    text-align: center;
    background-color: var(--color-primary);
    color: #1a1a1a;
    padding: 6px 0;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.schedule-table td.capacity {
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
}

.schedule-table td.capacity::before {
    content: '\f0c0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #ccc;
}

.schedule-table td.action {
    text-align: center;
    width: 130px;
}

/* =========================================
   Message Section
========================================= */
.message-content {
    max-width: 700px;
    margin: 0 auto;
}

.message-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.remarks-box {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    text-align: left;
    border-left: 5px solid var(--color-primary);
}

.remarks-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.remarks-list li:last-child {
    margin-bottom: 0;
}

.remarks-list i {
    color: var(--color-primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.survey-box {
    padding: 20px;
}

.survey-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: #1a1a1a;
    color: var(--color-white);
    padding: 80px 0 30px;
    position: relative;
}

.footer-cta {
    margin-bottom: 60px;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    color: #aaaaaa;
    margin-bottom: 30px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    color: #777777;
    font-size: 0.9rem;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .intro-message {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .header-btn {
        display: none; /* Hide button on very small screens or change design */
    }

    /* Table Mobile Layout (2-line structure) */
    .table-responsive {
        padding: 10px;
    }
    
    .schedule-table {
        min-width: 0;
        display: block;
    }
    
    .schedule-table thead {
        display: none; /* Hide headers on mobile */
    }
    
    .schedule-table tbody, .schedule-table tr {
        display: block;
        width: 100%;
    }
    
    .schedule-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 15px 5px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .schedule-table tbody tr:last-child {
        border-bottom: none;
    }
    
    .schedule-table td {
        display: block;
        padding: 5px;
        border-bottom: none;
    }
    
    .schedule-table td.date {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .schedule-table td:nth-child(2) {
        flex: 1;
        font-size: 0.95rem;
    }
    
    .schedule-table td.capacity {
        white-space: nowrap;
        text-align: right;
        margin-left: 10px;
    }
    
    .schedule-table td.action {
        width: 100%;
        text-align: right;
        margin-top: 10px;
    }
}
