/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f0fdf4;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
/* Header - z-index確保 */
/* Header - シンプルな設定 */
/*
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1);
    position: sticky;
    top: 0;
    z-index: 100; /* 適度な値に調整 */
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    transition: transform 0.3s ease;
}
*/


.header {
    border: 2px solid green;
}

.header.header-hidden {
    transform: translateY(-100%);
}

/*
.search-summary {
    z-index: 50;
}
*/

.search-summary {
    border: 2px solid blue;
}

/*
.main-content {
    z-index: 1;
    position: relative;
}
*/

.main-content {
    border: 2px solid red;
    min-height: 200vh; /* スクロール確認用 */
}


.filters-sidebar {
    z-index: 10;
}

.results-content {
    z-index: 2;
}

.result-card {
    z-index: 3;
    position: relative;
}

/* スティッキー要素の調整 */
.filters-sidebar {
    position: sticky;
    top: calc(80px + 70px); /* ヘッダー高さ + search-summary高さ */
}

/* search-summaryがトップに来た時のfilters-sidebar調整 */
.search-summary.sticky-top ~ .container .content-grid .filters-sidebar {
    top: 70px; /* search-summaryの高さのみ */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    text-decoration: none;
}

.logo i {
    margin-right: 8px;
    font-size: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.points {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 12px;
}

.btn-login, .btn-signup {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    background: transparent;
    color: #10b981;
    border: 2px solid #d1fae5;
}

.btn-login:hover {
    background: #ecfdf5;
    border-color: #10b981;
    transform: translateY(-1px);
}

.btn-signup {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Hero Section - 修正版 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Background Image Slider */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(135, 206, 235, 0.1) 0%,
        rgba(173, 216, 230, 0.08) 50%,
        rgba(176, 224, 230, 0.05) 100%
    );
}

/* Slide Indicators */
.hero-slide-indicators {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background: white;
    border-color: white;
}

.slide-indicator:hover {
    border-color: white;
    transform: scale(1.2);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 580px; /* 左側可変、右側固定幅 */
    gap: 80px;
    align-items: flex-start;
    min-height: 80vh;
    padding-top: 0px;
}

/* 左側セクション */
.hero-left-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 500px; /* 最大幅を制限 */
}

.hero-text {
    color: white;
    margin-bottom: 40px; /* パートナーセクションとの間隔 */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.highlight-gradient {
    color: #10b981;
    font-weight: 800;
    position: relative;
    text-shadow: 
        /* 極細の白い縁取り */
        -0.5px -0.5px 0 white,
        0.5px -0.5px 0 white,
        -0.5px 0.5px 0 white,
        0.5px 0.5px 0 white,
        /* 影効果 */
        0 4px 20px rgba(16, 185, 129, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* パートナーセクション - 修正版 */

.hero-partners-inline {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.6); /* 60%の不透明度 */
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}


.partners-text {
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
.hero-partners-inline:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.4);
}

.partners-logos-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 60px; /* 高さを広げる */
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1); /* 元の背景色に戻す */
    backdrop-filter: blur(10px);
    /* 境界線とシャドウを削除 */
}

.partners-logos-track {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: slideLeftContinuous 25s linear infinite; /* アニメーション名を変更して確実に動作 */
    width: fit-content;
    height: 100%;
    will-change: transform; /* パフォーマンス最適化 */
}

/* アニメーションを再定義 */
@keyframes slideLeftContinuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* 複製した分だけ左に移動 */
    }
}

/* ホバー時の一時停止も確実に動作するように */
.partners-logos-container:hover .partners-logos-track {
    animation-play-state: paused;
}

.partners-logos-container .partners-logos-track {
    animation-play-state: running; /* 明示的に実行状態を指定 */
}

/* ロゴを元のPartnersSection風に戻す */
.partner-logo-inline {
    flex-shrink: 0;
    min-width: 120px; /* 幅を広げる */
    height: 50px; /* 高さを広げる */
    background: white;
    border-radius: 12px; /* 角丸 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1); /* 緑系の影 */
    border: 2px solid #d1fae5; /* 緑の囲い */
    transition: all 0.3s ease;
    opacity: 1; /* 透明度をリセット */
    filter: none; /* フィルターをリセット */
}

.partner-logo-inline:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.partner-logo-inline img {
    height: 32px; /* 大きさを戻す */
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: none; /* フィルターを削除 */
}

