@charset "utf-8";
/* ------------------------
共通CSS　
--------------------------- */

.link-wrapper{
    width: 100%;
    text-align: center;
}
.link-wrap {
    display: inline-block;
    text-align: center;
    color: #fff;
    background-color: #8A0104;
    padding: 0.8em 6em;
    border-radius: 20px;
    font-size: 12px;
    width: 240px;
    margin: 15% auto 0;
}
.text-wrap{
    width: 100%;
    margin: 2em auto;
    line-height: 2em;
    font-size: 14px;
    align-self: baseline;
}
@media screen and (max-width: 767px) {
    .link-wrap {
        text-align: center;
        color: #fff;
        background-color: #8A0104;
        padding: 0.8em 3em;
        border-radius: 20px;
        font-size: 12px;
        width: 180px;
        margin: auto;
    }
}
/* ------------------------
API以外のコンテンツCSS
--------------------------- */
.second-wrap{
    display: grid;
    grid-template-columns: 44% 50%;
    gap: 6%;
    width: 80%;
    margin-left: auto;
    justify-items: end;
}
.message-text-wrap {
    width: 100%;
    display: grid;
    align-items: center;
    gap: 0;
}
.interview-hero {
    width: 100%;
    height: 100%;
    max-width: 620px;
    object-fit: cover;
    object-position: top;
}
.sp-hero-image{
    display: none;
}
@media screen and (max-width: 767px) {
    .second-wrap{
        display: flex;
        flex-wrap: wrap-reverse;
        gap: 6%;
        width: 100%;
        margin-left: auto;
        justify-content: center;
    }
    .message-text-wrap{
        width: 95%;
        display: grid;
        align-items: center;
        gap: 1em;
        margin-top: 3em;
    }
    .change-hero{
        display:block;
        width: 100%;
        height: 249px;
    }
    .sp-hero-image{
        display: none;
        /* width: 100%; */
    }
}
/* ------------------------
APIのCSS
--------------------------- */
#interview-list{
    padding: 10%;
}
/* .iv-meta{
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: 45% 45%;
    gap: 10%;
    margin-bottom: 80px;
} */

.iv-meta {
    display: flex;
    justify-content: space-between; /* 両端に並べる */
    align-items: flex-start;
    max-width: 800px;
    width: 100%;
    margin-bottom: 80px;
}
#interview-list .iv-card:nth-child(3) .iv-meta,
#interview-list .iv-card:nth-child(4) .iv-meta
{
    display: grid;
    grid-template-columns: 45% 45%;
    gap: 10%;

    grid-template-areas:
        "text image"; /* ←左右入れ替え！ */
}

#interview-list .iv-card:nth-child(3) .iv-meta > img,
#interview-list .iv-card:nth-child(4) .iv-meta > img {
    grid-area: image;
}

#interview-list .iv-card:nth-child(3) .iv-meta .name-sub,
#interview-list .iv-card:nth-child(4) .iv-meta .name-sub {
    grid-area: text;
    width: 100%;
    height: auto;
}


.iv-meta > * {
    width: 45%;   /* ← Grid と同じ幅になる */
}
.iv-card{
    width: 80%;
}

.iv-meta img{
    width: 330px;
}
.iv-name{
    line-height: 1.3;
    font-size: 16px;
    font-weight: 700;
}
.iv-role{
    line-height: 2;
    font-size: 14px;
    margin-top: 1.3em;
}
.name-sub{
    display: grid;
    align-items: center;
    height: 68%;
    align-self: center;
}
/* コンテンツの段差をつける */
#interview-list .iv-card:nth-child(2) {
    margin-left: 18%;
}

#interview-list .iv-card:nth-child(3) {
    margin-right: 20%;

}

#interview-list .iv-card:nth-child(4) {
    margin-left: 16%;

}

@media screen and (max-width: 1200px) {
    .iv-meta img{
        width: 260px;
    }
}


@media screen and (max-width: 1000px) {
        .iv-card{
        width: 80%;
        margin: auto;
    }
    .iv-meta{
        width: 100%;
        max-width: 800px;
        display: grid;
        grid-template-columns: 100%;
        gap: 0;
        margin-bottom: 80px;
        justify-items: center;
    }
    #interview-list .iv-card:nth-child(3) .iv-meta,
    #interview-list .iv-card:nth-child(4) .iv-meta
    {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 50% 50%;
        gap: 0;
            grid-template-areas:
        "image"
        "text";/* ←左右入れ替え！ */
    }
    #interview-list .iv-card:nth-child(3) .iv-name,
    #interview-list .iv-card:nth-child(4) .iv-name
    {
        margin-top: 2em;
    }
    .name-sub {
        display: grid;
        align-items: center;
        gap: 0.5em;
        width: 100%;
    }
    .iv-meta img{
        width: 230px;
    }
    #interview-list .iv-card:nth-child(2) {
        margin-left: auto;
    }

    #interview-list .iv-card:nth-child(3) {
        margin-right: auto;
        direction: auto;
    }

    #interview-list .iv-card:nth-child(4) {
        margin-left: auto;
        direction: auto;
    }
}