/* =============================================
   Domestic Travel Guide — style.css
   ============================================= */

:root {
    --bg-dark: #0a0f1e;
    --bg-card: #111827;
    --accent: #f59e0b;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.25s ease;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

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

/* ---- Background Blobs ---- */
.background-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: #f59e0b;
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #10b981;
    bottom: -150px;
    right: -150px;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ---- Top Nav ---- */
.world-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.8rem 2rem;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.world-logo-img {
    height: 40px;
    width: auto;
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2a4a 40%, #0d2a1a 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('pic/hero.jpg') center/cover no-repeat;
    opacity: 0.18;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 15, 30, 0.3), rgba(10, 15, 30, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    width: 100%;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* ---- Search ---- */
.search-container {
    position: relative;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.1rem;
}

#searchInput {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

#searchInput:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

/* ---- Filter Buttons ---- */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 700;
}

/* ---- Stats ---- */
.stats-overview {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ---- Main Grid ---- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    position: relative;
    z-index: 1;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.country-grid.loaded {
    opacity: 1;
}

/* ---- Card ---- */
.pref-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
}

.pref-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.card-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #1a2a3a;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pref-card:hover .card-img {
    transform: scale(1.07);
}

.card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
}

.card-region-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
}

.card-body {
    padding: 1.25rem;
}

.card-pref-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.card-catchcopy {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-row {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.card-detail-btn {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---- Loading & No Results ---- */
.loading-spinner {
    text-align: center;
    padding: 5rem;
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 5rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* ---- Modal ---- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #111827;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.modal-backdrop.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: sticky;
    top: 0.75rem;
    float: right;
    margin: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.modal-close:hover {
    background: #dc2626;
}

/* Modal Hero */
.modal-hero {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2a3a, #0d2a1a);
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.modal-hero-text {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 4rem;
}

.modal-pref-name {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.modal-catchcopy {
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem 2rem 2rem;
}

.modal-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modal-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-title i {
    color: var(--accent);
}

.modal-section p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* Seasons */
.season-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.season-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.season-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
}

.season-badge.spring {
    background: rgba(255, 182, 193, 0.2);
    color: #ffb6c1;
}

.season-badge.summer {
    background: rgba(255, 220, 100, 0.2);
    color: #ffd700;
}

.season-badge.autumn {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
}

.season-badge.winter {
    background: rgba(135, 206, 235, 0.2);
    color: #87ceeb;
}

.season-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Target */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.target-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.target-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.target-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Footer ---- */
.site-footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .modal-section.two-col {
        grid-template-columns: 1fr;
    }

    .season-grid {
        grid-template-columns: 1fr;
    }

    .modal-hero {
        height: 180px;
    }

    .modal-pref-name {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.2rem;
    }
}
/* ---- Contact CTA in Modal ---- */
.modal-contact-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(16,185,129,0.08));
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 12px;
    text-align: center;
}
.modal-contact-text {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.modal-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}
.modal-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,158,11,0.5);
}
