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

/* Base Settings */
:root {
    --primary-gold: #D4AF37;
    --secondary-navy: #1A237E;
    --dark-navy: #0D1B4A;
    --light-gray: #F5F5F5;
    --text-dark: #333;
    --text-light: #666;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans JP', '游ゴシック', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    margin: 0;
}

main {
    width: 1024px;
    margin: 0 auto;
}

img {
    width: 100%;
    display: block;
}

.header {
    position: absolute;
}

.index_part {
    margin: 60px 0;
}

.index_group {
    width: 800px;
    margin: 0 auto;
    border: 2px solid #d3d3d3;
    border-radius: 10px;
    overflow: hidden;
}

.index_title {
    padding: 5px 0;
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background: #0E7151;
}

.index_title img {
    display: inline-block;
    width: 4%;
    margin-right: 9px;
}

.index_contents {
    background: #f9fafb;
    padding: 20px 50px;
}

.index_contents .chapter {
    font-weight: bold;
    margin: 5px 0;
}

.index_contents ul {
    position: relative;
    left: 16px;
}

.index_contents li {
    font-weight: 500;
    margin: 8px 0;
}

.index_contents .ranking li {
    list-style: none;
    position: relative;
    padding-left: 30px;
}

.index_contents .ranking li.prize {
    margin-top: 12px;
    margin-bottom: 6px;
}

.index_contents .ranking li:nth-of-type(4) {
    margin-top: 12px;
}

.index_contents .ranking li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 44%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.index_contents .ranking li.prize::before {
    content: '';
    position: absolute;
    left: 0;
    top: 35%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
}

.index_contents .ranking li:nth-of-type(1)::before {
    background-image: url(../img/lp_ranking/list_01_gold.webp);
}

.index_contents .ranking li:nth-of-type(2)::before {
    background-image: url(../img/lp_ranking/list_02_silver.webp);
}

.index_contents .ranking li:nth-of-type(3)::before {
    background-image: url(../img/lp_ranking/list_03_bronze.webp);
}

.index_contents .ranking li:nth-of-type(4)::before {
    background-image: url(../img/lp_ranking/list_04.webp);
}

.index_contents .ranking li:nth-of-type(5)::before {
    background-image: url(../img/lp_ranking/list_05.webp);
}

.index_contents .ranking li:nth-of-type(6)::before {
    background-image: url(../img/lp_ranking/list_06.webp);
}

.index_contents .ranking li:nth-of-type(7)::before {
    background-image: url(../img/lp_ranking/list_07.webp);
}

.index_contents .ranking li:nth-of-type(8)::before {
    background-image: url(../img/lp_ranking/list_08.webp);
}

.index_contents .ranking li:nth-of-type(9)::before {
    background-image: url(../img/lp_ranking/list_09.webp);
}

.index_contents .ranking li:nth-of-type(10)::before {
    background-image: url(../img/lp_ranking/list_10.webp);
}

.index_contents .ranking li:nth-of-type(11)::before {
    background-image: url(../img/lp_ranking/list_11.webp);
}

.index_contents .point li {
    list-style: none;
    position: relative;
    padding-left: 30px;
}

.index_contents .point li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.index_contents .point li:nth-of-type(1)::before {
    background-image: url(../img/lp_ranking/list_01.webp);
}

.index_contents .point li:nth-of-type(2)::before {
    background-image: url(../img/lp_ranking/list_02.webp);
}

.index_contents .point li:nth-of-type(3)::before {
    background-image: url(../img/lp_ranking/list_03.webp);
}

.index_contents .point li:nth-of-type(4)::before {
    background-image: url(../img/lp_ranking/list_04.webp);
}

.index_contents .point li:nth-of-type(5)::before {
    background-image: url(../img/lp_ranking/list_05.webp);
}

/* data-scroll-targetのホバースタイル */
.index_part [data-scroll-target] {
    cursor: pointer;
    transition: text-decoration 0.2s ease;
}

.index_part [data-scroll-target]:hover {
    text-decoration: underline;
}

/* .guide_graph内のdata-scroll-targetはデフォルトで下線 */
.guide_graph [data-scroll-target] {
    cursor: pointer;
    text-decoration: underline;
}

.guide_sentence {
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    font-size: 22px;
}

.guide_graph {
    overflow-x: auto;
}

.explanation_pc {
    background: #fafafa;
}

.explanation_pc .company_detail {
    padding-top: 60px;
}

.explanation_pc .company_name {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 82%;
    margin: 0 auto;
    border-bottom: 4px solid #197064;
}

.explanation_pc .company_name img.top {
    position: relative;
    display: inline-block;
    top: 14%;
    width: 27px;
}

