/* ==========================================================================
   フロントページ専用CSS
   /assets/css/pages/front-page.css
   ========================================================================== */

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

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* IEとEdge対応 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .hero-video {
        width: 100%;
        height: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* タイトルアニメーション用の調整 */
.hero-title-wrapper {
    position: relative;
    overflow: visible;
    min-height: 100px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 0.08em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.1);
    line-height: 1.3;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 50%, #e6f3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-text {
    display: inline-block;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 50px;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.1);
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ヒーローCTAボタン */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 4;
}

.hero-button {
    padding: 18px 45px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-button-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 50%, #1a365d 100%);
    color: white;
    box-shadow: 0 8px 30px rgba(26, 54, 93, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-button-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 50%, #2d5a87 100%);
}

.hero-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    color: white;
    opacity: 0.8;
}


/* ==========================================================================
   ヒーローコンテンツセクション
   ========================================================================== */
.hero-content-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 50%, #1a365d 100%);
    position: relative;
    overflow: hidden;
}

.hero-content-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-wrapper {
    position: relative;
    overflow: visible;
    min-height: 100px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
    filter: brightness(1.3) contrast(1.2);
    text-stroke: 1px rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
}

.hero-title-text {
    display: inline-block;
    text-align: center;
    color: #ffffff !important;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
    filter: brightness(1.3) contrast(1.2);
    text-stroke: 1px rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    margin-bottom: 40px;
    opacity: 1;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.4);
    filter: brightness(1.1);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-button {
    padding: 18px 45px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-button-primary {
    background: linear-gradient(135deg, #2d5a87 0%, #4a7ba7 50%, #2d5a87 100%);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(26, 54, 93, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    filter: brightness(1.1);
}

.hero-button-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 50%, #2d5a87 100%);
}

.hero-button-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #1a365d;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    filter: brightness(1.05);
}

.hero-button-secondary:hover {
    background: #1a365d;
    color: white;
    border-color: #1a365d;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   電光掲示板ニュース
   ========================================================================== */
.news-ticker {
    background: #1a3d5c;
    color: white;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    position: relative;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    padding: 0 100px;
    font-size: 16px;
    font-weight: 500;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   新着情報セクション
   ========================================================================== */
.news-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.title-en {
    display: block;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 10px;
}

.title-ja {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #1a3d5c;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

.news-date {
    font-size: 14px;
    color: #666;
    min-width: 100px;
}

.news-category {
    background: #2e7d32;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #2e7d32;
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #2e7d32;
    color: white;
}

/* ==========================================================================
   業務内容セクション
   ========================================================================== */
.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f3f9ff 0%, #e9f3ff 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 各カードに異なる背景色 */
.service-card:nth-child(1) {
    background: linear-gradient(135deg, #fff 0%, #e8f5e9 100%);
}

.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
}

.service-card:nth-child(2) {
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
}

.service-card:nth-child(3) {
    background: linear-gradient(135deg, #fff 0%, #fce4ec 100%);
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
}

.service-card:nth-child(4) {
    background: linear-gradient(135deg, #fff 0%, #fff3e0 100%);
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3d5c;
    margin-bottom: 12px;
    position: relative;
}

.service-desc {
    color: #666;
    line-height: 1.6;
    font-size: 13px;
    position: relative;
}

/* 装飾的な要素 */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:nth-child(1)::after { color: #2e7d32; }
.service-card:nth-child(2)::after { color: #1976d2; }
.service-card:nth-child(3)::after { color: #c2185b; }
.service-card:nth-child(4)::after { color: #f57c00; }

.service-card:hover::after {
    transform: scaleX(1);
}

/* ==========================================================================
   パートナーバナー
   ========================================================================== */
.partner-banners {
    padding: 80px 0;
    background: white;
}

.banner-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-banner {
    display: block;
    max-width: 300px;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.partner-banner:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.partner-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   アクセスセクション
   ========================================================================== */
.access-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.access-map {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.access-map iframe {
    display: block;
    width: 100%;
}

/* ==========================================================================
   共通コンテナ
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
    /* ヒーローセクション */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(24px, 6vw, 32px);
        min-height: 80px;
    }
    
    .hero-title-wrapper {
        min-height: 80px;
    }
    
    /* ヒーローコンテンツセクション */
    .hero-content-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: clamp(20px, 5vw, 28px);
        min-height: 50px;
    }
    
    .hero-title-wrapper {
        min-height: 50px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: clamp(14px, 3vw, 18px);
        margin-bottom: 25px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        font-size: 16px;
        padding: 15px 35px;
    }

    
    /* ニュース */
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-item:hover {
        padding-left: 10px;
        padding-right: 10px;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    /* サービス */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    /* アクセス */
    .access-map {
        margin: 0 20px;
    }
    
    /* セクションの余白調整 */
    .news-section,
    .services-section,
    .partner-banners,
    .access-section {
        padding: 60px 0;
    }
    
    /* タイトル */
    .title-ja {
        font-size: 28px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 動画の初期状態を確実に設定 */
.hero-video-wrapper,
.hero-video,
.hero-overlay,
.hero-content,
.hero-cta,
.hero-button {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-video {
    display: block !important;
}

/* Twenty Twenty-Fiveのスタイル上書き */
body.has-hero-video .wp-site-blocks {
    padding-top: 0 !important;
}

body.has-hero-video .wp-block-template-part {
    margin-top: 0 !important;
}