/*
Theme Name: Ginza Gourmet Pro
Theme URI: https://ginzagourmet.com
Description: AI駆動型アフィリエイトメディア専用テーマ - ダークラグジュアリーデザイン
Version: 1.0.0
Author: Ginza Gourmet Team
Author URI: https://ginzagourmet.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ginza-gourmet-pro
Tags: dark, luxury, restaurant, affiliate, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready

Ginza Gourmet Pro is a premium WordPress theme designed for AI-powered affiliate media sites.
Features: REST API support, advanced search filters, Google Maps integration, Ikyu affiliate management.
*/

/* ==========================================================================
   1. CSS Variables (Design System)
   ========================================================================== */

:root {
    /* Primary Colors */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #1a1a1a;
    --color-bg-tertiary: #2a2a2a;
    
    /* Accent Colors */
    --color-gold: #d4af37;
    --color-gold-light: #f4d03f;
    --color-gold-dark: #b8941f;
    
    /* Text Colors */
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #b8b8b8;
    --color-text-tertiary: #808080;
    
    /* CTA Colors */
    --color-cta-primary: #c41e3a;
    --color-cta-hover: #a01828;
    
    /* Border & Divider */
    --color-border: #333333;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif JP', 'Yu Mincho', serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
    line-height: 1.4;
    font-weight: 700;
    color: var(--color-text-primary);
}

h1 { font-size: 2rem; margin-bottom: var(--spacing-md); }
h2 { font-size: 1.75rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.5rem; margin-bottom: var(--spacing-sm); }
h4 { font-size: 1.25rem; margin-bottom: var(--spacing-sm); }

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.05em;
}

.site-logo:hover {
    color: var(--color-gold-light);
}

/* Navigation */
.main-navigation {
    display: flex;
    gap: var(--spacing-md);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text-secondary);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-gold);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ==========================================================================
   6. Search Filter
   ========================================================================== */

.search-filter-wrapper {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-gold);
}

.search-filter-title {
    font-size: 1.25rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.filter-tag {
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.filter-tag:hover,
.filter-tag.active {
    background-color: var(--color-gold);
    color: var(--color-bg-primary);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
}

.filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.filter-select {
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--color-gold);
    outline: none;
}

.filter-submit {
    background: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-cta-hover) 100%);
    color: var(--color-text-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.filter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.5);
}

/* ==========================================================================
   7. Post Grid
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.posts-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   8. Post Card
   ========================================================================== */

.post-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.post-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.post-card-content {
    padding: var(--spacing-md);
}

.post-card-categories {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.post-card-category {
    font-size: 0.75rem;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    line-height: 1.5;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   9. Single Post
   ========================================================================== */

.single-post-header {
    margin-bottom: var(--spacing-xl);
}

.single-post-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.single-post-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--color-text-tertiary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.single-post-featured-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-content p {
    margin-bottom: var(--spacing-md);
}

.single-post-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-gold);
}

.single-post-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.single-post-content li {
    margin-bottom: var(--spacing-xs);
}

/* ==========================================================================
   10. Restaurant Card
   ========================================================================== */

