body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
}

.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #f97316;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 検索フィードバック */
.search-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: searchFeedbackIn 0.3s ease-out;
}

@keyframes searchFeedbackIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.search-feedback.hide {
    animation: searchFeedbackOut 0.3s ease-in forwards;
}

@keyframes searchFeedbackOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.results-update {
    animation: resultsUpdate 0.6s ease-out;
}

@keyframes resultsUpdate {
    0% {
        opacity: 0.3;
        transform: translateY(-10px);
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AdSense styles */
.adsbygoogle {
    display: block;
}

/* Development placeholder (hidden by default) */
.adsense-placeholder {
    display: none;
}

/* Logo styles */
.official-logo {
    max-width: 160px;
}

/* Article card styles - glassmorphism design */
.article-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

.article-card .card-title {
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.article-card .card-title a:hover {
    background: linear-gradient(to right, #fb923c, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-card .card-summary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 12px 0;
}

.article-card .card-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(251, 146, 60, 0.2);
}

.article-thumbnail {
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

.article-card:hover .article-thumbnail {
    opacity: 0.9;
}

.article-read-more {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.article-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.3);
}

.article-category-tag {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(236, 72, 153, 0.2));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.article-image-placeholder {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(236, 72, 153, 0.2));
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Safari専用のselectboxスタイル */
@supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
    select {
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
        -webkit-border-radius: 12px;
        -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    select:focus {
        -webkit-box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.5), inset 0 1px 3px rgba(0, 0, 0, 0.1);
        background-color: rgba(255, 255, 255, 0.15);
    }

    select:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    select option {
        background-color: #1f2937 !important;
        color: #ffffff !important;
        padding: 8px 12px !important;
        border: none !important;
        outline: none !important;
    }

    select:focus option:checked {
        background-color: rgba(249, 115, 22, 0.3) !important;
        color: #ffffff !important;
    }
}
