@charset "UTF-8";

/* ベーススタイル */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: #fdf3e9 /* 背景色 */;
    color: #333;
}

.container {
    max-width: 1000px; /* 全体の最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 15px; /* 左右の余白 */
}

/* ヘッダータイトル */
.page-header {
    text-align: center;
    margin: 40px 0;
}

.page-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #555;
    position: relative;
    display: inline-block; /* 下線のために必要 */
    padding-bottom: 10px; /* 下線との間隔 */
    margin: 0;
}

.mountain-icon {
    width: 30px; /* アイコンのサイズ調整 */
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.title-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* 下線の幅 */
    height: 3px;
    background-color: #d4a974; /* 茶色系の色 */
    border-radius: 2px;
}

/* 地域ナビゲーション */
.region-nav {
    margin-bottom: 30px; /* PCより少し狭く */
}

.region-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* ボタンが複数行になる場合 */
    justify-content: left; /* 中央寄せ */
    gap: 25px; /* ボタン間の隙間 */
}

.region-list li {
    width: calc(20% - 22px);
}

.satisfied-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* ボタンが複数行になる場合 */
    justify-content:space-between; /* 中央寄せ */
    gap: 12px; /* ボタン間の隙間 */
}

.satisfied-list li {
    width: 290px;
}

.region-button {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333!important;
    padding: 10px 18px;
    font-size: 1em;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap; /* ボタン内のテキストが改行されないように */
    width: 288px;
    text-decoration: none;
    text-align: center;
    display: table-cell;
}

.region-button.active {
    background-color: #333; /* アクティブ時の背景色 */
    color: #fff!important; /* アクティブ時の文字色 */
    border-color: #333;
}

.region-button:hover:not(.active) {
    background-color: #eee;
}

