/*=========メニュー==========*/
#function_menu {
    padding: 0 15px;
}

#function_menu .sp {
    display: none;
}

#function_menu .pc {
    display: flex;
}

.function_title {
    padding: 2px 10px;
}

.scroll_header .sp {
    display: none;
}

.function_title h2 {
    margin-bottom: 0;
}

.function_title p {
    margin-bottom: 30px;
}

#function_menu ul.scroll_btns {
    display: flex;
    flex: 1 1 auto;
    justify-content: space-around;
    background-color: #fff;
    box-shadow: 0 -3px 4px 3px rgba(69, 70, 88, 0.4);
    text-align: center;
}

#function_menu ul.scroll_btns li {
    width: 20%;
    box-sizing: border-box;
    position: relative;

}

#function_menu ul.scroll_btns li::after {
    content: '';
    width: 100%;
    height: 3px;
    background-color: #dc9718;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: .4s;
    opacity: 0;
}

#function_menu ul.scroll_btns li:not(:last-child) {
    border-right: 1px solid #c5c5c5;
}

#function_menu ul.scroll_btns li a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    transition: .2s;
}

#function_menu ul.scroll_btns li:hover a {
    color: #1564c0;
}

#function_menu ul.scroll_btns li.active {
    transition: .4s;
}

#function_menu ul.scroll_btns li.active::after {
    opacity: 1;
}

#function_menu ul.scroll_btns li.active a {
    color: #dc9718;
}

/* #function_menu.clone_m {
    position:fixed;
	top: 69px;
	left: 0;
	z-index: 10000;
	width: 100%;
	transition: 0.3s;
	transform: translateY(80%);
    box-shadow: 0 5px 5px 0px rgb(138 138 150 / 40%);
    opacity: 0;
    pointer-events: none;
} */

.scroll_header.clone_m {
    position:fixed;
	top: 69px;
	left: 0;
	z-index: 10000;
	width: 100%;
	transition: 0.3s;
	transform: translateY(80%);
    box-shadow: 0 5px 5px 0px rgb(138 138 150 / 40%);
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
    padding: 5px 0;
}
/* 
#function_menu.clone_m.show {
    transform:translateY(0);
    opacity: 1;
    pointer-events: auto;
    /* background-color: rgba(255,255,255,.9); */
    /* background-color: rgba(240,240,240,.9);
} */ 

.scroll_header.clone_m.show {
    transform:translateY(0);
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(242, 242, 242, 0.9);
}
/* 
#function_menu.clone_m h2 {
    display: none;
}
 */
 .scroll_header.clone_m #function_menu h2 {
    display: none;
}
/* 
#function_menu.clone_m ul {
    box-shadow: none;
    background-color: transparent;
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto;
} */

.scroll_header.clone_m #function_menu ul {
    box-shadow: none;
    background-color: transparent;
    font-size: 14px;
    max-width: 1030px;
    margin: 0 auto;
}

.scroll_header.clone_m #function_menu .sort_btns li {
    border-top: none;
    border-bottom: none;
    border-right: none;
}

.scroll_header.clone_m #function_menu .sort_btns li:first-child {
    border-left: none;    
}

/* 
#function_menu.clone_m ul li a {
    padding: 7px 0;
} */

.scroll_header.clone_m #function_menu ul li a {
    padding: 7px 0;
}
/* 
#function_menu:not(.clone_m) ul.sp {
    flex-wrap: wrap;
    justify-content: space-between;
} */

.scroll_header:not(.clone_m) #function_menu ul.sp {
    flex-wrap: wrap;
    justify-content: space-between;
}
/* 
#function_menu:not(.clone_m) ul.sp li {
    width: calc(100% / 3);
} */

.scroll_header:not(.clone_m) #function_menu ul.sp li {
    width: calc(100% / 3);
}
/* 
#function_menu:not(.clone_m) ul.sp li:nth-child(n + 4) {
    width: 50%;
    border-top: 1px solid #c5c5c5
}  */

.scroll_header:not(.clone_m) #function_menu ul.sp li:nth-child(n + 4) {
    width: 50%;
    border-top: 1px solid #c5c5c5
} 

.cat_app {
    display: block;
}

.cat_line {
    display: none;
}

