@charset "utf-8";

/* ===============================================================================================================================================
 * 1. 共通スタイル (Global Styles)
 * =============================================================================================================================================== */

html > * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f7f5;
    margin: 0;
    padding: 0;
}

/* 基本要素 */
p {
    font-size: 18px;
    line-height: 1.7em;
    margin: 0;
}

/* 見出し */
h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

h2 {
    border-bottom: 3px dotted #626262;
    border-left: 4px solid #000000;
    font-size: 18px;
    padding-left: 10px;
    margin-top: 30px;
}

h3 {
    font-size: 24px;
}

/* 比較表のh3専用：余計なことをせずデザインを維持する */
.hikaku_scroll th.fixed01 h3 {
    margin: 0;
    padding: 0;
    font-size: 18px; /* サイズ変更したい時はここだけいじればOK */
    line-height: 1.5;
    font-weight: 900;
}

h4 {
    text-align: left;
    margin: 20px 0 5px 10px;
    padding: 4px 0 0 30px;
    font-size: 16px;
}

/* リスト */
ul {
    padding: 0;
    list-style: none;
}

ul li {
    font-size: 14px;
}

/* テキスト装飾 */
.mark01 {
    background: linear-gradient(transparent 65%, rgba(255, 255, 51, 0.7) 0%);
    font-weight: bold;
    color: #000;
}

.mark02 {
    font-size: 13px;
}

.text_comment {
    font-size: 0.8em;
    vertical-align: top;
}

/* 画像 */
.banner-img {
    display: block;
    height: auto;
    width: 100%;
    margin: 30px 30px 30px 30px auto;
}

.sub_catch_ranking {
    width: 100%;
    margin: 25px auto -25px auto;
    display: block;
}

.sub_catch_hikaku {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}

/* ===============================================================================================================================================
 * 2. レイアウト (Layout)
 * =============================================================================================================================================== */

#lp-wrap-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

#lp-contents {
    position: relative;
    width: 40vw;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 3px #bbb;
}

/* ヘッダー */
header.sb-slide {
    display: block;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
}

#head_area {
    display: block;
}

#top_nav {
    display: block;
}

.header_flex_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 5px;
    list-style: none;
}

#logo {
    display: block;
}

#logo a {
    display: block;
}

.top_pr {
    display: block;
    color: #000;
    font-weight: bold;
    white-space: nowrap;
}

/* フッター */
#footer {
    clear: both;
    padding: 0;
    background-color: #b6f1ce;
    box-shadow: 2px 0 3px #b5b5b5;
    font-size: 14px;
}

.footer_contents {
    text-align: center;
    padding: 10px 0;
    margin: 15px 0 0;
}

.copylights {
    display: block;
    padding: 10px 0;
    text-align: center;
    font-size: 90%;
    background: #fff;
}

address {
    margin: 0 0 20px;
    text-align: center;
    font-size: 85%;
    background: #f8f8f8;
}

/* ===============================================================================================================================================
 * 3. コンポーネント (Components)
 * =============================================================================================================================================== */

/* ボタン共通 */
.btn01, .btn02, .btn03, .detail_btn01 {
    display: block;
    position: relative;
    border-radius: 5px;
    color: #fff;
    transition: none;
    box-shadow: 0 3px 3px #6c6464;
    overflow: hidden;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    background-color: #ed2f2f;
}

.btn01 {
    line-height: 52px;
    padding: 2px;
    width: 75%;
    margin: 0 auto 5px;
}

.btn02 {
    line-height: 11px;
    box-shadow: 0 3px 0 #bbb;
    padding: 12px 10px;
    width: 80%;
    margin: 10px auto;
}

.detail_btn {
    border-radius: 5px;
}

.detail_btn a {
    text-decoration: none;
}

.detail_btn01 {
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    margin: 5px auto;
    width: 77%;
}

/* テキストセクション */
section.text {
    width: 100%;
    margin: 0 auto;
    padding: 0 5px;
}

/* 比較表 補助 */
.fixed01, .fixed02 {
    position: sticky;
    left: 0;
}

.sticky-column {
    position: sticky;
    left: 0;
    background-color: #fefefe;
    z-index: 2;
    border-right: 2px solid #ccc;
}

