@charset "utf-8";
/*　共通　*/
.ranking {
    max-width: 1000px;
    padding: 0;
    margin-right: auto;
    margin-left: auto;
    font-weight: 500;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "sans-serif";
}
li {
    list-style: none;
}
.ranking img {
    width: 100%;
    height: auto;
}
/*　スマホ用　*/
@media screen and (max-width:768px) {
    /*　画面サイズが768pxまではここを読み込む　*/
    .item_comment {
        font-size: 4vw;
        text-align: left;
        margin: 15px 30px 30px 27px;
    }
    .category_image {
        width: 70%;
        margin: 3rem auto 0;
    }
    .category {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
    }
    .category li {
        flex-basis: calc(33.33% - 10px);
        margin: 5px;
    }
    .category li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background-color: #393b50;
        color: white;
        text-align: center;
        line-height: 20px;
        font-size: 4.5vw;
        text-decoration: none;
        padding: 20px 0;
    }
    /* アンカーリンクをクリックしたときのスクロール位置の微調整 */ :target::before {
        content: "";
        display: block;
        height: 13vw; /* ヘッダーの高さ分の補正 */
        margin: -13vw 0 0; /* ヘッダーの高さ分をマイナスマージンで補正 */
    }
    ul.item_sub-image {
        display: flex;
        margin-top: 10px;
        padding: 0;
    }
    ul.item_sub-image li:first-child {
        margin-right: 10px;
    }
    ul.box1 {
        margin-bottom: 40px;
        padding: 0;
        align-items: flex-start;
    }
    li.box1_contents1 {
        width: 60%;
        text-align: center;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    li.box1_contents2 {
        width: 92%;
        text-align: left;
        padding-left: 7vw;
    }
    li.box1_contents2 p {
        font-size: 5vw;
        padding: 0;
        margin-top: 0;
        margin-bottom: 1rem;
        line-height: 1.5;
        border-bottom: #000000 solid 1px;
    }
    li.box1_contents2 span {
        color: #b60005;
    }
    .ranking h1 {
        text-align: center;
        font-size: 7.5vw;
        font-weight: bold;
        margin: 1.4rem;
        font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
    }
    .ranking p.main {
        text-align: left;
        font-size: 3.5vw;
        padding: 0 20px;
    }
    .ranking h2 {
        text-align: center;
        font-size: 6vw;
        font-weight: bold;
        margin: .5rem 0 1rem 0;
        font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
    }
    .button-01 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 93%;
        margin: 0 auto 25vw;
        padding: 1em 2em .8em;
        border: none;
        background-color: #393b50;
        color: #fff;
        font-weight: 600;
        font-size: 4.5vw;
        cursor: pointer;
        text-decoration: none;
    }
    .button-01::before {
        position: absolute;
        right: calc(8.8vw + 3.5px);
        top: 3.4vw;
        transform: translateX(50%);
        width: 8vw;
        height: 8vw;
        border-radius: 50%;
        background-color: #fff;
        content: '';
    }
    .button-01::after {
        transform: rotate(45deg);
        width: 2vw;
        height: 2vw;
        margin-top: -1vw;
        border-top: .8vw solid #393b50;
        border-right: .8vw solid #393b50;
        content: '';
    }
    .button-02 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 70%;
        margin: 1rem auto;
        padding: .6em 2em .5rem;
        border: none;
        border-radius: 50px;
        background-color: #b60005;
        color: #fff;
        font-weight: 600;
        font-size: 5vw;
        cursor: pointer;
        text-decoration: none;
    }
    .button-02:hover {
    text-decoration: none; /* ホバー時に下線を削除 */
}
    .button-02::before {
        position: absolute;
        right: calc(9.7vw + 3.5px);
        top: 2.4vw;
        transform: translateX(50%);
        width: 8vw;
        height: 8vw;
        border-radius: 50%;
        background-color: #fff;
        content: '';
    }
    .button-02::after {
        transform: rotate(45deg);
        width: 2vw;
        height: 2vw;
        margin-top: -1vw;
        border-top: .8vw solid #b60005;
        border-right: .8vw solid #b60005;
        content: '';
    }
    .pc_switch {
        display: none !important;
    }
    .sp_switch {
        display: block !important;
    }
}
/*　PC用　*/
@media screen and (min-width:768px) {
    /*　画面サイズが768pxからはここを読み込む　*/
    .item_comment {
        font-size: 1.4rem;
        text-align: left;
        margin: 30px 60px 50px 57px;
    }
    .category_image {
        width: 50%;
        margin: 5rem auto 0;
    }
    .category {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
    }
    .category li {
        flex-basis: calc(33.33% - 10px);
        margin: 5px;
    }
    .category li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background-color: #393b50;
        color: white;
        text-align: center;
        line-height: 60px;
        font-size: 1.5rem;
        text-decoration: none;
    }
    /* アンカーリンクをクリックしたときのスクロール位置の微調整 */ :target::before {
        content: "";
        display: block;
        height: 10rem; /* ヘッダーの高さ分の補正 */
        margin: -10rem 0 0; /* ヘッダーの高さ分をマイナスマージンで補正 */
    }
    ul.item_sub-image {
        display: flex;
        margin-top: 30px;
        padding: 0;
    }
    ul.item_sub-image li:first-child {
        margin-right: 30px;
    }
    ul.box1 {
        display: flex;
        margin-bottom: 40px;
        padding: 0;
        align-items: flex-start;
    }
    li.box1_contents1 {
        width: 30%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    li.box1_contents2 {
        width: 70%;
        text-align: left;
        padding-left: 50px;
        font-size: 1.2rem;
    }
    li.box1_contents2 p {
        font-size: 2rem;
        padding: 0;
        margin-top: 0;
        margin-bottom: 1rem;
        line-height: 1.5;
        border-bottom: #000000 solid 1px;
    }
    li.box1_contents2 span {
        color: #b60005;
    }
    .ranking h1 {
        text-align: center;
        font-size: 3rem;
        font-weight: bold;
        margin: 2.5rem;
        font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
    }
    .ranking p.main {
        text-align: left;
        font-size: 1.4rem;
        padding: 0 50px;
    }
    .ranking h2 {
        text-align: center;
        font-size: 2.5rem;
        font-weight: bold;
        margin: 1rem 0 1.5rem 0;
        font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
    }
.button-01,
.button-01:visited,
.button-01:hover,
.button-01:active,
.button-02,
.button-02:visited,
.button-02:hover,
.button-02:active {
    text-decoration: none;
}
.button-01 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 700px;
    margin: 0 auto 6rem;
    padding: 0.8em 6em 0.7em;
    border: none;
    background-color: #393b50;
    color: #fff;
    font-weight: 600;
    font-size: 1.6em;
    cursor: pointer;
    text-decoration: none;
}

