/* header */
.hd{
    width: 100%;
    height: 80px;
    padding: 24px 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.hd_left{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.h1{
width: 117.57px;
margin-right: 16px;
}

.h2{
    font-size: 1.2rem;
    margin-top: 8px;
    font-weight: 400;
}

.hd_right{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.hd_right ul{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.top_btn{
    font-size: 1.6rem;
    font-weight: bold;
    margin-right: 16px;
}

.entry_btn{
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing:normal;
    a{
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 16px 31px;
        gap: 10px;

        width: 162px;
        height: 42px;

        background: #FFFFFF;
        border: 1px solid #0D3382;
        border-radius: 60px;

        flex: none;
        order: 1;
        flex-grow: 0;
    }
}

.entry_btn:hover{
    transition: .3s ease;
    a{
        color:  #fff;
        background: #0D3382;
        border :1px solid #0D3382;
    }
}

@media screen and (max-width: 768px) {
    .hd{
        height: 58px;
        padding: 8px 15px;
    }
    
    .h1{
    width: 85.23px;
    }
}


/* fv */
.fv{
    position: relative;
    padding-bottom: 146px;
    .fv_radio{
        width: 100px;
        margin: 0 auto 16px;
    }
    .fv_subtitle{
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0 auto 32px;
        width: 389.7px;
        .fv_title_wave{
            width: 79.85px;
            margin-top: 8px;
        }
        .fv_title_text{
            font-size: 4rem;
            letter-spacing: 3%;
            font-weight: bold;
            margin: 0 20px ;
        }
    }
    .fv_title{
        width: 873.67px;
        margin: 0 auto 32px;
    }
    .fv_introduction{
        font-size: 2.8rem;
        font-weight: bold;
        text-align: center;
        letter-spacing: 0.03em; 
        span{
            color: #E9801F;
        }
    }
    .fv_map{
        position: absolute;
        bottom: 16px;
        right: 16px;
        width: 218px;
    }
}

@media screen and (max-width: 768px) {
    .fv{
        padding-bottom: 64px;
        .fv_radio{
            width: 67.57px;
        }
        .fv_subtitle{
            margin: 0 auto 28px;
            width: 292.87px;
            .fv_title_wave{
                width: 66.26px;
                margin-top: 0;
            }
            .fv_title_text{
                font-size: 3rem;
                margin: 0 13px ;
            }
        }
        .fv_title{
            width: 297px;
            margin: 0 auto 28px;
        }
        .fv_introduction{
            font-size: 2rem;
            text-align: left;
            margin: 0 auto;   
            width: 297px;
            margin: 0 auto;
            position: relative;
            .fv_map_sp{
                position: absolute;
                bottom: -17px;
                right: 0;
                width: 100px;
            }
        }
    }
}

/* =========================
   無限ループスライダー
========================= */

/* アニメーション */
@keyframes infinity-scroll-left {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-100%);
    }
  }
  
  /* 外枠 */
  .scroll-infinity {
    width: 100%;
    overflow: hidden;
  }
  
  /* 表示領域 */
  .scroll-infinity__wrap {
    width: 100%;
    overflow: hidden;
  }
  
  /* 横並びリスト */
  .scroll-infinity__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  /* 左方向に流す */
  .scroll-infinity__list--left {
    animation: infinity-scroll-left 30s linear infinite;
  }
  
  /* 各スライド */
  .scroll-infinity__item {
    flex-shrink: 0;
    width: 100vw;     /* 1枚分の横幅 */
    height: 82px;     /* 高さ固定 */
  }
  
  /* 画像 */
  .scroll-infinity__item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比維持＋はみ出しトリミング */
    display: block;
  }

  /* スマホ */
@media (max-width: 768px) {
    .scroll-infinity__list--left {
        animation-duration: 12s;
    }
}


    /* card */
.category_section{
    .category_inner{
        background: #0D3382;
        padding: 54px 0;
        margin-bottom: 59px;
    }
    
    .category_innner_list{
        display: flex;
        flex-direction: row;
        margin: 0 auto;
        width: 1106px;
        .category_innner_list_title{
        font-weight: bold;
        margin-right: 37px;
        color: #FFFFFF;
        }
        .category_innner_list_lists{
            display: flex;
            .category_innner_list_lists_item{
                color: #0D3382;
                background: #fff;
                padding: 4px 20px;
                border-radius: 20px;
                font-size: 1.4rem;
                margin-right: 8px;
            }
            .category_innner_list_lists_item.on{
                background: #E9801F;
                a{
                    color: #fff;
                }
            }
        }
        .category_innner_list_title.area{
            margin-right: 71px;
        }
    }
    
    .category_innner_list.area{
        margin-bottom: 26px;
    }
    
    .category_introduction{
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 59px;
    }
    
    .category_innner_list_title.area::before{
        content: '';
        display: inline-block;
        width: 18px;
        height: 22.51px;
        background-image: url(../images/index/area_icon.png);
        background-size: contain;
        vertical-align: middle;
        margin-right: 10px;
    }
    
    .category_innner_list_title.category::before{
        content: '';
        display: inline-block;
        width: 19px;
        height: 20px;
        background-image: url(../images/index/category_icon.png);
        background-size: contain;
        vertical-align: middle;
        margin-right: 10px;
    }
    .category_list{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 38px;
        .category_list_item{
            width: 31%;
            margin-right: 3.5%;
            padding: 32px 32px 28px;
            background: #FFFFFF;
            border: 2px solid #0D3382;
            box-shadow: 6px 8px 0px #0D3382;
            margin-bottom: 42px;
            a{
                display: block; /* カード全体をリンクとして成立させる */
                .category_list_item_image{
                    background-color: #F2F0ED;
                    margin-bottom: 16px;
                    width: 100%;
                    height: 208px;

                    overflow: hidden;         /* ← はみ出しを隠す */
                    border-radius: 0px;       /* 角丸が必要なら数値変更 */
                    img{
                        width: 100%;
                        height: 100%;
                        object-fit: contain;      /* 枠いっぱい + ズームが綺麗 */
                        transform: scale(1);
                        transition: transform 0.35s ease;
                        display: block;
                        will-change: transform; /* カクつき対策 */
                    }
                }
                .category_list_item_tag{
                    display: flex;
                    flex-direction: row;
                    margin-bottom: 8px;
                    .category_list_item_tag_item{
                        padding: 2px 12px;
                        height: 24px;
                        background: #E9801F;
                        border: 1px solid #E9801F;
                        border-radius: 20px;
                        font-size: 1.2rem;
                        color: #fff;
                        margin-right: 4px;
                    }
                }
                .category_list_item_name{
                    margin-bottom: 8px;
                    font-weight: bold;
                    font-size: 2.0rem;
                }
                .category_list_item_postcode,
                .category_list_item_address{
                    font-size: 1.4rem;
                    font-weight: 300;
                }
                .category_list_item_address{
                    margin-bottom: 16px;
                }
                .category_list_item_more{
                    display: flex;
                    flex-direction: row;
                    align-items: flex-end;
                    justify-content: flex-end;
                    padding-top: 12px;
                    border-top: 1px solid #0D3382;
                    .category_list_item_more_text{
                        margin-right: 4px;
                        line-height: 1;
                        font-weight: bold;
                    }
                    .category_list_item_more_icon{
                        width: 31px;
                    }
                }
            }
            /* カードhoverで画像だけズーム */
            &:hover {
                .category_list_item_image img {
                transform: scale(1.12);
                }
            }
        }
        .category_list_item:nth-child(3n){
            margin-right: 0;
        }
    }
    .category_more_btn{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 24px 32px;
        width: 480px;
        height: 61px;
        background: #FFFFFF;
        border: 1px solid #0D3382;
        border-radius: 60px;
        margin:0 auto;
        font-weight: bold;
        font-size: 1.8rem;
    }
    .category_more_btn:hover{
        transition: .3s ease;
        background: #0D3382;
        border :1px solid #0D3382;
        color: #fff;
    }
}

@media screen and (max-width: 768px){
    .category_section{
        .category_inner{
            padding: 40px 0;
            margin-bottom: 40px;
        }
        .category_innner_list{
            flex-direction: column;
            margin: 0 auto;
            width: 100%;
            .category_innner_list_title{
            margin-right: 0;
            margin-bottom: 16px;
            }
            .category_innner_list_lists{
                flex-wrap: wrap;
                .category_innner_list_lists_item{
                    margin-bottom: 8px;
                }
            }
        }
        .category_innner_list.area{
            margin-bottom: 32px;
        }
        .category_introduction{
            font-size: 1.4rem;
            margin-bottom: 40px;
        }
        .category_list{
            margin-bottom: 20px;
            .category_list_item{
                width: 100%;
                padding: 16px;      
                margin-bottom: 20px;
                margin-right: 0;
                .category_list_item_flex{
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                }
                a{
                    .category_list_item_image{
                        width: 40%;
                        height: 160px;
                        background-color: #E8E6E3;
                        margin-bottom: 16px;
                        
                    }
                    .category_list_item_text{
                        width: 55%;
                    }
                    .category_list_item_tag{
                        .category_list_item_tag_item{
                            padding: 2px 8px;
                            height: 20.66px;
                            font-size: 1rem;
                        }
                    }
                    .category_list_item_name{
                        font-size: 1.8rem;
                    }
                    .category_list_item_postcode,
                    .category_list_item_address{
                        font-size: 1.3rem;
                    }
                    .category_list_item_address{
                        margin-bottom: 16px;
                    }
                    .category_list_item_more{
                        display: flex;
                        flex-direction: row;
                        align-items: flex-end;
                        justify-content: flex-end;
                        padding: 0;page-for_medical_institutions.php
                        border-top: 1px solid #0D3382;
                        .category_list_item_more_text{
                            margin-right: 4px;
                            line-height: 1;
                            font-weight: bold;
                        }
                        .category_list_item_more_icon{
                            width: 31px;
                        }
                    }
                }
            }
        }
        .category_more_btn{
            width: 308px;
            height: 52px;
            font-size: 1.5rem;
        }
    }
}

@media screen and (max-width: 768px) and (min-width: 640px) {
    .category_innner_list,
    .category_introduction{
        padding: 0 40px;
    }
}

@media screen and (max-width: 640px) {
    .category_innner_list,
    .category_introduction{
        padding: 0 16px;
    }
}


/* footer */
.ft{
    padding: 80px 0 0;
    .ft_section{
        background:#E8E6E3;
        padding: 80px 0 100px;
        .ft_section_title{
            width: 107.91px;
            margin: 0 auto;
        }
        .ft_section_subtitle{
            font-size: 3.2rem;
            font-weight: bold;
            text-align: center;
            margin-bottom: 56px;
        }
        .ft_section_description{
            text-align: center;
            margin-bottom: 56px;
            font-weight: 300;
        }
        .ft_section_btn{
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            padding: 24px 32px;
            width: 480px;
            height: 61px;
            background: #FFFFFF;
            border: 1px solid #0D3382;
            border-radius: 60px;
            margin:0 auto;
            font-weight: bold;
            font-size: 1.8rem;
        }
        .ft_section_btn:hover{
            transition: .3s ease;
            background: #0D3382;
            border :1px solid #0D3382;
            color: #fff;
        }   
    }
    .ft_section_logo_section{
        padding: 90px 0  100px;
        .ft_section_logo{
            .ft_section_logo_image{
                width: 166.06px;
                margin: 0 auto 20px;
                img{
                    width:166.06px;
                }
            }
            .ft_section_logo_text{
                font-weight: bold;
                text-align: center;
            }
        }
    }
    .ft_copyright{
        text-align: center;
        font-weight: 300;
        font-size: 1.4rem;
        padding: 32px 0;
        background: #0D3382;
        color: #fff;
    }
}

@media screen and (max-width: 768px){
    .ft{
        .ft_section{
            .ft_section_subtitle{
                font-size: 2.8rem;
                margin-bottom: 40px;
            }
            .ft_section_description{
                margin-bottom: 40px;
            }
            .ft_section_btn{
                width: 308px;
                height: 52px;
                font-size: 1.5rem;
            }
        }
        .ft_section_logo_section{
            padding: 40px 0  80px;
            .ft_section_logo{
                .ft_section_logo_image{
                    margin: 0 auto 16px;
                }
            }
        }
        .ft_copyright{
            font-size: 1.2rem;
        }
    }
}

@media screen and (max-width: 768px) and (min-width: 640px) {
    .ft{
        .ft_section{
            padding: 40px 40px 80px;
        }
    }
}

@media screen and (max-width: 640px) {
    .ft{
        .ft_section{
            padding: 40px 16px 80px;
        }
    }
}



/* single.php */
.spot{
    margin-top: 38px;
    padding-bottom: 85px;
    .spot_back_icon{
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 29px;
        .spot_back{
            width: 31px;
            margin-right: 8px;
        }
        .spot_back_text{
            font-size: 2.4rem;
            font-weight: bold;
        }
    }
    .spot_box{
        position: relative;
        padding: 56px 56px 30px;
        margin-bottom: 50px;
        background: #FFFFFF;
        border: 2px solid #0D3382;
        box-shadow: 8px 10px 0px #0D3382;
        .spot_box_tab{
            display: flex;
            flex-direction: row;
            margin-bottom: 10px;
            p{
                padding: 2px 16px;
                height: 24px;
                background: #E9801F;
                border: 1px solid #E9801F;
                border-radius: 20px;
                font-size: 1.2rem;
                color: #fff;
                margin-right: 4px;
                line-height: 1.4;
            }
        }
        .spot_box_ttl{
            font-weight: bold;
            font-size: 3.2rem;
            line-height: 150%;
            color: #0D3382;
            margin-bottom: 16px;
        }
        .spot_box_img{
            width: 100%;
            height: 568px;
            background: #E8E6E3;
            text-align: center;
            margin-bottom: 16px;
            img{
                height: 568px;
                width: 100%;
                object-fit: contain;
            }
        }
        .spot_box_sentence{
            margin-bottom:40px;
        }
        .spot_box_detail{
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            dl{
                width: 320px;
                dt{
                    width: 100%;
                    font-size: 1.8rem;
                    font-weight: bold;
                    background: #F6F5F3;
                    height: 48px;
                    line-height: 47px;
                    border-top: 1px solid #0D3382;
                    border-bottom: 1px solid #0D3382;
                    margin-bottom: 12px;
                    padding: 0 16px;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    .spot_box_detail_icon_add{
                        width: 16px;
                        height: 16px;
                        background: url("../images/index/area_icon.png") no-repeat center / contain;
                        flex-shrink: 0;
                    }
                    .spot_box_detail_icon_tel{
                        width: 16px;
                        height: 16px;
                        background: url("../images/index/tel.png") no-repeat center / contain;
                        flex-shrink: 0;
                    }
                    .spot_box_detail_icon_schedule{
                        width: 16px;
                        height: 16px;
                        background: url("../images/index/open.png") no-repeat center / contain;
                        flex-shrink: 0;
                    }
                    .spot_box_detail_icon_url{
                        width: 16px;
                        height: 16px;
                        background: url("../images/index/url.png") no-repeat center / contain;
                        flex-shrink: 0;
                    }
                }
                dd{
                    padding: 0 16px 24px;
                    .googlemap_btn{
                        width: 142px;
                        background: #FFFFFF;
                        border: 1px solid #0D3382;
                        border-radius: 60px;
                        align-items: center;
                        padding: 7px 26px;
                        font-size: 1.4rem;
                        font-weight: bold;
                        display: inline-block;
                    }
                    .googlemap_btn:hover{
                        transition: .3s ease;
                        background: #0D3382;
                        border :1px solid #0D3382;
                        color: #fff;
                    }
                }
            }
            .spot_box_detail_googlemap{
                width: 500px;
                iframe{
                    width: 100%;
                }
            }
        }
        .spot_box_radio{
            position: absolute;
            top: -60px;
            right: 30px;
            width: 120px;
        }
    }
    .box_spot_back_btn{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 24px 32px;
        margin:  0 auto;
        width: 480px;
        height: 61px;
        background: #FFFFFF;
        border: 1px solid #0D3382;
        border-radius: 60px;
        font-weight: bold;
        font-size: 1.8rem;
    }
    .box_spot_back_btn:hover{
        transition: .3s ease;
        background: #0D3382;
        border :1px solid #0D3382;
        color: #fff;
    }
}


@media screen and (max-width: 768px){
    .spot{
        margin-top: 29px;
        padding-bottom: 10px;
        .spot_back_icon{
            margin-bottom: 20px;
            .spot_back_text{
                font-size: 2.0rem;
            }
        }
        .spot_box{
            padding: 44px 15px 31px;
            margin-bottom: 40px;
            box-shadow: 6px 8px 0px #0D3382;
            .spot_box_tab{
                margin-bottom: 8px;
            }
            .spot_box_ttl{
                font-size: 2rem;
            }
            .spot_box_img{
                height: 200px;
                img{
                    height: 200px;
                }
            }
            .spot_box_sentence{
                margin-bottom:32px;
                font-size: 1.5rem;
            }
            .spot_box_detail{
                flex-direction: column;
                dl{
                    width: 100%;
                    dd{
                        padding: 0 16px 24px;
                    }
                }
                .spot_box_detail_googlemap{
                    width: 100%;
                    img{
                        width: 100%;
    
                    }
                }
            }
            .spot_box_radio{
                position: absolute;
                top: -40px;
                right: 20px;
                width: 72px;
            }
        }
        .box_spot_back_btn{
            width: 308px;
            height: 52px;
            font-size: 1.5rem;
        }
    }
}