/*===============一元管理機能=================*/
.functions {
    padding: 0 15px 0;
}

.functions::before {
    content: '';
    display: block;
    height: 160px;
    margin-top: -120px;
}

.functions h3 {
    font-size: 25px;
}

.function_content {
    margin-top: 10px;
    padding: 30px;
    background-color: #f6feff;
    box-shadow: 3px 5px 2px 3px rgba(149, 149, 160, 0.2);
}

.centrally_item {
    background-color: #fcfcfc;
    box-shadow: 2px 3px 5px 2px rgba(108, 109, 131, 0.4);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 30px 30px;
    border-radius: 10px;
}

.centrally_item:not(:first-child) {
    margin-top: 30px;
}

.centrally_item.reverse {
    flex-direction: row-reverse;
}

.centrally_item .txt {
    width: 70%;
}

.centrally_item .img {
    width: 28%;
}

.centrally_item h3 {
    color: #09368f;
    font-size: 21px;
}

.centrally_item .lead {
    font-weight: bold;
    color: #454545;
}

.centrally_item .crosshead {
    color: #09368f;
    font-weight: bold;
    margin-top: 10px;
}

.centrally_item .discription {
    font-size: 16px;
}

/*===========配信機能============*/

.grid_content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px 20px;
}

.grid_item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 3px 1px rgba(68, 65, 81, 0.2);
    position: relative;
}

#ana .grid_content {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid_item.row {
    grid-column: 1 / 5;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.grid_item .img {
    background-color: #ebebeb;
}

.grid_item.row .img {
    width: 35%;
}

.grid_item .img figure {
    margin: 25px auto 0;
    text-align: center;
}

.grid_item.row .img figure {
    margin: 25px auto 25px;
}

.grid_item .img img {
    height: 15vw;
    max-height: 180px;
    width: auto;
}

.grid_item.row .img img {
    max-height: 310px;
    height: auto;
}

.grid_item .txt {
    padding: 5px 13px 15px;
    margin-bottom: 50px;
}

.grid_item.row .txt {
    width: 60%;
    margin-bottom: 0;
}

.grid_item .title {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    margin-top: 3px;
}

.grid_item.row .title {
    text-align: left;
}

.grid_item .discription {
    font-size: 15px;
    margin-top: 5px;
}

.grid_item .discription span {
    font-size: 12px;
    display: block;
}

.boolean {
    text-align: center;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 13px;
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
}

.grid_item.row .boolean {
    position: static;
    justify-content: flex-start;
    padding-left: 0;
}

.grid_item.row .boolean .app,
.grid_item.row .boolean .mail,
.grid_item.row .boolean .line {
    width: 13%;
    margin-right: 15px;
    margin-top: 20px;
}


.boolean .app,
.boolean .mail,
.boolean .line {
    border: 1px solid #c5c5c5;
    border-radius: 15px;
    padding: 0 0 2px;
    width: 27%;
    font-size: 13px;
}

.boolean .app {
    border-color: #dc4949;
}

.boolean .mail {
    border-color: #4d78cb;
}

.boolean .line {
    border-color: #45cc4b;
}

.boolean .disabled {
    border-color: #bababa;
    background-color: #d4d4d4;
}


/*===========よくあるご質問=============*/

.q_and_a {
    margin-top: 80px;
    background-color: #fdfaf5;
    padding: 60px 15px 60px;
    margin-bottom: 60px;
}

.q_and_a h3 {
    text-align: center;
    text-decoration: underline solid #56A5DE;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    font-size: 25px;
}

.q_and_a dl {
    padding: 0 30px;
    margin-top: 50px;
}

.q_and_a dl dt {
    font-size: 20px;
    padding: 15px 40px;
    background-color: #FFEBB6;
}

.q_and_a dl dt::before {
    content: 'Q.';
    font-size: 40px;
    font-family: 'Murecho', sans-serif;
    margin-right: 20px;
}

.q_and_a dl dd::before {
    content: 'A.';
    font-size: 40px;
    font-family: 'Murecho', sans-serif;
    margin-right: 20px;
}

.q_and_a dl dd {
    font-size: 17px;
    padding: 15px 40px 30px;
    background-color: #fff;
}

.q_and_a dl dd span {
    display: block;
    font-size: 15px;
}

