/* common.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');
:root {
    --primary-green: #16a34a; --dark-green: #15803d; --light-green: #22c55e; --accent-yellow: #f59e0b; --light-yellow: #fbbf24;
    --premium-gold: #D4AF37;
    --text-dark: #1f2937; --text-gray: #6b7280; --text-light: #9ca3af; --bg-white: #ffffff; --bg-gray: #f9fafb; --bg-light-gray: #f3f4f6;
    --border-gray: #e5e7eb; --shadow: rgba(0, 0, 0, 0.1);
    --rakuten-red: #BF0000; --rakuten-red-dark: #a60000; --amazon-orange: #FF9900; --amazon-orange-dark: #CC6600; --yahoo-purple: #5F00A3; --yahoo-purple-dark: #4d0084;
    --favorite-red: #e53e3e; --discount-blue: #007bff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; line-height: 1.8; color: var(--text-dark); background-color: var(--bg-white); }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-dark); }
.section-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-gray); margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-gray); position: sticky; top: 0; z-index: 1000; }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.logo img { height: 50px; width: auto; }
nav ul { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
nav a { color: var(--text-dark); text-decoration: none; font-weight: 500; padding: 0.5rem 1rem; border-radius: 6px; transition: all 0.3s ease; }
nav a:hover { background-color: #f3f4f6; color: var(--primary-green); }

.article-slider-component { padding: 4rem 0; background-color: var(--bg-gray); }
.hero-articles-slider { position: relative; max-width: 1000px; margin-left: auto; margin-right: auto; padding: 0 50px; }
.hero-articles-container { overflow: hidden; }
.hero-articles-grid { display: flex; gap: 1rem; transition: transform 0.5s ease-in-out; }
.article-slider-component .hero-article-card {
    flex: 0 0 calc(100% / 3 - 1rem);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    text-decoration: none !important;
    border: none !important;
    padding: 0 !important;
}
.article-slider-component .hero-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    text-decoration: none !important;
}
.article-slider-component .hero-article-card-image {
    width: 100%;
    height: 160px;
    background-color: var(--bg-light-gray);
}
.article-slider-component .hero-article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-slider-component .hero-article-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.article-slider-component .hero-article-card-category {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}
.article-slider-component .hero-article-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    transition: color 0.3s ease;
    color: var(--text-dark) !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none !important;
}
.article-slider-component .hero-article-card:hover .hero-article-card-title {
    color: var(--primary-green) !important;
}
.slider-btn { position: absolute; top: 40%; transform: translateY(-50%); background-color: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 24px; cursor: pointer; z-index: 10; transition: background-color 0.2s; }
.slider-btn:hover { background-color: rgba(0,0,0,0.8); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.image-gallery-component { margin: 30px 0; }
.gallery-title { font-size: 1.5rem; border-left: 5px solid var(--primary-green); padding-left: 15px; margin-bottom: 20px; }
.image-gallery-container { display: flex; overflow-x: auto; gap: 15px; padding: 15px; background: var(--bg-gray); border-radius: 8px; scrollbar-width: thin; scrollbar-color: var(--primary-green) var(--border-gray); }
.image-gallery-container::-webkit-scrollbar { height: 8px; }
.image-gallery-container::-webkit-scrollbar-track { background: var(--border-gray); border-radius: 4px; }
.image-gallery-container::-webkit-scrollbar-thumb { background-color: var(--primary-green); border-radius: 4px; }
.gallery-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 160px;
    height: 160px;
    background-color: white;
    padding: 8px;
}
.gallery-image-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.image-gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

footer { background: var(--text-dark); color: white; padding: 4rem 0 2rem; margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.2rem; color: white; }
.footer-section p { color: #d1d5db; font-size: 0.9rem; }
.footer-section a { color: #d1d5db; text-decoration: none; margin-bottom: 0.8rem; display: block; transition: color 0.3s ease; font-size: 0.95rem; }
.footer-section a:hover { color: var(--light-green); }
.footer-about .footer-logo img { height: 40px; width: auto; max-width: 100%; margin-bottom: 1rem; }
.footer-bottom { padding-top: 2rem; text-align: center; color: #9ca3af; }
.affiliate-notice-footer { background: #2b3546; border-radius: 8px; padding: 1.5rem; margin: 0 auto 2.5rem auto; max-width: 800px; text-align: left; color: #9ca3af; font-size: 0.85rem; border: 1px solid #374151; }
.affiliate-notice-footer p { margin: 0; line-height: 1.6; }
.affiliate-notice-footer strong { color: #d1d5db; display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }

.product-card { background: var(--bg-white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px var(--shadow); transition: all 0.3s ease; border: 1px solid var(--border-gray); display: flex; flex-direction: column; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.product-image-container { width: 100%; padding-top: 100%; background: var(--bg-light-gray); position: relative; }
.product-image-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-badge { position: absolute; top: 1rem; left: 1rem; color: white; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; z-index: 2; }
.product-badge.rakuten { background: var(--rakuten-red); } .product-badge.amazon { background: var(--amazon-orange); } .product-badge.yahoo { background: var(--yahoo-purple); }
.custom-badge { position: absolute; top: 1rem; right: 1rem; background: linear-gradient(45deg, var(--discount-blue), #60a5fa); color: white; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.8rem; font-weight: 700; z-index: 3; }
.favorite-btn { position: absolute; top: 3.5rem; right: 1rem; font-size: 2rem; cursor: pointer; color: var(--text-light); transition: color 0.2s ease, transform 0.2s ease; z-index: 2; }
.favorite-btn:hover { transform: scale(1.2); }
.favorite-btn.favorited { color: var(--favorite-red); }
.product-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-category { color: var(--text-light); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5rem; }
.product-title-link { text-decoration: none; color: var(--text-dark); transition: color 0.2s ease; }
.product-title-link:hover { color: var(--primary-green); }
.product-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.8rem; line-height: 1.4; min-height: 50px; }
.product-footer { margin-top: auto; padding-top: 1rem; }
.price-container { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--text-dark); }
.price-discount-badge { background-color: var(--discount-blue); color: white; padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.product-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.store-btn, .calculator-btn { color: white; padding: 0.8rem 1.5rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.9rem; width: 100%; }
.store-btn:hover, .calculator-btn:hover { transform: translateY(-1px); }
.store-btn.rakuten { background: var(--rakuten-red); } .store-btn.rakuten:hover { background: var(--rakuten-red-dark); }
.store-btn.amazon { background: var(--primary-green); } .store-btn.amazon:hover { background: var(--dark-green); }
.store-btn.yahoo { background: var(--yahoo-purple); } .store-btn.yahoo:hover { background: var(--yahoo-purple-dark); }
.calculator-btn { background: var(--dark-green); } .calculator-btn:hover { background: var(--light-green); }
.collapsible-content { max-height: 4.8em; overflow: hidden; transition: max-height 0.5s ease-in-out; position: relative; line-height: 1.6; margin-bottom: 0.5rem; }
.collapsible-content p { font-size: 0.9rem; color: var(--text-gray); margin: 0; }
.collapsible-content.expanded { max-height: 1000px; }
.collapsible-content:not(.expanded)::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.5rem; background: linear-gradient(to top, white, rgba(255,255,255,0)); }
.toggle-details-btn { background: none; border: none; color: var(--primary-green); font-weight: 700; cursor: pointer; padding: 0.5rem 0; align-self: flex-start; }
.toggle-details-btn:hover { text-decoration: underline; }

.promo-box { border-radius: 8px; padding: 1rem; margin-top: 1rem; font-size: 0.9rem; }
.promo-box.amazon-promo { background-color: rgba(255, 153, 0, 0.05); border: 1px dashed var(--amazon-orange); }
.promo-box.rakuten-promo { background-color: rgba(191, 0, 0, 0.05); border: 1px dashed var(--rakuten-red); }
.promo-box.yahoo-promo { background-color: rgba(95, 0, 163, 0.05); border: 1px dashed var(--yahoo-purple); }
.promo-box ul { list-style: none; padding-left: 0; margin: 0; }
.promo-box li { margin-bottom: 0.5rem; font-size: 0.9em; display: flex; align-items: center; }
.promo-box input[type="checkbox"] { margin-right: 0.5rem; flex-shrink: 0; }
.promo-box a { font-weight: 700; text-decoration: none; } .promo-box a:hover { text-decoration: underline; }
.amazon-promo a { color: var(--amazon-orange-dark); }
.rakuten-promo a { color: var(--rakuten-red); }
.yahoo-promo a { color: var(--yahoo-purple); }
.promo-box .promo-value { font-weight: 700; }
.amazon-promo .promo-value { color: var(--amazon-orange-dark); }
.rakuten-promo .promo-value { color: var(--rakuten-red); }
.yahoo-promo .promo-value { color: var(--yahoo-purple); }
.promo-footer { margin-top: 1rem; padding-top: 1rem; text-align: center; }
.amazon-promo .promo-footer { border-top: 1px solid rgba(255, 153, 0, 0.2); }
.rakuten-promo .promo-footer { border-top: 1px solid rgba(191, 0, 0, 0.2); }
.yahoo-promo .promo-footer { border-top: 1px solid rgba(95, 0, 163, 0.2); }
.effective-price-container { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; }
.real-price-text { display: flex; align-items: baseline; }
.promo-footer .real-price, .calculator-result .real-price { font-size: 1.5rem; font-weight: 900; }
.amazon-promo .real-price, .modal-content.amazon .real-price { color: var(--amazon-orange-dark); }
.rakuten-promo .real-price, .modal-content.rakuten .real-price { color: var(--rakuten-red); }
.yahoo-promo .real-price, .modal-content.yahoo .real-price { color: var(--yahoo-purple); }
.promo-footer .real-price span, .calculator-result .real-price span { font-size: 1rem; font-weight: 500; color: var(--text-dark); }
@keyframes point-animation { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.pointing-finger { display: inline-block; animation: point-animation 0.8s ease-in-out infinite; margin-right: 5px; font-style: normal; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 2000; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg-gray); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 100%; max-width: 550px; position: relative; transform: scale(0.95); transition: transform 0.3s ease-out; display: flex; flex-direction: column; max-height: 90vh; }
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-gray); position: relative; flex-shrink: 0; }
.modal-close-btn { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-light); line-height: 1; }
.modal-header h3 { font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--text-dark); padding-right: 2rem; }
.modal-header p { font-size: 1rem; color: var(--text-gray); margin: 0; font-weight: 500; }
.modal-body { overflow-y: auto; padding: 1.5rem 2rem; flex-grow: 1; min-height: 0; }
.calculator-form { display: flex; flex-direction: column; gap: 1.5rem; }
.calculator-form label { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }
.calculator-form input { width: 100%; padding: 0.8rem 1rem; font-size: 1rem; border-radius: 8px; border: 1px solid var(--border-gray); transition: border-color 0.2s, box-shadow 0.2s; }
.calculator-form input:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); }
.modal-footer { padding: 1.5rem 2rem; background-color: var(--bg-white); border-top: 1px solid var(--border-gray); border-radius: 0 0 12px 12px; flex-shrink: 0; }
#calculate-real-cost-btn, #recalculate-btn { color: white; width: 100%; padding: 1rem; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background 0.3s; }
.modal-content.rakuten #calculate-real-cost-btn { background: var(--rakuten-red); } .modal-content.rakuten #calculate-real-cost-btn:hover { background: var(--rakuten-red-dark); }
.modal-content.amazon #calculate-real-cost-btn { background: var(--amazon-orange); } .modal-content.amazon #calculate-real-cost-btn:hover { background: var(--amazon-orange-dark); }
.modal-content.yahoo #calculate-real-cost-btn { background: var(--yahoo-purple); } .modal-content.yahoo #calculate-real-cost-btn:hover { background: var(--yahoo-purple-dark); }
.calculator-result { margin-bottom: 1.5rem; }
#real-cost-result-container { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; background: var(--bg-light-gray); padding: 1rem; border-radius: 8px; }
#calculation-formula-container { font-size: 0.9rem; color: var(--text-gray); margin-top: 1rem; background-color: var(--bg-white); padding: 0.75rem; border-radius: 6px; border: 1px solid var(--border-gray); text-align: center; }
#calculation-formula { word-break: break-all; margin: 0; font-weight: 500; }
#calculation-formula .formula-unit { font-size: 0.8em; margin-left: 2px; }
#calculation-details { font-size: 0.8rem; color: var(--text-light); margin-top: 0.5rem; border-top: 1px dashed var(--border-gray); padding-top: 0.5rem; margin-bottom: 0; }
#modal-affiliate-link-container { margin-top: 1rem; }
#modal-campaigns { background-color: var(--bg-white); border-radius: 8px; padding: 1rem; border: 2px solid var(--border-gray); }
#modal-campaigns h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; text-align: left; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-gray); }
#modal-campaigns ul { list-style: none; padding: 0; margin: 0; }
#modal-campaigns li { font-size: 0.9rem; margin-bottom: 0.75rem; display: flex; align-items: center; }
#modal-campaigns li:last-child { margin-bottom: 0; }
#modal-campaigns input[type="checkbox"] { margin-right: 0.75rem; flex-shrink: 0; width: 1.2em; height: 1.2em; }
#modal-campaigns a { color: var(--text-dark); text-decoration: none; }
#modal-campaigns a:hover { text-decoration: underline; }
.modal-content.rakuten #modal-campaigns { border-color: var(--rakuten-red); } .modal-content.rakuten #modal-campaigns h4 { color: var(--rakuten-red); border-bottom-color: rgba(191, 0, 0, 0.2); } .modal-content.rakuten #modal-campaigns .promo-value { color: var(--rakuten-red); }
.modal-content.amazon #modal-campaigns { border-color: var(--amazon-orange); } .modal-content.amazon #modal-campaigns h4 { color: var(--amazon-orange-dark); border-bottom-color: rgba(255, 153, 0, 0.2); } .modal-content.amazon #modal-campaigns .promo-value { color: var(--amazon-orange-dark); }
.modal-content.yahoo #modal-campaigns { border-color: var(--yahoo-purple); } .modal-content.yahoo #modal-campaigns h4 { color: var(--yahoo-purple); border-bottom-color: rgba(95, 0, 163, 0.2); } .modal-content.yahoo #modal-campaigns .promo-value { color: var(--yahoo-purple); }
#recalculate-btn { background: none; border: 2px solid var(--primary-green); color: var(--primary-green); padding: 0.6rem 1.5rem; font-weight: 700; margin-top: 1.5rem; display: inline-block; width: auto; }
#recalculate-btn:hover { background: var(--primary-green); color: white; }

/* ポイ活・裏ワザエリアのスタイル */
.extra-promo-box {
    background-color: #f3f4f6;
    border: 2px dashed var(--primary-green);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin: 0 1.5rem 1.5rem 1.5rem;
}
.extra-promo-box .extra-promo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 0.5rem 0;
}
.extra-promo-box .extra-promo-text {
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}
.extra-promo-box .extra-promo-cta {
    display: inline-block;
    background-color: #ff7f27;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.extra-promo-box .extra-promo-cta:hover {
    background-color: #e66a1a;
}