/* ホバー時のアニメーション調整 */
.partners-logos-container:hover .partners-logos-track {
    animation-play-state: paused;
}

.partners-logos-container:hover .partner-logo-inline {
    transform: translateY(-2px);
    border-color: #10b981;
}

/* レスポンシブ対応 - 修正版 */
@media (max-width: 768px) {
    .hero-partners-inline {
        max-width: 420px; /* モバイルでも少し広げる */
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .partners-text {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .partners-logos-container {
        height: 50px; /* モバイルでも適度な高さ */
        border-radius: 10px;
    }
    
    .partner-logo-inline {
        min-width: 100px;
        height: 40px;
        border-radius: 10px;
    }
    
    .partner-logo-inline img {
        height: 26px;
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .hero-partners-inline {
        max-width: 350px; /* 小さな画面でも適度に広げる */
        padding: 24px 16px;
        border-radius: 14px;
    }
    
    .partners-text {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .partners-logos-container {
        height: 45px;
        border-radius: 8px;
    }
    
    .partner-logo-inline {
        min-width: 90px;
        height: 36px;
        border-radius: 8px;
    }
    
    .partner-logo-inline img {
        height: 22px;
        max-width: 70px;
    }
}

/* 右側セクション */
.hero-right-section {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%; /* 全幅を使用 */
}

.search-form {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 580px;
    color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 既存の検索フォーム内のスタイルはそのまま */
.search-tabs {
    display: flex;
    margin-bottom: 32px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 16px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tab-btn.active {
    background: white;
    color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.tab-btn i {
    font-size: 18px;
}

.tab-btn span {
    font-size: 12px;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 520px;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        justify-items: center;
    }
    
    .hero-left-section {
        max-width: none;
        align-items: center;
    }
    
    .hero-right-section {
        justify-content: center;
        width: 100%;
    }
    
    .search-form {
        max-width: 600px;
    }
    
    .partners-logos-container {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-form {
        padding: 32px;
        margin: 0 16px;
    }
    
    .partners-logos-container {
        max-width: 300px;
    }
    
    .partner-logo-inline {
        width: 60px;
    }
    
    .partner-logo-inline img {
        height: 20px;
        max-width: 60px;
    }
}

.form-row-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #10b981;
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.data-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.data-btn {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.data-btn.active,
.data-btn:hover {
    border-color: #10b981;
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.data-summary {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.duration-display,
.total-data {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 12px;
    font-size: 13px;
}

.btn-search {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .search-form {
        max-width: 520px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column; /* モバイルでは縦並び */
        gap: 50px;
        text-align: center;
    }
  
    .hero-text {
        max-width: none;
    }
    .search-form-container {
        flex: none;
        justify-content: center;
    }    
    .search-form {
        max-width: 600px;
    }
    
    .form-row-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partners-logos-inline {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-form {
        padding: 32px;
        margin: 0 16px;
    }
    
    .partners-logos-inline {
        gap: 16px;
    }
    
    .hero-slide-indicators {
        bottom: 120px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-form {
        padding: 24px;
    }
    
    .tab-btn {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .tab-btn i {
        font-size: 16px;
    }
    
    .tab-btn span {
        font-size: 11px;
    }
    
    .data-options {
        justify-content: center;
        gap: 8px;
    }
    
    .data-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .data-summary {
        flex-direction: column;
        gap: 12px;
    }
    
    .partners-logos-inline {
        gap: 12px;
    }
    
    .partner-logo-inline img {
        height: 20px;
    }
    
    .btn-search {
        padding: 18px;
        font-size: 16px;
    }
}

/* Animation enhancements */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

.search-form {
    animation: slideInFromBottom 1s ease-out 0.6s both;
}

/* Performance optimizations */
.hero-slide {
    will-change: opacity;
}

.slide-indicator {
    will-change: transform;
}

.partner-logo-inline {
    will-change: transform, opacity;
}

.data-btn {
    will-change: transform;
}


/* Animation enhancements */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

.search-form {
    animation: slideInFromBottom 1s ease-out 0.6s both;
}

.hero-partners {
    animation: slideInFromBottom 1s ease-out 0.9s both;
}

/* Performance optimizations */
.hero-slide {
    will-change: opacity;
}

.slide-indicator {
    will-change: transform;
}

.partner-logo {
    will-change: transform, filter;
}

/* Search Form Enhancement */
.search-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
    color: #1f2937;
    position: relative;
    animation: scaleIn 0.8s ease-out 1.5s forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* レスポンシブ対応 - パートナーロゴ */
@media (max-width: 768px) {
    .partners-logos-container {
        max-width: 300px; /* モバイルでは3つ分 */
    }
    
    .partner-logo-inline {
        width: 60px;
    }
    
    .partner-logo-inline img {
        height: 20px;
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    .partners-logos-container {
        max-width: 250px; /* 小さなモバイルでは2.5個分 */
    }
    
    .partners-logos-track {
        gap: 16px;
    }
    
    .partner-logo-inline {
        width: 50px;
    }
    
    .partner-logo-inline img {
        height: 18px;
        max-width: 50px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-airplane-window {
        width: 250px;
        height: 320px;
        right: 2%;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 60px 0;
    }
    
    .hero-airplane-window {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .search-form {
        padding: 24px;
        margin: 0 16px;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .airplane-interior {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        gap: 5px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .search-form {
        padding: 20px;
    }
    
    .seat-elements {
        display: none;
    }
}

/* パフォーマンス最適化 */
.clouds-layer {
    will-change: transform;
}

.floating-icon {
    will-change: transform;
}

.hero-airplane-window {
    will-change: transform;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .search-form {
        background: #fff;
        border: 2px solid #000;
    }
    
    .highlight-text {
        background: #ffff00;
        -webkit-text-fill-color: #000;
    }
}

/* アニメーション無効化対応 */
@media (prefers-reduced-motion: reduce) {
    .clouds-layer,
    .floating-icon,
    .title-line-1,
    .title-line-2,
    .title-line-3,
    .hero-subtitle,
    .search-form {
        animation: none;
    }
    
    .title-line-2,
    .title-line-3,
    .hero-subtitle,
    .search-form {
        opacity: 1;
        transform: none;
    }
}

/* Data Summary - レイアウト修正 */
.data-summary {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    align-items: center;
}

.duration-display {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
    padding: 8px 12px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 10px;
    white-space: nowrap;
    font-size: 13px;
}

.total-data {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-weight: 600;
    padding: 8px 12px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 10px;
    font-size: 13px;
}

/* Search Form */
.search-form {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    max-width: 800px;
    margin: 0 auto;
    color: #1f2937;
    position: relative;
    border: 3px solid rgba(16, 185, 129, 0.1);
}

.search-tabs {
    display: flex;
    margin-bottom: 24px;
    background: #f0fdf4;
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.tab-btn.active {
    background: white;
    color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.tab-btn i {
    margin-right: 6px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.form-group label i {
    margin-right: 6px;
    color: #10b981;
    width: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1fae5;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.duration-display {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 10px;
    white-space: nowrap;
    font-size: 13px;
}

.data-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.data-btn {
    padding: 8px 16px;
    border: 2px solid #d1fae5;
    background: #f0fdf4;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.data-btn.active,
.data-btn:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.total-data {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-weight: 600;
    padding: 8px 12px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 10px;
    display: inline-flex;
    font-size: 13px;
}

.btn-search {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-search:hover::before {
    left: 100%;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
}

.btn-search i {
    margin-right: 8px;
}

/* Section Title Styles */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.title-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.title-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
    margin-top: 4px;
}

/* Community Section */
.community {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    position: relative;
}

.community::before {
    content: '✈️';
    position: absolute;
    top: 10%;
    right: 5%;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.community-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.community-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(16, 185, 129, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.community-card:hover::after {
    transform: translateX(100%);
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.community-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.community-card:hover .card-overlay {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 24px;
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.card-content p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 16px;
}

.card-reward {
    text-align: right;
}

.reward-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background: white;
}

.partners-showcase {
    margin-top: 48px;
}

.partners-slider {
    overflow: hidden;
    border-radius: 16px;
}

.partners-track {
    display: flex;
    gap: 24px;
    animation: slide 30s infinite linear;
}

.partner-card {
    min-width: 180px;
    height: 100px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
    border: 2px solid #d1fae5;
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.partner-card img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Points Section */
.points-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    position: relative;
}

.points-section::before {
    content: '🎁';
    position: absolute;
    top: 15%;
    left: 5%;
    font-size: 2.5rem;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite reverse;
}

.points-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.points-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.3);
}

.points-hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.points-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.points-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.points-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(251, 191, 36, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.points-card:hover::after {
    transform: translateX(100%);
}

.points-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}

.points-card-image {
    height: 150px;
    overflow: hidden;
}

.points-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.points-card:hover .points-card-image img {
    transform: scale(1.1);
}

.points-card-content {
    padding: 20px;
    text-align: center;
}

.points-value {
    font-size: 2rem;
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 8px;
}

.points-action {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.points-action i {
    margin-right: 6px;
    color: #10b981;
}

.points-card-content p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background: white;
    position: relative;
}

.blog::before {
    content: '📚';
    position: absolute;
    top: 20%;
    right: 8%;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 7s ease-in-out infinite;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.more-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #d1fae5;
    font-size: 14px;
}

.more-link:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
}

.blog-cards {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.blog-card.featured {
    grid-row: span 2;
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-card.featured .blog-image {
    height: 300px;
}

.blog-card:not(.featured) .blog-image {
    height: 180px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card.featured .blog-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.blog-content p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
}

.blog-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Popular Results Section - 修正版 */
.popular-results {
    padding: 80px 0;
    background: white;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.result-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 80px;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.result-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.result-flag {
    font-size: 1.5rem;
}

.result-country {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.result-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 80px;
}

.result-details {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #6b7280;
}

.result-duration,
.result-data {
    background: #f0fdf4;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.result-price {
    font-size: 14px;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 4px;
}

.result-btn {
    padding: 4px 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        gap: 8px;
    }
    
    .result-left {
        flex-direction: column;
        gap: 4px;
    }
    
    .result-right {
        align-items: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.search-item {
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #d1fae5;
    position: relative;
    overflow: hidden;
}

.search-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.search-item:hover::before {
    left: 100%;
}

.search-item:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.3);
}

.search-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.search-flags {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.search-text {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.search-detail {
    font-size: 11px;
    opacity: 0.8;
    color: #6b7280;
}

.search-item:hover .search-detail {
    color: rgba(255, 255, 255, 0.9);
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    position: relative;
}

.reviews::before {
    content: '💭';
    position: absolute;
    top: 10%;
    left: 8%;
    font-size: 2.5rem;
    opacity: 0.1;
    animation: float 9s ease-in-out infinite reverse;
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.review-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #d1fae5;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.review-destination {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.review-rating {
    color: #fbbf24;
    font-size: 14px;
}

.review-card p {
    color: #374151;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 16px;
    font-style: italic;
}

.review-images {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.review-images img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #d1fae5;
    transition: transform 0.3s ease;
}

.review-images img:hover {
    transform: scale(1.1);
}

/* Reviews Section - Airaloライクなカルーセル */
.reviews-carousel-container {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.reviews-main-display {
    position: relative;
}

.main-review-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
    border: 2px solid #d1fae5;
    transition: all 0.4s ease;
}

.main-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

.main-review-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.main-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.main-review-card:hover .main-review-image img {
    transform: scale(1.05);
}

.review-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 12px;
}

.review-rating-large {
    color: #fbbf24;
    font-size: 16px;
}

.main-review-content {
    padding: 24px;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.reviewer-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #d1fae5;
}

.reviewer-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-name-large {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.review-destination-large {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.main-review-text {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
    font-style: italic;
}

.review-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-tag {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.reviews-thumbnails {
    position: relative;
}

.thumbnail-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow: hidden;
}

.review-thumbnail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.review-thumbnail.active {
    border-color: #10b981;
    opacity: 1;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.review-thumbnail:hover {
    opacity: 1;
    transform: translateX(4px);
}

.thumbnail-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.thumbnail-destination {
    font-size: 12px;
    color: #6b7280;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-btn-small {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #d1fae5;
    border-radius: 50%;
    color: #10b981;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn-small:hover {
    background: #10b981;
    color: white;
    transform: scale(1.1);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .reviews-carousel-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .reviews-thumbnails {
        order: -1;
    }
    
    .thumbnail-track {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .review-thumbnail {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .main-review-image {
        height: 250px;
    }
    
    .main-review-content {
        padding: 20px;
    }
    
    .main-review-text {
        font-size: 15px;
    }
    
    .reviewer-profile {
        gap: 12px;
    }
    
    .reviewer-avatar-large {
        width: 50px;
        height: 50px;
    }
    
    .reviewer-name-large {
        font-size: 16px;
    }
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1fae5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #10b981;
    transform: scale(1.2);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 40px 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 13px;
}

.footer-links a:hover {
    color: #10b981;
}

/* Animation Enhancements */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.community-card,
.points-card,
.blog-card,
.review-card {
    animation: slideInUp 0.6s ease forwards;
}

.community-card:nth-child(2) {
    animation-delay: 0.1s;
}

.community-card:nth-child(3) {
    animation-delay: 0.2s;
}

.points-card:nth-child(2) {
    animation-delay: 0.1s;
}

.points-card:nth-child(3) {
    animation-delay: 0.2s;
}

.points-card:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .points-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .points-hero-image {
        order: -1;
    }
    
    .blog-cards {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .search-form {
        padding: 20px;
        margin: 0 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .data-options {
        justify-content: center;
    }
    
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .title-emoji {
        font-size: 2rem;
    }
    
    .community-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .points-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .search-form {
        padding: 16px;
    }
    
    .points-cards {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .points-card-content {
        padding: 16px;
    }
    
    .blog-content {
        padding: 16px;
    }
    
    .review-card {
        padding: 20px;
    }
}

/* Scroll Reveal Animation */
@media (prefers-reduced-motion: no-preference) {
    .community-card,
    .points-card,
    .blog-card,
    .review-card {
        opacity: 0;
        transform: translateY(30px);
        animation: none;
    }
    
    .community-card.reveal,
    .points-card.reveal,
    .blog-card.reveal,
    .review-card.reveal {
        animation: slideInUp 0.6s ease forwards;
    }
}

/* Interactive Hover Effects */
.community-card,
.points-card {
    cursor: pointer;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
select:focus,
.search-item:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .community-card,
    .points-card,
    .blog-card,
    .review-card {
        border: 2px solid #000;
    }
    
    .btn-search {
        background: #000;
        color: #fff;
    }
    
    .btn-login {
        border-color: #000;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before,
    .hero::after {
        animation: none;
    }
    
    .partners-track {
        animation: none;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn-search,
    .search-form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .community-card,
    .points-card,
    .blog-card,
    .review-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Selection styles */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #1f2937;
}

::-moz-selection {
    background: rgba(16, 185, 129, 0.3);
    color: #1f2937;
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Button hover states enhancement */
.community-card:hover,
.points-card:hover {
    cursor: pointer;
}

.community-card:active,
.points-card:active {
    transform: translateY(-4px) scale(0.98);
}

/* Image lazy loading placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 2rem;
}

/* Error states */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #059669;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #d1fae5;
    color: #059669;
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.badge-info {
    background: #dbeafe;
    color: #2563eb;
}

/* Card variants */
.card-minimal {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-elevated {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Form enhancements */
.form-group.required label::after {
    content: '*';
    color: #dc2626;
    margin-left: 4px;
}

.form-control.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-control.success {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* アニメーションの追加 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-review-card {
    animation: fadeInUp 0.6s ease forwards;
}

.review-thumbnail {
    animation: slideInLeft 0.4s ease forwards;
}

.review-thumbnail:nth-child(2) { animation-delay: 0.1s; }
.review-thumbnail:nth-child(3) { animation-delay: 0.2s; }
.review-thumbnail:nth-child(4) { animation-delay: 0.3s; }
.review-thumbnail:nth-child(5) { animation-delay: 0.4s; }

/* ホバーエフェクトの強化 */
.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.result-item:hover::before {
    left: 100%;
}

/* レビューカードの3D効果 */
.main-review-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.main-review-card:hover {
    transform: translateY(-4px) rotateX(2deg);
}

/* サムネイルのアクティブ状態強化 */
.review-thumbnail.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 2px;
}

.review-thumbnail {
    position: relative;
}

/* モバイル対応の改善 */
@media (max-width: 480px) {
    .result-item {
        min-height: 70px;
        padding: 12px;
    }
    
    .result-country {
        font-size: 12px;
    }
    
    .result-price {
        font-size: 12px;
    }
    
    .result-btn {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .main-review-image {
        height: 200px;
    }
    
    .main-review-content {
        padding: 16px;
    }
    
    .main-review-text {
        font-size: 14px;
    }
}

/* アクセシビリティの改善 */
.review-thumbnail:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.carousel-btn-small:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* プリロード効果 */
.main-review-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.main-review-image img {
    position: relative;
    z-index: 2;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Progress indicators */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    transition: width 0.3s ease;
}

/* Modal overlay (for future use) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #059669;
}

.notification.error {
    background: #dc2626;
}

.notification.info {
    background: #2563eb;
}