/* アオハル学園 スタイルシート */

/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #e8f5e9 0%, #e1f5fe 100%);
    background-attachment: fixed;
}

/* ヘッダー */
header {
    background: url('../images/school_building.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 200px;
}

.title-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.title-link:hover {
    opacity: 0.85;
}

.site-title {
    color: white;
    font-size: 42px;
    font-weight: normal;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'HG明朝E', 'MS P明朝', 'MS 明朝', serif;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.7);
    letter-spacing: 4px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.35);
    border-radius: 8px;
    margin: 0;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    background: white;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #f5f5f5;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2196F3;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* ナビゲーション */
nav {
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

nav ul li {
    margin: 5px;
}

nav ul li a {
    text-decoration: none;
    color: #2196F3;
    padding: 12px 20px;
    display: block;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav ul li a::after {
    content: attr(data-hover);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

nav ul li a:hover::after {
    opacity: 1;
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.content-wrapper {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

h1 {
    color: #2196F3;
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid #4CAF50;
    text-align: center;
}

h2 {
    color: #4CAF50;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid #2196F3;
}

/* イベント情報テーブル */
.event-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.event-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.event-table th,
.event-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.event-table th {
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
    color: #1976D2;
    font-weight: bold;
    width: 180px;
    vertical-align: top;
}

.event-table td {
    color: #555;
}

.event-table tr:last-child th,
.event-table tr:last-child td {
    border-bottom: none;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.sns-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
}

.sns-link:hover {
    text-decoration: underline;
}

/* 教員紹介 */
.teacher-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.teacher-card {
    display: flex;
    gap: 30px;
    background: #f5f5f5;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.teacher-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.teacher-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.teacher-name {
    font-size: 24px;
    color: #2196F3;
    font-weight: bold;
    margin-bottom: 10px;
}

.info-row {
    display: flex;
    gap: 10px;
}

.info-label {
    font-weight: bold;
    color: #4CAF50;
    min-width: 100px;
}

.info-content {
    color: #555;
}

/* 準備中 */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.coming-soon h2 {
    font-size: 36px;
    margin-bottom: 20px;
    border: none;
    padding: 0;
    color: #4CAF50;
}

/* 注意事項 */
.notice-content {
    line-height: 2;
}

.notice-content h2 {
    color: #2196F3;
    margin-top: 40px;
}

.notice-content h3 {
    color: #4CAF50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
}

.notice-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.notice-content li {
    margin-bottom: 10px;
}

/* フッター */
footer {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

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

.footer-contact {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-container {
        align-items: flex-start;
        min-height: auto;
    }
    
    .menu-toggle {
        display: block;
        margin-top: 0;
    }
    
    nav {
        display: none;
        margin-top: 15px;
    }
    
    nav.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .site-title {
        font-size: 28px;
        letter-spacing: 2px;
        padding: 8px 15px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    nav ul li a {
        text-align: center;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .event-table {
        font-size: 14px;
    }
    
    .event-table th,
    .event-table td {
        padding: 10px;
        display: block;
        width: 100%;
    }
    
    .event-table th {
        background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
        color: white;
        border-radius: 4px 4px 0 0;
    }
    
    .event-table td {
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 15px;
        border-radius: 0 0 4px 4px;
    }
    
    .teacher-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .teacher-photo {
        width: 150px;
        height: 150px;
    }
    
    .info-row {
        flex-direction: column;
        text-align: center;
    }
    
    .info-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 22px;
        padding: 8px 12px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
}
