/**
 * Zorotan Theme - Home Page Styles
 * 
 * Home page specific styles only
 * 
 * @package Zorotan
 * @version 1.0.0
 */



/* ========================================
   1. HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #9b59b6 100%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(0.5px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    color: white;
    padding: 0 calc(var(--spacing-unit) * 3);
    max-width: 800px;
    animation: heroFadeIn 1.5s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--spacing-unit) * 3);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.95;
    margin-bottom: calc(var(--spacing-unit) * 5);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    color: #f8f9fa;
}

.hero-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero-specific button styles */
.hero-section .btn-primary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.9);
}

.hero-section .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-section .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    z-index: 20;
    animation: scrollBounce 2s infinite;
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


/* ========================================
   2. SLIDESHOW SECTION (SPLIDE) - 修正版
   ======================================== */

/* Splideの基本スタイル */
.splide {
    height: 100%;
    visibility: visible !important;
}

.splide__track {
    height: 100%;
}

.splide__list {
    height: 100%;
    display: flex;
    align-items: center;
}

.splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    height: 100%;
    position: relative; /* 追加：位置の基準を設定 */
}

/* 画像の中央配置を強化 */
.splide__slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    position: absolute; /* 追加：絶対配置で中央に固定 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 追加：完全な中央配置 */
}

/* スライドショーセクションの修正 */
.slideshow-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-top: 0;
    /* 黒背景を半透明に変更 */
    /* background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px); */
}



/* Splide controls - 修正版 */
.splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(109, 62, 144, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    opacity: 1;
}

.splide__arrow:hover {
    background: rgba(37, 73, 210, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.splide__pagination__page.is-active {
    background: var(--theme-gradient);
}

.splide__arrow--prev {
    left: 24px;
}

.splide__arrow--next {
    right: 24px;
}

/* SVGアイコンの代わりにテキストを使用 */
.splide__arrow svg {
    display: none !important;
}

.splide__arrow--prev::after {
    content: '‹';
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    color: white;
    margin-top: -3px;
}

.splide__arrow--next::after {
    content: '›';
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    color: white;
    margin-top: -3px;
}

/* ページネーション（ドット）のスタイル */
.splide__pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.splide__pagination__page {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.splide__pagination__page.is-active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.splide__pagination__page:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* アクセシビリティのための非表示要素 */
.splide__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Splideのトランジション中の位置ずれを防ぐ */
.splide__slide.is-active img,
.splide__slide.is-visible img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* スライドプレースホルダー */
.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-gray);
    color: var(--text-gray);
    font-size: 18px;
}

/* スライドのリンクスタイル */
.splide__slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ========================================
   3. HOME-SPECIFIC SECTIONS
   ======================================== */

.latest-updates {
    padding: calc(var(--spacing-unit) * 10) 0;
    /* 半透明の白背景に変更 */
    /* background-color: rgba(255, 255, 255, 0.85); */
    /* backdrop-filter: blur(10px); */
    position: relative;
}

/* Updates Grid Layout */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.update-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.update-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(109, 62, 144, 0.15);
    border-color: rgba(109, 62, 144, 0.2);
}

.update-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-gray);
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.update-card:hover .update-image img {
    transform: scale(1.05);
}

.update-content {
    padding: calc(var(--spacing-unit) * 3);
}

.update-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.4;
}

.update-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.update-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.update-content h3 a:hover {
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.update-date {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.update-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}


.featured-content {
    padding: calc(var(--spacing-unit) * 10) 0;
    /* 既存のグラデーションを削除し、半透明に */
    /* background: rgba(255, 255, 255, 0.9); */
    /* backdrop-filter: blur(10px); */
    position: relative;
}

/* Single Featured Content Layout */
.featured-single {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: calc(var(--spacing-unit) * 6);
}

.featured-main-single {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    padding: calc(var(--spacing-unit) * 6);
    backdrop-filter: blur(10px);
}

.featured-image-square {
    flex: 0 0 400px;
    width: 400px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image-square .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-gray);
    color: var(--text-gray);
    font-size: 16px;
}

.featured-main-single .featured-content-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

.featured-main-single .featured-content-inner h3 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.featured-main-single .featured-content-inner p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.featured-main-single .featured-meta {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    font-size: 14px;
    color: var(--text-light);
}

.featured-main-single .featured-actions {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

/* Remove old featured grid styles */
.featured-grid {
    display: none;
}

.featured-main,
.featured-side,
.featured-item {
    display: none;
}

.upcoming-events {
    padding: calc(var(--spacing-unit) * 10) 0;
    /* 半透明の白背景に変更 */
    /* background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); */
    position: relative;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 6);
}

