/* 基本的なスタイルシート */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 80px;
    /* ヘッダーの高さ分のパディング */
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 表示制御 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ヘッダー */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* スマホ版: ロゴとテキストを縦に並べる */
@media (max-width: 768px) {
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

/* スマホ版: ロゴとテキストを縦に並べる */
@media (max-width: 768px) {
    .site-logo a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.site-logo a:hover {
    opacity: 0.8;
}

.logo-image {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.site-tagline {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-left: 0.5rem;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.main-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.2s;
}

.main-nav a:hover {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.main-nav a.active {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

.main-nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* スマホ版: ナビゲーション調整 */
@media (max-width: 768px) {

    /* 「ホーム」リンクを非表示（ロゴで代替） */
    .main-nav a[href="/"] {
        display: none;
    }

    /* ナビゲーションの余白削減 */
    .main-nav {
        gap: 0.25rem;
    }

    .main-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    /* カテゴリボタン調整 */
    .category-menu-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }

    .header-container {
        padding: 0.75rem 1rem;
    }
}

/* カテゴリメニューボタン（スマホ） */
.category-menu-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.category-menu-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.category-menu-button.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    height: 16px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.category-menu-button.active .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.category-menu-button.active .menu-icon span:nth-child(2) {
    opacity: 0;
}

.category-menu-button.active .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* カテゴリメニュー（スマホ） */
.category-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e9ecef;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-menu.active {
    display: block;
    max-height: 500px;
    overflow-y: auto;
}

.category-menu-content {
    padding: 1.5rem 2rem;
}

.category-menu-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #222;
}

.category-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-menu-item {
    display: block;
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-align: center;
}

.category-menu-item:hover {
    background: #667eea;
    color: white;
}

.category-menu-item.active {
    background: #667eea;
    color: white;
}

.category-menu-item.active:hover {
    opacity: 0.9;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 記事ページ用のメインコンテナ */
main .article-page {
    background: #fff;
}

/* 記事ページの背景 */
body:has(.article-page) {
    background: #f8f9fa;
}

/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 50%, rgba(79, 172, 254, 0.85) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    z-index: 1;
}

/* 動くグラデーション */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* パーティクル風装飾 */
.hero-overlay::before,
.hero-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: float 6s ease-in-out infinite;
}

.hero-overlay::before {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
}

.hero-overlay::after {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: 10%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.5;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 検索窓 */
.hero-search {
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.search-form:focus-within {
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
}

/* メインコンテンツエリア */
.main-content {
    padding: 5rem 0;
    background: #f8f9fa;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.content-left {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.view-all-link:hover {
    gap: 0.75rem;
}

/* 記事タイプフィルタ */
.article-type-filter {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-button:hover {
    background: #667eea;
    color: white;
}

.filter-button.active {
    background: #667eea;
    color: white;
}

.filter-button.active:hover {
    opacity: 0.9;
}


/* カテゴリサイドバー（PC） */
.category-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px;
}

/* カテゴリセクション */
.category-section {
    margin-bottom: 2rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #222;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.category-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-sidebar-item {
    display: block;
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-align: center;
}

.category-sidebar-item:hover {
    background: #667eea;
    color: white;
}

.category-sidebar-item.active {
    background: #667eea;
    color: white;
}

.category-sidebar-item.active:hover {
    opacity: 0.9;
}

/* 記事カードグリッド */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: cardFadeIn 0.6s ease-out both;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.3);
}

.article-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-type-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-type-overlay.ranking {
    background: rgba(255, 215, 0, 0.9);
    color: #856404;
}

.article-type-overlay.guide {
    background: rgba(102, 126, 234, 0.9);
    color: white;
}



.article-type-overlay.single_review {
    background: rgba(79, 172, 254, 0.9);
    color: white;
}

.article-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-category {
    padding: 0.25rem 0.75rem;
    background-color: #e7f3ff;
    color: #0066cc;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card-header time {
    color: #666;
    font-size: 0.8rem;
}

.article-card-title {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    flex-grow: 1;
}

.article-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title a:hover {
    color: #667eea;
}

.article-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
    font-size: 0.9rem;
}

.read-more:hover {
    gap: 0.75rem;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message,
.no-articles {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* 記事ページ */
body:has(.article-page) {
    background: #f8f9fa;
}

.article-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .article-page {
        margin: 1rem auto;
        padding: 1.5rem 1rem;
        border-radius: 0;
        box-shadow: none;
    }
}

.article-header {
    text-align: center;
    padding: 40px 0;
    background-color: #f8f9fa;
    margin-bottom: 40px;
    border-bottom: 2px solid #e9ecef;
}

.article-title {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0056b3;
    line-height: 1.4;
    margin-bottom: 15px;
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.article-date {
    color: #666;
    font-size: 0.9rem;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin: 50px 0 25px;
    padding-bottom: 8px;
    border-bottom: 3px solid #0056b3;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px;
    border-left: 5px solid #0056b3;
    padding-left: 12px;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #444;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin: 1.25rem 0;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.article-content li {
    margin: 0.5rem 0;
}

.article-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.article-content table tr:last-child td {
    border-bottom: none;
}

.article-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.article-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #888;
    font-style: normal;
}

.article-content hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 3rem 0;
}

.article-content .information-box,
.article-content .ok-box,
.article-content .ng-box,
.article-content .good-box,
.article-content .faq-item {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-content .information-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.article-content .ok-box {
    background-color: #f0f9f4;
    border: 1px solid #c3e6cb;
}

.article-content .ng-box {
    background-color: #fff5f5;
    border: 1px solid #f5c6cb;
}

.article-content .good-box {
    background-color: #f0f8ff;
    border: 1px solid #bee5eb;
}

.article-content .faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e9ecef;
}

/* インラインスタイルの上書き（記事コンテンツ内のスタイルを統一） */

/* ボックスの左ボーダーを上書き */
.article-content .ok-box[style*="border-left: 4px solid #28a745"] {
    border-left: 1px solid #c3e6cb !important;
}

.article-content .ng-box[style*="border-left: 4px solid #dc3545"] {
    border-left: 1px solid #f5c6cb !important;
}

.article-content .good-box[style*="border-left: 4px solid #0066cc"],
.article-content .faq-item[style*="border-left: 4px solid #0066cc"],
.article-content div[style*="border-left: 4px solid #0066cc"] {
    border-left: 1px solid #bee5eb !important;
}

.article-content div[style*="display: flex"],
.article-content div[style*="display:grid"] {
    margin: 2rem 0 !important;
}

.article-content div[style*="flex: 0 0 200px"] {
    flex: 0 0 200px !important;
}

.article-content div[style*="flex: 1"] {
    flex: 1 !important;
}

.article-content div[style*="text-align: center"] {
    text-align: center !important;
    margin: 2rem 0 !important;
}

.article-content a[style*="background-color: #e60012"],
.article-content a[style*="background-color: #0066cc"] {
    display: inline-block !important;
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    border: none !important;
    white-space: normal !important;
}

.article-content a[style*="background-color: #e60012"]:hover,
.article-content a[style*="background-color: #0066cc"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

/* 商品情報ボックスのスタイル統一 */
.article-content .information-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.article-content .information-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-content .information-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.article-content .information-box li:last-child {
    border-bottom: none;
}

.article-content .information-box strong {
    color: #667eea;
    font-weight: 600;
}

/* グリッドレイアウトのレスポンシブ対応 */
.article-content div[style*="grid-template-columns: repeat(2"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
}

.article-content div[style*="grid-template-columns: repeat(3"] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
}

@media (max-width: 768px) {

    .article-content div[style*="grid-template-columns: repeat(2"],
    .article-content div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    .article-content div[style*="display: flex"] {
        flex-direction: column !important;
    }

    .article-content div[style*="flex: 0 0 200px"] {
        flex: 1 1 auto !important;
        width: 100% !important;
    }
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.article-footer-content {
    text-align: center;
}

.article-footer-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.2s;
}

.back-to-home:hover {
    background-color: #667eea;
    color: #fff;
    transform: translateX(-4px);
}

/* レスポンシブ: 記事ページ */
@media (max-width: 768px) {
    .article-page {
        padding: 1.5rem 1rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content table {
        font-size: 0.9rem;
    }

    .article-content table th,
    .article-content table td {
        padding: 0.75rem 0.5rem;
    }
}

/* フッター */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .header-container {
        padding: 0.75rem 1.5rem;
    }

    .header-left {
        gap: 0.75rem;
    }

    .site-logo {
        font-size: 1.25rem;
    }

    .logo-image {
        height: 36px;
    }

    .site-tagline {
        font-size: 0.8rem;
        margin-left: 0.25rem;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .search-form {
        max-width: 100%;
        border-radius: 12px;
    }

    .search-input {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .search-button {
        width: 45px;
        height: 45px;
    }

    .main-content {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-left {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card-image {
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   New Design System for Product Ranking
   ========================================= */

:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --accent-color: #e60012;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --success-bg: #f0f9f4;
    --danger-bg: #fff5f5;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
}

/* Ranking Table - Compact */
.ranking-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 0.9rem;
}

.ranking-table th {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 8px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}

.ranking-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    text-align: center;
}

.ranking-table td:nth-child(3) {
    /* Product Name */
    text-align: left;
    font-weight: 500;
    color: var(--primary-color);
}

.ranking-table img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.ranking-table tr:hover {
    background-color: #f9f9f9;
}

.rank-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    background-color: #666;
    font-size: 0.8rem;
}

.rank-1 .rank-badge {
    background-color: var(--gold);
}

.rank-2 .rank-badge {
    background-color: var(--silver);
}

.rank-3 .rank-badge {
    background-color: var(--bronze);
}

.rank-1 {
    background-color: #fffbeb !important;
}

/* Product Cards - NEW STRUCTURE */
.product-section {
    margin-bottom: 50px;
    padding-top: 60px;
    margin-top: -40px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Upper Row: Image + Basic Info */
.product-upper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
}

.product-image {
    flex: 0 0 240px;
    text-align: center;
}

.product-image img {
    width: 100%;
    max-width: 240px;
    border-radius: 8px;
    object-fit: contain;
}

.product-info {
    flex: 1;
    min-width: 300px;
}

/* Lower Row: Analysis + Actions */
.product-lower {
    width: 100%;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.product-rank {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.product-rank.rank-1 {
    background-color: var(--gold);
    color: #333;
}

.product-rank.rank-2 {
    background-color: var(--silver);
    color: #333;
}

.product-rank.rank-3 {
    background-color: var(--bronze);
    color: white;
}

.product-title {
    font-size: 1.4rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: #000;
}

.product-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.article-content .product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Previously used for 3rd item full width, no longer needed in vertical layout but kept for safety/fallback if logic changes */
.spec-item:nth-child(3) {
    grid-column: auto;
}

.spec-item {
    background-color: var(--secondary-color);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--light-text);
    display: block;
    margin-bottom: 2px;
}

.spec-value {
    font-weight: bold;
    color: var(--text-color);
}

.product-actions {
    margin-top: 25px;
    text-align: center;
}

.btn-rakuten {
    display: inline-block;
    background-color: #bf0000;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 3px 6px rgba(191, 0, 0, 0.15);
}

.btn-rakuten:hover {
    background-color: #a00000;
    transform: translateY(-2px);
}

.analysis-box {
    margin-top: 15px;
    padding: 20px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.analysis-good {
    background-color: var(--success-bg);
}

.analysis-alert {
    background-color: var(--danger-bg);
}

.analysis-title {
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: #222;
}

.analysis-title::before {
    margin-right: 8px;
    font-size: 1.1em;
}

.analysis-good .analysis-title::before {
    content: '✅';
}

.analysis-alert .analysis-title::before {
    content: '⚠️';
}

@media (max-width: 768px) {
    .product-upper {
        flex-direction: column;
        text-align: center;
    }

    .product-image {
        margin: 0 auto;
    }

    .product-info {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .product-specs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .spec-item:nth-child(3) {
        grid-column: 1 / -1;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }

    .ranking-table td:nth-child(4) {
        white-space: nowrap;
    }

    /* スマホ版フォントサイズ調整 (統合済み) */
    body {
        font-size: 13px !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.25rem !important;
    }

    .article-title {
        font-size: 1.3rem !important;
    }

    .article-card-title {
        font-size: 0.9rem !important;
    }

    /* 記事コンテント内の見出し */
    .article-content h2 {
        font-size: 1.25rem !important;
    }

    .article-content h3 {
        font-size: 1.1rem !important;
    }

    /* 本文、リスト、テーブル等のフォントサイズを明示的に指定 */
    .article-content,
    .article-content p,
    .article-content li,
    .article-content td,
    .article-content th,
    .article-content div {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }
}