/* ===========================================
   画像表示モーダル
   =========================================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #ff6b6b;
}

.image-modal-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

/* モーダルアニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.image-modal.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal-image {
        max-height: 70vh;
    }
    
    .image-modal-close {
        top: -30px;
        font-size: 28px;
    }
    
    .image-modal-caption {
        font-size: 1rem;
    }
}

/* ===========================================
   ZEN大学起業サークル - スタイルシート
   =========================================== */

/* リセット・基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ===========================================
   ヒーローセクション
   =========================================== */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景スライダー */
.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-slider video {
    display: block;
    position: absolute;
    min-width: 100%;
    max-height: 100lvh;
    left: 50%;
	object-fit: cover;
    animation: video-sp-anime 5s forwards;
}

@keyframes video-sp-anime {
    0% {
        transform: translateX(-50%) scale(1);
    }
    100% {
        transform: translateX(-50%) scale(1.1);
    }
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out; /* トランジション時間を2秒に延長 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* アクティブなスライドと次のスライドの表示制御 */
.background-slide.active {
    opacity: 1;
    z-index: 1;
}

.background-slide.next {
    opacity: 0;
    z-index: 2; /* 次のスライドを上に配置 */
    animation: crossFadeIn 2s ease-in-out forwards;
}

.background-slide.prev {
    opacity: 1;
    z-index: 1;
    animation: crossFadeOut 2s ease-in-out forwards;
}

/* クロスフェードアニメーション */
@keyframes crossFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes crossFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* グラデーション背景（画像がない場合の代替） */
.bg-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #3470a5 0%, #00f2fe 100%);
}

.bg-gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* 背景画像を使用する場合 */
.bg-image-1 {
    background-image: url('../images/hero-bg-1.jpg');
}

.bg-image-2 {
    background-image: url('../images/hero-bg-2.jpg');
}

.bg-image-3 {
    background-image: url('../images/hero-bg-3.jpg');
}

.bg-image-4 {
    background-image: url('../images/hero-bg-4.jpg');
}

/* ヒーローオーバーレイ */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ヒーローコンテンツ */
.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out;
}

/* サークル情報 */
.club-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.club-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #3470a5, #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    padding: 10px; /* ロゴ画像用の内側余白 */
    overflow: hidden; /* 画像が円からはみ出ないように */
}

.club-logo:hover {
    transform: scale(1.1) rotate(10deg);
}

/* ロゴ画像のスタイル */
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* アスペクト比を保持しながらフィット */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); /* 背景が透明な場合の補完 */
}

/* ===========================================
   スクロールインジケーター
   =========================================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -5px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    opacity: 1;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-arrow:nth-child(1) {
    animation: scrollArrow1 2s ease-in-out infinite;
}

.scroll-arrow:nth-child(2) {
    animation: scrollArrow2 2s ease-in-out infinite;
    margin-top: -8px;
}

.scroll-arrow:nth-child(3) {
    animation: scrollArrow3 2s ease-in-out infinite;
    margin-top: -8px;
}

/* スクロールアニメーション */
@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollArrow1 {
    0%, 100% { opacity: 1; }
    33% { opacity: 0.3; }
    66% { opacity: 0.6; }
}

@keyframes scrollArrow2 {
    0%, 100% { opacity: 0.6; }
    33% { opacity: 1; }
    66% { opacity: 0.3; }
}

@keyframes scrollArrow3 {
    0%, 100% { opacity: 0.3; }
    33% { opacity: 0.6; }
    66% { opacity: 1; }
}

.club-description {
    max-width: 400px;
    text-align: left;
}

.club-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.club-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ===========================================
   イベントセクション
   =========================================== */
.events-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    display: none;
    
    /*
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
    */
}

/* イベントコンテナ */
.events-container {
    overflow-x: auto;
    padding: 20px 0;
    cursor: grab;
}

.events-container:active {
    cursor: grabbing;
}

.events-scroll {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    min-width: max-content;
}

