/*チームの取り組み ユニークレイアウト*/
section.bg.attempt {
    padding-top: 50px;
    position: relative;
}
section.bg.attempt:before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 60px solid transparent;
    border-left: 60px solid transparent;
    border-top: 40px solid #efefef;
    border-bottom: 0;
}

section.bg.attempt h2{
    padding-bottom: 0;
}
section.bg.attempt h2:after{
    display: none;
}

section.bg.attempt h3{
    font-size: clamp(22px,2vw,28px);
    font-weight: normal;
    color: inherit;
    text-align: left;
    width: 100%;
    height: fit-content;
    max-width: 1180px;
    padding: 0 50px;
    margin:auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    position: relative;
}
section.bg.attempt h3:after{
    content: "";
    height: 1px;
    width: calc(100% - 100px);
    max-width: 1180px;
    margin: auto;
    border-bottom: solid 1px #2e2e2e; 
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
}
section.bg.attempt h3 ruby {
    font-size: clamp(22px,2.5vw,28px);
    font-weight: normal;
    line-height: 1.6em;
}
section.bg.attempt h3 strong{
    font-size: clamp(32px,2.5vw,38px);
    font-family: serif;
    font-weight: normal;
    padding: 5px 8px 0 0;
    margin: -5px 0 auto 0;
    height: 1em;
    display: flex;
    align-items: flex-start;
}
section.bg.attempt h3 span{
    font-size: clamp(15px,2.5vw,18px);
    font-family: serif;    
    letter-spacing: 0.2em;
    display: inline-block;
    margin-left: auto;
    margin-right: 0;
}
@media only screen and (max-width: 890px) {
    section.bg h3{
        padding: 0 20px;
        max-width: 680px;
        width: 100% !important;
    }
    section.bg.attempt h3{
        padding: 0 20px;
        max-width: 680px;
    }
    section.bg.attempt h3:after{
        width: calc(100% - 40px);
    }
    section.bg.attempt h3 span{
        position: absolute;
        right: 15px;
        left: auto;
        top: auto;
        bottom: -25px;
        line-height: 0;
        padding: 0;
        margin: 0;
    }
}

/*取り組みコンテンツ2番目以降のマージン*/
ul.contents + h3{
    margin-top: 100px !important;
}
@media only screen and (max-width: 890px) {
    ul.contents + h3{
        margin-top: 50px !important;
    }
}

section.bg.attempt h4{
    line-height: 1.5em;
    text-indent: -1.2em;
    padding-left: 1.2em;
    padding-bottom: 15px;
}
section.bg.attempt h4:before{
    content: "\025b6";
    font-size: clamp(13px,2vw,14px);
    color: #008480;
    margin-right: 5px;
}
section.bg.attempt h5{
    font-size: clamp(16px,2vw,18px);
    font-weight: bold;
    color: #008480;
    margin-bottom: 8px;
}

.fee_box {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    margin-bottom: 8px;
}
.fee_box:after {
    content: "";
    position: absolute;
    left: 1em;
    right: 0;
    top: 10px;
    width: 25%;
    height: 1px;
    border-bottom: dashed 1px #2e2e2e;
    z-index: -1;
}
.fee_box p.name{
    font-weight: bold;
    width: fit-content;
    display: inline-block;
    background-color: #fff;
    line-height: 1.4em;
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
    padding-right: 6px;
}
.fee_box p.amount{
    font-weight: bold;
    width: 72%;
    display: inline-block;
    background-color: #fff;
    line-height: 1.4em;
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
    padding-left: 6px;
}
.notes{
    font-size: clamp(12px, 2.5vw, 13px);
    letter-spacing: normal;
    line-height: 1.5em;
    width: 100%;
    margin: 20px auto;
    padding: 10px;
    border: solid 1px #2e2e2e;
    border-radius: 10px;
}
@media only screen and (max-width: 580px) {
    .fee_box p.amount{
        width: fit-content;
    }    
}

section.bg.attempt small{
    display: inline-block;
    line-height: 1.8em;
    margin-bottom: 10px;
}


/*メディカルアドバイザリー*/
ul.dr_box {
    width: 100%;
    max-width: 1180px;
    padding: 0 50px;
    margin: 50px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    grid-gap: 50px;
    column-gap: 40px;
}
ul.dr_box li {
    min-width: 400px;
    width: calc(50% - 20px);
    background-color: #fff;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.2));
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
ul.dr_box li picture{
    width: 45%;
    position: relative;
}
ul.dr_box li picture img{
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px 0 0 10px;
}
ul.dr_box li p.txt + picture img {
    border-radius: 0 10px 10px 0;
}
ul.dr_box li .txt{
    font-size: clamp(14px,2.5vw,15px);
    line-height: 1.4em;
    width: 55%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    grid-gap: 15px;
    column-gap: 5px;
    padding: 20px 20px 10px 20px;
    position: relative;
}
ul.dr_box li .txt span{
    font-size: clamp(14px,2.5vw,15px);
    line-height: 1.4em;
    display: block;
    width: 100%;    
}
ul.dr_box li span.license{
    font-size: clamp(14px,2.5vw,15px);
    font-weight: bold;
    line-height: 1em;
    letter-spacing: 0.05em;
    color: #fff;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: -8px;
    background-color: #008480;
}
ul.dr_box li .txt strong ruby{
    font-size: clamp(20px,2.5vw,25px);
    font-family: serif;
    letter-spacing: 0.05em;
    line-height: 1.2em;
    width: 100%;
}
ul.dr_box li .txt strong ruby rt{
    font-family: sans-serif;
}
ul.dr_box li .txt small {
    font-size: clamp(11px,2.5vw,12px);
    letter-spacing: normal;
    line-height: 1.5em;
    padding-top: 8px;
    margin-top: auto;
    border-top: dashed 1px #2e2e2e;
    width: 100%;
}
@media only screen and (max-width: 960px) {
    ul.dr_box {
        padding: 0 10px;
        grid-gap: 20px;
    }
    ul.dr_box li {
        min-width: auto;
        max-width: 580px;
        width: 100%;
        height: 205px;
        margin: auto;
    }
    ul.dr_box li span.license{
        top: -5px;
        right: auto;
        left: 5px;
        line-height: 1.4em;
    }
    ul.dr_box li picture {
        width: 40%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
    }
    ul.dr_box li p.txt + picture img,
    ul.dr_box li picture img{
        height: 100%;
        margin: auto;
        border-radius: 10px 0 0 10px;
    }
    ul.dr_box li .txt{
        width: 100%;
        padding: 15px 15px 10px 43%;
        position: initial;
        align-content: flex-start;
    }
    ul.dr_box li .txt small {
        margin: 0;
    }
}