.q_and_a dl dd span a {
    color: #2228B3;
    text-decoration: underline;
    font-size: 17px;
}

.scroll_show {
    /* opacity: 0; 
    visibility: hidden; */
    transform: translateY(50px);
    transition: all 1s;
}

.scroll_show.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

#function_menu {
    padding: 0 10px;
}

.sort_btns {
    display: flex;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 3px 4px 3px rgba(69, 70, 88, 0.4);
}

.sort_btn {
    width: calc((100% / 3) - 10px);
    border: 1px solid #c5c5c5;
}

.sort_btn:not(:last-child) {
    border-right: none;
}

.sort_ttl {
    width: 20%;
}

.sort_btns label span {
    display: block;
    border: 2px solid #97ccd4;
    border-radius: 10px;
    padding: 10px 4px;
    text-align: center;
    color: #97ccd4;
    transition: .2s;
    cursor: pointer;
    font-size: 1.3rem;
    background-color: #fff;
}

.sort_btns label span.op {
    border: none;
    padding: 0;
    font-size: 11px;
    color: #333333;
    display: inline;
}

.sort_btn label input {
    display: none;
}

.sort_btn label {
    transition: .2s;
    display: block;
    cursor: pointer;
}

.sort_btn label.app_btn.active {
    color: #dc4949;
    font-weight: bold;
    position: relative;
}

.sort_btn label.app_btn.active::before {
    background-image: url(../images/functions/check_app.png);
}

.sort_btn label.mail_btn.active {
    color: #4d78cb;
    font-weight: bold;
    position: relative;
}

.sort_btn .app_btn:hover {
    color: #dc4949;
}

.sort_btn .mail_btn:hover {
    color: #4d78cb;
}

.sort_btn .line_btn:hover {
    color: #45cc4b;
}

.sort_btn label.mail_btn.active::before {
    background-image: url(../images/functions/check_mail.png);
}

.sort_btn label.line_btn.active {
    color: #45cc4b;
    font-weight: bold;
    position: relative;
}

.sort_btn label.line_btn.active::before {
    background-image: url(../images/functions/check_line.png);
}

.sort_btn label.app_btn.active::before,
.sort_btn label.mail_btn.active::before, 
.sort_btn label.line_btn.active::before{
    content: '';
    width: 15px;
    background-size: contain;
    display: inline-block;
    height: 15px;
    background-repeat: no-repeat;
    position: absolute;
    right: 80%;
    top: 3px;
    bottom: 0;
    margin: auto;
}

.sort_btn.sort_on label span {
    background-color: #97ccd4;
    color: #fff;
}

#stream .grid_item.cat_app {
    display: flex;
}

#stream .grid_item.cat_mail {
    display: flex;
}

#stream .grid_item.cat_line {
    display: flex;
}

#stream .grid_item.cat_stream {
    display: flex;
}

#promo .grid_item.cat_app {
    display: flex;
}

#promo .grid_item.cat_mail {
    display: flex;
}

#promo .grid_item.cat_line {
    display: flex;
}

#promo .grid_item.cat_promo {
    display: flex;
}

@media (max-width: 768px) {
    #function_menu {
        padding: 0 10px;
    }

    #function_menu h2 {
        font-size: 25px;
    }
    
    #function_menu .sp {
        display: flex;
    }

    #function_menu .pc {
        display: none;
    }

    .scroll_header .sp {
        display: flex;
    }

    .function_title p {
        margin-bottom: 10px;
    }
    
    #function_menu ul.scroll_btns {
        font-size: 14px;
    }

    #function_menu .scroll_btns .scroll_btn {
        width: calc(100vw / 3);
    }

    #function_menu ul.scroll_btns li:hover a {
        color: #333333;
    }

    #function_menu ul.sort_btns {
        flex-direction: column;
    }

    #function_menu ul.sort_btns li {
        width: 100%;
    }
/* 
    #function_menu.clone_m {
        top: 59px;
        width: 100%;
        padding: 0;
        overflow-x: scroll;
    } */

    #function_menu {
        top: 59px;
        width: 100%;
        padding: 0;
        overflow-x: scroll;
        margin-top: 0;
    }
/* 
    #function_menu.clone_m::-webkit-scrollbar {
        height: 2px;
    } */

    #function_menu::-webkit-scrollbar {
        height: 2px;
    }