.explanation_pc .company_name img {
    position: relative;
    display: inline-block;
    top: 6%;
    width: 27px;
}

.explanation_pc .company_name p {
    font-size: 24px;
    font-weight: 600;
    margin: 16px 0;
    margin-left: 5px;
    display: inline-block;
}

.explanation_pc .company_name a {
    margin: 16px 0;
    padding: 5px 15px;
    border: 2px solid #197064;
    border-radius: 30px;
    color: #197064;
    text-decoration-line: none;
    transition: all 0.3s ease;
}

.explanation_pc .company_name a:hover {
    background: #197064;
    color: #ffffff;
}

.explanation_sp, .sp {
    display: none;
}

.detail_more_btn {
    height: 60px;
    background: #fafafa;
}

.to_official_site {
    text-align: center;
    background: #fafafa;
}

.to_official_site a {
    display: inline-block;
    margin: 20px auto;
    padding: 12px 0;
    width: 90%;
    border: 2px solid #197064;
    border-radius: 50px;
    font-weight: bold;
    color: #197064;
    text-decoration: none;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: #0E7151;
    padding: 26px 0;
}

.copyright a {
    color: #fff;
}

img.move_up {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 100;
    filter: drop-shadow(0 0 7px #a1a1a1);
}

/* PC画面では全て表示 */
@media (min-width: 769px) {
    .hidden_table_row {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    main {
        max-width: 100%;
        margin: 0;
    }

    .index_contents ul {
        left: 20px;
    }
    
    .index_contents .ranking li {
        padding-left: 30px;
    }

    .explanation_pc, .pc {
        display: none;
    }

    .explanation_sp, .sp {
        display: block;
    }

    .index_group {
        width: 90%;
    }

    .index_title {
        font-size: 6vw;
    }

    .index_title img {
        display: inline-block;
        width: 10%;
        margin-right: 2vw;
    }

    .index_contents {
        padding: 20px 20px;
    }

    .index_contents .point li:nth-of-type(3)::before {
        top: 27%;
    }

    .detail_items {
        padding: 0 17px;
        background: #fafafa;
        overflow: hidden;
    }

    .detail_items img {
        width: 90%;
        margin: 0 auto;
    }

    .detail_items .open {
        display: none;
    }

    .guide_sentence {
        width: 80%;
        margin: 20px auto;
        font-size: 16px;
    }

    /* グリッドスタイル */
    .guide_graph {
        margin-left: 20px;
    }

    .detail_grid {
        width: 100%;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }

    .grid_row {
        display: grid;
        grid-template-columns: 40% 60%;
        border-bottom: 1px solid #e5e7eb;
        transition: all 0.4s ease;
    }

    .grid_row .label {
        background: #F9FAFB;
        font-weight: 600;
        white-space: nowrap;
        padding: 16px;
        font-size: 16px;
        line-height: 1.5;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: padding 0.4s ease;
    }

    .grid_row .value {
        background: #fff;
        font-weight: 500;
        text-align: center;
        padding: 16px;
        font-size: 16px;
        line-height: 1.5;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: padding 0.4s ease;
    }

    /* 表示されている行全体のラッパー */
    .visible_rows_wrapper {
        position: relative;
    }

    /* グラデーション（フェードイン/アウトアニメーション付き） */
    .visible_rows_wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .detail_grid.expanded .visible_rows_wrapper::after {
        opacity: 0;
    }

    /* もっと見るボタンスタイル */
    .more_btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 16px;
        font-weight: 700;
        color: #6B7280;
        line-height: 1.5;
        margin: 20px auto;
    }

    .more_btn .arrow_icon {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    .more_btn .arrow_icon.rotated {
        transform: rotate(270deg);
    }

    /* バッジスタイル */
    .badge_container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }

    .badge {
        display: inline-block;
        padding: 2px 12px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
    }

    .badge_green {
        background: #e0e9ce;
        color: #4c5a31;
    }

    .badge_blue {
        background: #d3e1f1;
        color: #233876;
    }

    .badge_teal {
        background: #d6e9e4;
        color: #244f44;
    }

    .badge_yellow {
        background: #e6e1c6;
        color: #4c4419;
    }

    .badge_orange {
        background: #f0e4d4;
        color: #5f431e;
    }

    .badge_pink {
        background: #e6d3cd;
        color: #522a1d;
    }

    /* アニメーション用 */
    .grid_row.hidden_row {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        border-bottom: none;
    }

    .grid_row.hidden_row .label,
    .grid_row.hidden_row .value {
        padding: 0 16px;
    }

    .grid_row.hidden_row.show {
        max-height: 200px;
        opacity: 1;
        border-bottom: 1px solid #e5e7eb;
    }

    .grid_row.hidden_row.show .label,
    .grid_row.hidden_row.show .value {
        padding: 16px;
    }

    .grid_row.hidden_row:last-child.show {
        border-bottom: none;
    }

    .copyright {
        text-align: left;
        padding: 26px 0 26px 15px;
    }

    img.move_up {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }
}

/* 評価基準セクション */
.evaluation_criteria_section {
    background-color: #f9fafb;
    padding: 8px 16px;
    margin: 20px auto;
    max-width: 90%;
}

.evaluation_criteria_btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.5;
}