.restaurant-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.restaurant-header {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.restaurant-image {
    width: 200px;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-info {
    flex: 1;
}

.restaurant-name {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-xs);
}

.restaurant-rating {
    color: var(--color-gold-light);
    margin-bottom: var(--spacing-sm);
}

.restaurant-details {
    display: grid;
    gap: var(--spacing-xs);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.restaurant-detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.restaurant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.restaurant-tag {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* ==========================================================================
   11. Ikyu CTA (一休予約ボタン)
   ========================================================================== */

.ikyu-cta-wrapper {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    text-align: center;
}

.ikyu-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.ikyu-price {
    color: var(--color-gold);
    font-size: 1.1rem;
    font-weight: 600;
}

.ikyu-status {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.ikyu-status.available {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.ikyu-cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-cta-hover) 100%);
    color: var(--color-text-primary);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

.ikyu-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.5);
    color: var(--color-text-primary);
}

.ikyu-note {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   12. Google Map
   ========================================================================== */

.google-map-wrapper {
    margin: var(--spacing-xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.google-map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.map-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--color-gold);
    text-decoration: underline;
}

/* ==========================================================================
   13. AdSense
   ========================================================================== */

.adsense-wrapper {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-md);
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.footer-nav a {
    color: var(--color-text-secondary);
}

.footer-nav a:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   15. Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--spacing-lg); }

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   16. Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .single-post-title {
        font-size: 1.8rem;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-secondary);
        border-top: 1px solid var(--color-border);
        padding: var(--spacing-md);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .restaurant-header {
        flex-direction: column;
    }
    
    .restaurant-image {
        width: 100%;
        height: 200px;
    }
    
    .filter-dropdowns {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   17. Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .search-filter-wrapper,
    .adsense-wrapper,
    .ikyu-cta-wrapper {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}
/* ==========================================================================
   記事フレームワーク専用スタイル (Article Framework Styles)
   Version: 1.0.0
   ========================================================================== */

/* 1. 基準明示セクション (Criteria Box) */
.criteria-box {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-left: 4px solid #c9a961;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.criteria-box p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #2c2c2c;
}

.criteria-box ol {
    margin: 15px 0;
    padding-left: 25px;
    counter-reset: criteria-counter;
    list-style: none;
}

.criteria-box ol li {
    margin: 12px 0;
    padding-left: 10px;
    position: relative;
    line-height: 1.8;
    font-weight: 600;
    color: #1a1a2e;
    counter-increment: criteria-counter;
}

.criteria-box ol li:before {
    content: counter(criteria-counter);
    position: absolute;
    left: -25px;
    top: 0;
    width: 24px;
    height: 24px;
    background: #c9a961;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: bold;
}

/* 2. ハイライトリスト (Highlight List) */
.highlight-list,
ul.highlight-list {
    list-style: none;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.highlight-list li {
    padding: 10px 0;
    line-height: 1.8;
    color: #555;
}

.highlight-list li strong {
    color: #c9a961;
    font-weight: 600;
    margin-right: 5px;
}

/* 3. まとめセクション (Summary Section) */
.summary-section {
    margin: 60px 0 40px;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.summary-section h2 {
    color: #c9a961 !important;
    font-size: 26px;
    margin-bottom: 25px;
    border: none !important;
    padding: 0 !important;
}

.summary-section h2:before {
    display: none;
}

.summary-section p {
    line-height: 1.9;
    margin-bottom: 20px;
    color: #fff;
}

.summary-section strong {
    color: #c9a961;
    font-weight: 700;
}

/* 4. 一休ボタン (Ikyu CTA Button) */
.ikyu-button-wrapper {
    margin: 30px 0;
    text-align: center;
}

.ikyu-button {
    display: inline-block;
    padding: 16px 50px;
    background: linear-gradient(135deg, #c9a961 0%, #b89851 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
    position: relative;
    overflow: hidden;
}

.ikyu-button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.ikyu-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.5);
    color: #fff !important;
}

.ikyu-button:hover:before {
    width: 300px;
    height: 300px;
}

.ikyu-button.large {
    padding: 20px 60px;
    font-size: 18px;
}

.ikyu-button:after {
    content: '→';
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.ikyu-button:hover:after {
    transform: translateX(5px);
}

/* 5. 関連記事セクション (Related Articles) */
.related-articles {
    margin: 50px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-articles h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles ul li {
    margin: 15px 0;
    padding-left: 20px;
    position: relative;
}

.related-articles ul li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #c9a961;
    font-weight: bold;
}

.related-articles a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.8;
}

.related-articles a:hover {
    color: #c9a961;
}

/* 6. サブタイトル (Subtitle / Catchcopy) */
.subtitle,
p.subtitle {
    display: block;
    font-size: 16px;
    color: #c9a961;
    font-weight: 600;
    margin: 10px 0 15px;
    line-height: 1.6;
}

/* 7. レスポンシブ対応 */
@media (max-width: 768px) {
    .criteria-box {
        padding: 20px;
    }
    
    .criteria-box ol {
        padding-left: 20px;
    }
    
    .summary-section {
        padding: 25px;
    }
    
    .summary-section h2 {
        font-size: 22px;
    }
    
    .ikyu-button {
        padding: 14px 40px;
        font-size: 15px;
    }
    
    .ikyu-button.large {
        padding: 16px 45px;
        font-size: 16px;
    }
    
    .related-articles {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .criteria-box {
        padding: 15px;
        margin: 20px 0;
    }
    
    .summary-section {
        padding: 20px;
        margin: 40px 0 30px;
    }
    
    .ikyu-button {
        display: block;
        width: 100%;
        padding: 14px 30px;
    }
    
    .ikyu-button.large {
        padding: 16px 35px;
    }
}

/* 8. アクセシビリティ対応 */
.ikyu-button:focus {
    outline: 3px solid #c9a961;
    outline-offset: 3px;
}

.criteria-box ol li:focus,
.related-articles a:focus {
    outline: 2px solid #c9a961;
    outline-offset: 2px;
}

/* End of Article Framework Styles */

/* =============================================
   Google AdSense 表示修正（追加: 2025-12-05）
   ============================================= */

/* AdSense配置エリアを白背景に強制変更 */
.article-content ins.adsbygoogle,
.article-template ins.adsbygoogle,
ins.adsbygoogle {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 20px !important;
    margin: 32px auto !important; /* auto で中央寄せ */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block !important;
    min-height: 250px;
    max-width: 100% !important; /* ★重要: 親要素の幅を超えない */
    width: 100% !important; /* ★重要: 幅を100%に制限 */
    overflow: hidden !important; /* ★重要: はみ出しを防ぐ */
    position: relative;
    isolation: isolate;
    box-sizing: border-box !important; /* ★重要: paddingを内側に含める */
}

/* AdSense枠の上に「スポンサーリンク」表示 */
ins.adsbygoogle::before {
    content: "スポンサーリンク";
    display: block;
    font-size: 12px;
    color: #999999;
    text-align: center;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
}

/* モバイル対応（横幅768px以下） */
@media (max-width: 768px) {
    .article-content ins.adsbygoogle,
    .article-template ins.adsbygoogle,
    ins.adsbygoogle {
        margin: 24px 0 !important; /* 左右マージンを0に */
        border-radius: 4px; /* 角を少し丸く */
        padding: 16px !important; /* paddingを小さく */
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* 超小型デバイス対応（横幅480px以下） */
@media (max-width: 480px) {
    .article-content ins.adsbygoogle,
    .article-template ins.adsbygoogle,
    ins.adsbygoogle {
        padding: 12px !important;
        margin: 20px 0 !important;
        border-radius: 0; /* 角を直角に */
    }
}

/* 記事コンテンツ全体のはみ出し防止 */
.article-content,
.article-template {
    max-width: 100% !important;
    overflow-x: hidden !important; /* 横スクロールを無効化 */
}

/* AdSense内部の要素もはみ出さないように */
ins.adsbygoogle * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ダークテーマの影響を完全に排除 */
.article-template ins.adsbygoogle * {
    background: transparent !important;
}

/* style.css に追加 */
@import url('path/to/07_affiliate_button_styles.css');
