/* お知らせ・CSR・movie_list・個別記事（style.css から統合） */
/* お知らせ */
#news .menu, #csr .menu {
    display: flex;
    justify-content: space-around;
    opacity: 1;
    overflow: visible;
}

#news .adjustment, #csr .adjustment {
    padding-left: 12.5%;
}

#news .tab, #csr .tab {
    display: flex;
    width: 100%;
}

#news .tab li, #csr .tab li {
    width: 35%;
    height: 70px;
    border-right: 1px solid #e1e1e1;
    background-color: #0130a8;
    color: #ffffff;
    line-height: 70px;
    text-align: center;
}

#news .tab li:last-child {
    background-color: #d9d9d9;
    color: #565656;
}

#csr .tab li:first-child {
    background-color: #d9d9d9;
    color: #565656;
}

#news .tab a, #csr .tab a {
    font-size: 2.4rem;
}

#news .newsArchive, #csr .newsArchive {
    width: 26%;
}

#news .newsArchive-container, #csr .newsArchive-container {
    position: relative;
    border: 1px solid #e1e1e1;
}

#news .newsArchive-ttl, #csr .newsArchive-ttl {
    position: relative;
    height: 60px;
    padding-left: 30px;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 60px;
    cursor: pointer;
}

#news .newsArchive-ttl::after, #csr .newsArchive-ttl::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%) rotate(135deg);
    width: 8px;
    height: 8px;
    border-top: solid 1px #999999;
    border-right: solid 1px #999999;
    content: "";
    transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -webkit-transform: translateY(-50%) rotate(135deg);
}

#news .newsArchive-ttl.is-active::after, #csr .newsArchive-ttl.is-active::after {
    transform: translateY(-50%) rotate(315deg);
    -webkit-transform: translateY(-50%) rotate(315deg);
}

#news .newsArchive-list, #csr .newsArchive-list {
    opacity: 0;
    height: 0;
    overflow: hidden;
    line-height: 0;
}

#news .newsArchive-list li a, #csr .newsArchive-list li a {
    padding: 0 30px;
    border-bottom: 1px solid #e1e1e1;
    font-size: 1.5rem;
    line-height: 60px;
}

#news .newsArchive-list li a:hover, #csr .newsArchive-list li a:hover {
    color: #0130a8;
}

#news .newsArchive-list li:last-of-type a, #csr .newsArchive-list li:last-of-type a {
    border: none;
}

#news .newsArchive-list.is-open, #csr .newsArchive-list.is-open {
    opacity: 1;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    width: 100%;
    min-width: 100%;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #e1e1e1;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.is-none {
    pointer-events: none;
}

#news dl, #csr dl {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

/* 一覧では余白を span に移して、帯が行ごとに分かれて見えるようにする */
#news .newsList dl, #csr .newsList dl {
    margin-bottom: 0;
}

#news .time, #csr .time {
    padding: 0 30px;
}

#news .year, #csr .year {
    font-size: 1rem;
}

#news .days, #csr .days {
    font-size: 2.7rem;
}

#news dd, #csr dd {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-left: 30px;
}

#news dd span, #csr dd span {
    padding-right: 40px;
}

#news a:hover, #csr a:hover {
    opacity: .7;
}

#news .hover:hover, #csr .hover:hover {
    color: #0130a8;
}

/* 一覧の帯の高さを dl の行と同じにする（span を block にし、余白は span 側で取って帯がつながらないようにする） */
#news .newsList .bgextend.bgLRextendTrigger,
#csr .newsList .bgextend.bgLRextendTrigger {
    display: block;
    margin-bottom: 30px;
}
#news .newsList .bgextend.bgLRextendTrigger:last-child,
#csr .newsList .bgextend.bgLRextendTrigger:last-child {
    margin-bottom: 0;
}
#news .bgLRextend::before, #csr .bgLRextend::before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: bgLRextendAnimation 1s forwards;
}

