/* 共通リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fdf6fb;
    color: #333;
    line-height: 1.6;
}

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

/* ヘッダー */
header {
    background: linear-gradient(135deg, #ff85a2, #ffb6c1);
    color: white;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}
header img {
    width: 100px;
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: 50%;
    border: 3px solid white;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s ease;
}
header h1 {
    font-size: 2.2em;
    letter-spacing: 1px;
}
header p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* ナビゲーション */
nav {
    background: #ff85a2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px;
}
nav a {
    margin: 8px 20px;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}
nav a:hover {
    color: #fff0f5;
}

/* セクション */
section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
h2 {
    color: #d6336c;
    text-align: center;
    margin-bottom: 30px;
}

/* 学校写真 */
.school-photo {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}
.school-photo img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* カード */
.staff {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    flex: 1 1 220px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* フッター */
footer {
    background: #ff85a2;
    color: white;
    text-align: center;
    padding: 25px 10px;
    margin-top: 40px;
}

/* アニメーション */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ニュースカード */
.news {
    background: #ffe4ec;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