.event-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* カード全体のリンク */
.event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.event-card-inner {
    display: flex;
    align-items: center;
    padding: calc(var(--spacing-unit) * 4);
    gap: calc(var(--spacing-unit) * 4);
}

.event-main {
    flex: 1;
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
    align-items: flex-start;
}

/* サムネイル画像 */
.event-thumbnail {
    flex: 0 0 200px;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-gray);
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-thumbnail img {
    transform: scale(1.05);
}

.event-thumbnail .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-gray);
    color: var(--text-gray);
    font-size: 14px;
}

/* 既存のイベントスタイルを調整 */
.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 73, 210, 0.15);
    border: 1px solid rgba(37, 73, 210, 0.2);
}

.event-details {
    color: var(--theme-blue);
    font-size: 13px;
    font-weight: 500;
}

.event-content {
    flex: 1;
}

.event-content h3 {
    font-size: 20px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.event-card:hover .event-content h3 {
    color: var(--text-gray);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    color: var(--primary-color);
}

.event-month {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.event-day {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

.events-footer {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 6);
    padding-top: calc(var(--spacing-unit) * 4);
}

/* View All Eventsボタンの修正 */
.events-footer .btn-secondary {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.events-footer .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.events-footer .btn-secondary {
    background: transparent;
    color: var(--theme-purple);
    border: 2px solid var(--theme-purple);
    position: relative;
    overflow: hidden;
}

.events-footer .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--theme-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.events-footer .btn-secondary:hover::before {
    left: 0;
}

.events-footer .btn-secondary:hover {
    color: white;
    border-color: transparent;
}

/* Events Coming Soon */
.events-coming-soon {
    grid-column: 1 / -1;
    text-align: center;
    padding: calc(var(--spacing-unit) * 12) 0;
}

.coming-soon-content h3 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
    background: linear-gradient(135deg, #6d3e90 0%, #2549d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-content p {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ========================================
   4. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .hero-section {
        min-height: 500px;
        max-height: 700px;
    }
    
    .hero-background {
        background-attachment: scroll;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-main {
        flex-direction: column;
    }

    .featured-main-single {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-image-square {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        max-height: 600px;
    }
    
    /* モバイル時のヘッダーの高さに合わせて調整 */
    .home .main-content {
        padding-top: 60px; /* モバイルヘッダーの高さ */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    /* メディアクエリ内のupdate-card関連のスタイルを追加 */
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .update-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .slideshow-section {
        height: 60vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .slideshow-title {
        font-size: 2.5rem;
    }
    
    .event-card {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 3);
    }
    
    .event-date {
        width: auto;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .event-day {
        font-size: 24px;
    }
    
    .splide__arrow {
        width: 40px;
        height: 40px;
    }
    
    .splide__arrow--prev {
        left: 16px;
    }
    
    .splide__arrow--next {
        right: 16px;
    }
    
    .splide__arrow--prev::after,
    .splide__arrow--next::after {
        font-size: 24px;
    }

    .featured-main-single {
        padding: calc(var(--spacing-unit) * 4);
        gap: calc(var(--spacing-unit) * 4);
    }
    
    .featured-image-square {
        width: 100%;
        height: 300px;
        max-width: 300px;
    }
    
    .featured-main-single .featured-content-inner h3 {
        font-size: 28px;
    }
    
    .featured-main-single .featured-content-inner p {
        font-size: 15px;
    }
    .event-card-inner {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 3);
    }
    
    .event-main {
        width: 100%;
    }
    
    .event-thumbnail {
        flex: none;
        width: 100%;
        height: 200px;
    }
    
    .event-date {
        width: auto;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: calc(var(--spacing-unit) * 2);
    }

    .coming-soon-content h3 {
        font-size: 36px;
    }
    .coming-soon-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 350px;
        max-height: 500px;
    }

    .slideshow-section {
        height: 40vh;
        min-height: 300px;
        max-height: 400px;
    }
    
    .slideshow-title {
        font-size: 2rem;
    }
    /* Featured Content small mobile */
    .featured-main-single {
        padding: calc(var(--spacing-unit) * 3);
        gap: calc(var(--spacing-unit) * 3);
    }
    
    .featured-image-square {
        height: 250px;
        max-width: 250px;
    }
    
    .featured-main-single .featured-content-inner h3 {
        font-size: 24px;
    }
    
    .featured-main-single .featured-content-inner p {
        font-size: 14px;
    }
    
    .featured-main-single .featured-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-main-single .btn {
        width: 100%;
        max-width: 200px;
    }

    .event-card-inner {
        padding: calc(var(--spacing-unit) * 3);
    }
    
    .event-thumbnail {
        height: 150px;
    }
    .coming-soon-content h3 {
        font-size: 28px;
    }
    .coming-soon-content p {
        font-size: 14px;
    }
}


