/* ==========================
ファーストビュー
========================== */
.firstview {
    background-image: url('images/top_image/top__fv--bgimg.png');
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 18px;
    position: relative;
    height: 666px;
    margin: 0 auto;
    overflow: hidden;
    padding-left: 96px;
    top: 80px;
    width: 96.6vw;
}

.firstview__text {
    background-color: transparent;
    left: 96px;
    position: absolute;
    top: 128px;
    width: 560px;
    z-index: 3;
}

.firstview h1,
.firstview h2,
.firstview p {
    color: #fff;
    font-family: "Poppins", sans-serif;
    position: relative;
}

.firstview h1 {
    font-size: 56px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
}

.firstview h2 {
    font-size: 28px;
    font-style: normal;
    line-height: 2.6;
}

.firstview p {
    font-size: 14px;
    font-style: normal;
}

.firstview__image {
    height: 98.8%;
    position: absolute;
    right: 80px;
    z-index: 2;
}

.firstview__image img {
    height: 100%;
    object-fit: cover;
}

/* ==========================
新しい価値を提供する
========================== */
.value {
    display: flex;
    gap: 80px;
    justify-content: center;
    margin-top: 208px;
}

.value__title {
    align-items: center;
    color: #403F3F;
    display: flex;
    font-size: 32px;
}

.value__title::before {
    background-color: #0099BA;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 10px;
    margin-right: 0.5em;
    width: 10px;
}

.value__text {
    color: #403F3F;
    font-family: "Poppins", sans-serif;
    margin-bottom: 1.5em;
}

/* ==========================
OUR VISION
========================== */
.vision::before {
    background-image: url('images/top_image/top__figure1.png');
    background-size: contain;
    background-repeat: no-repeat;
    bottom: -362px;
    content: "";
    position: absolute;
    right: 0;
    width: 410px;
    height: 606px;
    z-index: -1;
}

.vision {
    position: relative;
    margin-top: 64px;
    z-index: 1;
}

.vision__title {
    color: #4CDBFC;
    font-family: 'Poppins', sans-serif;
    font-size: 160px;
    font-weight: 200;
    opacity: 0.6;
    text-align: center;
}

.vision__figure {
    background-image: url('images/top_image/top__vision--group.png');
    background-repeat: no-repeat;
    height: 474px;
    margin: 0 auto;
    text-align: center;
    width: 468px;
}

.vision__text {
    color: #28ABDD;
    font-family: 'Poppins', sans-serif;
}

.vision__text:nth-child(1) {
    position: relative;
    top: 40px;
}

.vision__text:nth-child(2) {
    position: relative;
    top: 108px;
}

.vision__text:nth-child(3) {
    position: relative;
    top: 186px;
}

.vision__text:nth-child(4) {
    position: relative;
    top: 268px;
}

/* ==========================
事業内容
========================== */
.content::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -130px;
    width: 414px;
    height: 414px;
    background-image: url('images/top_image/top__figure2.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    transform: translateX(calc(-50vw + 561px));
}

.content {
    position: relative;
    margin: 128px auto 0;
    max-width: 1122px;
    z-index: 1;
}

.content__textbox {
    display: flex;
    gap: 120px;
}

.content__title {
    align-items: center;
    color: #403F3F;
    display: flex;
    font-size: 32px;
}

.content__title::before {
    background-color: #0099BA;
    border-radius: 50%;
    color: #403F3F;
    content: "";
    display: inline-block;
    height: 10px;
    margin-right: 0.5em;
    width: 10px;
}

.content__explanation {
    color: #403F3F;
}

.content__blocks {
    display: flex;
    gap: 54px;
    justify-content: center;
    margin-top: 80px;
    position: relative;
}

.content__block {
    background-color: #45ABD9;
    border-radius: 18px;
    height: 420px;
    padding: 12px 12px 0;
    position: relative;
    width: 544px;
}

.content__block2 {
    margin-top: 88px;
}

.content__image {
    width: 520px;
}

.content__text--service {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-style: italic;
    font-weight: 200;
    position: absolute;
    right: 34px;
    top: 264px;
}

.content__text--subtitle {
    color: #ffffff;
    font-size: 28px;
    padding: 20px 24px 14px;
}

.content__text {
    color: #ffffff;
    padding: 0 24px;
}

.content__linkbox {
    display: flex;
    justify-content: right;
    margin-top: 28px;
}

.content__link {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-style: italic;
    font-weight: 100;
    margin: 18px 24px 0 0;
    vertical-align: middle;
}

/* ==========================
お知らせ
========================== */
.news {
    background-color: #F7F7F7;
    padding: 160px 160px 72px;
    position: relative;
    margin-top: 128px;
    z-index: 1;
}

.news__titlebox {
    display: flex;
    gap: 14px;
    position: absolute;
    top: -64px;
}

.news__title {
    color: #45ABD9;
    font-family: 'Poppins', sans-serif;
    font-size: 160px;
    font-weight: 100;
}