/* 右側の丸 */
.button-01::before {
    position: absolute;
    right: 2em;                 /* ← 丸の基準位置 */
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    content: '';
}

/* 矢印 */
.button-01::after {
    position: absolute;
    right: calc(2.08em + 20px - 6px);  
    /* 2em（丸の右位置）＋ 丸の半径20px − 矢印の半分6px */
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-top: 3px solid #393b50;
    border-right: 3px solid #393b50;
    content: '';
}
    .button-02 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 260px;
        margin: 1rem 0;
        padding: .3em 2em .25rem;
        border: none;
        border-radius: 50px;
        background-color: #b60005;
        color: #fff;
        font-weight: 600;
        font-size: 1.2em;
        cursor: pointer;
        text-decoration: none;
    }
    .button-02::before {
        position: absolute;
        right: calc(2em + 2.8px);
        top: .5rem;
        transform: translateX(50%);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: #fff;
        content: '';
    }
    .button-02::after {
        transform: rotate(45deg);
        width: 9px;
        height: 9px;
        margin-left: 10px;
        margin-top: -2px;
        border-top: 3px solid #b60005;
        border-right: 3px solid #b60005;
        content: '';
    }
    .pc_switch {
        display: block !important;
    }
    .sp_switch {
        display: none !important;
    }
}
