/* 全体のリセットとフォント設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #f7f5f2;
    color: #333;
    line-height: 1.7;
}

.mt-0  { margin-top:  0 !important; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* ヘッダーのスタイル */
header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('/images/top1.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 0 10px;
}
header a {
    color: #fff;
}
.header-mini {
    height: 150px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('/images/top3.jpg') no-repeat center center;
    font-size: 18px;
}

.school-name {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.1em;
}

.archive-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.05em;
}

.tagline {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.8;
}

/* スクロールダウン表示 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.scroll-down svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* ナビゲーションボタン */
.nav-buttons {
    margin-top: 1rem;
}

.button {
    min-width: 200px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 12px 28px;
    margin: 0 10px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
}

.button:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* メインコンテンツ */
.main-content {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 2;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #da6a51, transparent);
}

/* カード型リンク */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: #fff;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* メッセージセクション */
.message-section {
    background-color: #fff;
    padding: 5rem 2rem;
    margin: 4rem 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}
.message-section-full {
    background-color: #fff;
    padding: 4rem 4px;
    margin: 4rem 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
}

.message-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 2;
    text-align: center;
}

/* ギャラリープレビュー */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* フッターのスタイル */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.footer-link {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #da6a51;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 1.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .school-name {
        font-size: 2rem;
    }

    .archive-title {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 1rem;
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .card {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }

    .message-text {
        font-size: 1rem;
        padding: 0 15px;
    }
}

.terms-content h2 {
    margin-top: 20px;
}

.terms-content ul {
    margin-left: 20px;
}