.news__subtitle {
    color: #403F3F;
    font-size: 18px;
    margin-top: 108px;
}

.news__block {
    align-items: center;
    border-bottom: 1px solid #BEBEBE;
    display: flex;
    gap: 30px;
    height: 108px;
    padding-left: 28px;
    width: 100%;
}

.news__category {
    background-color: #45ABD9;
    border-radius: 14px;
    color: #ffffff;
    font-size: 14px;
    height: 28px;
    line-height: 28px;
    margin-right: 20px;
    text-align: center;
    width: 102px;
}

.news__linkbox {
    display: flex;
    justify-content: right;
    margin-top: 56px;
}

.news__link {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-style: italic;
    font-weight: 100;
    margin: 18px 24px 0 0;
    vertical-align: middle;
}

/* ==========================
会社概要
========================== */
.company {
    margin: 128px auto 80px;
    max-width: 1122px;
    width: 100%;
}

.company__textbox {
    display: flex;
    gap: 120px;
}

.company__title {
    align-items: center;
    color: #403F3F;
    display: flex;
    font-size: 32px;
}

.company__title::before {
    background-color: #0099BA;
    border-radius: 50%;
    color: #403F3F;
    content: "";
    display: inline-block;
    height: 10px;
    margin-right: 0.5em;
    width: 10px;
}

.company__explanation {
    color: #403F3F;
    line-height: 36px;
}

