/* サイトマップ全体のブロック */
.page_container .sitemap-block {
    width: 100%;
    margin: 50px auto;
    padding: 0 30px;
    text-align: center;
}

.all_sitemap {
    width: 100%;
    max-width: 52.6rem;
    background-color: white;
    margin: 0 auto;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: bold;
    flex-shrink: 0;
}

/* 1. 一番上にくるCSSの写真 */
.sitemap_photo {
    width: 100%;
    aspect-ratio: 526 / 350;
    background-image: url("../img/sitemap_top.JPG");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 30px;
}

/* 2. 写真の下：ロゴとテキストを横並びにする親ボックス */
.page_container .title_wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

/* リンゴのロゴの箱 */
.page_container .waiting_room_container {
    flex-shrink: 0;
}

/* サイトマップのタイトルテキスト */
.page_container .site_title_wrap {
    text-align: left;
}

/* サイトマップのタイトル文字のスタイル（大きさと色） */
.site_title {
    color: #4a3222;
    font-size: 3.6rem;
    font-weight: bold;
    margin: 0;
}

/* 各項目の枠線と上下のすき間 */
.page_container .sitemap-block .sitemap-item {
    border-bottom: 0.5px solid #1ca63d;
    padding: 30px 0;
    transition: background-color 0.2s ease;
}

/* 親リンクの文字スタイル */
.page_container .sitemap-block .sitemap-item .parent-link {
    font-size: 20px;
    font-weight: bold;
    color: #4A3222;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding: 0 10px;
    transition: color 0.2s ease;
}

/* マウスを乗せたときの文字の色 */
.page_container .sitemap-block .sitemap-item .parent-link:hover {
    color: #9E8A78;
}



/* ==========================================
   タブレット・スマホ表示
========================================== */
@media screen and (max-width: 1218px) {

    /* 写真と募集案内の親 */
    .sitemap_hero {
        position: relative;
        width: 100%;
    }

    /* 写真 */
    .sitemap_hero .sitemap_photo {
        width: 100%;
        max-width: 52.6rem;
        height: 36rem;
        aspect-ratio: auto;
        background-size: cover;
        background-position: center;
    }

    .responsive_only {
        display: block;
        background-color: #ffca8399;
        border-radius: 2rem 0 0 2rem;
        width: 13.5rem;
        height: auto;
        margin-top: 1.7rem;
        margin-bottom: 6rem;
    }

    .sitemap_hero .responsive_only {
        display: flex;
        flex-direction: column;
        position: absolute;

        /* 写真の右上に配置 */
        top: 1.7rem;
        right: 0;
        left: auto;

        width: 13.5rem;
        height: auto;
        margin: 0;
        padding: 1rem 0;

        background-color: #ffca8399;
        border-radius: 2rem 0 0 2rem;
        box-sizing: border-box;
        z-index: 10;
    }

    .hygiene_container {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .hygiene_container svg,
    .curved_btn_wrapper svg {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        /* これがあるため、HTMLの width="300" よりもCSSが優先されて綺麗に縮みます */
        height: auto;
        /* これがあるため、HTMLの height="100" を無視して横幅に比例した高さになります */
    }

    .application_container {
        background-image: url("../img/white_teeth.png");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 9rem 8.7rem;
        margin-top: -1rem;
        margin-bottom: 0.5rem;
    }

    .part_time {
        font-size: 1.6rem;
        font-weight: bold;
        text-align: center;
    }

    .recruitment {
        font-size: 2rem;
        font-weight: bold;
        text-align: center;
    }

    .blank {
        font-size: 1.3rem;
        font-weight: bold;
        text-align: center;
    }

    .short_time {
        font-size: 1.3rem;
        font-weight: bold;
        text-align: center;
    }

    .telephone_container {
        width: 9.6rem;
        height: 9.6rem;
        border-radius: 50%;
        background-color: #8c4a1a;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        border: solid 0.3rem #ed6c00;
        background-image: url("../img/color_teeth.png");
        background-size: 5rem 5rem;
        background-repeat: no-repeat;
        background-position: center;
        margin: 0 auto 1.3rem auto;
    }

    .phone_call {
        text-align: center;
        text-decoration: none;
        padding-bottom: 1rem;
    }

    .tel_number {
        font-size: 2.1rem;
        font-weight: 600;
        font-family: "Roboto Mono";
        color: white;
    }

    /* 写真と募集案内の親 */
    .page_container .all_sitemap .sitemap_hero {
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 写真の横幅を親要素に合わせる */
    .page_container .all_sitemap .sitemap_photo {
        display: block;
        width: 100%;
        max-width: 100%;

        aspect-ratio: 526 / 350;

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

    }

    /* 募集案内は写真の右端に合わせる */
    .page_container .all_sitemap .sitemap_hero>.responsive_only {
        position: absolute !important;
        top: 1.7rem !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        z-index: 20;
    }
}

/* スマホ表示用の微調整 */
@media screen and (max-width: 768px) {

    /* スマホ表示時の、各リンクの文字サイズ調整 */
    .page_container .sitemap-block .sitemap-item .parent-link {
        font-size: 18px;
    }

    .responsive_only {
        width: 13.5rem;
        height: auto;
        margin: 0;
        padding: 1rem 0;
        box-sizing: border-box;

        display: flex;
        flex-direction: column;
        justify-content: space-between;

        background-color: #ffca8399;
        border-radius: 2rem 0 0 2rem;
    }

    .telephone_container {
        flex-shrink: 0;
        margin: 0 auto 1rem;
    }
}

@media screen and (max-width: 526px) {

    /* 写真と募集案内の親 */
    .page_container .all_sitemap .sitemap_hero {
        position: relative;
        width: 100%;
        max-width: 100%;
    }

    /* 写真の高さを確保 */
    .page_container .all_sitemap .sitemap_photo {
        width: 100%;
        max-width: 100%;
    }

    .site_title {
        font-size: 3.3rem;
    }

}