@charset "UTF-8";

/* .ysnap-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ysnap-main-img {
    height: 400px;
    background-image: url(/img/ysnap/img-ysnap-main.jpg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    margin-bottom: 86px;
    

}
.ysnap-main-title {
    font-size: 32px;
    font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
    color: #fff;
    padding: 23px 83px;
    background: linear-gradient(90deg,rgba(25, 44, 83, 0.8) 0%, rgba(24, 61, 116, 0.8) 16%, rgba(44, 88, 140, 0.8) 33%, rgba(66, 117, 165, 0.8) 50%, rgba(87, 146, 193, 0.8) 66%, rgba(99, 162, 207, 0.8) 84%, rgba(99, 162, 207, 0.8) 100%);
    display: inline-block;

} */

.hero {
    position: relative;
    width: 100%;
    height: 800px; /* 必要に応じて調整 */
    background: url('/img/ysnap/img-ysnap-main.jpg') no-repeat center center;
    background-size: cover;
    margin-bottom: 86px;
  }

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg,rgba(25, 44, 83, 0.8) 0%, rgba(24, 61, 116, 0.8) 16%, rgba(44, 88, 140, 0.8) 33%, rgba(66, 117, 165, 0.8) 50%, rgba(87, 146, 193, 0.8) 66%, rgba(99, 162, 207, 0.8) 84%, rgba(99, 162, 207, 0.8) 100%);
    color: #fff;
    padding: 23px 83px;
    font-size: 3rem;
    font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
    white-space: nowrap;
  }

.ysnap-txt-container {
    max-width: 850px;
    margin: 0 auto;
    margin-bottom: 86px;
    text-align: center;
}
.ysnap-title {
  font-size: 2rem;
  font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.ysnap-txt {
    font-size: 1.7rem;
    font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
    text-align: center;
    letter-spacing: 0.1em;
}

body {
    background: #fafafa;
    padding: 20px;
}

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

.photo-item {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.photo-info {
    padding: 15px;
}

.photo-title {
    font-weight: 600;
    color: #262626;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.photo-description {
    color: #8e8e8e;
    font-size: 14px;
    line-height: 1.4;
}

.photo-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 14px;
    color: #8e8e8e;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

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

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

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.modal-images {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.modal-image-container {
    position: relative;
    flex: 1;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-image.second {
    border-left: 1px solid #efefef;
}

.modal-info {
    padding: 20px;
    flex: 1;
    min-height: 150px;
    max-height: 30vh;
    overflow-y: auto;
}

/* スクロールバーのスタイリング */
.modal-info::-webkit-scrollbar {
    width: 6px;
}

.modal-info::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-info::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-info::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 15px;
}

.modal-description {
    color: #262626;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
}

.modal-stats {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #efefef;
}

.modal-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8e8e8e;
    font-size: 14px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .photo-item img {
        height: 250px;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        flex-direction: column;
    }
    
    .modal-images {
        flex-direction: column;
    }
    
    .modal-image-container {
        max-height: 30vh;
    }
    
    .modal-image {
        max-height: 30vh;
    }
    
    .modal-image.second {
        border-left: none;
        border-top: 1px solid #efefef;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-info {
        padding: 15px;
        max-height: 35vh;
    }
    
    .modal-title {
        font-size: 20px;
    }
}

/* アイコンスタイル */
.icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}