/* ランキング項目 */
.ranking-item {
    display: flex;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px; /* PCより少し狭く */
    border-radius: 8px;
    overflow: hidden; /* 角丸を適用するため */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ランキング項目 - NO. 部分 */
.ranking-no {
    /* アイコン画像の縦横比に合わせて幅と高さを調整 */
    width: 100px; /* アイコン画像の幅に合わせる（調整してください） */
    height: 100px; /* アイコン画像の高さに合わせる（調整してください） */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    
    color: transparent; /* テキストは画像に含まれるため、透明に */
    font-weight: bold;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-size: contain; /* アイコン画像を要素内に収める */
    background-position: center;
    background-repeat: no-repeat;
}

.ranking-no.no-1 {
    background-image: url('../images/no1_icon.png'); /* 1位のアイコン画像パス */
    background-color: transparent;
}

.ranking-no.no-2 {
    background-image: url('../images/no2_icon.png'); /* 2位のアイコン画像パスを修正 */
    background-color: transparent;
}

.ranking-no.no-3 {
    background-image: url('../images/no3_icon.png'); /* 1位のアイコン画像パス */
    background-color: transparent;
}

.ranking-no.no-4 {
    background-image: url('../images/no4_icon.png'); /* 2位のアイコン画像パスを修正 */
    background-color: transparent;
}

.ranking-no.no-5 {
    background-image: url('../images/no5_icon.png'); /* 2位のアイコン画像パスを修正 */
    background-color: transparent;
}

.ranking-no.no-6 {
    background-image: url('../images/no6_icon.png'); /* 1位のアイコン画像パス */
    background-color: transparent;
}

.ranking-no.no-7 {
    background-image: url('../images/no7_icon.png'); /* 2位のアイコン画像パスを修正 */
    background-color: transparent;
}

.ranking-no.no-8 {
    background-image: url('../images/no8_icon.png'); /* 1位のアイコン画像パス */
    background-color: transparent;
}

.ranking-no.no-9 {
    background-image: url('../images/no9_icon.png'); /* 2位のアイコン画像パスを修正 */
    background-color: transparent;
}

.ranking-no.no-10 {
    background-image: url('../images/no10_icon.png'); /* 2位のアイコン画像パスを修正 */
    background-color: transparent;
}

/* NO. 部分のテキスト（画像に含まれるため非表示にする） */
.ranking-no .rank-label,
.ranking-no .rank-number {
    display: none; /* テキストを完全に非表示にする */
}

/* NO. 部分の斜め線は不要 */
.ranking-no::before {
    display: none;
}


.ranking-content {
    display: flex;
    flex-grow: 1; /* 残りのスペースを占める */
}

.ranking-text-area {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.onsen-name {
    font-size: 1em;
    color: #777;
    margin-bottom: 5px;
}

.hotel-name {
    font-size: 1.5em;
    margin: 0 0 10px;
    color: #333;
    text-align: left;
    padding:0;
}

.region-tag {
    font-size: 0.8em;
    color: #777;
    font-weight: normal;
}

.review-box {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    /* color: #007bff; */ /* ここをコメントアウト/削除: アイコンを背景画像にするためテキストの色は不要 */
}

.address {
    margin-bottom:10px;
    font-size: 0.8em;
}

.onsenchi_area_breadcrumb {
    font-size: 0.8em;
}

.onsenchi_rankingbox_img {
    width: 160px;
    height: 97px;
    object-fit: cover;
}

.result_onsenchi_area_h2 {
    text-align: center;
    margin: 50px 0;
    font-size: 250%;
    font-weight: normal;
}

/* 修正点: .review-icon の表示 */
.review-icon {
    /* Font Awesomeのアイコンを非表示にするため、width/heightを設定し、背景画像を表示 */
    display: inline-block; /* Font Awesomeのiタグをblock要素にしてサイズを適用 */
    width: 22px; /* アイコン画像の実際の幅に調整 */
    height: 18px; /* アイコン画像の実際の高さに調整 */
    
    background: url('../images/img_rankingbox_comment.png') no-repeat center center / contain;
    
    /* Font Awesomeのアイコンの表示を打ち消す */
    font-family: 'Arial', sans-serif !important; /* Font Awesomeフォントの適用を解除 */
    font-weight: normal !important; /* Font Awesomeフォントのウェイトを解除 */
    content: none !important; /* Font Awesomeアイコンのコンテンツをクリア */
    color: transparent !important; /* Font Awesomeアイコンの色を透明に */

    position: relative; /* 必要であれば位置調整に使う */
    /* top: 4px; */ /* 元のFont Awesomeアイコンのベースライン調整だった可能性。必要なら調整 */
    margin-right: 5px;
}

/* 追加修正: Font Awesomeアイコンを完全に非表示にするためのより強力な設定 */
/* HTMLのiタグにはfa-solidクラスが付いているため、そちらも考慮 */
.fa-solid.fa-comment-dots.review-icon::before {
    content: none !important; /* Font Awesomeの擬似要素コンテンツを非表示 */
}

.review-label {
    font-size: 1em;
    font-weight: bold;
    color:#555; /* SP版の画像に合わせて色を調整 */
}

.review-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.plan-button {
    align-items: center;
    background-color: #8ec1c4;
    color: #fff!important;
    margin: 0 auto;
    padding: 10px 20px 12px;
    position: relative;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    width: 300px;
}

.plan-button:after{
    content: ">";
    position: absolute;
    right: 10px;
    padding: 4px 0 0 0;
}

.plan-button:hover {
    opacity: 0.8;
}

/* ランキング項目 - 写真エリア */
.ranking-image-area {
    width: 390px; /* PC版での画像の固定幅を340pxに設定 */
    flex-shrink: 0;
    position: relative;
}

.hotel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.award-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 80px;
    height: auto;
    z-index: 10;
}

.award-badge img {
    width: 100%;
    height: auto;
    display: block;
}


/* --- レスポンシブ対応（SP版） --- */
@media (max-width: 768px) {

    .container {
        padding: 0;
    }

    .page-title {
        font-size: 1.6em;
        margin-bottom: 0px;
    }
    .mountain-icon {
        width: 25px;
    }
    .title-underline {
        width: 80%;
    }

    .region-nav {
        margin-bottom: 20px;
        /* ここは region-list を中央寄せにするので、不要 */
    }

    .region-list {
        padding: 0 5px; /* 左右に少し余白を持たせる */
        -ms-overflow-style: none; /* 横スクロールを無効化 */
        scrollbar-width: none; /* 横スクロールを無効化 */
        gap: 6px; /* ボタン間の隙間を調整（少し狭めに） */
        display: flex;
        justify-content: flex-start; /* アイテムを左寄せ */
        /* Flexコンテナ自体を中央寄せにする */
        width: 375px; /* または明示的な幅を設定 */
        margin: 0 auto; /* ここで中央寄せ */
    }
    .region-list::-webkit-scrollbar {
        display: none; /* Webkit系のスクロールバーを非表示に */
    }
    
    .region-list li {
        margin: 0; /* liのmarginはgapで代替 */
        /* liの幅を固定値にするか、コンテンツに合わせる形に変更 */
        /* width: calc(50% - 5px); は2列固定になるため、削除 */
        width: 70px; /* コンテンツの幅に合わせて自動調整 */
        /* または min-width: 80px; のように最小幅を設定することも可能 */
        /* flex-shrink: 0; を追加して、ボタンが縮まないようにすることも検討 */
    }

    .satisfied-list {
        gap:7px;
    }

    .satisfied-list li {
    width: 32%;
    }  
    
    .region-button {
        /* ここを調整して、ボタン自体の幅を狭くします */
        padding: 8px 2px; /* 左右のpaddingを調整してボタンのサイズを決定 */
        font-size: 0.8em;
        /* width: 100%; は li の幅が auto になるため、削除 */
        width: 70px; /* ボタンの幅はコンテンツとpaddingで決定 */
        box-sizing: border-box; /* paddingを含めて幅を計算 */
        white-space: nowrap; /* テキストが改行されないように */
        display: block; /* ボタンをブロック要素にして、liの幅いっぱいに */
    }

    .button_2 {
        width: auto; 
        font-size: 0.8em;
    }

    /* ranking-itemは今回のUIとは直接関係ないので、そのままにしておきます */
    .ranking-item {
        flex-direction: column;
        margin-bottom: 15px;
        border-radius: 5px;
        position: relative;     
    }
    
    /* 修正点: SP版の .ranking-no */
    .ranking-no {
        /* SP版の画像に合わせる */
        width: 50px; /* 画像の見た目に合わせて調整 */
        height: 80px; /* 画像の見た目に合わせて調整 */
        /* background-size: cover; */ /* SP版の画像を見ると、はみ出しているためcoverを試すか、背景画像を調整 */
        background-size: 37px; /* アイコンがはみ出しているように見えるのでcoverを試します */
        background-position: center; /* アイコンを中央に */
        background-repeat: no-repeat; /* 繰り返さない */
        position: absolute;
        display: flex; /* flex-direction: row; と合わせるため */
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0; /* パディングも0に */
        z-index: 2;
    }

    /* SP版でもテキストは非表示のまま */
    .ranking-no .rank-label,
    .ranking-no .rank-number {
        display: none;
    }

    .ranking-content {
        flex-direction: column;
    }

    .ranking-text-area {
        order: 2;
        padding: 15px;
    }

    .onsen-name {
        font-size: 0.8em;
        margin: 0 0 5px;
    }

    .hotel-name {
        font-size: 1.2em;
        margin-bottom: 8px;
    }

    .region-tag {
        font-size: 0.75em;
    }

    .review-box {
        margin-bottom: 8px;
    }

    .review-icon {
        font-size: 1em; /* SPでのアイコンサイズ調整 */
        /* SP版でもPC版と同じCSSが適用されるため、ここで特別な調整は不要な場合が多い */
    }

    .review-label {
        font-size: 0.9em;
        color:#555;
    }

    .review-text {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    .plan-button {
        display: flex;
        justify-content: center;
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .ranking-image-area {
        width: 100%;
        order: 1;
    }
    .hotel-image {
        max-height: 244px !important;
        object-fit: cover;
    }

    .result_onsenchi_area_h2 {
    font-size: 150%;
}
    .onsenchi_rankingbox_img {
    width: 93px!important;
    height: 70px!important;

    }
}