.evaluation_criteria_btn .btn_content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.evaluation_criteria_btn .btn_content img {
    width: 12%;
}

.evaluation_criteria_btn .icon_pen {
    flex-shrink: 0;
}

.evaluation_criteria_btn .icon_toggle {
    flex-shrink: 0;
}

.evaluation_criteria_btn .icon_minus {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.evaluation_criteria_btn .icon_plus {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.evaluation_criteria_btn.active .icon_plus {
    opacity: 0;
}

.evaluation_criteria_btn.active .icon_minus {
    opacity: 1;
}

.evaluation_criteria_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 4px;
}

.evaluation_criteria_content.show {
    max-height: 1000px;
    padding: 12px 4px 0;
}

.criteria_item {
    margin-bottom: 12px;
}

.criteria_item:last-child {
    margin-bottom: 0;
}

.criteria_title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 4px 0;
}

.criteria_description {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* data-scroll-target属性を持つ要素にポインターカーソルを適用 */
[data-scroll-target] {
    cursor: pointer;
}

/* 比較表スタイル */
.comparison_table {
    overflow-x: auto;
    margin: 40px auto;
    border: 1px solid #dedede;
    box-shadow: 0px 0px 9px 0px #dbdbdb;
    border-radius: 10px;
}

.comparison_table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.comparison_table thead {
    background: #F3F4F6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison_table th {
    padding: 16px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.comparison_table th:first-child {
    border-left: 1px solid #e5e7eb;
    border-right: 3px solid #e5e7eb;
}

.comparison_table thead tr:first-child th {
    border-top: 1px solid #e5e7eb;
}

.comparison_table tbody tr {
    height: 150px;
}

.comparison_table tbody tr:hover {
    background: #f9fafb;
}

.comparison_table td {
    padding: 10px 5px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    vertical-align: middle;
    height: 150px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.comparison_table td:first-child {
    border-left: 1px solid #e5e7eb;
    border-right: 3px solid #e5e7eb;
}

/* 企業名列 */
.comparison_table .company_name {
    font-weight: 600;
    color: #111827;
    text-align: left;
    min-width: 100px;
    background: #f9fafb;
    position: sticky;
    left: 0;
    z-index: 5;
    padding-left: 10px;
}

.comparison_table .company_name_col {
    font-weight: 600;
    color: #111827;
    text-align: left;
    min-width: 80px;
    background: #f9fafb;
    position: sticky;
    left: 0;
    z-index: 5;
}

/* ヘッダーの企業名セルはz-indexを上げる */
.comparison_table thead th.company_name,
.comparison_table thead th.company_name_col {
    z-index: 15;
}

/* レーダーチャート列 */
.comparison_table .radar_chart {
    text-align: center;
    min-width: 223px;
    height: 150px;
    padding: 0;
}

.comparison_table .radar_chart img {
    width: 150px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.comparison_table .radar_chart img:hover {
    transform: scale(1.05);
}

/* 特徴列 */
.comparison_table .features {
    min-width: 350px;
    max-width: 500px;
}

.comparison_table .features ol {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}

.comparison_table .features li {
    margin-bottom: 1px;
    line-height: 1.6;
}

.comparison_table .features li:last-child {
    margin-bottom: 0;
}

/* リンク列 */
.comparison_table .link {
    text-align: center;
    min-width: 136px;
}

.comparison_table .site_link_btn {
    display: inline-block;
    width: 104px;
    padding: 5px 8px;
    border: 2px solid #197064;
    border-radius: 30px;
    color: #197064;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.comparison_table .site_link_btn:hover {
    background: #197064;
    color: #ffffff;
}

/* 事前査定方法列 */
.comparison_table .assessment_method {
    text-align: center;
    min-width: 221px;
}

.comparison_table .assessment_method .badge {
    display: inline-block;
    margin: 4px;
}

/* 来店事前予約列 */
.comparison_table .reservation {
    text-align: center;
    min-width: 120px;
    white-space: nowrap;
}

/* 買取方式列 */
.comparison_table .purchase_method {
    text-align: center;
    min-width: 192px;
}

.comparison_table .purchase_method .badge {
    display: inline-block;
    margin: 4px;
}

/* 買取強化ブランド列 */
.comparison_table .brand {
    width: 290px;
    white-space: normal;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 12px;
    align-items: center;
    align-content: center;
}

.comparison_table .brand_badge {
    display: inline-block;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* バッジスタイル（比較表用） */
.comparison_table .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

.comparison_table .badge.badge_green {
    background-color: #e0e9ce;
    color: #4c5a31;
}

.comparison_table .badge.badge_blue {
    background-color: #d3e1f1;
    color: #233876;
}

.comparison_table .badge.badge_teal {
    background-color: #d6e9e4;
    color: #244f44;
}

.comparison_table .badge.badge_yellow {
    background-color: #e6e1c6;
    color: #4c4419;
}

.comparison_table .badge.badge_orange {
    background-color: #f0e4d4;
    color: #5f431e;
}

.comparison_table .badge.badge_pink {
    background-color: #e6d3cd;
    color: #522a1d;
}

/* ブランドバッジスタイル（比較表用） */
.comparison_table .brand_badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 6px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

/* ブランド別の色設定 */
.comparison_table .brand_rolex {
    background-color: #f9f09d;
    color: #734c04;
    font-weight: 500;
}

.comparison_table .brand_iwc {
    background-color: #dadfb3;
    color: #7c750b;
    font-weight: 500;
}

.comparison_table .brand_panerai {
    background-color: #d5e6e7;
    color: #047481;
}

.comparison_table .brand_seiko {
    background-color: #d9eccb;
    color: #396e0f;
}

.comparison_table .brand_breitling {
    background-color: #dceee6;
    color: #03543f;
}

.comparison_table .brand_tagheuer {
    background-color: #e2dff6;
    color: #655484;
}

.comparison_table .brand_omega {
    background-color: #d1e5f1;
    color: #263d73;
}

.comparison_table .brand_cartier {
    background-color: #c9dbef;
    color: #1e429f;
}

.comparison_table .brand_richard_mille {
    background-color: #f8dec7;
    color: #b43403;
}

.comparison_table .brand_audemars_piguet {
    background-color: #f1dcdc;
    color: #9b1c1c;
}

.comparison_table .brand_patek_philippe {
    background-color: #efdbe6;
    color: #9f3262;
}

.comparison_table .brand_lange_sohne {
    background-color: #cee4d1;
    color: #5e735d;
}

.comparison_table .brand_vacheron_constantin {
    background-color: #F7EBBD;
    color: #7B6511;
}

.comparison_table .brand_zenith {
    background-color: #e2dff6;
    color: #655484;
}

.comparison_table .brand_grand_seiko {
    background-color: #d9eccb;
    color: #396e0f;
}

.comparison_table .brand_tudor {
    background-color: #c9dbef;
    color: #1e429f;
}

.comparison_table .brand_citizen {
    background-color: #d9eccb;
    color: #396e0f;
}

.comparison_table .brand_casio {
    background-color: #dadfb3;
    color: #7c750b;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .comparison_table {
        margin: 20px 0;
        border-radius: 0;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .comparison_table table {
        min-width: 800px;
    }

    .comparison_table th,
    .comparison_table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .comparison_table tbody tr {
        height: 120px;
    }

    .comparison_table .company_name {
        min-width: 90px;
    }

    .comparison_table .features {
        min-width: 280px;
    }

    /* SP画面では非表示機能を有効化 */
    .comparison_table .hidden_table_row {
        display: none !important;
    }

    .comparison_table .hidden_table_row.show {
        display: table-row !important;
    }
}

/* 比較表のもっと見るボタン */
.comparison_table_more_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #6B7280;
    line-height: 1.5;
    margin: 20px auto;
}

.comparison_table_more_btn .comparison_table_arrow_icon {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.comparison_table_more_btn .comparison_table_arrow_icon.rotated {
    transform: rotate(270deg);
}

/* PC画面では全て表示 */
@media (min-width: 769px) {
    .comparison_table .hidden_table_row {
        display: table-row !important;
    }

    .comparison_table_more_btn {
        display: none;
    }
}

/* レーダーチャート画像拡大ポップアップ */
.radar_chart_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.radar_chart_modal.active {
    display: flex;
}

.radar_chart_modal_content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.radar_chart_modal_image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.radar_chart_modal_close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.radar_chart_modal_close:hover {
    background: #333;
    color: #fff;
    transform: rotate(90deg);
}