/* アニメーション中はホバー無効（1.6s で解除）※ common の bgExtendBase を消さないよう両方指定 */
#news .bgLRextendTrigger.bgLRextend, #csr .bgLRextendTrigger.bgLRextend {
    pointer-events: none;
    animation: bgExtendBase 1s forwards, careerfitAllowHover 1.6s forwards;
}
@keyframes careerfitAllowHover {
    100% {
        pointer-events: auto;
    }
}

#news .page, #csr .page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

@media (max-width: 820px) {
    #news .menu, #csr .menu {
        flex-direction: column;
    }

    #news .adjustment, #csr .adjustment {
        padding-left: 5%;
    }

    #news .tab a, #csr .tab a {
        font-size: 2rem;
    }

    #news .newsArchive, #csr .newsArchive {
        width: 60%;
        padding-left: 5%;
    }

    #news .newsArchive-list.is-open, #csr .newsArchive-list.is-open {
        position: relative;
    }

    .is-none {
        display: none;
    }

    #news .newsArchive-ttl, #csr .newsArchive-ttl {
        height: 50px;
        line-height: 50px;
    }

    #news .newsArchive-list li a, #csr .newsArchive-list li a {
        line-height: 50px;
    }

    #news .tab li, #csr .tab li {
        width: 45%;
        height: 50px;
        line-height: 50px;
    }

    #news dl, #csr dl {
        flex-direction: column;
        align-items: flex-start;
    }

    #news .days, #csr .days {
        font-size: 2rem;
    }

    #news .time, #csr .time {
        margin-bottom: 10px;
        padding: 0 15px;
    }

    #news dd, #csr dd {
        padding-left: 5%;
    }

    #news dd span, #csr dd span {
        padding-right: 10%;
    }
}

/* お知らせ個別 */
#news_individual .sv-inner p:first-child, #csr_individual .sv-inner p:first-child {
    position: absolute;
    top: 0;
    left: -50px;
    padding: 0 5px 10px;
    padding-right: 11px;
    padding-bottom: 10px;
    border-bottom: 1px solid #565656;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
}

#news_individual .sv-inner p:nth-of-type(2), #csr_individual .sv-inner p:nth-of-type(2) {
    position: absolute;
    top: 100px;
    left: -50px;
    padding: 0 5px;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
}

#news_individual p, #csr_individual p {
    padding: 0;
    text-align: start;
}

#news_individual .date, #csr_individual .date {
    position: absolute;
    top: 0;
    left: -50px;
    padding: 0 5px 10px;
    font-weight: normal;
    font-size: 1.6rem;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
}

@media (max-width: 820px) {
    #news_individual .date, #csr_individual .date {
        left: -12%;
    }
}

#news_individual .time, #csr_individual .time {
    padding: 0 30px;
}

#news_individual .year, #csr_individual .year {
    font-size: 1rem;
}

#news_individual .days, #csr_individual .days {
    font-size: 2.7rem;
}

#news_individual dd p:first-child, #csr_individual dd p:first-child {
    padding: 10px 0 10px 30px;
    border-left: 3px solid #0130a8;
}

#news_individual dd p, #csr_individual dd p {
    padding-left: 30px;
    line-height: 1.5;
}

#news_individual .page, #csr_individual .page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

#news_individual dd a, #csr_individual dd a {
    width: auto;
    margin: 0 30px;
    padding-bottom: 5px;
}

#news_individual dd a:hover, #csr_individual dd a:hover {
    opacity: .7;
    border-bottom: 1px solid #0130a8;
    color: #0130a8;
}

#news_individual .pdfemb-viewer, #csr_individual .pdfemb-viewer {
    left: 15px;
}

#news_individual .wp-block-embed__wrapper, #csr_individual .wp-block-embed__wrapper {
    text-align: center;
}

#news_individual .wp-block-image img, #csr_individual .wp-block-image img {
    padding-left: 30px;
}

#news_individual .wp-block-embed, #csr_individual .wp-block-embed {
    padding-left: 30px;
    overflow-wrap: break-word;
}