/* 画像・アイコン */
.company-banner {
    width: 90%;
    height: auto;
    display: block;
    margin: 5px auto 0;
}

/* トグルボタン */
.toggle-button {
    padding: 5px 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: none;
    background-color: #444444f0;
}

.hidden-content {
    display: none;
}

.col1 h2, .col2 h2, .kobetsu001 h2, .kuchikomi_box h2 {
    font-size: 20px;
    padding: 6px;
    text-align: center;
    color: #FFFFFF;
    margin: 0;
    border: none;
}

/* ===============================================================================================================================================
 * 4. ランキングボックス (Ranking Box)
 * =============================================================================================================================================== */

.rankingbox {
    border: 1px solid #00813d;
    border-radius: 0;
    padding: 0;
    margin: 30px auto;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.rankingbox_oukan {
    margin: 0;
}

/* ヘッダー */
.rankingbox_header_custom {
    background: radial-gradient(circle at 15% 50%, rgba(240, 248, 243, 0.4) 0%, rgba(224, 240, 228, 1) 100%),
                radial-gradient(#00813d 0.6px, transparent 0.6px);
    background-size: 100% 100%, 8px 8px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 5px 10px;
    border-bottom: 3px double #00813d;
    margin: 0;
}

.rankingbox_title_flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.rankingbox_oukan_custom {
    width: auto;
    flex-shrink: 0;
    margin: 0;
}

.rankingbox_link_custom {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.rankingbox_shouken_name_custom {
    font-weight: 900;
    color: #0056b3;
    text-decoration: underline;
    margin: 0;
    line-height: 1;
    display: inline-block;
    letter-spacing: 0.02em;
}

/* 縦型コンテンツ */
.rankingbox_vertical_content {
    background: #fff;
}

.rankingbox_banner_top {
    margin-bottom: 17px;
    text-align: center;
    background: #fff;
}

.rankingbox_banner_top img {
    width: 70%;
    max-width: 420px;
    height: auto;
    border: 1px solid #00813d;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.banner_top_catch {
    display: block;
    font-weight: bold;
    color: #e20039;
    margin: 10px 0px 10px 0px;
    padding: 0;
    line-height: 1.2;
}

/* ステータスアイコン */
.status_icon {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
}

.icon_red { color: #d63384; }
.icon_orange { color: #f39c12; }

.status_text {
    font-size: 10px;
    font-weight: bold;
    color: #333;
}

/* おすすめポイント */
.rankingbox_recommend {
    border: none;
    padding: 0;
    margin: 0;
}

.rankingbox_recommend:nth-of-type(3) h4 {
    background: #00813d;
}

.point_content {
    padding: 0;
}

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

.point_item {
    text-align: left;
    background: #f9fbf9;
    border: 1px solid #e0ede2;
    border-radius: 6px;
    padding: 12px;
}

.point_headline {
    display: flex;
    align-items: center;
    color: #00813d;
    font-weight: 900;
}

.point_title {
    color: #28a745;
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.point_text {
    color: #444;
    text-align: left;
    padding-left: 15px;
    line-height: 1.6;
    margin: 0;
}

/* 評価ポイント/口コミ */
.review_section {
    padding: 0px 0px 20px 0px;
}

.review_section h4 {
    background: #666;
}

.scroll-wrapper {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.scroll-wrapper::-webkit-scrollbar {
    height: 4px;
    display: none;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
    background: #e0ede2;
    border-radius: 10px;
}

.review-card {
    flex: 0 0 85%;
    min-width: 280px;
    max-width: 320px;
    background-color: #f3faf3;
    border: 1px solid #e0ede2;
    border-radius: 12px;
    padding: 24px 20px;
    box-sizing: border-box;
    white-space: normal;
    height: auto;
    display: inline-block;
    scroll-snap-align: center;
    margin-bottom: 10px;
    position: relative;
}

.review-card p {
    line-height: 1.7;
    margin: 0;
    color: #333;
    text-align: left;
    word-wrap: break-word;
    overflow: visible;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(40, 167, 69, 0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
    padding-right: 60px;
}

.user-main {
    display: flex;
    align-items: center;
}

.user-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #fff;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.review-body {
    display: block;
}

.review-text {
    font-size: 15px;
    line-height: 1.8;
    color: #222;
    margin: 0;
    text-align: left;
}

/* キャンペーン */
.campaign_section {
    padding: 0;
}

.campaign_section h4 {
    background: #dd7930;
}

.campaign_content {
    margin: 0px 15px 15px 15px;
    padding: 15px;
    border: 1px dashed #e67e22;
    border-radius: 8px;
    text-align: center;
    background: #fff9e6;
}

.campaign_content p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    color: #333;
    font-weight: bold;
}

.highlight_red {
    color: #c0392b;
    font-weight: 900;
    line-height: 1.2;
    display: inline-block;
    margin: 5px 0;
    text-decoration: underline;
}

/* ボタン/CTAセクション */
.button_section_simple {
    text-align: center;
    margin: -15px 0px -40px 0px;
    padding: -15px 0px 0px 0px;
    background: #fff;
}

.cta_container_final {
    display: inline-block;
    width: 100%;
    max-width: 400px;
    position: relative;
}

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

.main_button_red, .main_button_green_compact {
    display: block;
    margin: 0 auto;
    padding: 15px 0;
    background: linear-gradient(to bottom, #58d68d, #27ae60);
    color: #ffffff;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 0 #196f3d;
    transition: 0.1s;
    width: 85%;
}

.main_button_green_compact {
    background: linear-gradient(to bottom, #ff3333, #cc0000);
    box-shadow: 0 5px 0 #990000;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

.main_button_red:active, .main_button_green_compact:active {
    box-shadow: 0 2px 0 #196f3d;
    transform: translateY(3px);
}

.main_button_green_compact:active {
    box-shadow: 0 2px 0 #1e8449;
}

.button_caption {
    background: #e74c3c;
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: -12px;
    position: relative;
    z-index: 2;
    display: inline-block;
}

/* ===============================================================================================================================================
 * 5. クロージングセクション (Closing Section)
 * =============================================================================================================================================== */

.last_push_frame {
    border: 1px solid #00813d;
    border-radius: 0;
    background: #fff;
    margin: 10px auto;
    padding: 0;
}

.last_push_header, .last_push_header_fix {
    display: block;
    text-align: center;
    width: 100%;
    padding: 10px 0;
    margin: 0;
    justify-content: center;
}

.last_push_title {
    display: inline-block;
    font-weight: 900;
    color: #00813d;
    margin: 0 auto;
    text-align: center;
    line-height: 1.2;
    border: none;
    background: none;
    width: auto;
}

.last_push_inner {
    padding: 25px 15px;
}

.last_push_text_content {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    text-align: left;
    margin-top: 10px;
}

.last_push_text_content p {
    text-align: justify;
}

.last_push_highlight_box {
    background: #f0f8f3;
    border: 1px solid #00813d;
    padding: 15px 10px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.highlight_main {
    color: #00813d;
    font-weight: 900;
    display: block;
}

.highlight_sub {
    display: block;
    margin-top: 4px;
}

.last_push_final_message {
    font-size: 14px;
    font-weight: 900;
    color: #222;
    border-top: 1px dotted #ccc;
    padding-top: 15px;
    margin-top: 20px;
    text-align: center;
}

/* ===============================================================================================================================================
 * 6. NISAセクション (NISA Features)
 * =============================================================================================================================================== */

.col2_custom {
    margin-top: 40px;
    padding: 0 10px;
}

.green_headline {
    font-size: 18px;
    color: #00813d;
    border-left: 5px solid #00813d;
    padding-left: 10px;
    margin-bottom: 20px;
    font-weight: 900;
}

.nisa_feature_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature_card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature_card a {
    text-decoration: none;
    display: block;
    padding: 12px;
}

.card_flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card_img {
    flex-shrink: 0;
}

.card_img img {
    width: 60px;
    height: auto;
    border-radius: 4px;
}

.card_info {
    flex: 1;
}

.card_info h3 {
    color: #00813d;
    margin: 0 0 4px;
    font-weight: 900;
}

.card_info p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ===============================================================================================================================================
 * 7. フォーム (Form Styles)
 * =============================================================================================================================================== */

.form_box {
    padding: 10px;
}

.form_box02 ul.form_koumoku {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid #d1d1d1;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
}

.form_box02 ul.form_koumoku > li:first-child {
    width: 100%;
    border-bottom: 1px solid #e1e1e1;
    text-align: left;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.form_box02 ul.form_koumoku > li:not(:first-child) {
    width: 48%;
    padding: 5px 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 4px;
}

.submit {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
}

/* ===============================================================================================================================================
 * 8. 比較表 (Comparison Table Detail)
 * =============================================================================================================================================== */

/* 横スクロール制御 */
.hikaku_scroll {
    overflow-x: auto;
    width: 100%;
    display: block;
}

/* テーブル基本 */
table {
    text-align: center;
    clear: both;
    width: 100%;
    margin: 13px auto;
    border-collapse: collapse;
    border: 1px solid #808080;
}

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

/* ヘッダー列 */
.hikaku_scroll th {
    width: 90px;
    border: 1px #ccc solid;
    background-color: #f3faf3;
    font-size: 13px;
}

/* 左端列の固定 */
.hikaku_scroll th.fixed01 {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    width: 65px;
}

.hikaku_scroll th.fixed01::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 100%;
    height: 100%;
    background-color: #f3faf3;
    z-index: -1;
    box-sizing: content-box;
    border: 0.5px #ccc solid;
}

/* セル */
.hikaku_scroll td {
    width: 90px;
    border: 1px #ccc solid;
    padding: 6px 4px;
    font-size: 20px;
    background-color: #fff;
    vertical-align: middle;
}

.baseline { vertical-align: baseline; }

/* コンテンツ要素 */
.logo_frame {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -20px;
}

.logo_frame img.img_waku, .company-banner {
    max-width: 120px;
    height: auto;
    margin: 0 auto 5px;
    display: block;
    padding: 3px;
    background: #fff;
}

.rank-icon, .mark-icon, .hikaku_scroll td img {
    max-width: 35px;
    height: auto;
    margin-bottom: 2px;
}

.img_waku { padding: 1px; }

.frame_text02 {
    font-size: 18px;
    margin-top: 5px;
    line-height: 1.3;
}

td.yohaku { padding: 12px 0; }

/* テキスト装飾 */
.text_small { font-size: 12px; }

#contents .hikaku_scroll th.fixed01 .text_verysmall {
    display: block;
    font-size: 9px;
    margin-top: 0px;
    text-align: center;
}

.gray_text02 {
    color: gray;
    padding: 5px;
    background: #f1f1f1;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
}

.hikaku_scroll td.text_area_small {
    font-size: 18px;
    line-height: 1.4;
    padding: 8px 3px;
}

/* ボタン（公式・詳細） */
.button07 {
    display: block;
    position: relative;
    background-color: #ed2f2f;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 3px 0 #bbb;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
    overflow: hidden;
    width: 80%;
    margin: 10px auto;
}

.detail_btn {
    display: block;
    position: relative;
    border-radius: 4px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
    padding: 15px;
    overflow: hidden;
    width: 80%;
    margin: 10px auto;
}

.button_text {
    color: #fff !important;
    margin: 0 auto;
    font-size: 20px;
    text-align: center;
}

/* アニメーション */
.reflection {
    background-color: #fff;
    height: 100%;
    width: 30px;
    top: -180px;
    left: 0;
    position: absolute;
    opacity: 0;
    transform: rotate(45deg);
    animation: reflection 3s ease-in-out infinite;
}

@keyframes reflection {
    0% { transform: scale(0) rotate(45deg); opacity: 0; }
    80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
    81% { transform: scale(4) rotate(45deg); opacity: 1; }
    100% { transform: scale(50) rotate(45deg); opacity: 0; }
}

/* ===============================================================================================================================================
 * 9. セクションオーバーライド (Design Overrides)
 * =============================================================================================================================================== */

/* 見出しアクセント */
#contents .rankingbox_recommend h4,
#contents .review_section h4,
#contents .campaign_section h4 {
    background: none;
    background-color: transparent;
    color: #333;
    border-left: 6px solid #00813d;
    border-bottom: 1px solid #e0ede2;
    padding: 10px 0 10px 15px;
    margin: 0px 15px 10px 15px;
    height: auto;
    text-align: left;
}

#contents .campaign_section h4 {
    border-left-color: #dd7930;
}

/* 背景色設定 */
#contents .campaign_section .campaign_content {
    background-color: #fffaf7;
    border: 1px solid #f9e6d8;
    padding: 15px;
    margin: 0 15px 20px 15px;
    border-radius: 8px;
}

#contents .rankingbox_recommend .point_item, 
#contents .review_section .review-card {
    background-color: #f7faf7;
    border: 1px solid #e0ede2;
    padding: 10px;
    margin: 0 10px 10px 10px;
    border-radius: 8px;
}

/* インタラクション */
#contents .review_section .scroll-wrapper {
    cursor: grab;
    user-select: none;
}

#contents .review_section .scroll-wrapper:active {
    cursor: grabbing;
}

/* ===============================================================================================================================================
 * 10. レスポンシブ対応 (Media Queries)
 * =============================================================================================================================================== */

/* 10-1. デスクトップ以上 (PC: min-width: 980px) */
@media screen and (min-width: 980px) {
    .banner-wrapper { max-width: 1500px; margin: 0 auto; padding: 0; }
    .banner-img { max-width: 100%; }
    #contents { width: 1000px; margin: 0 auto; overflow-x: hidden; }
    #top_nav { max-width: none; }
    .footer_contents { width: 800px; margin: 20px auto; }
    body, p { font-size: 15px; }
    h1 { font-size: 32px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }
    h4 { font-size: 18px; margin-left: 20px; height: 50px; }
    .mark02 { font-size: 22px; }
    .footer_contents .sitename { font-size: 20px; }
    .footer_contents li { font-size: 14px; }
    .copylights { font-size: 100%; }
    address { font-size: 90%; }
    ul li { font-size: 16px; }
    .company-banner { max-width: 160px; width: 90%; height: auto; }
    .sub_catch_hikaku { width: 70%; margin: 0 auto 5px; display: block; }
    .best01 .ranking-content-flex, .best02 .ranking-content-flex, .best03 .ranking-content-flex, 
    .best04 .ranking-content-flex, .best05 .ranking-content-flex {
        display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 30px; margin: 20px;
    }
    .detail_btn01 { font-size: 16px; }
    .point_item { margin: 15px; }
    .point_headline { font-size: 24px; margin-bottom: 10px; }
    .point_text { font-size: 21px; }
    .review-card { flex: 0 0 auto; min-width: 300px; max-width: 350px; margin: 5px; }
    .review-text { line-height: 1.8; font-size: 17px; }
    .campaign_content p { font-size: 24px; }
    .highlight_red { font-size: 34px; }
    .banner_top_catch { font-size: 30px; }
    .rankingbox_oukan_custom { height: 50px; }
    .rankingbox_shouken_name_custom { font-size: 28px; padding: 10px 10px 0; }
    .main_button_green_compact { width: 100%; font-size: 25px; }
    .card_info h3 { font-size: 20px; }
    .card_info p { font-size: 16px; }
    .last_push_title { font-size: 35px; }
    .last_push_text_content p { font-size: 23px; }
    .highlight_main { font-size: 35px; }
    .highlight_sub { font-size: 23px; }
    .rankingbox_vertical_content { padding: 15px; }
    .header_flex_list { height: 60px; }
    .logo-img { width: 250px; }
    .top_pr { font-size: 18px; }
    .rankingbox_recommend h4 { font-size: 22px; }
}

/* 10-2. スマートフォン・タブレット (max-width: 979px) */
@media screen and (max-width: 979px) {
    .banner-wrapper { padding: 0; }
    .detail_btn01 { font-size: 12px; }
    .sub_catch_hikaku { width: 100%; max-width: 100%; margin: 0 auto 10px; }
    .point_item { margin: 10px 15px; }
    .point_headline { font-size: 16px; margin-bottom: 5px; }
    .point_text { font-size: 14px; }
    .review-card { margin: 0; }
    .review-text { line-height: 1.6; font-size: 13px; }
    .campaign_content p { font-size: 13px; }
    .highlight_red { font-size: 20px; }
    .banner_top_catch { font-size: 18px; }
    .rankingbox_oukan_custom { height: 32px; }
    .rankingbox_shouken_name_custom { font-size: 18px; padding: 10px 0 0; }
    .main_button_green_compact { width: 82%; font-size: 18px; }
    .card_info h3 { font-size: 15px; }
    .card_info p { font-size: 12px; }
    .last_push_title { font-size: 16px; }
    .last_push_text_content p { font-size: 14px; }
    .highlight_main { font-size: 16px; }
    .highlight_sub { font-size: 13px; }
    .rankingbox_vertical_content { padding: 5px; }
    .header_flex_list { height: 40px; }
    .logo-img { width: 170px; }
    .top_pr { font-size: 11px; }
    .rankingbox_recommend h4 { font-size: 15px; }
    #top_nav, #contents { width: 700px; }
    .hikaku_scroll { margin: auto; }
}

/* 10-3. タブレット以下 (max-width: 767px) */
@media screen and (max-width: 767px) {
    #contents, #top_nav { width: 90%; max-width: 700px; overflow-x: hidden; }
    .footer_contents { width: 540px; }
    .footer_contents .sitename { font-size: 16px; }
    .footer_contents li { font-size: 12px; }
    th { font-size: 14px; }
    td { font-size: 18px; margin: 0; }
}

/* 10-4. 小型スマホ (max-width: 479px) */
@media screen and (max-width: 479px) {
    #contents, #top_nav, .footer_contents { width: 100%; }
    #contents { overflow-x: hidden; }
    .footer_contents .sitename { font-size: 14px; }
    .footer_contents li { font-size: 10px; }
    th { font-size: 12px; }
    .form_btn { width: 28vw; height: 10vw; }
}

/* 10-5. 特殊サイズ・微調整 */
@media screen and (max-width: 450px) {
    td { font-size: 14px; margin: 0; }
}

@media screen and (max-width: 985px) {
    header.sb-slide, #head_area, .header_flex_list, .top_pr { visibility: visible; opacity: 1; }
}

/* その他ユーティリティ */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===============================================================================================================================================
 * 11. 口コミ横スクロール
 * =============================================================================================================================================== */

/* PCのみに適用 */
@media screen and (min-width: 980px) {
    /* IDセレクタ(#contents)を付けて優先度を上げる */
    #contents .review_section .scroll-wrapper {
        cursor: grab;
        /* スナップ機能をオフにしてJSと衝突させない */
        scroll-snap-type: none; 
        /* スムーズスクロールをオフ（これがないとカクつきます） */
        scroll-behavior: auto; 
        overflow-y: hidden; 
    }

    #contents .review_section .scroll-wrapper.grabbing {
        cursor: grabbing;
        user-select: none;
        -webkit-user-select: none;
    }
}

/* ===============================================================================================================================================
 * 12. 矢印
 * =============================================================================================================================================== */

.top-arrow {
	width: 0px;
	margin: 15px auto;
	border-style: solid;
	border-width: 40px 200px 0 200px;
	border-color: #124813 transparent transparent transparent;
	animation: flash 1s infinite;
	animation-direction: alternate;
	animation-play-state: running;
}

/* ===============================================================================================================================================
 * 13. ランキングボックス_スペック表（究極の視認性ブラッシュアップ版）
 * =============================================================================================================================================== */

/* --- 1. 親要素：より洗練されたカードデザイン --- */
.flex_wrapper {
    display: flex;
    align-items: center;      /* 画像と表を垂直方向の中央で揃える */
    justify-content: center;
    width: 98%;
    max-width: 950px;         /* 広がりすぎない絶妙なサイズ */
    margin: 20px auto;
    padding: 5px;    
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 16px;      /* 角丸を少し強めてモダンに */
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), 0 1px 8px rgba(0,0,0,0.02); /* 二重の影で自然な奥行き */
    border: 1px solid #f2f2f2;
}