.p-common__inner {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.p-company__block {
    align-items: flex-start;
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    flex: 0 0 100%;
    max-width: 100%; 
    margin: 0 auto;
}

.fadein.scrollin {
    opacity: 1;
    transform: translate(0, 0);
}

.corporate-table {
    border-collapse: collapse;
    margin-top: 56px;
    width: 100%;
}

.corporate-table tbody {
    display: block;
    color: #403F3F;
    width: 100%;
}

.company__map {
    margin-top: 56px;
}

.company__map-frame {
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 8px;
    display: block;
    width: 100%;
}

.company__map-link {
    color: #0099BA;
    display: inline-flex;
    font-weight: 500;
    margin-top: 16px;
}

.corporate-table tr:first-child {
    border-top: 1px solid #cacaca;
}

.corporate-table tr {
    border-bottom: 1px solid #cacaca;
    display: flex;
    gap: 24px;
    padding: 1.5rem 1rem;
}

.corporate-table th {
    flex: 0 0 7.5em;
    text-align: justify;
    text-justify: inter-ideograph;
    font-weight: 500;
    white-space: nowrap;
}

@media screen and (min-width: 560px) {
    .corporate-table th, .corporate-table td {
        padding: 1rem 3rem;
    }
}

.corporate-table td {
    flex: 1 1 auto;
    line-height: 1.8;
    min-width: 0;
    width: auto;
}

@media screen and (min-width: 560px) {
    .corporate-table th, .corporate-table td {
        padding: 1rem 3rem;
    }
}




.viewSp {
    display: none;
}

/* ==========================
タブレット版
========================== */
@media (max-width: 1152px) {
    /* ==========================
    ファーストビュー
    ========================== */
    .firstview {
        height: 480px;
    }

    .firstview__text {
        top: 112px;
        left: 80px;
        width: 560px;
    }

    .firstview h1 {
        font-size: 48px;
        line-height: 1.6;
    }
    
    .firstview h2 {
        font-size: 24px;
        font-style: normal;
        line-height: 2.6;
    }

    .firstview__image {
        right: 8px;
    }

    /* ==========================
    新しい価値を提供する
    ========================== */
    .value {
        gap: 40px;
        margin: 176px 24px 0;
    }

    .value__title {
        font-size: 28px;
    }

    /* ==========================
    OUR VISION
    ========================== */
    .vision__title {
        font-size: 112px;
    }

    /* ==========================
    事業内容
    ========================== */
    .content::before {
        bottom: -112px;
        width: 414px;
        height: 414px;
        transform: translateX(0);
    }

    .content {
        margin-top: 96px;
        max-width: 1160px;
    }

    .content__title {
        font-size: 28px;
    }

    .content__textbox {
        gap: 48px;
        margin-left: 24px;
    }

    .content__blocks {
        display: block;
        gap: 54px;
        justify-content: center;
        margin: 72px auto 0;
        position: relative;
        width: 544px;
    }

    .content__block2 {
        margin-top: 56px;
    }

    /* ==========================
    お知らせ
    ========================== */
    .news {
        padding: 80px 80px 56px;
        margin-top: 96px;
    }

    .news__titlebox {
        gap: 14px;
        top: -48px;
    }

    .news__title {
        font-size: 112px;
    }

    .news__subtitle {
        font-size: 14px;
        margin-top: 80px;
    }

    .news__block {
        gap: 24px;
        height: 108px;
        padding-left: 18px;
    }

    .news__date {
        font-size: 14px;
    }

    .news__category {
        margin-right: 0px;
        width: 112px;
    }

    .news__linkbox {
        margin-top: 40px;
    }

    /* ==========================
    会社概要
    ========================== */
    .company {
         margin-top: 96px;
    }

    .corporate-table {
        margin-top: 48px;
    }

    .corporate-table tr {
        gap: 16px;
    }

    .corporate-table th,
    .corporate-table td {
        padding: 0.75rem 1rem;
    }

    .corporate-table th {
        flex-basis: 6.5em;
    }

    .company__map {
        margin-top: 48px;
    }

    .p-company__block {
        gap: 24px;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
        max-width: 88%; 
    }

    .company__textbox {
        gap: 48px;
        margin-left: 24px;
    }

    .viewSp {
        display: none;
    }
}

@media (max-width: 768px) {
    /* ==========================
    ファーストビュー
    ========================== */
    .firstview {
        height: 440px;
        margin: 0 auto;
        padding-left: 96px;
    }

    .firstview__text {
        left: 28px;
        top: 84px;
        width: 90%;
    }

    .firstview h1 {
        font-size: 40px;
        line-height: 1.4;
    }
    
    .firstview h2 {
        font-size: 22px;
        line-height: 2.8;
    }

    .firstview__image {
        height: 98.8%;
        opacity: 0.6;
        position: absolute;
    }

    /* ==========================
    新しい価値を提供する
    ========================== */
    .value {
        display: block;
        margin-top: 144px; 
    }

    .value__text--block {
        margin-top: 24px;
    }

    .value__text {
        line-height: 1.4;
    }

    /* ==========================
    OUR VISION
    ========================== */
    .vision::before {
        bottom: -288px;
        width: 300px;
        height: 428px;
    }

    .vision {
        margin-top: 48px;
    }

    .vision__title {
        font-size: 80px;
    }

    .vision__figure {
        background-size: cover;
        height: 366px;
        width: 360px;
    }

    .vision__text:nth-child(1) {
        top: 32px;
    }
    
    .vision__text:nth-child(2) {
        top: 78px;
    }
    
    .vision__text:nth-child(3) {
        top: 132px;
    }
    
    .vision__text:nth-child(4) {
        top: 192px;
    }


    /* ==========================
    事業内容
    ========================== */
    .content::before {
        width: 360px;
        height: 360px;
    }

    .content {
        margin-top: 64px;
    }

    .content__textbox {
        display: block;
        margin: 0 24px;
    }

    .content__explanation {
        margin-top: 24px;
    }

    .content__blocks {
        margin: 48px 0 0 ;
        width: 100vw;
    }

    .content__block--cover {
        width: 100%;
    }

    .content__block {
        height: auto;
        padding-bottom: 24px;
        margin: 0 auto;
        width: 94%;
    }

    .content__image {
        width: 100%;
    }

    .content__text--service {
        font-size: 28px;
        right: 24px;
        top: 62%;
    }

    .content__text {
        line-height: 1.2;
    }

    .content__linkbox {
        margin: 16px 3vw 20px 0;
    }

    .content__link {
        font-size: 28px;
        margin: 0px 16px 0 0;
        line-height: 48px;
    }

    .content__link--image{
        height: 48px;
        width: 48px;
    }

    /* ==========================
    お知らせ
    ========================== */
    .news {
        padding: 48px 4vw 20px;
        margin-top: 64px;
    }

    .news__titlebox {
        top: -36px;
    }

    .news__title {
        font-size: 80px;
    }

    .news__subtitle {
        margin-top: 56px;
    }

    .news__block {
        gap: 12px;
        padding-left: 8px;
    }

    .news__category {
        margin-right: 0px;
        width: 72px;
        min-width: 72px;
    }

    .news__linkbox {
        margin: 16px 3vw 20px 0;
    }

    .news__link {
        font-size: 28px;
        margin: 0px 16px 0 0;
        line-height: 48px;
    }

    .news__link--image{
        height: 48px;
        width: 48px;
    }

    /* ==========================
    会社概要
    ========================== */
    .company {
        margin-top: 64px;
        margin-bottom: 64px;
    }

    .corporate-table {
        margin-top: 48px;
    }

    .company__map {
        margin-top: 24px;
    }

    .company__map-frame {
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }

    .p-company__block {
        display: block;
        flex: 0 0 100%;
        max-width: 92%; 
    }

    .corporate-table tr {
        display: block;
        padding: 1rem 0.25rem;
    }

    .corporate-table th,
    .corporate-table td {
        display: block;
        width: 100%;
    }

    .corporate-table td {
        margin-top: 8px;
    }

    .company__textbox {
        display: block;
        margin: 0 24px;
    }

    .company__explanation {
        margin-top: 24px;
    }

    .company__textbox {
        gap: 48px;
        margin-left: 24px;
    }

    .viewSp {
        display: block;
    }

    .viewPC {
        display: none;
    }

}

@media (max-width: 430px) {
    .firstview__image {
        right: -40px;
    }

    .content__text--service {
        top: 52%;
    }
}
