/* googleフォント */
.zen-antique-soft-regular {
    font-family: "Zen Antique Soft", serif;
    font-weight: 700;
    font-style: normal;
}

/* ヒーローセクションの画像 */
.hero {
    background-image: url(/mid-careers/assets/img/about_hero.png);
}

.hero-outer {
    position: relative;
}

.hero-outer .ceo-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
}

.hero-outer .ceo-message li:nth-child(1) {
    margin-bottom: 1em;
}

.hero-outer .ceo-message li:nth-child(2)>p:nth-child(1) {
    margin-bottom: 1.25em;
    font-size: 3.5em;
    font-weight: bold;
    color: #0E1E65;
}

.hero-outer .ceo-message li:nth-child(2)>p:nth-child(2) {
    font-size: 1.75em;
    display: flex;
    font-weight: 500;
}

.hero-outer .ceo-message li:nth-child(2)>p:nth-child(2) span {
    font-size: 2.25em;
    padding-left: 0.5em;
    transform: translateY(-0.125em);
}

@media screen and (min-width: 769px) and (max-width:1400px) {
    .hero-outer .ceo-message {
        font-size: 1.1vw;
    }
}

@media screen and (max-width: 768px) {
    .hero-outer {
        padding-top:4em;
    }
    .hero-outer .ceo-message {
        position: unset;
        padding: 2em;
        transform: unset;
    }

    .hero {
        background-image: url(/mid-careers/assets/img/about_hero_sp.png);
    }

    .hero-outer .ceo-message li:nth-child(1) {
        position: absolute;
        top: 3.685em;
        height: 4rem;
        display: flex;
        align-items: center;
        font-size: 1.175em;
        gap: 4px;
    }

    .hero-outer .ceo-message li:nth-child(2)>p:nth-child(1) {
        margin-bottom: .5em;
    }

    .hero-outer .ceo-message li:nth-child(2)>p:nth-child(2) {
        font-size: 1.75em;
        display: block;
        text-align: right;
        width: 100%;
    }

    .hero-outer .ceo-message li:nth-child(2) {
        font-size: 1.8vw;
    }
}
@media screen and (max-width: 360px) {

    .hero-outer .ceo-message li:nth-child(1) {
        top: 3.125em;
    }
}

.about-section .section-inner:not(:last-child) {
    padding-bottom: 0;
}

.about-section .section-inner>div:not(:last-child) {
    padding-bottom: 5em;
    border-bottom: 1px solid #000;
}

.text-contents h4 p:nth-child(1),
.ceo-message li:nth-child(1) {
    font-size: 1.75em;
    font-weight: bold;
}

.text-contents h4 p:nth-child(2) {
    font-size: 2em;
    font-weight: bold;
}

.text-contents h4 span,
.ceo-message li:nth-child(1) span {
    font-size: 0.8em;
    white-space: nowrap;
}

.text-contents p {
    line-height: 1.75;
}

.text-contents>div:not(:last-child) {
    margin-bottom: 4em;
}

.label-sub span {
    display: inline-block;
    margin-bottom: 0.25em;
}

.about-image-ceo {
    display: flex;
}

.about-image-ceo>div:nth-child(1) {
    margin-right: 2.5em;
}

.about-image-ceo img {
    width: 100%;
    border-radius: 1em;
}

.about-image img {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .text-contents h4.label-b {
        font-size: 0.75em;
    }

    .about-image-ceo {
        display: block;
    }
    .about-image-ceo>div:nth-child(1) {
        margin-right: unset;
        margin-bottom:2em;
    }
    .about-image-ceo img {
        border-radius: 1em;
    }

}


.history dl {
    position: relative;
    display: flex;
    padding-bottom: 2em;
}

.history dl::before {
    content: "";
    position: absolute;
    left: 9em;
    top: 1.35em;
    width: 16px;
    height: 16px;
    background-color: var(--theme-color-main);
    border-radius: 50%;
}

.history dl::after {
    content: "";
    position: absolute;
    left: calc(6px + 9em);
    top: 2em;
    bottom: -2em;
    background-color: #799FBB;
    width: 0.25em;
    z-index: -1;
}

.history dt {
    font-size: 3em;
    color: #ccc;
}

.history dd {
    top: 1em;
    position: relative;
    margin-left: 5.25em;
}

.history dd>div {
    display: flex;
}

.history dd>div:not(:last-child) {
    margin-bottom: 1em;
}
.history dd div p:nth-child(1) {
    margin-right:1em;
}
.history dd div p:nth-child(2) {
    flex:1;
}
.history-month {
    font-weight: 700;
    min-width: 100px;
}

@media screen and (max-width: 768px) {
    .history dt {
        font-size: 1.25em;
        color: #ccc;
    }
    .history dl::before {
        top: .3em;
        left: 4em;
    }
    .history dl::after {
        top: 1.25em;
        left: calc(6px + 4em);
    }
    .history dd {
        top: 0.1em;
        margin-left: 3em;
        font-size: 14px;
    }
    .history dd>div {
        flex-direction: column;
    }
    .history dd div p:nth-child(2) {
        flex:1;
        line-height: 20px;
        letter-spacing: 0px;
    }
}

/* 動画セクション */
.youtube-videos {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.youtube-video-box {
    flex: 0 0 90%;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 16px 16px 32px 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    /* background-color: rgb(234, 234, 234); */
    background: linear-gradient(145deg, rgb(222, 226, 228), rgb(215 220 224));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
}

.youtube-video-box iframe {
    width: 100%;
    height: 340px;
    border-radius: 10px;
}

.youtube-video-box .text-container {
    display: flex;
    align-items: flex-start;
    margin-top: 24px;
    gap: 12px;
    width: 100%;
}

.youtube-video-box .text-container::before {
    content: "";
    display: block;
    width: 6px;
    background-color: #333;
    height: 100%;
}

.youtube-video-box .text-container>div {
    text-align: left;
}

.youtube-video-box .video-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
}

.youtube-video-box .video-description {
    font-size: 16px;
    margin-top: 4px;
    color: #222;
}

@media screen and (max-width: 600px) {
    .youtube-videos {
        gap: 16px;
    }
    .youtube-video-box {
        flex: 0 0 68%;
        max-width: none;
        padding: 10px 10px 20px 10px;
    }
    .youtube-video-box iframe {
        height: 136px;
    }
    .youtube-video-box .video-title {
        font-size: 16px;
    }
    .youtube-video-box .video-description {
        font-size: 12px;
    }
}

.section-line{
    max-width:1280px;
    padding:0 80px;
    margin: 0 auto;
}
@media screen and (max-width: 768px) {
    .section-line{
        padding:0 2em;
    }
    
}