/* 
    #function_menu.clone_m::-webkit-scrollbar-thumb {
        background-color: rgb(157, 157, 157);
        border-radius: 3px;
    } */

    #function_menu::-webkit-scrollbar-thumb {
        background-color: rgb(157, 157, 157);
        border-radius: 3px;
    }
/* 
    #function_menu.clone_m ul.sp {
        max-width: none;
        background-color: rgba(255, 255, 255, .9);
        width: fit-content;
    } */

    #function_menu ul {
        max-width: none;
        background-color: rgba(255, 255, 255, .9);
        width: fit-content;
        padding: 5px;
    }
/* 
    #function_menu.clone_m ul.sp li {
        width: calc(100vw/3.6);
    } */

    #function_menu ul li {
        width: calc(100vw/3);
    }

    #function_menu ul li:not(:last-child) {
        margin-right: 10px;
    }

    .scroll_header.clone_m {
        top: 55px;
    }

/* 
    #function_menu.clone_m ul li a {
        padding: 2px 0;
    } */

    #function_menu ul li a {
        padding: 2px 0;
    }

    .sort_btns label span {
        padding: 7px 4px
    }

    .sort_btns label span.op {
        display: block;
        font-size: 12px;
    }
    
    .sort_btns.sp {
        flex-direction: column;
    }

    .sort_btns.sp p {
        padding: 6px 0;
        width: 100%;
    }

    .sort_btns.sp ul {
        max-height: 0;
        overflow: hidden;
        transition: .3s;
    }

    .sort_btns.sp ul.open {
        max-height: 140px;
    }

    .sort_btns.sp li {
        width: 100%;
        padding: 8px 0;
        font-size: 14px;
    }

    .functions {
        padding: 0 10px;
        margin-top: 40px;
    }

    .functions h3 {
        font-size: 22px;
    }
    
    .function_content {
        padding: 20px 10px;
    }

    .centrally_item  {
        padding: 20px 15px;
        flex-direction: column;
    }

    .centrally_item.reverse {
        flex-direction: column;
    }

    .centrally_item .txt {
        width: 100%;
    }

    .centrally_item .img {
        width: 70%;
        margin: 20px auto 10px;
    }

    .centrally_item .lead {
        font-size: 18px;
        letter-spacing: 0;
        line-height: 1.5;
        margin-top: 8px;
        margin-left: 10px;
    }

    .centrally_item .crosshead {
        margin-top: 10px;
        font-size: 18px;
    }

    .centrally_item .discription {
        margin-top: 5px;
        margin-left: 10px;
    }

    .grid_content {
        grid-template-columns: 1fr;
    }

    .grid_item .img img {
        height: auto;
        max-height: none;
    }

    .boolean {
        padding: 0 15px;
    }

    .boolean .app,
    .boolean .mail,
    .boolean .line { 
        width: 30%;
    }

    .grid_item.row {
        flex-direction: column;
        grid-column: 1;
    }

    .grid_item.row .img {
        width: 100%;
    }

    .grid_item.row .txt {
        width: 100%;
        padding: 5px 13px 15px;
        box-sizing: border-box;
    }

    .grid_item.row .title {
        text-align: center;
    }

    .grid_item.row .boolean {
        justify-content: space-between;
        padding-right: 0;
    }

    .grid_item.row .boolean .app,
    .grid_item.row .boolean .mail,
    .grid_item.row .boolean .line { 
        width: 30%;
        margin-right: 0;
    }

    #ana .grid_content {
        grid-template-columns: 1fr;
    }

    #ana .grid_item .txt {
        margin-bottom: 0;
    }

    .q_and_a {
        margin-bottom: 20px;
        padding: 40px 15px 40px;
    }

    .q_and_a dl {
        margin-top: 40px;
        padding: 0;
    }

    .q_and_a dl dt {
        padding: 5px 10px 5px; 
        line-height: 1.5;
    }

    .q_and_a dl dt::before {
        font-size: 30px;
        margin-right: 10px;
    }

    .q_and_a dl dd {
        padding: 5px 15px 20px;
        line-height: 1.4;
    }

    .q_and_a dl dd::before {
        font-size: 30px;
        margin-right: 10px;
    }
}