/* --- 2. バナー部分：横並びの時だけ幅を制限する --- */

/* セレクタの頭に .flex_wrapper を追加 */
.flex_wrapper .rankingbox_vertical_content {
    flex: 0 0 42%;           /* 横並びの時だけ42%にする */
    max-width: 400px;
    margin: 0;
}

/* 画像自体の見た目（丸みや影）は共通で良いので、ここはそのまま */
.rankingbox_vertical_content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* ホバー演出も共通でOK */
.rankingbox_vertical_content img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* --- 3. スペック表：読みやすさ特化型 --- */
.spec_table {
    flex: 1;
    max-width: 480px;
    border-collapse: separate; 
    border-spacing: 0;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
    background-color: #fafafa; /* 表全体の背景を極薄いグレーに */
}

/* --- 4. セルデザイン：情報の整理 --- */
.spec_table th, 
.spec_table td {
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
    vertical-align: middle;
    padding: 14px 8px;        /* 上下を少し広げて読みやすく */
}

.spec_table th {
    background-color: #f1f5f2; /* 見出しの緑を少しだけ強調 */
    color: #2c3e50;           /* 文字を濃いグレーにしてコントラストを上げる */
    font-size: 22px;
    font-weight: 700;         /* 太文字を強調 */
    letter-spacing: 0.05em;   /* 文字間隔を少し広げる */
}