#news .page-prev a, #news .page-next a, #csr .page-prev a, #csr .page-next a, #movie_list .page-prev a, #movie_list .page-next a, #news_individual .page-prev a, #news_individual .page-next a, #csr_individual .page-prev a, #csr_individual .page-next a {
    position: relative;
}

#news .page-prev a::before, #csr .page-prev a::before, #movie_list .page-prev a::before, #news_individual .page-prev a::before, #csr_individual .page-prev a::before {
    display: block;
    position: absolute;
    top: 5px;
    right: 135%;
    transform: rotate(-135deg);
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border-top: 2px solid #222222;
    border-right: 2px solid #222222;
    content: "";
}

#news .page-next a::after, #csr .page-next a::after, #movie_list .page-next a::after, #news_individual .page-next a::after, #csr_individual .page-next a::after {
    display: block;
    position: absolute;
    top: 5px;
    left: 135%;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border-top: 2px solid #222222;
    border-right: 2px solid #222222;
    content: "";
}

#news .page-prev:hover, #news .page-next:hover, #csr .page-prev:hover, #csr .page-next:hover, #movie_list .page-prev:hover, #movie_list .page-next:hover, #news_individual .page-prev:hover, #news_individual .page-next:hover, #csr_individual .page-prev:hover, #csr_individual .page-next:hover {
    color: #0130a8;
}

#news .page-prev a:hover::before, #news .page-next a:hover::after, #csr .page-prev a:hover::before, #csr .page-next a:hover::after, #movie_list .page-prev a::before, #movie_list .page-next a::after, #news_individual .page-prev a:hover::before, #news_individual .page-next a:hover::after, #csr_individual .page-prev a:hover::before, #csr_individual .page-next a:hover::after {
    border-top: 2px solid #0130a8;
    border-right: 2px solid #0130a8;
    content: "";
}

#movie_list {
    list-style: none;
}

#movie_list .wp-block-embed__wrapper {
    display: none;
}

#movie_list article.newsList.mb-50 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

@media (max-width: 820px) {
    #news_individual .sv-inner p:first-child, #csr_individual .sv-inner p:first-child, #news_individual .sv-inner p:nth-of-type(2), #csr_individual .sv-inner p:nth-of-type(2), #news_individual .date, #csr_individual .date {
        left: -5%;
        font-size: 1.5rem;
    }

    #news_individual .sv-inner p:first-child, #csr_individual .sv-inner p:first-child {
        padding-right: 5px;
    }

    #news_individual .sv-inner p:nth-of-type(2), #csr_individual .sv-inner p:nth-of-type(2) {
        top: 85px;
    }

    #news_individual .sv-inner h2, #csr_individual .sv-inner h2 {
        padding: 15px 30px;
        font-size: 2rem;
    }

    #news_individual dd p:first-child, #csr_individual dd p:first-child {
        padding: 10px 30px;
    }

    #news_individual .wp-block-image img, #csr_individual .wp-block-image img {
        padding: 0 30px;
    }

    #news_individual dd p, #csr_individual dd p {
        padding: 0 30px;
    }
}

@media (max-width: 767px) {
    #news_individual .sv-inner p:first-child, #csr_individual .sv-inner p:first-child, #news_individual .sv-inner p:nth-of-type(2), #csr_individual .sv-inner p:nth-of-type(2), #news_individual .date, #csr_individual .date {
        left: -8%;
    }
}

/* 年選択ドロップダウン：記事より前面・枠内を白で塗りつぶす */
#news .menu, #csr .menu {
    position: relative;
    z-index: 15;
}

#news .tab_content, #csr .tab_content {
    position: relative;
    z-index: 1;
}

#news .newsArchive-list.is-open::before, #csr .newsArchive-list.is-open::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: -1;
}

#news .newsArchive-list.is-open li, #csr .newsArchive-list.is-open li {
    background: #ffffff;
}

#news .newsArchive-list.is-open li a, #csr .newsArchive-list.is-open li a {
    background: #ffffff;
}

@media (max-width: 767px) {
    #news .newsArchive-list.is-open, #csr .newsArchive-list.is-open {
        position: relative;
    }
}