/* キャンペーンボックスのヘッダースタイル */
.promo-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.promo-box-header p {
    margin: 0;
    flex-grow: 1;
    font-weight: 700;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-dark);
}
.tooltip-trigger {
    font-style: normal;
    font-weight: bold;
    color: var(--primary-green);
    background-color: rgba(22, 163, 74, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    flex-shrink: 0;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

/* ページトップへ戻るボタンのスタイル */
#page-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    background-color: var(--primary-green);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    text-decoration: none;
}
#page-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#page-top-btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

/* =================================== */
/* Responsive & Hamburger Menu Styles  */
/* =================================== */

/* --- ハンバーガーメニューボタンの基本スタイル --- */
.menu-btn {
    display: none; /* PCでは非表示 */
    position: relative;
    z-index: 1010;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 6px auto;
    transition: all 0.4s;
    border-radius: 2px;
}

/* モーダルウィンドウのタイトルを2行で省略 */
#modal-product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* ← この標準プロパティを追加 */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em;
}

/* --- スマホ表示（768px以下）でのスタイル --- */
@media (max-width: 768px) {
    /* ヘッダー: ハンバーガーメニュー対応 */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }
    .logo img {
        height: 40px;
        margin-bottom: 0;
    }
    .menu-btn {
        display: block;
    }

    /* ナビゲーションメニュー（スマホ用） */
    #global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
    }
    #global-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    #global-nav a {
        font-size: 1.2rem;
        font-weight: 700;
        padding: 1rem;
    }

    /* メニューが開いた時のスタイル */
    body.is-nav-open #global-nav {
        opacity: 1;
        visibility: visible;
    }
    body.is-nav-open .menu-btn span:nth-of-type(1) {
        transform: translateY(9px) rotate(45deg);
    }
    body.is-nav-open .menu-btn span:nth-of-type(2) {
        opacity: 0;
    }
    body.is-nav-open .menu-btn span:nth-of-type(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    body.is-nav-open {
        overflow: hidden;
    }

    /* --- ここから下はヘッダー以外のスマホ対応スタイルです --- */

    /* 全体のレイアウトとタイポグラフィ */
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .container, .container-wide { padding-left: 15px; padding-right: 15px; }

    /* 記事スライダー */
    .article-slider-component { padding: 2.5rem 0; }
    .hero-articles-slider { padding: 0 40px; }
    .article-slider-component .hero-article-card { flex: 0 0 100%; }
    .slider-btn { width: 35px; height: 35px; font-size: 20px; top: 40%; }
    .slider-btn.prev { left: 5px; }
    .slider-btn.next { right: 5px; }

    /* 商品カード */
    .product-title { font-size: 1.1rem; min-height: auto; }
    .product-info { padding: 1rem; }

    /* フッター */
    footer { padding: 3rem 0 1.5rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-section a, .footer-section p { margin-left: auto; margin-right: auto; }
    .affiliate-notice-footer { padding: 1rem; font-size: 0.8rem; }
    
    /* モーダルウィンドウ */
    .modal-content { max-height: 85vh; margin: 1rem; }
    .modal-header, .modal-body, .modal-footer { padding: 1.25rem; }
    .modal-header h3 { font-size: 1.1rem; }

    /* ページトップへ戻るボタン */
    #page-top-btn { width: 45px; height: 45px; bottom: 20px; right: 20px; }

    /* キャンペーンセクションのタブ */
    .campaign-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
        margin-bottom: -10px;
    }
    .campaign-tabs::-webkit-scrollbar { display: none; }
}