.spec_table td {
    background-color: #ffffff;
}

/* 行ごとの背景色（ゼブラ）でおしゃれに */
.spec_table tr:nth-child(even) td {
    background-color: #fdfdfd;
}

/* 最後の列・行の線を消す */
.spec_table th:last-child, .spec_table td:last-child { border-right: none; }
.spec_table tr:last-child td { border-bottom: none; }

/* 評価アイコン（◎）の調整 */
.item_img02 {
    max-width: 40px;
    height: auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

/* --- 5. モバイル対応：スマホでも美しく --- */
@media screen and (max-width: 768px) {
    .flex_wrapper {
        flex-direction: column;
        padding: 20px 15px;
        gap: 25px;
    }

    .rankingbox_vertical_content {
        max-width: 100%;
        flex: 0 0 auto;
    }

    .spec_table {
        max-width: 100%;
        font-size: 13px;
    }
    
    .spec_table th, .spec_table td {
        padding: 10px 4px;
        white-space: normal;
    }
}

/* ===============================================================================================================================================
 * 14. クローズコンテンツ
 * =============================================================================================================================================== */
.rankingbox.last_push_frame {
    padding-bottom: 25px; /* ここでボタン下の余白を調整 */
}


/* ===============================================================================================================================================
 * 15. TOP3セクション (PC用：横並び・スクロールなし版)
 * =============================================================================================================================================== */

/* --- 全体の枠組み --- */
.scroll-widget-wrapper {
  max-width: 1000px; /* PC用に少し幅を広げました */
  margin: 0 auto 0px;
  padding: 20px; 
  background-color: transparent; 
  border-radius: 12px;
  font-family: sans-serif;
}

/* タイトル */
.scroll-widget-heading {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
  text-align: left;
}

/* --- 横並びのコンテナ（スクロール機能を削除） --- */
.scroll-track {
  display: flex;
  justify-content: center; /* 中央寄せ */
  gap: 20px;               /* カード同士の間隔 */
  padding: 0;
  /* スクロール関連のプロパティを削除 */
}

/* --- 個別のカード --- */
.scroll-item {
  /* 3等分から余白分を引いた幅に設定 */
  flex: 0 1 calc(33.333% - 14px); 
  min-width: 250px; /* 極端に狭くなるのを防ぐ */
  
  background: #f6faf5;
  border-radius: 12px;
  border: 1px solid #cce0cd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 20px; /* 内側の余白を少し調整 */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* --- 1行にまとめる部分（王冠・順位・会社名） --- */
.item-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* 王冠と順位 */
.item-award {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.award-mark { font-size: 18px; }
.award-rank {
  font-size: 22px;
  font-weight: bold;
  font-family: Arial, sans-serif;
}
.award-label { font-size: 12px; font-weight: bold; }

/* 順位カラー */
.award-1 { color: #d4af37; }
.award-2 { color: #a0a0a0; }
.award-3 { color: #cd7f32; }

/* 会社名 */
.item-company {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 6px 0px 0px 0px;
}

/* --- キャッチコピー --- */
.banner_top_catch {
  text-align: center;
  color: #e60045;
  font-weight: bold;
  font-size: 16px;
  margin: 10px 0 12px 0;
  letter-spacing: 0.5px;
  min-height: 2.4em; /* 2行分程度の高さを確保して揃える */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- 画像エリア --- */
.item-visual {
  margin: 0; /* 下の余白を完全に除去 */
  width: 100%;
}
.item-visual img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  display: block; 
}

body .lp-wrap {
  width: 100% !important;
}