/* 全体のスタイル */
:root {
    --primary-color: #3a7bd5;
    --primary-light: #6fa3e0;
    --primary-dark: #00539c;
    --secondary-color: #00c6ff;
    --accent-color: #ff7e5f;
    --accent-light: #ff9e7c;
    --accent-dark: #e05e3f;
    --text-dark: #2c3e50;
    --text-light: #f8f9fa;
    --background-light: #ffffff;
    --background-dark: #f8f9fa;
    --success-color: #47d185;
    --warning-color: #ffbb33;
    --danger-color: #ff4444;
    --info-color: #33b5e5;
    --border-radius: 10px;
    --box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.07);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gallery-shadow: 0 15px 25px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.05);
    --gallery-hover-shadow: 0 20px 30px rgba(0,0,0,0.15), 0 10px 15px rgba(0,0,0,0.08);
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 写真ギャラリーセクション */
.photo-gallery {
    padding: 2rem 0;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.photo-gallery h2 {
    position: relative;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: inline-block;
}

.photo-gallery h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 3px;
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--gallery-shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-image-container:hover::before {
    opacity: 1;
}

.gallery-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
    display: block;
    transform: scale(1.01);
}

.gallery-image-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--gallery-hover-shadow);
}

.gallery-image-container:hover .gallery-image {
    transform: scale(1.08);
}

.gallery-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    color: white;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-image-container:hover .gallery-image-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-image-description {
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.gallery-image-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255,255,255,0.8);
    color: var(--primary-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-image-container:hover .gallery-image-zoom {
    opacity: 1;
    transform: scale(1);
}

.gallery-image-zoom:hover {
    background-color: white;
    transform: scale(1.1);
}

/* スポット写真スタイル */
.spot-photo-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--gallery-shadow);
    margin-bottom: 1rem;
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
}

.spot-photo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.spot-photo-container:hover::before {
    opacity: 1;
}

.spot-photo {
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}

.spot-photo-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--gallery-hover-shadow);
}

.spot-photo-container:hover .spot-photo {
    transform: scale(1.08);
}

.spot-photo-container::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.spot-photo-container:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 写真モーダルスタイル */
.photo-modal .modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    background-color: rgba(255,255,255,0.95);
    animation: zoomIn 0.3s ease-out;
}

.photo-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
    background: linear-gradient(to right, var(--primary-light), var(--secondary-color));
    color: white;
}

.photo-modal .modal-title {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.photo-modal .btn-close {
    color: white;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.photo-modal .modal-body {
    padding: 0;
    background-color: #000;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.photo-modal .modal-image {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    animation: zoomIn 0.5s ease-out;
    object-fit: contain;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-navigation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 10;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: translateY(0);
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: scale(1.1);
}

.nav-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.nav-button i {
    font-size: 1rem;
}

.photo-modal .modal-footer {
    border-top: none;
    padding: 1rem 1.5rem 1.5rem;
    justify-content: flex-start;
}

.photo-modal .photo-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    opacity: 0.9;
    animation: slideInUp 0.4s ease-out;
    padding: 0.5rem 0;
    font-weight: 500;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.photo-modal .loading-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.photo-modal .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--secondary-color);
}

.photo-modal .modal-navigation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 10;
}

.photo-modal .nav-button {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.photo-modal .nav-button:hover {
    background-color: rgba(255,255,255,0.3);
    opacity: 1;
}

/* ヒーローセクション */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.8), rgba(0, 198, 255, 0.8)),
                url('../img/hero-bg.jpg') center/cover no-repeat fixed;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,126,95,0.15), rgba(0,198,255,0.15));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* カード */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    background-color: var(--background-light);
    margin-bottom: 2rem;
}

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

.card-img-top {
    transition: var(--transition);
}

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

.card-body {
    padding: 1.8rem;
}

.card-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.card-text {
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

/* ナビゲーション */
.navbar {
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.7rem 2rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-dark) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* フッター */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-light);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

/* コースリスト */
.course-card {
    margin-bottom: 2.5rem;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.course-card img {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    width: 100%;
}

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

.course-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.course-card:hover .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.course-card .card-title {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.course-card .card-text {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.category-card {
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.category-card img {
    transition: var(--transition);
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .card-img-overlay {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    transition: var(--transition);
}

.category-card:hover .card-img-overlay {
    background: linear-gradient(rgba(58, 123, 213, 0.6), rgba(0, 198, 255, 0.6));
}

.category-card h3 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.category-card:hover h3 {
    transform: translateY(-5px);
}

/* スポットマーカー */
.spot-marker {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.spot-marker:hover {
    transform: scale(1.2);
    background-color: var(--accent-color);
}

/* コースフォーム */
.course-form-map {
    height: 450px;
    margin-bottom: 2rem;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.spot-form {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.spot-form:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 8px 8px rgba(0,0,0,0.08);
}

.spot-list {
    max-height: 550px;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--background-dark);
}

.spot-list::-webkit-scrollbar {
    width: 8px;
}

.spot-list::-webkit-scrollbar-track {
    background: var(--background-dark);
    border-radius: 10px;
}

.spot-list::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.spot-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.instruction-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.instruction-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.instruction-card li {
    margin-bottom: 0.5rem;
}

.instruction-card li:last-child {
    margin-bottom: 0;
}

/* インストラクションカード */
.instruction-card {
    background: var(--background-light);
    border: none;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.instruction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.instruction-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.instruction-card ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.instruction-card li {
    margin-bottom: 0.8rem;
    position: relative;
}

.instruction-card li::marker {
    color: var(--primary-color);
}

.instruction-card li:last-child {
    margin-bottom: 0;
}

/* フォームスタイル */
.form-control, .form-select {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: none;
    background-color: var(--background-light);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(58, 123, 213, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.15);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* フォームバリデーション */
.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ff4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ff4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* アラートメッセージ */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.alert-success {
    background-color: rgba(71, 209, 133, 0.15);
    color: var(--success-color);
}

.alert-success::before {
    background-color: var(--success-color);
}

.alert-danger {
    background-color: rgba(255, 68, 68, 0.15);
    color: var(--danger-color);
}

.alert-danger::before {
    background-color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 187, 51, 0.15);
    color: var(--warning-color);
}

.alert-warning::before {
    background-color: var(--warning-color);
}

.alert-info {
    background-color: rgba(51, 181, 229, 0.15);
    color: var(--info-color);
}

.alert-info::before {
    background-color: var(--info-color);
}

/* モーダル */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}

/* バッジ */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .course-card img,
    .category-card {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
    }
}    }
}
