﻿/* * style.css - loofen（ルーフェン）助成金LP 最適化・統合版
 */

/* ------------------------------- */
/* 0. 基本設定 & リセット
/* ------------------------------- */
html,
body {
    overflow-x: hidden;
    /* 横方向のはみ出しを一切禁止する */
    width: 100%;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f1f1f1;
}

/* ページ全体のテキスト選択を禁止 */
body {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+ */
    user-select: none;
    /* 標準 */
}


.container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid #dbdbdb;
    border-right: 1px solid #dbdbdb;
    position: relative;
}

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

section {
    padding: 15px;
}

/* 汎用見出し：ルーフェンの親和性高いグリーン */
h2 {
    font-size: 1.3em;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 25px;
}

/* ------------------------------- */
/* 受付状態による切り替え初期に非表示
/* ------------------------------- */
.show-if-active,
.show-if-ended,
#section-active,
#section-coupon {
    display: none;
}


/* ------------------------------- */
/* 1. アニメーション定義
/* ------------------------------- */

/* 脈動（ボタン用） */
@keyframes pulse-mini {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ふわふわ（エリア全体用） */
@keyframes fuwafuwa-anim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ぴょこぴょこ（吹き出し用） */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* 誘導矢印の動き */
@keyframes arrow-move {
    0% {
        transform: translateY(0) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(15px) rotate(45deg);
        opacity: 0;
    }
}

/* ------------------------------- */
/* 2. メインビジュアル (MV)
/* ------------------------------- */

/* --- アイキャッチ左右分割（画像版） --- */
.mv-flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: #fdfaf5;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* 左側：コピーエリア */
.mv-copy-side {
    flex: 1.2;
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: #fdfaf5;
}

/* 右側：画像エリア */
.mv-video-side {
    flex: 0.8;
    line-height: 0;
    overflow: hidden;
    background: #fdfaf5;
}

.mv-video-obj {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 【修正】5選ランキングエリア（5pxの空きを追加） --- */
.mv-ranking-strip {
    width: 100%;
    background-color: #fdfaf5;
    /* 上部との間に5pxの隙間を作る */
    margin-top: 10px;
    padding: 0 10px 15px 10px;
    box-sizing: border-box;
}

.strip-inner {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    background-color: #4977bd;
    padding: 10px 8px 8px 10px;
    border-radius: 8px;
    /* 隙間がある時に少し立体感を出すためのシャドウ（お好みで） */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.02);
}

.strip-item {
    flex: 1;
    max-width: 18%;
    position: relative;
    background: #fff;
    border-radius: 4px;
    padding: 12px 0px 3px 6px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strip-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 小さな順位バッジ */
.s-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #444;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    z-index: 2;
}

.strip-item:first-child .s-badge {
    background: #ff4500;
}

/* --- 以下、既存のパーツ（変更なし） --- */
.area-tag {
    font-size: 1.1rem;
    background: #4977bd;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 12px;
}

.mv-main-title {
    font-size: 1.5rem;
    color: #333;
    line-height: 1.8;
    font-weight: bold;
    margin: 0 0 12px 0;
    width: 100%;
}

.mv-pr-label {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 10px;
    color: #bbb;
}



/* ------------------------------- */
/* 導入部の説明枠ボックス
/* ------------------------------- */


/* 3つの方式をまとめるシンプルなボックス */
.simple-method-box {
    background-color: #fdfaf5;
    /* 上部と同じ薄ベージュで一体感 */
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

/* リストのスタイル */
.method-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.method-list li {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 1.2em;
    position: relative;
}

/* リストの先頭に小さなチェックマークやポッチを付ける */
.method-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #f85718;
    font-weight: bold;
}

.method-list li:last-child {
    margin-bottom: 0;
}

.method-list li strong {
    color: #333;
    font-weight: bold;
}

/* リンク先が近いので、ハイライトも控えめに調整 */
.type-highlight {
    background: linear-gradient(transparent 70%, #ffda9e 70%);
    font-weight: bold;
}



/* ------------------------------- */
/* 3. 診断クイズ・結果表示
/* ------------------------------- */
.q-title-balloon {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto -2px;
    padding: 10px 30px;
    background-color: #f85718;
    color: #fff;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    z-index: 2;
}

.q-title-balloon::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: #f85718 transparent transparent transparent;
}

.q-content-box {
    background: #fff;
    border: 3px solid #f85718;
    border-radius: 15px;
    padding: 30px 15px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.diag-btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.diag-btn {
    width: 140px;
    height: 55px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 2px solid #ddd;
    background: #f9f9f9;
    color: #666;
    text-decoration: none;
}

.diag-btn.yes {
    background: #fff9e6;
    border-color: #f85718;
    color: #f85718;
    box-shadow: 0 4px 10px rgba(248, 87, 24, 0.2);
}

.diag-btn:active {
    transform: translateY(3px);
    box-shadow: none;
}

.progress-container {
    width: 100%;
    background-color: #eee;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    width: 33%;
    height: 10px;
    background: linear-gradient(90deg, #f85718, #ffb300);
    transition: width 0.4s ease-in-out;
}

.result-card {
    border: 3px solid #28a745;
    background: #f8fff8;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    position: relative;
    animation: bounce 0.8s ease-out;
}

/* ------------------------------- */
/* 4. 価格比較 & 分析テーブル
/* ------------------------------- */
.price-comparison {
    margin: 30px auto;
    width: 100%;
    border: 2px solid #f85718;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.comparison-title {
    background: #f85718;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 5px;
    text-align: center;
    font-size: 0.9rem;
}

.highlight-row {
    background: #fff9f6;
}

.price {
    color: #e60012;
    font-size: 1.4rem;
    font-weight: 800;
}

.price span {
    font-size: 0.8rem;
}

/* ------------------------------- */
/* 5. フローティングバナー（追従）
/* ------------------------------- */

/* バナーのコンテナ */
.floating-banner {
    position: fixed;
    bottom: -120%;
    /* 最初は隠しておく */
    left: 0;
    width: 100%;
    z-index: 9999;
    /* スマホのホームバー対策 */
    padding-bottom: env(safe-area-inset-bottom);
    transition: bottom 0.5s ease-in-out;
    text-align: center;
}

/* 表示時のクラス */
.floating-banner.show {
    bottom: 0;
    /* 画面下から少し浮かせる（ぴったりなら0） */
}

/* 画像自体の設定 */
.floating-img-only {
    width: 100%;
    /* 左右に少し余白を作る（全幅なら100%） */
    max-width: 480px;
    /* PCで見ても大きくなりすぎないように */
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    /* 浮かせるための影 */
}


/* ------------------------------- */
/* 6. インタラクティブ要素（漫画・動画）
/* ------------------------------- */
.horizontal-slider-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #f85718;
    border-radius: 15px;
    overflow: hidden;
}

.h-slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.h-slide-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.video-item {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-item video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}



/* ------------------------------- */
/* --- 下向きに流れる矢印（視線誘導） --- */
/* ------------------------------- */
/* 矢印のコンテナ */
.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    margin: 10px 0;
}

/* 矢印本体（L字を回転させて作成） */
.arrow-down {
    width: 18px;
    height: 18px;
    border-right: 3px solid #f85718;
    /* ルーフェンオレンジ */
    border-bottom: 3px solid #f85718;
    transform: rotate(45deg);
    opacity: 0;
    animation: arrow-flow 1.5s infinite;
}

/* 2つ並べて「流れ」を強調する場合の遅延設定 */
.arrow-down:nth-child(2) {
    animation-delay: 0.2s;
    margin-top: -8px;
}

/* 流れるアニメーション定義 */
@keyframes arrow-flow {
    0% {
        transform: translateY(-10px) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(10px) rotate(45deg);
        opacity: 0;
    }
}


/* ------------------------------- */
/* --- CTAボタン（ふわふわアニメ） --- */
/* ------------------------------- */

.cta-button {
    display: block;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #04c22d 0%, #079907 100%);
    color: #fff !important;
    text-decoration: none;
    padding: 20px 10px;
    border-radius: 50px;
    font-size: 1.25em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 0 #057918;
    position: relative;
    transition: all 0.2s;

    /* アニメーションを再適用 */
    animation: pulse 2.5s infinite;
}

/* ボタン内のサブテキスト（公式サイトで〜） */
.cta-sub-text {
    font-size: 0.7em;
    display: block;
    margin-bottom: 2px;
    font-weight: normal;
    opacity: 0.9;
}


/* 押した時の沈む演出 */
.cta-button:active {
    transform: translateY(2px) scale(1);
    box-shadow: 0 2px 0 #bf360c;
}



/* ------------------------------- */
/* --- シミュレーションセクション --- */
/* ------------------------------- */
/* シミュレーションセクション全体 */
.simulation-section {
    background-color: #f2ffff;
    padding: 40px 0;
}

.sim-card-container {
    margin: 0 auto;
    width: 92%;
    max-width: 460px;
    background: #fff;
    border: 2px solid #3fc4c2;
    /* 以前のテーマカラーを維持 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sim-header {
    background: #3fc4c2;
    color: #fff;
    padding: 15px;
    text-align: center;
}

.sim-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

.sim-body {
    padding: 25px 20px;
}

.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05em;
}

.sim-table td {
    padding: 12px 0;
}

.sim-table tr {
    border-bottom: 1px dashed #ccc;
}

.sim-table .value {
    text-align: right;
    font-weight: bold;
}

/* 各カラー強調 */
.highlight-red {
    color: #d32f2f !important;
}

.highlight-green {
    color: #008148 !important;
}

.grant-row {
    border-bottom: 2px solid #333 !important;
}

.total-row {
    background: #fff8e1;
}

.total-row td {
    padding: 20px 10px !important;
}

.total-value {
    color: #f85718;
    font-size: 1.6em;
    font-weight: 900;
}

.tax-label {
    font-size: 0.5em;
    color: #333;
    margin-left: 2px;
}

/* 注釈エリア */
.sim-notes {
    margin-top: 15px;
    background: #f0f4f0;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8em;
    color: #444;
    line-height: 1.6;
}

.sim-notes p {
    margin: 0;
    margin-bottom: 4px;
}


/* ------------------------------- */
/* --- CTA画像ボタン用 --- */
/* ------------------------------- */

/* --- CTA画像ボタン用（修正版） --- */

.ripple-btn-container {
    background-color: #262626;
    /* 背景色は適宜調整 */
    padding: 40px 20px;
    text-align: center;
}

.ripple-link {
    position: relative;
    display: inline-block;
    z-index: 1;
    overflow: hidden;
    /* 光がボタンからはみ出さないように */
    border-radius: 6px;
    /* 画像の角丸に合わせて調整 */
    line-height: 0;
    /* 下部の微小な隙間を排除 */

    /* ボタン自体を軽く鼓動させるアニメ（これならズレません） */
    animation: pulse 2.5s infinite ease-in-out;
}

/* ズレる波紋の代わりに「斜めの光」を入れる */
.ripple-link::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 5%;
    /* 5% → 10% にすると光の帯が太く */
    height: 200%;
    background: rgba(255, 255, 255, 0.6);
    transform: rotate(30deg);
    z-index: 3;
    animation: shine-effect 3s infinite;
}

.ripple-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

/* 光が左から右へ流れるアニメーション */
@keyframes shine-effect {
    0% {
        left: -60%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    40% {
        left: 120%;
        opacity: 0;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

/* ボタンが少し大きくなる鼓動 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}


/* 波紋が広がるアニメーション */
@keyframes ripple-wave {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6, 2.0);
        opacity: 0;
    }
}


/* 追加：ボタンが上下にふわふわ動くアニメーション */
@keyframes floating-btn {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
        /* 8px分だけ上に浮く */
    }

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



/* ホバー時の微調整 */
.ripple-link:hover::before {
    animation-duration: 1.2s;
    /* ホバー時に波紋を速くする */
}


/* ------------------------------- */
/* --- 動画4配列 --- */
/* ------------------------------- */
/* 全体のコンテナ */
.video-grid-container {
    background-color: #313131;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* paddingを含めても幅が変わらないように指定 */
    box-sizing: border-box;
    padding: 20px 10px;
    /* 横スクロールが出ないように念のため */
    overflow: hidden;
}

/* 行の設定 */
.video-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* 各動画の枠 */
.video-item {
    width: 48.5%;
    /* 左右に少し隙間を空けて収める */
    aspect-ratio: 9 / 16;
    background-color: #313131;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

/* 動画本体のスタイル */
.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}




/* ------------------------------- */
/* 7. ユーティリティ & パーツ
/* ------------------------------- */
.page-top-btn {
    position: fixed;
    right: 15px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background: rgba(248, 87, 24, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.page-top-btn.is-show {
    opacity: 1;
    visibility: visible;
}

.txtline_red {
    color: #e60012;
    font-weight: bold;
    background: linear-gradient(transparent 70%, #ffdfdf 70%);
}

.font-anno,
.font-annop {
    font-size: 10px;
    color: #707070;
    line-height: 1.4;
}

sup {
    font-size: 0.6em;
    vertical-align: super;
    position: relative;
    top: -0.2em;
}

/* フッター：コピーライト */
.lp-footer {
    background-color: #d4d4d4;
    padding: 40px 20px 100px;
    text-align: center;
    font-size: 11px;
    color: #888;
}

/* フッター：特定商取引法に基づく表記 */
.footer-links a {
    color: #888;
    /* 文字色をグレーに */
    text-decoration: none;
    /* 下線を消す */
    font-size: 11px;
    /* 文字サイズ */
}




/* 文字位置 */
.font-ichi01 {
    text-align: center;
}

.font-ichi02 {
    text-align: right;
}

.font-ichi03 {
    text-align: left;
}











/* ------------------------------- */
/* 【追加】パーツ
/* ------------------------------- */

/* ============================================================
   1. 共通・導入セクション (処理方式前解説)
   ============================================================ */
.type-intro-box {
    max-width: 800px;
    margin: 0 auto 25px auto;
    padding: 0 15px;
    line-height: 1.8;
    color: #333;
}

.type-intro-box p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.type-highlight {
    color: #f85718;
    font-weight: bold;
    border-bottom: 2px solid #ffcc00;
}

.type-intro-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}


/* ============================================================
   ランキング導入メッセージ（ガイド）
   ============================================================ */
.selection-guide {
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
}

.guide-inner {
    background: #fff;
    border: 3px solid #3fc4c2;
    /* loofenカラーで統一 */
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    position: relative;
}

.guide-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.guide-title .check-icon {
    color: #3fc4c2;
    margin-right: 5px;
}

.guide-text {
    font-size: 1rem !important;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    text-align: left;
    display: inline-block;
    /* 中央寄せの中の左寄せ */
}

.guide-lead {
    font-size: 1.05rem;
    font-weight: bold;
    color: #f85718;
    /* オレンジ系で注目を集める */
    line-height: 1.8;
    border-top: 1px dashed #ccc;
    padding-top: 20px;
}

/* スマホ用の改行制御 */
@media (max-width: 600px) {
    .sp-only {
        display: block;
    }

    .guide-title {
        font-size: 1.15rem;
    }

    .guide-text {
        font-size: 0.9rem;
    }
}

/* ============================================================
   矢印セクションのコピー装飾
   ============================================================ */
.arrow-copy {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

/* 「0」の部分を強調 */
.arrow-copy span {
    font-size: 3rem !important;
    color: #f85718;
    /* オレンジで強調 */
    margin: 0 2px;
    font-family: 'Arial', sans-serif;
}

/* 矢印コンテナの微調整 */
.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* 矢印自体の動き（すでにある場合は不要ですが、念のため） */
.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 3px solid #3fc4c2;
    border-bottom: 3px solid #3fc4c2;
    transform: rotate(45deg);
    animation: arrow-move 1.5s infinite;
}

.arrow-down:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes arrow-move {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* スマホ用改行 */
@media (max-width: 600px) {
    .sp-only {
        display: block;
    }

    .arrow-copy {
        font-size: 1.05rem;
    }

    .arrow-copy span {
        font-size: 1.4rem;
    }
}




/* ============================================================
   2-1. 処理方式説明セクション
   ============================================================ */
.typeinfo-section {
    padding: 40px 10px;
    background: #f4fdff;
}



/* ============================================================
   2-2. 処理方式比較表（最新版：スマホ最適化・左右2段構成）
   ============================================================ */
.type-section {
    padding: 40px 10px;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

/* 枠線を確実に表示するためのラッパー */
.lfn-table-outer {
    border: 1px solid #eeeeee !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
}

.lfn-table-main {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    margin: 0 !important;
}

/* すべてのセルの境界線を強制 */
.lfn-table-main td {
    border: 1px solid #333 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* 左側：方式名カラム */
.lfn-col-label {
    width: 30% !important;
    background-color: #f7f7f7 !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    padding: 15px 5px !important;
    color: #333 !important;
}

/* 右側：上下2段エリア */
.lfn-row-up {
    padding: 12px 15px !important;
    background-color: #f9fdff !important;
    border-bottom: 1px solid #333 !important;
    /* 中の区切り線 */
    display: block !important;
}

.lfn-row-down {
    padding: 12px 15px !important;
    background-color: #fffafb !important;
    /* デメリット側の背景 */
    display: block !important;
}

/* loofen（乾燥式）の強調 */
.lfn-highlight-bg {
    background-color: #e7f7e6 !important;
    border-left: 6px solid #3fc4c2 !important;
}

.lfn-tag-m {
    color: #002e91 !important;
    font-weight: bold !important;
    font-size: 0.8rem;
    margin-right: 5px;
    /* --- 枠線の設定を追加 --- */
    border: 1px solid #ccc;
    /* 1pxのグレー枠 */
    padding: 2px 6px;
    /* 内側の余白（上下 左右） */
    border-radius: 3px;
    /* 角をわずかに丸く（完全に四角なら0に） */
    display: inline-block;
    /* 枠の形を整える */
    background-color: #f9f9f9;
    /* 視認性を高める薄い背景（お好みで） */
    line-height: 1.2;
    /* 行間調整 */
}

.lfn-tag-d {
    color: #c73800 !important;
    font-weight: bold !important;
    font-size: 0.8rem;
    margin-right: 5px;
    /* --- 枠線の設定を追加 --- */
    border: 1px solid #ccc;
    /* 1pxのグレー枠 */
    padding: 2px 6px;
    /* 内側の余白 */
    border-radius: 3px;
    /* 角をわずかに丸く */
    display: inline-block;
    /* 枠の形を整える */
    background-color: #f9f9f9;
    /* 視認性を高める薄い背景（お好みで） */
    line-height: 1.2;
}

.lfn-list {
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.lfn-list li {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 3px !important;
    padding-left: 12px !important;
    position: relative !important;
    color: #444 !important;
    text-align: left !important;
}

.lfn-list li::before {
    content: "・" !important;
    position: absolute !important;
    left: 0 !important;
}

.lfn-badge-mini {
    display: block !important;
    background: #f85718 !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    margin-bottom: 5px !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
}




/* ============================================================
   3. ランキングセクション
   ============================================================ */
.rank-section {
    padding: 40px 10px;
    background: #fff;
}

.rank-table {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

.rank-table th,
.rank-table td {
    padding: 12px 3px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    vertical-align: middle;
}

.rank-table th {
    background: #3fc4c2;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
}




.rank-no {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 0.7rem;
}

.no-1 {
    background: #ffcc00;
}

.no-2 {
    background: #c0c0c0;
}

.no-3 {
    background: #b87333;
}

.no-other {
    background: #c3d9eb;
}


/* --- 画像 --- */
.rank-img {
    width: 55px;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* --- 商品名・価格のボックス --- */
.product-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    /* 各要素の隙間 */
}

.product-name {
    font-weight: bold;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #333;
}

.rank-price {
    color: #f85718;
    font-weight: bold;
    font-size: 0.75rem;
}

.rank-feature {
    text-align: left !important;
    font-size: 0.75rem;
    line-height: 1.3;
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.row-1 {
    background-color: #fffaf0;
}


/* --- 処理タイプ用バッジ --- */
.gd-type-label {
    display: inline-block;
    padding: 3px 5px;
    color: #ffffff !important;
    font-size: 9px;
    font-weight: bold;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1;
    margin-bottom: 2px;
    /* 商品名との間隔 */
}

/* 温風式のラベル色 */
.gd-label-dry {
    background-color: #ff7b64 !important;
}

/* ハイブリッドのラベル色 */
.gd-label-hybrid {
    background-color: #3498db !important;
}


/* ============================================================
   ヘッダー内の画像ランキング番号
   ============================================================ */
/* ヘッダーのミニバッジ専用スタイル */
.strip-item {
    position: relative;
    /* バッジの基準点にする */
    display: inline-block;
}

.strip-item img {
    display: block;
    width: 60px;
    /* 画像サイズに合わせて調整してください */
    height: auto;
    border-radius: 4px;
}

/* 番号バッジを「左上」に「正円」で配置 */
.strip-item .rank-no {
    position: absolute;
    top: -5px;
    /* 少し上にはみ出す */
    left: -5px;
    /* 少し左にはみ出す */
    width: 20px;
    /* 横幅固定 */
    height: 20px;
    /* 縦幅固定 */
    line-height: 20px;
    /* 文字を縦中央に */
    text-align: center;
    /* 文字を横中央に */
    border-radius: 50%;
    /* 完璧な円にする */
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
    /* 画像の上に重ねる */
    display: block;
    /* 確実にブロック要素として扱う */
}

/* 順位別の色 */
.strip-item .no-1 {
    background: #ffcc00;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.strip-item .no-2 {
    background: #c0c0c0;
}

.strip-item .no-3 {
    background: #b87333;
}

.strip-item .no-4 {
    background: #c3d9eb;
}

.strip-item .no-5 {
    background: #c3d9eb;
}





/* ============================================================
   4. スペック比較表（縦罫線あり・はみ出し防止版）
   ============================================================ */
.spec-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    /* 罫線を重ねて表示 */
    table-layout: fixed;
    border: 1px solid #eee;
}

.spec-table th,
.spec-table td {
    /* パディングを少し調整（左右を5pxに絞って幅を確保） */
    padding: 15px 5px;
    border-bottom: 1px solid #eee;
    /* 横の罫線 */
    border-right: 1px solid #eee;
    /* 縦の罫線 */
    text-align: center;
    vertical-align: middle;

    /* --- はみ出し防止の重要設定 --- */
    font-size: 0.75rem;
    /* 文字サイズをわずかに小さく */
    line-height: 1.4;
    /* 改行時の行間を最適化 */
    word-break: break-all;
    /* 英数字が枠を突き抜けるのを防ぐ */
    overflow-wrap: break-word;
    /* 長い単語を途中で折る */
}

/* 最後の列の右線は不要なので消す */
.spec-table th:last-child,
.spec-table td:last-child {
    border-right: none;
}

.spec-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 2px solid #3fc4c2;
    vertical-align: top !important;
    /* 画像・ランキングを上揃えに */
    padding-top: 15px;
}

/* 左端の項目名列（固定） */
.sticky-label {
    position: sticky;
    left: 0;
    background: #f8f8f8 !important;
    font-weight: bold;
    z-index: 5;
    border-right: 2px solid #ddd !important;
    /* 境界を強調 */
    width: 100px;
    /* 少し幅を詰めてデータ部分を広く */
    font-size: 0.8rem;
}

/* loofen（1位）の列を強調 */
.col-highlight {
    background-color: #fffaf0 !important;
    font-weight: bold;
    border-left: 2px solid #3fc4c2 !important;
    border-right: 2px solid #3fc4c2 !important;
}

/* 画像サイズ調整 */
.spec-img {
    width: 70px;
    height: auto;
    display: block;
    margin: 0 auto 5px auto;
    border-radius: 4px;
}

/* アイコン類 */
.ico {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 4px;
}

.ico-double {
    color: #007bff;
}

.ico-circle {
    color: #28a745;
}

.ico-triangle {
    color: #ff9800;
}

.ico-cross {
    color: #e91e63;
}



/* ============================================================
   5. ポイント・特徴（loofen feature）
   ============================================================ */
.loofen-feature-block {
    max-width: 800px;
    margin: 0 auto 80px auto;
    padding: 0 15px;
}

/* ポイントバッジ（ふわふわ） */
.point-badge {
    display: inline-block;
    position: relative;
    background: #3fc4c2;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 4px;
    margin-left: 20px;
    z-index: 10;
    margin-bottom: -2px;
    /* ふわふわバッジとタイトル枠の間をつめる */
    animation: floating-badge-top 2s ease-in-out infinite;
}

@keyframes floating-badge-top {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

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

.point-badge::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 20px;
    border: 7px solid transparent;
    border-top-color: #3fc4c2;
}

.feature-title-box {
    position: relative;
    font-size: 1.25rem;
    color: #333;
    line-height: 1.5;
    font-weight: bold;
    padding: 22px 20px;
    border: 2px solid #3fc4c2;
    border-radius: 15px;
    background-color: #f9ffff;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(63, 196, 194, 0.1);
    text-align: center;
}

.feature-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.media-wrapper {
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
}

.media-content {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.text-highlight {
    color: #f85718;
    font-weight: bold;
    background: linear-gradient(transparent 70%, #fff0b3 70%);
}

/* ============================================================
   6. CTAボタン
   ============================================================ */
.cta2-container {
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

@keyframes cta-floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

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

@keyframes sheen {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.cta2-button {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #3fc4c2 0%, #2fa3a1 100%);
    padding: 20px 10px;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: cta-floating 3s ease-in-out infinite;
}

.cta2-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: sheen 4s infinite;
}

.cta2-text-main {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.cta2-text-sub {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ============================================================
   7. ユーザーレビュー（口コミ）
   ============================================================ */
.review-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 15px;
}

.review-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

.user-female {
    background-color: #ffeff2;
    color: #ff6b81;
    border: 1px solid #ffccd5;
}

.user-male {
    background-color: #f0f7ff;
    color: #3498db;
    border: 1px solid #d6eaf8;
}

.review-title {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
}

.star-rating {
    color: #ffcc00;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.review-disclaimer {
    text-align: right;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   スペック比較表：完全版スタイル
   ============================================================ */
.spec-section {
    padding: 40px 10px;
    background-color: #fff;
}

.spec-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #eee;
    border-radius: 8px;
}

.spec-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    table-layout: fixed;
}

/* ヘッダー全体を上揃えに固定 */
.spec-table thead th {
    vertical-align: top !important;
    padding: 15px 8px !important;
    background: #fff;
    border-bottom: 2px solid #3fc4c2;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ランキング・画像・名前を整列させるラッパー */
.spec-rank-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ランキング番号（既存のrank-noを流用・微調整） */
.spec-table .rank-no {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
}

/* 画像サイズを統一してガタつきを防止 */
.spec-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* 商品名：2行になっても高さが変わらないよう最小高さを確保 */
.prod-name-sub {
    font-size: 0.75rem;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 左側の項目名列（固定） */
.sticky-label {
    position: sticky;
    left: 0;
    background: #f8f8f8 !important;
    font-weight: bold;
    z-index: 5;
    border-right: 1px solid #ddd;
    width: 110px;
    font-size: 0.8rem;
    text-align: center;
}

/* loofen列の強調表示 */
.col-highlight {
    background-color: #fffaf0 !important;
    border-left: 2px solid #3fc4c2;
    border-right: 2px solid #3fc4c2;
}

/* 各セルの基本設定 */
.spec-table td {
    padding: 15px 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* おすすめ診断行（最下部）の装飾 */
.row-recommend {
    background-color: #fff9fb !important;
}

.row-recommend .sticky-label {
    background-color: #fff0f5 !important;
    color: #d81b60 !important;
}

.recommend-text {
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: bold;
    color: #444;
}

/* アイコン類 */
.ico {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.ico-double {
    font-size: 1.5rem;
    color: #0066ff;
}

.ico-circle {
    font-size: 1.5rem;
    color: #54e075;
}

.ico-triangle {
    font-size: 1.5rem;
    color: #ff9800;
}

.ico-cross {
    font-size: 1.5rem;
    color: #ff75a3;
}

/* 詳細リンク（ボタン風） */
.spec-link {
    color: #0066cc;
    text-decoration: underline;
    font-size: 0.75rem;
    font-weight: bold;
}