/* ========================================
   基本設定
   ======================================== */
:root {
    --primary-green: #2c5f2d;
    --primary-blue: #4a90d9;
    --accent-orange: #ff6b35;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-light);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー・ナビゲーション
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
}

.logo i {
    font-size: 1.5rem;
}

.main-nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border-radius: 5px;
}

.nav-link i.fa-chevron-down {
    font-size: 0.7rem;
    transition: var(--transition);
}

.nav-item:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
    background: rgba(44, 95, 45, 0.1);
}

.nav-link-simple {
    padding: 8px 12px;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--bg-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 5px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-link:hover,
.dropdown-link.active {
    background: rgba(44, 95, 45, 0.1);
}

.dropdown-link i {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-top: 3px;
}

.dropdown-link strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--text-dark);
}

.dropdown-link p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* 企業の方へボタン */
.btn-business {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-green);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    margin-left: 8px;
}

.btn-business:hover {
    background: #1a3a1b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 95, 45, 0.3);
}

.btn-business i {
    font-size: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* ========================================
   ヒーローヘッダー
   ======================================== */
.hero-header {
    background: linear-gradient(135deg, #2c5f2d 0%, #1a3a1b 100%);
    color: var(--text-white);
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,0 600,60 T1200,60 L1200,0 L0,0 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-header .container {
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 400;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
    padding: 40px 0 80px;
}

/* ========================================
   検索セクション
   ======================================== */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    background: var(--bg-white);
    transition: var(--transition);
    font-family: 'Noto Sans JP', sans-serif;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.1);
}

/* ========================================
   フィルターセクション
   ======================================== */
.filter-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-family: 'Noto Sans JP', sans-serif;
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-green);
    color: var(--text-white);
    border-color: var(--primary-green);
}

/* ========================================
   結果ヘッダー
   ======================================== */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.result-count {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.result-count span {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-section label {
    font-size: 14px;
    color: var(--text-light);
}

.sort-section select {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-white);
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
}

.sort-section select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* ========================================
   プログラムグリッド
   ======================================== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* ========================================
   プログラムカード
   ======================================== */
.program-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.5s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

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

.card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c5f2d 0%, #1a3a1b 100%);
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(44, 95, 45, 0.3) 0%, rgba(26, 58, 27, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

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

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

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.tag-verification {
    background: rgba(74, 144, 217, 0.9);
}

.tag-community {
    background: rgba(255, 107, 53, 0.9);
}

.tag-morning {
    background: rgba(255, 193, 7, 0.9);
}

.tag-work {
    background: rgba(76, 175, 80, 0.9);
}

.tag-food {
    background: rgba(233, 30, 99, 0.9);
}

.tag-nature {
    background: rgba(0, 150, 136, 0.9);
}

.tag-facility {
    background: rgba(121, 85, 72, 0.9);
}

.tag-certification {
    background: rgba(156, 39, 176, 0.9);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-host {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.card-host i {
    font-size: 16px;
}

.card-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.card-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
}

.price-duration {
    font-size: 12px;
    color: var(--text-light);
}

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 13px;
    color: var(--text-light);
}

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

.meta-item i {
    font-size: 14px;
}

/* ========================================
   読み込み中・結果なし
   ======================================== */
.loading,
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.loading i,
.no-results i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.loading i {
    color: var(--primary-blue);
}

.loading p {
    font-size: 18px;
    color: var(--text-light);
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.no-results p {
    font-size: 16px;
    color: var(--text-light);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: #2c3e50;
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        padding: 8px 0;
        min-height: 60px;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-200%);
        transition: var(--transition);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        align-items: stretch;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .nav-item.active .dropdown-menu {
        max-height: 500px;
        padding: 10px;
    }
    
    .nav-link-simple {
        width: 100%;
    }
    
    .btn-business {
        width: 100%;
        justify-content: center;
        margin: 10px 0 0 0;
    }
    
    .hero-header {
        margin-top: 60px;
        padding: 100px 20px 50px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .filter-section {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-section {
        width: 100%;
    }

    .sort-section select {
        flex: 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .card-title {
        font-size: 16px;
    }

    .price-amount {
        font-size: 24px;
    }
}
