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

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-size: 18px;
    text-align: left;
}

/* ヘッダー */
header {
    background-color: #f5f5f5;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #333;
}

header h1 {
    font-size: 28px;
    color: #333;
    margin: 10px 0;
}

/* メインレイアウト */
.main-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 20px 0;
    position: relative;
}

/* LPページ用 2カラムレイアウト */
.main-layout-lp {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-layout-lp .main-content {
    flex: 1;
    min-width: 0;
}

/* サイドバー（PC用） */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: scroll;
    scrollbar-gutter: stable; /* 右側のみスクロールバーのスペースを確保 */
}

/* サイドバーのスクロールバーをオーバーレイ表示（ホバー時に表示） */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

/* ホバー時にスクロールバーを表示 */
.sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
}

.sidebar:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Firefox用 */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.sidebar:hover {
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-product-image {
    width: 100%;
    height: auto;
    margin: 0 0 10px 0;
    display: block;
    border-radius: 0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: #2d5f2d;
    line-height: 1.4;
    margin: 0;
    display: none;
}

.sidebar-subtitle {
    background-color: #a8d8f0;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #1e4d6b;
    margin: 0 0 15px 0;
}

.sidebar-products {
    display: flex;
    flex-direction: column;
}

.sidebar-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    background-color: transparent;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.sidebar-product-item:last-child {
    border-bottom: none;
}

.sidebar-product-thumb {
    width: 60px;
    height: auto;
    flex-shrink: 0;
    display: block;
    border-radius: 0;
}

.sidebar-product-name {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* サイドバー：人気の記事 */
.sidebar-articles {
    display: flex;
    flex-direction: column;
}

.sidebar-article-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    background-color: transparent;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
}

.sidebar-article-item:last-child {
    border-bottom: none;
}

.sidebar-article-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: block;
    border-radius: 0;
    object-fit: cover;
}