.event-button {
    /* 楕円形から Wreath デザインに変更 */
    background-image: url('../images/Button_Wreath_v2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #333; /* テキスト色を濃い色に変更（視認性向上） */
    padding: 90px 30px; /* サイズ変更 */
    border-radius: 0; /* 円形を解除 */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: none; /* 影を削除（背景画像を活かすため） */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    min-width: 180px; /* Wreathデザインに合わせて最小幅を設定 */
    min-height: 80px; /* Wreathデザインに合わせて最小高さを設定 */
    text-align: center;
    /* 背景色は透明にしてWreathデザインを見せる */
    background-color: transparent;
    border: none;
    position: relative;
}

.event-button:hover {
    transform: scale(1.05); /* スケール変更のみ（上下移動を削除） */
    color: #222; /* ホバー時により濃い色 */
    text-decoration: none;
    /* 背景画像の色調整（オプション） */
    filter: brightness(1.1) contrast(1.05);
}

.event-button:active {
    transform: scale(0.98);
}

/* Wreathデザイン用の追加スタイル */
.event-button .fas {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* テキストの視認性向上のための背景（オプション） */
.event-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 8px 16px;
    z-index: -1;
    width: 80%;
    height: 50%;
    opacity: 0.8;
}

/* ===========================================
   ドキュメントセクション
   =========================================== */
.documents-section {
    padding: 80px 0;
    background: #ffffff;
}

.more-button {
    display: block;
    margin: 30px auto;
    padding: 10px 40px;
    border-radius: 99px;
    width: fit-content;
    background-color: #fff;
    border: 2px solid #f1f1f1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: #333;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.documents-grid a {
    text-decoration: none;
    color: #666;
}

.document-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: start;
    border: 2px solid transparent;
}

.card-head {
    position: relative;
    height: fit-content;
    text-align: left;
    height: 2rem;
}
.card-head .category {
    position: absolute;
    font-size: small;
    background-color: #666;
    color: #fff;
    padding: 2px 15px;
    border-radius: 5px;
}
.card-head .date {
    position: absolute;
    right: 0;
}

.document-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #3470a5;
}

.document-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.document-img img {
    margin-bottom: 20px;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.document-card:hover .document-icon {
    transform: scale(1.1);
    color: #c82333;
}

.document-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.document-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===========================================
   フッター
   =========================================== */
.footer {
    background: #3470a5;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h5 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================================
   アニメーション
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.club-logo {
    animation: pulse 3s ease-in-out infinite;
}

/* ===========================================
   スクロールバーのスタイリング
   =========================================== */
.events-container::-webkit-scrollbar {
    height: 6px;
}

.events-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.events-container::-webkit-scrollbar-thumb {
    background-color: #3470a5;
    border-radius: 10px;
}

.events-container::-webkit-scrollbar-thumb:hover {
    background-color: #3470a5;
}

/* ===========================================
   レスポンシブデザイン
   =========================================== */

/* タブレット */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .documents-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* スマートフォン（横向き） */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .club-info {
        flex-direction: column;
        gap: 2rem;
    }

    .club-description {
        text-align: center;
    }

    .club-logo {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

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

    .events-scroll {
        padding: 0 10px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    /* モバイル用スクロールインジケーター */
    .scroll-indicator {
        bottom: 20px;
        transform: translateX(-50%) scale(0.9);
    }

    .scroll-text {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .scroll-arrow {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }
}

/* スマートフォン（縦向き） */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .club-logo {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }

    .event-button {
        padding: 15px 20px;
        font-size: 0.85rem;
        min-width: 150px; /* モバイル用に幅を調整 */
        min-height: 70px; /* モバイル用に高さを調整 */
    }

    .event-button::before {
        width: 85%;
        height: 55%;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .document-card {
        padding: 25px;
        aspect-ratio: 210/280; /* モバイルでは少し縦長に調整 */
    }

    .document-icon {
        font-size: 3rem;
    }

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

    .hero-content {
        padding: 0 15px;
    }

    .events-section,
    .documents-section {
        padding: 60px 0;
    }

    .footer {
        padding: 40px 0 20px;
    }
}

/* 極小画面対応 */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .club-logo {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .document-card {
        padding: 20px;
    }
    
    .document-icon {
        font-size: 2.5rem;
    }
}

/* メニュー */
.menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    background-color: #3470a5;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 3;
}
.menu-btn.close {
    z-index: 13;
}
#menu-open, #menu-close {
    display: block;
    text-decoration: none;
    color: #fff;
}
.menu-btn i {
    position: absolute;
    top: 10px;
    font-size: 40px;
}
.menu-btn div {
    position: absolute;
    bottom: 5px;
    font-size: 15px;
}

.menu {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100lvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 11;
    animation: fadein .3s forwards;
}
.menu-body {
    position: fixed;
    right: 0;
    width: 80vw;
    height: 100lvh;
    background-color: #fff;
    z-index: 12;
    animation: slidein .3s forwards;
    padding: 100px 20px 20px;
}

@keyframes fadein {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
@keyframes slidein {
    0% {right: -100vw;}
    100% {right: 0;}
}

/* お知らせ */
.information {
    background-color: #fafafa;
    padding: 10px 20px;
}
.information ul {
    margin: 10px 0;
}
.information a {
    color: #333;
}