.sidebar-article-title {
    font-size: 12px;
    font-weight: normal;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* モバイル用商品リスト（下部） */
.mobile-products {
    display: none;
    background-color: #f0f8f0;
    padding: 30px 20px;
    margin-top: 40px;
}

.mobile-products-title {
    background-color: #a8d8f0;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #1e4d6b;
    margin: 0 0 20px 0;
}

.mobile-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.mobile-product-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mobile-product-image {
    width: 100%;
    height: auto;
    margin: 0 auto 10px;
    display: block;
    border-radius: 6px;
}

.mobile-product-name {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* レスポンシブ（LPページ用） */
@media (max-width: 1024px) {
    .main-layout-lp {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .mobile-products {
        display: none;
    }
}

/* セクション */
section {
    margin: 60px 0;
    padding: 40px 0;
    width: 100%;
}

.main-content > section:first-child {
    margin-top: 0;
    padding-top: 0;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid #333;
    padding-bottom: 10px;
}

/* ヒーローセクション */
.hero {
    background: #f5f5f5 url('https://limonium3.com/wp-content/uploads/bg_pc.webp') center/cover no-repeat;
    min-height: 500px;
    padding: 0;
    margin: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
    position: relative;
    padding: 0;
}

.hero-left {
    flex: 1;
    padding: 40px 30px;
    display: none;
    flex-direction: column;
    justify-content: center;
}

.hero-right {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.pr-badge {
    position: absolute;
    top: 2px;
    right: 18px;
    color: #000000;
    font-size: 20px;
    font-weight: normal;
    z-index: 10;
}

.badge {
    display: inline-block;
    background-color: #2c5f8d;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
    width: fit-content;
}

.hero-title {
    font-size: 36px;
    font-weight: bold;
    color: #2c5f8d;
    margin: 10px 0 30px 0;
    line-height: 1.3;
}

.products-row {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: flex-start;
}

.product-box {
    flex: 1;
    aspect-ratio: 4 / 5;
    background-color: #d0d0c8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
    border: 1px solid #b8b8b0;
}

.btn-hero {
    background-color: #ff8c42;
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
    background-color: #ff7730;
}

/* CTAボタンラッパー */
.cta-button-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.btn-hero-main {
    position: absolute;
    bottom: 20px;
    left: 40px;
    width: 40%;
    background-color: #ff8c42;
    color: #fff;
    border: none;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(255, 140, 66, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-hero-main span:nth-of-type(2) {
    display: none;
}

.btn-hero-main::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.btn-hero-main:hover {
    background-color: #ff7730;
    box-shadow: 0 8px 20px rgba(255, 119, 48, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        min-height: initial;
    }

    .hero-content {
        flex-direction: column;
        min-height: initial;
    }

    .hero-right {
        min-height: 300px;
    }

    .products-row {
        flex-wrap: wrap;
    }

    .cta-button-wrapper {
        margin: 0 auto;
        text-align: center;
    }

    .btn-hero-main {
        margin: 0 auto;
        width: 90%;
        right: 0;
        left: 0;
        bottom: 10px;
        font-size: 14px;
        padding: 15px 35px;
    }

    .btn-hero-main span:nth-of-type(1) {
        display: none;
    }

    .btn-hero-main span:nth-of-type(2) {
        display: inline;
    }
}

/* ボタン */
.btn {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #555;
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
    margin-top: 20px;
}

/* セクション2：検索機能 */
.search-box {
    background-color: #d3e9f5;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* 検索結果ページ用の余白 */
.search-results-page .search-box {
    margin-top: 40px;
}

.search-header {
    background-color: #d3e9f5;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-header:hover {
    background-color: #c5dff0;
}

.search-header p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.search-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.search-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.search-content.active {
    max-height: 2000px;
}

.search-form {
    background-color: #f5f5f5;
    padding: 30px;
}

.search-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

.search-row:last-of-type {
    border-bottom: none;
}

.search-label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    background-color: #e0e0e0;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
}

.search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.search-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.search-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5eb9e0;
    flex-shrink: 0;
    margin: 0;
    pointer-events: auto;
    appearance: auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
}

.search-button-wrapper {
    text-align: center;
    margin-top: 30px;
}

.search-submit-btn {
    background-color: #5eb9e0;
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-submit-btn:hover {
    background-color: #4da8cf;
}

/* 検索ボックス：レスポンシブ対応 */
@media (max-width: 768px) {
    .search-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-label {
        text-align: left;
    }

    .search-options {
        flex-direction: column;
        gap: 10px;
    }

    .search-form {
        padding: 20px;
    }

    .search-submit-btn {
        width: 100%;
        padding: 15px 30px;
    }
}

/* セクション3：課題提示 */
.problem-section {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
}

.speech-bubble {
    display: inline-block;
    background-color: #e8e8e8;
    color: #333;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 15px;
    margin: 20px 0 10px 0;
    position: relative;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e8e8e8;
}

.problem-text {
    font-size: 16px;
    color: #666;
    margin: 10px 0 30px 0;
}

.age-bone-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
    line-height: 1.6;
}

.highlight-orange {
    background: linear-gradient(transparent 60%, #ff9966 60%);
    padding: 2px 4px;
}

.graph-intro {
    text-align: center;
    margin: 20px 0 0 0;
}

.graph-intro-image {
    width: 100%;
    height: auto;
    display: block;
}

.graph-section {
    background-color: #fff;
    padding: 0;
    margin: 0 0 30px 0;
    width: 100%;
    text-align: center;
}

.graph-image {
    width: 100%;
    height: auto;
    display: block;
}

.graph-description {
    margin: 30px 0;
    padding: 0;
    text-align: center;
}

.graph-desc-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.desc {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.desc-bold {
    font-weight: bold;
}

.desc-highlight {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
    padding: 2px 4px;
}

.desc-highlight-large {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
    padding: 2px 4px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.desc-highlight-large {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
    padding: 2px 4px;
    font-size: 35px;
    font-weight: bold;
}

.desc-red-bold {
    color: #ff0000;
    font-weight: bold;
}

.graph-desc-image {
    flex: 0 0 25%;
    max-width: 300px;
}

.graph-desc-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .graph-desc-content {
        flex-direction: column;
    }

    .desc {
        text-align: left;
    }

    .graph-desc-image {
        display: none;
    }
}

.warning-section {
    margin: 40px auto;
    max-width: 600px;
}

.warning-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.warning-highlight {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background: linear-gradient(transparent 60%, #ffcc00 60%);
    display: inline-block;
    padding: 2px 8px;
    margin: 10px 0;
}

.warning-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* セクション3.5：サプリメント提案 */
.supplement-suggestion {
    text-align: center;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin: 40px 0;
}

.highlight-red {
    color: #ff0000;
    font-weight: bold;
}

.highlight-red-box {
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 2px 8px;
    display: inline-block;
}

/* まとめセクション */
.summary-content-box {
    margin: 40px 0;
    padding: 0 20px;
}

.summary-warning {
    text-align: center;
    margin-bottom: 30px;
}

.summary-warning-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.summary-warning-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background: linear-gradient(transparent 60%, #ffcc00 60%);
    display: inline-block;
    padding: 2px 8px;
    margin: 10px 0;
}

.summary-warning-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.summary-suggestion {
    text-align: left;
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin: 30px 0;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 40px 0;
}

.summary-cause-title-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.summary-cause-title-top {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.summary-cause-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    line-height: 1.6;
}

.summary-cause-points {
    margin: 0 auto 30px;
    text-align: center;
    max-width: 650px;
}

.summary-cause-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.summary-explanation {
    margin: 30px 0;
}

.summary-explanation p {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: left;
}

.summary-explanation-text p {
    margin: 10px 0;
}

.summary-explanation-text {
    line-height: 1.8;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.summary-list li {
    margin-bottom: 12px;
    padding-left: 12px;
    position: relative;
}

.summary-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: inherit;
}

.summary-list-box {
    border: none;
    background-color: #165b81;
    padding: 14px 14px;
    margin: 0 0 30px 0;
    width: 100%;
    text-align: left;
}

.summary-list-box .summary-list {
    margin: 0;
    text-align: left;
}

.summary-list-box li {
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    text-align: left;
    padding-left: 0;
    margin: 0;
}

.summary-list-box li::before {
    content: none;
}

.summary-list-box .highlight-yellow-text {
    color: #fed600;
    font-weight: bold;
}

.summary-explanation-text p {
    margin-bottom: 16px;
}

.summary-explanation-text p:last-child {
    margin-bottom: 0;
}

.summary-arrow-wrapper {
    text-align: center;
    margin: 30px 0;
}

.summary-arrow-text {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.summary-arrow-icon {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 30px solid #ff9933;
    margin: 0 auto;
}

.summary-solution {
    text-align: left;
    margin-top: 30px;
}

.summary-solution-text {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin: 15px 0;
}

.summary-solution-text .bold-text {
    font-weight: bold;
}

.summary-solution-highlight {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin: 15px 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .summary-content-box {
        padding: 0;
    }
}

/* セクション4：原因解説 */
.cause-section-wrapper {
    text-align: center;
    padding: 40px 0;
}

.cause-main-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
}

.cause-highlight-box {
    color: #ff0000;
    padding: 2px 10px;
    display: inline;
    background: linear-gradient(transparent 70%, #ffeb3b 70%);
    font-size: 36px;
    font-weight: bold;
}

.cause-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 40px;
    align-items: start;
}

.cause-main-left {
    text-align: left;
}

.cause-reasons-box {
    background-color: #1e4d6b;
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin: 0 auto 30px;
    position: relative;
    font-size: 18px;
    font-weight: bold;
    max-width: 600px;
    text-align: center;
}

.cause-reason-item {
    margin: 15px 0;
}

.cause-dot {
    color: #fff;
    margin-right: 5px;
}

.cause-reason-text {
    color: #fff;
}

.highlight-yellow-text {
    color: #ffcc00;
}

.cause-arrow-down {
    position: absolute;
    bottom: -25px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 25px solid #ffcc00;
}

.cause-explanation {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}

.cause-explanation p {
    margin: 10px 0;
}

.cause-main-right {
    display: flex;
    justify-content: center;
}

.bone-state-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.transition-arrow-wrapper {
    text-align: center;
    margin: 40px 0 20px;
}

.transition-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.transition-arrow-icon {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #ff9933;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cause-main-content {
        grid-template-columns: 1fr;
    }
}

/* セクション4.5：補足説明 */
.supplement-info {
    text-align: center;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin: 20px 0;
}

.highlight-yellow-bg {
    background: linear-gradient(transparent 60%, #ffcc00 60%);
    padding: 2px 4px;
    font-weight: bold;
}

/* セクション5：選ぶポイント */
.points-section {
    padding: 0;
}

.points-hero {
    width: 100%;
    overflow: hidden;
}

.points-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.points-title-box {
    background-color: #a8d8f0;
    padding: 20px;
    text-align: center;
    margin: 0;
}

.points-title {
    font-size: 22px;
    font-weight: bold;
    color: #1e4d6b;
    margin: 0;
}

.highlight-orange-text {
    color: #ff6600;
}

.points-list {
    padding: 40px 0;
    margin: 0 auto;
    width: 100%;
}

.point-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
}

.point-card:nth-child(even) .point-left {
    order: 2;
}

.point-card:nth-child(even) .point-right {
    order: 1;
}

.point-label {
    color: #1e4d6b;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.point-num {
    font-size: 36px;
    margin-left: 5px;
}

.point-heading {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.point-text {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
}

.point-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 10px 10px 0px #dff2fe;
}

@media (max-width: 768px) {
    .point-card {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .point-card.reverse {
        direction: ltr;
    }
}

/* セクション6：比較表 */
.comparison-section {
    background-color: rgba(220, 241, 251, 1);
    background-image: repeating-linear-gradient(135deg, transparent, transparent 3px, rgba(227, 244, 252, 1) 3px, rgba(227, 244, 252, 1) 6px);
    padding: 20px 10px;
}

.comparison-header {
    text-align: center;
    background-color: #fff;
    padding: 20px 20px 10px 20px;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 20px;
}

.comparison-subtitle {
    font-size: 24px;
    color: #1b5a79;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1;
}

.comparison-title {
    font-size: 24px;
    font-weight: bold;
    color: #1b5a79;
}

.highlight-orange-large {
    color: #ff6600;
    font-size: 36px;
}

.comparison-title-box {
    text-align: center;
    margin-bottom: 20px;
}

.comparison-table-title-image {
    width: 80%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.highlight-yellow-large {
    background-color: #ffeb3b;
    padding: 2px 8px;
}

/* デスクトップ用テーブル */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.comparison-table-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 固定ヘッダーのスクロールバーを非表示 */
.sticky-header-wrapper {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.sticky-header-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.new-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 13px;
    table-layout: fixed;
}

.new-comparison-table th,
.new-comparison-table td {
    border: 1px solid #ddd;
    padding: 15px 10px;
    text-align: center;
    vertical-align: top;
}

.new-comparison-table thead th {
    background-color: #fff;
    font-weight: normal;
    padding-top: 15px;
    vertical-align: top;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.new-comparison-table .row-header {
    background-color: #fff;
    font-weight: bold;
    font-size: 12px;
    width: 100px;
    vertical-align: middle;
}

.rank-1-col {
    background-color: #fffbf0;
    border: 3px solid #ffd700 !important;
    vertical-align: middle !important;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e4d6b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.rank-badge.gold {
    background-color: #ffd700;
    color: #333;
}

.rank-badge.silver {
    background-color: #c0c0c0;
    color: #333;
}

.rank-badge.bronze {
    background-color: #cd7f32;
    color: #fff;
}

.rank-medal {
    width: 50px;
    height: 50px;
    display: block;
    margin: 0 auto;
}

.rank-medal-large {
    width: 60px;
    height: 60px;
    display: block;
}

.product-image-small {
    width: 80px;
    height: auto;
    margin: 10px auto;
    display: block;
}

.product-name {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.3;
}

.rating {
    color: #ff9900;
    font-size: 14px;
    margin-bottom: 5px;
}

.rating.red {
    color: #ff0000;
}

.rating-num {
    font-size: 16px;
    font-weight: bold;
}

.circle-icon {
    font-size: 32px;
    margin-bottom: 5px;
    display: block;
    height: 32px;
    line-height: 32px;
}

.circle-icon.red {
    color: #ff0000;
}

.circle-icon.green {
    color: #4caf50;
}

.double-circle-icon {
    font-size: 32px;
    margin-bottom: 5px;
    display: block;
    height: 32px;
    line-height: 32px;
}

.double-circle-icon.orange {
    color: #ff9900;
}

.triangle-icon {
    font-size: 28px;
    color: #2196f3;
    margin-bottom: 5px;
    display: block;
    height: 32px;
    line-height: 32px;
}

.dash-icon {
    font-size: 24px;
    color: #999;
    margin-bottom: 5px;
    display: block;
    height: 32px;
    line-height: 32px;
}

.cross-icon {
    font-size: 28px;
    color: #ccc;
    margin-bottom: 5px;
    display: block;
    height: 32px;
    line-height: 32px;
}

.amount-text,
.ingredient-text,
.price-text {
    font-size: 12px;
    line-height: 1.6;
    display: block;
}

.rank-1-col .amount-text,
.rank-1-col .ingredient-text,
.rank-1-col .price-text,
.rank-1-col .guarantee-text {
    color: #ff0000;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: #ffeb3b;
    text-decoration-thickness: 3px;
    text-underline-offset: 2px;
}

.rank-1-col .amount-text small {
    color: #ff0000;
    font-weight: bold;
}

.large-price {
    font-size: 18px;
}

.large-rating {
    font-size: 36px;
}

.rank1-only .large-price {
    color: #ff0000;
    font-weight: bold;
}

.rank1-only .large-rating {
    color: #ff0000;
    font-weight: bold;
}

.rank1-detail-table.rank1-only .table-content {
    color: #ff0000;
    font-weight: bold;
}

.rank1-detail-table.rank1-only td .table-content small {
    color: #ff0000;
    font-weight: bold;
}

.rank1-detail-table.rank1-only .table-icon {
    color: #ff0000;
}

.discount-red {
    color: #ff0000;
    font-weight: bold;
}

.text-bold {
    font-weight: bold;
    font-size: 13px;
}

.small-text {
    font-size: 12px;
    color: #666;
    display: block;
}

.red-text {
    color: #ff0000;
    font-weight: bold;
}

.guarantee-text {
    font-size: 13px;
    line-height: 1.6;
}

.stars {
    font-size: 16px;
    color: #333;
}

.stars.red {
    color: #ff0000;
}

.official-btn {
    display: inline-block;
    background-color: #4caf50;
    color: #fff;
    padding: 10px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
    position: relative;
    margin-top: 10px;
}

.official-btn:hover {
    background-color: #45a049;
}

.official-btn.rank-1-btn {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    animation: bounce 0.6s ease-in-out infinite;
}

.official-btn.rank-1-btn:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ff5500 100%);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.btn-discount {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff0000;
    color: #fff;
    border-radius: 3px;
    padding: 6px 10px;
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
    min-width: 80px;
}


/* TOP5/TOP3の切り替え */
.top-number-sp {
    display: none;
}

@media (max-width: 768px) {
    /* テーブルの4位と5位を非表示 */
    .new-comparison-table th:nth-child(5),
    .new-comparison-table th:nth-child(6),
    .new-comparison-table td:nth-child(5),
    .new-comparison-table td:nth-child(6) {
        display: none;
    }

    /* TOP5をTOP3に切り替え */
    .top-number-pc {
        display: none;
    }

    .top-number-sp {
        display: inline;
    }

    /* 横幅調整 */
    .new-comparison-table {
        font-size: 11px;
    }

    .new-comparison-table th,
    .new-comparison-table td {
        padding: 10px 5px;
    }

    .new-comparison-table .row-header {
        width: 70px;
        font-size: 10px;
        padding: 8px 3px;
    }

    .product-image-small {
        width: 60px;
    }

    .product-name {
        font-size: 10px;
    }

    .rank-medal {
        width: 35px;
        height: 35px;
    }

    .product-info {
        height: 120px;
    }

    .amount-text,
    .ingredient-text,
    .price-text,
    .guarantee-text,
    .small-text {
        font-size: 10px;
    }

    .circle-icon,
    .double-circle-icon {
        font-size: 24px;
        height: 24px;
        line-height: 24px;
    }

    .triangle-icon {
        font-size: 20px;
        height: 24px;
        line-height: 24px;
    }

    .official-btn {
        padding: 8px 5px;
        font-size: 12px;
    }

    .btn-discount {
        font-size: 9px;
        padding: 4px 6px;
        top: -20px;
        min-width: 60px;
    }

    .stars {
        font-size: 12px;
    }

    .official-btn {
        font-size: 10px;
        white-space: nowrap;
    }
}

/* セクション7：ランキング1位詳細 */
.rank1-section {
    background-color: #e8f4f8;
    padding: 40px 20px;
}

.rank1-header {
    background-color: #a8d8f0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.rank-badge.large {
    width: 60px;
    height: 60px;
    font-size: 32px;
}

.rank1-title {
    font-size: 30px;
    font-weight: bold;
    color: #1e4d6b;
    margin: 0 0 5px 0;
}

.rank1-company {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.rank1-box {
    width: 100%;
    margin: 0;
    background-color: #fff;
    padding: 30px 20px;
}

.rank1-subtitle {
    font-size: 24px;
    font-weight: bold;
    color: #1e4d6b;
    margin: 0 0 10px 0;
}

.rank1-lead {
    font-size: 16px;
    color: #333;
    margin: 0 0 20px 0;
}

.text-red-large {
    color: #ff0000;
    font-size: 20px;
    font-weight: bold;
}

.rank1-detail {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 20px 0 40px 0;
}

.rank1-detail p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 10px 0;
}

.rank1-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    border-radius: 8px;
}

.rank1-features {
    margin: 20px 0;
    border: 1px solid #ddd;
}

.features-header {
    background-color: #1e4d6b;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 20px;
    margin: 0;
}

.features-content {
    background-color: #fff;
    padding: 25px;
}

.feature-item {
    color: #333;
    font-size: 18px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-num {
    background-color: #ff6600;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.rank1-detail-table {
    background-color: #fff;
    margin: 30px 0;
}

.rank1-detail-table .table-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid #ddd;
}

.rank1-detail-table .table-item {
    padding: 0;
    text-align: center;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 150px;
}

.rank1-detail-table .table-item:nth-child(3n) {
    border-right: none;
}

.rank1-detail-table .table-item:nth-child(n+4) {
    border-bottom: none;
}

.rank1-detail-table .table-header {
    background-color: #1e4d6b;
    color: #fff;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin: 0;
}

.rank1-detail-table .table-body-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
}

.rank1-detail-table .table-icon {
    color: #ff0000;
    font-size: 32px;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 0;
}

.rank1-detail-table .table-content {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.rank1-detail-table .table-content strong {
    font-size: 16px;
    color: #ff0000;
}

.rank1-detail-table .table-content small {
    font-size: 11px;
    color: #666;
}

@media (max-width: 768px) {
    .rank1-detail-table .table-grid {
        gap: 0;
    }

    .rank1-detail-table .table-item {
        padding: 0;
        min-height: 120px;
    }

    .rank1-detail-table .table-header {
        font-size: 13px;
        padding: 10px 12px;
    }

    .rank1-detail-table .table-body-content {
        padding: 15px 10px;
    }

    .rank1-detail-table .table-icon {
        font-size: 24px;
    }

    .rank1-detail-table .table-content {
        font-size: 11px;
    }

    .rank1-detail-table .table-content strong {
        font-size: 13px;
    }
}

.review-card {
    background-color: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.review-stars {
    color: #ff9900;
    font-size: 18px;
    margin: 0 0 8px 0;
}

.review-user {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin: 0 0 10px 0;
}

.review-text {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin: 0 0 10px 0;
}

.review-note {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin: 0;
}

.rank1-cta {
    margin: 30px 0 0 0;
    animation: bounce 0.6s ease-in-out infinite;
}

.rank-cta {
    margin: 30px 0 0 0;
}

.cta-btn {
    display: block;
    background-color: #ff6600;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    position: relative;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background-color: #ff5500;
}

.cta-btn::after {
    content: '無料モニター\Aキャンペーン中！';
    white-space: pre;
    position: absolute;
    right: -10px;
    top: -15px;
    background-color: #ff0000;
    color: #fff;
    width: 120px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    padding: 5px 8px;
}

.cta-btn-green {
    display: block;
    background-color: #52B848;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.cta-btn-green:hover {
    background-color: #469940;
}

@media (max-width: 768px) {
    .rank1-detail {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .rank1-header {
        flex-direction: column;
        text-align: center;
    }

    .rank1-box {
        padding: 20px;
    }
}

/* 検索結果ページ */
.search-results-title {
    font-size: 28px;
    font-weight: bold;
    margin: 30px 0 20px;
    color: #333;
}

.search-conditions {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-conditions h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #333;
}

.search-conditions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-conditions li {
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.search-conditions li:last-child {
    border-bottom: none;
}

.search-results-count {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
    color: #333;
}


.product-btn {
    display: inline-block;
    background-color: #5eb9e0;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    margin: 0;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.product-btn:hover {
    background-color: #4da8cf;
}

.product-btn-disabled {
    display: inline-block;
    background-color: #ccc;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
    cursor: not-allowed;
}

.no-results {
    text-align: center;
    font-size: 18px;
    padding: 60px 20px;
    color: #666;
}

.back-to-search {
    text-align: center;
    margin: 40px 0;
}

.btn-back {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background-color: #555;
}

.search-results-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* 検索条件の表示 */
.search-conditions {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.search-conditions h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.search-conditions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-conditions li {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
}

/* 検索結果のヘッダー（件数と並び替え） */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.search-results-count {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.sort-dropdown select {
    padding: 8px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    min-width: 200px;
}

.sort-dropdown select:hover {
    border-color: #ff8c42;
}

/* テーブルヘッダー */
.products-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2c5f7f;
    color: #fff;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px 4px 0 0;
}

.header-image {
    flex: 1;
    text-align: center;
    min-width: 100px;
    padding: 0 5px;
}

.header-rating {
    flex: 1;
    text-align: center;
    min-width: 70px;
    padding: 0 5px;
}

.header-price {
    flex: 1;
    text-align: center;
    min-width: 80px;
    padding: 0 5px;
}

.header-price-regular {
    flex: 1;
    text-align: center;
    min-width: 80px;
    padding: 0 5px;
}

.header-smell {
    flex: 1;
    text-align: center;
    min-width: 90px;
    padding: 0 5px;
}

.header-subscription {
    flex: 1;
    text-align: center;
    min-width: 80px;
    padding: 0 5px;
}

.header-guarantee {
    flex: 1;
    text-align: center;
    min-width: 70px;
    padding: 0 5px;
}

.header-button {
    flex: 1;
    text-align: center;
    min-width: 80px;
    padding: 0 5px;
}

/* 商品グリッドをテーブルスタイルに変更 */
.products-grid {
    display: block;
    margin: 0;
}

.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-top: none;
    padding: 15px 20px;
    background-color: #fff;
    min-height: auto;
}

.product-card:last-child {
    border-radius: 0 0 4px 4px;
}

.product-image-name {
    flex: 1;
    min-width: 100px;
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    text-align: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-title-cell {
    width: 100%;
    text-align: center;
}

.product-rating-cell {
    flex: 1;
    text-align: center;
    min-width: 70px;
    border-left: 1px solid #e0e0e0;
    padding: 0 5px;
}

.product-price-cell {
    flex: 1;
    text-align: center;
    min-width: 80px;
    border-left: 1px solid #e0e0e0;
    padding: 0 5px;
}

.product-price-regular-cell {
    flex: 1;
    text-align: center;
    min-width: 80px;
    border-left: 1px solid #e0e0e0;
    padding: 0 5px;
}

.product-smell-cell {
    flex: 1;
    text-align: center;
    min-width: 90px;
    font-size: 13px;
    border-left: 1px solid #e0e0e0;
    padding: 0 5px;
}

.product-subscription-cell {
    flex: 1;
    text-align: center;
    min-width: 80px;
    font-size: 13px;
    border-left: 1px solid #e0e0e0;
    padding: 0 5px;
}

.product-guarantee-cell {
    flex: 1;
    text-align: center;
    min-width: 70px;
    font-size: 13px;
    border-left: 1px solid #e0e0e0;
    padding: 0 5px;
}

.product-button-cell {
    flex: 1;
    text-align: center;
    min-width: 80px;
    border-left: 1px solid #e0e0e0;
    padding: 0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-data {
    color: #999;
}

.product-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin: 0 0 3px 0;
    line-height: 1.2;
    word-break: break-word;
}

.product-company {
    font-size: 10px;
    color: #999;
    margin: 0;
    line-height: 1.2;
}

.rating-num {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.price-value {
    font-size: 14px;
    font-weight: bold;
    color: #ff0000;
}

.price-regular-value {
    font-size: 14px;
    color: #333;
}

/* フッター */
footer {
    background-color: #f5f5f5;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #666;
}

footer p:first-child {
    margin-bottom: 20px;
}

footer a {
    color: #0066cc;
    text-decoration: underline;
}

footer a:hover {
    color: #004499;
}

/* ================================
   検索結果ページ レスポンシブ対応
   ================================ */

/* モバイル用カードグリッド */
.products-cards {
    display: none; /* PC時は非表示 */
    gap: 20px;
}

.product-card-mobile {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header-mobile {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.product-image-mobile {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.product-image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.product-info-mobile {
    flex: 1;
}

.product-title-mobile {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
}

.product-company-mobile {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
}

.rating-mobile {
    font-size: 14px;
    color: #333;
}

.rating-mobile .rating-num {
    font-weight: bold;
    color: #ff6b00;
    font-size: 16px;
}

.card-body-mobile {
    padding: 15px 20px;
}

.card-row-mobile {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.card-row-mobile:last-child {
    border-bottom: none;
}

.card-label-mobile {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.card-value-mobile {
    text-align: right;
    color: #333;
    font-size: 14px;
}

.card-value-mobile strong {
    color: #ff6b00;
    font-size: 16px;
}

.card-button-mobile {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.product-btn-mobile {
    display: block;
    background-color: #ff6b00;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.product-btn-mobile:hover {
    background-color: #e55a00;
}

.product-btn-disabled-mobile {
    display: block;
    background-color: #ccc;
    color: #666;
    text-align: center;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
}

/* タブレット・モバイル表示 (1023px以下) */
@media (max-width: 1023px) {
    .desktop-only {
        display: none;
    }

    .products-cards {
        display: grid; /* モバイル時に表示 */
    }

    .search-results-title {
        font-size: 22px;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .sort-dropdown {
        width: 100%;
    }

    .sort-dropdown select {
        width: 100%;
    }
}

/* タブレット (769px～1023px): 3列グリッド */
@media (min-width: 769px) and (max-width: 1023px) {
    .products-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* タブレット小・スマホ大 (481px～768px): 2列グリッド */
@media (min-width: 481px) and (max-width: 768px) {
    .products-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* スマホ表示 (480px以下): 1列 */
@media (max-width: 480px) {
    section {
        margin: 0;
        padding: 0;
    }

    /* 全体のフォントサイズ調整 */
    body {
        font-size: 14px;
    }

    /* 本文テキスト */
    .desc {
        font-size: 14px;
    }

    .desc-highlight-large {
        font-size: 24px;
    }

    /* 見出し */
    .summary-cause-title-top {
        font-size: 16px;
    }

    .summary-cause-title {
        font-size: 16px;
    }

    .cause-highlight-box {
        font-size: 24px;
    }

    .summary-arrow-text {
        font-size: 28px;
    }

    .summary-solution-text {
        font-size: 14px;
    }

    .summary-explanation-text {
        font-size: 14px;
    }

    .summary-list-box li {
        font-size: 16px;
    }

    /* ポイントセクション */
    .points-title {
        font-size: 18px;
    }

    .point-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .point-card:nth-child(even) .point-left {
        order: 1;
    }

    .point-card:nth-child(even) .point-right {
        order: 2;
    }

    .point-label {
        font-size: 16px;
    }

    .point-num {
        font-size: 32px;
    }

    .point-heading {
        font-size: 16px;
    }

    .point-text {
        font-size: 14px;
    }

    .point-image {
        max-height: 120px;
        width: 100%;
        object-fit: cover;
    }

    /* ランキングセクション */
    .rank1-title {
        font-size: 26px;
    }

    .rank1-subtitle {
        font-size: 20px;
    }

    .rank1-detail {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rank1-image {
        order: -1;
        margin: 0 auto;
    }

    .rank1-detail p {
        font-size: 14px;
    }

    .features-content {
        padding: 10px;
    }

    .features-header {
        text-align: center;
    }

    .rank1-detail-table .table-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rank1-detail-table .table-item {
        padding: 0;
        border-left: 1px solid #ddd;
    }

    .rank1-detail-table .table-body-content {
        padding: 0;
    }

    .rank1-detail-table .table-header {
        width: 100%;
        margin: 0;
        padding: 10px 15px;
        font-size: 14px;
    }

    .feature-item {
        font-size: 14px;
    }

    .review-text {
        font-size: 14px;
    }

    .cta-btn,
    .cta-btn-green {
        font-size: 16px;
    }

    .comparison-subtitle {
        font-size: 20px;
    }

    .comparison-title {
        font-size: 20px;
    }

    .highlight-orange-large {
        font-size: 32px;
    }

    /* 投稿ページ */
    .post-title {
        font-size: 20px;
    }

    .post-content {
        font-size: 14px;
    }

    .post-content h2 {
        font-size: 18px;
    }

    .post-content h3 {
        font-size: 16px;
    }

    .post-content h4 {
        font-size: 16px;
    }

    /* 検索結果ページ */
    .products-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-header-mobile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-image-mobile {
        width: 100px;
        height: 100px;
    }

    .product-title-mobile {
        font-size: 15px;
    }

    .card-label-mobile,
    .card-value-mobile {
        font-size: 13px;
    }

    .search-results-title {
        font-size: 20px;
    }
}

/* ================================
   投稿ページ（single.php）
   ================================ */

.single-post {
    max-width: 100%;
}

/* アイキャッチ画像 */
.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 投稿タイトル */
.post-title {
    font-size: 32px;
    font-weight: bold;
    color: #111;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

/* 投稿日時 */
.post-meta {
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
}

/* 本文コンテンツ */
.post-content {
    font-size: 18px;
    font-family: "Noto Sans JP", sans-serif;
    color: #111111;
    line-height: 1.8;
}

.post-content p {
    margin: 15px 0 0;
}

.post-content h2 {
    font-size: 26px;
    font-weight: bold;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.post-content h3 {
    font-size: 22px;
    font-weight: bold;
    margin: 30px 0 15px;
}

.post-content h4 {
    font-size: 20px;
    font-weight: bold;
    margin: 25px 0 15px;
}

.post-content ul,
.post-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.post-content li {
    margin: 8px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.post-content blockquote {
    background-color: #f5f5f5;
    border-left: 4px solid #333;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.post-content a {
    color: #0066cc;
    text-decoration: underline;
}

.post-content a:hover {
    color: #004499;
}

/* レスポンシブ（投稿ページ） */
