/*main*/

.wrapper.title {
    display: block;
}

/*********** 背景画像 ************/

#Company_introduction .company_greeting {
    position: relative;
    width: 100%;
}

#President_introduction {
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: 5px solid var(--black);
    background-image: url(../asset/greeting/bg.png);
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#Company_introduction {
    overflow: hidden;
}

#Company_introduction .background_image {
    background-image: url(../asset/greeting/cloud.png);
    padding-bottom: 1px;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
}

#Company_introduction .building {
    position: absolute;
    max-width: 10%;
    max-height: 90%;
    height: 90%;
    top: 9%;
    left: 41%;
    z-index: 4;
    background-size: cover;
}

#Company_introduction .warp,
#Company_introduction .warp_small {
    position: absolute;
    height: 103%;
    width: 100%;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#Company_introduction .warp_small {
    z-index: 1;
}

#President_introduction .dot_image {
    position: absolute;
    right: 0%;
    height: 120px;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 0%;
}

#Company_introduction {
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*********** 769~992px タブレット（TB）＝（SP表示） ***********/
/* 993~ PC */
@media screen and (max-width: 992px) {
    #Company_introduction .company_greeting {
        padding-bottom: 1px;
        display: block;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        padding-bottom: 30%;
    }

    #Company_introduction .building {
        width: 20%;
        height: 20%;
        top: 78%;
        left: 40%;
    }

    #Company_introduction .warp_small {
        height: 80%;
    }

    #Company_introduction .warp {
        height: 80%;
    }

    #President_introduction .dot_image {
        height: 120px;
    }
}

@media screen and (max-width: 768px) {
    #Company_introduction .warp_small {
        position: absolute;
        height: 80%;
        width: 100%;
    }
}

/*********** タイトルの箱 ************/

#President_introduction .content.title::before,
#President_introduction .content.title::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-size: contain;
}


#President_introduction .content.title {
    position: relative;
    padding: 9px;
    border: 5px solid black;
    border-bottom-width: 10px;
    background-color: var(--white);
    z-index: 2;
}

#President_introduction .content.title::before {
    background-image: url(../../assets/images/warpLeft.png);
    background-position: left;
}

#President_introduction .content.title::after {
    background-image: url(../../assets/images/warpRight.png);
    background-position: right;
}

#President_introduction h2 {
    font-size: 48px;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

#President_introduction h2::after {
    display: inline-block;
    content: attr(data);
    font-size: 12px;
    color: var(--black);
    margin: auto 6px;
}

@media(max-width:997px) {
    #President_introduction h2 {
        line-height: 48px;
        flex-direction: column;
    }

    #President_introduction h2::after {
        line-height: normal;
    }
}

@media (max-width:576px) {
    #President_introduction h2 {
        line-height: 32px;
        font-size: 32px;
    }
}

#President_introduction .president {
    height: auto;
    width: 100%;
}

#President_introduction .president_name {
    width: fit-content;
    text-align: left;
}

#President_introduction .president_name {
    width: fit-content;
    text-align: left;
}

#President_introduction .president_container {
    margin: auto;
    margin-left: 50px;
    width: 25%;
}

#President_introduction .wrapper.president_name {
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#President_introduction .post {
    font-size: 12px;
}

#President_introduction .company {
    font-size: 12px;
}

#President_introduction .president_sign {
    height: fit-content;
    max-width: 192px;
    margin: 0;
}

#President_introduction .president_sign img {
    height: auto;
    width: 100%;
}

#President_introduction .pseudonym_reading {
    font-size: 10px;
}

/* 993~ PC */
@media screen and (max-width: 992px) {

    #President_introduction .president_name.wrapper {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    #President_introduction .president_container {
        display: block;
        margin: 24px auto auto auto;
        width: 50%;
    }

    #President_introduction .president_name.wrapper {
        text-align: center;
        display: block;
        margin: auto;
    }

    #President_introduction .president_sign {
        width: 50%;
        margin: auto;
    }

    #President_introduction .pseudonym_reading {
        position: relative;
        left: 2%;
        font-size: 9px;
    }
}

/*********** 代表あいさつ ************/

#President_introduction .president_greeting_title {
    font-size: 28px;
    width: fit-content;
    padding: 16px 0;
}

/*********** 代表挨拶の箱 ************/
#President_introduction .president_greeting {
    height: fit-content;

    padding: 30px 20px;
    margin: auto;

    border: 5px solid black;
    border-bottom-width: 10px;

    color: var(--mainTextColor);

    background-color: white;
    background-repeat: repeat;
}

#President_introduction .president_greeting_textBox {
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    #President_introduction .president_greeting_textBox {
        flex-flow: column;
        justify-content: center;
    }
}

/*********** 代表挨拶の本文 ************/

#President_introduction .beginning {
    font-size: 18px;
    text-align: left;
}

#President_introduction .president_greetingtext {
    font-size: 14px;
    margin-top: 5px;
    text-align: left;
}

#President_introduction .main_text {
    width: 75%;
}

/* 993~ PC */
@media screen and (max-width: 992px) {
    #President_introduction .president_greetingtext {
        margin-left: auto;
        margin-right: auto
    }

    #President_introduction .main_text {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/*********** キャラクター調整 ************/

#Company_introduction .container_characters {
    position: absolute;
    height: 100%;
    left: 43%;
    bottom: 98%;
    transform: translateX(-50%);
    pointer-events: none;
    width: 100vh;
    z-index: 5;
    max-width: 70%
}

.charas {
    position: absolute;
    bottom: 2%;
    width: 25%;
    opacity: 1;
    pointer-events: none;
}

.charas img {
    height: 100%;
    position: absolute;
    width: auto;
}

.charas :nth-child(1) {
    left: 0%;
}

.charas :nth-child(2) {
    left: 33%;
}

.charas :nth-child(3) {
    left: 66%;
}

#charas1 {
    left: 13%;
    height: 50%;
    width: auto;
    aspect-ratio: 1/1;
    bottom: 1%;
}

#charas2 {
    left: 33%;
    height: 50%;
    bottom: 0%;
}

#charas2 :nth-child(2),
#charas2 :nth-child(3) {
    height: 80%;
    bottom: 0%;
}

#charas3 {
    right: 0%;
    height: 50%;
    bottom: 2%;
}

#charas4 {
    left: 3%;
    height: 30%;
    bottom: 0%;
}

.Character1st {
    right: 10%;
}

.Character2nd {
    left: 3%;
}

#charas5 {
    height: 30%;
    left: 97%;
    bottom: 0%;
}

#charas6 {
    left: 46%;
    height: 50%;
    bottom: 0%;
}

#charas7 {
    left: 57%;
    height: 50%;
    bottom: 1%;
}

/* 993~ PC */
@media screen and (max-width: 992px) {
    #Company_introduction .container_characters {
        width: 50%;
        height: 70%;
        left: 40%;
        max-width: 80%
    }

    #charas1 {
        left: 13%;
    }

    #charas2 {
        left: 38%;
    }

    #charas3 {
        right: -10%;
    }

    #charas4 {
        left: 0%;
    }

    #charas5 {
        left: 110%;
    }

    #charas6 {
        left: 55%;
    }

    #charas7 {
        left: 68%;
    }

}

@media screen and (max-width: 768px) {
    #Company_introduction .container_characters {
        height: 70%;
        left: 40%;
        max-width: 80%
    }

    #charas5 {
        left: 110%;
        bottom: 0%;
    }


    #charas2 {
        left: 38%;
    }
}

@media screen and (max-width: 576px) {
    #Company_introduction .container_characters {
        bottom: 100%;
        left: 35%;
        max-width: 70%
    }

    #charas1 {
        left: -17%;
    }

    #charas5 {
        left: 125%;
    }

    #charas3 {
        right: -10%;
    }

    #charas7 {
        left: 58%;
    }

    #charas6 {
        left: 42%;
    }

    #charas2 {
        left: 19%;
    }

    #charas4 {
        left: -30%;
    }
}


/*********** 思い ************/

#Company_introduction .first_thought,
#Company_introduction .second_thought,
#Company_introduction .third_thought {
    width: fit-content;
    max-width: 80%;

    padding: 0 8px;
    margin: 0px;
    margin-bottom: 2px;

    background-color: black;

    font-size: 18px;
    color: white;
}

#Company_introduction .thought_pc {
    margin-left: 20%;
    margin-bottom: 220px;
    padding-top: 120px;
}

.thought_sp {
    display: none;
}

@media screen and (max-width: 992px) {

    .thought_pc {
        display: none;
    }

    .thought_sp {
        display: inline-block;
        width: 100%;
        position: relative;
        left: 30%;
        margin-bottom: 200px;
        padding-top: 120px;
    }
}

@media screen and (max-width: 768px) {
    .thought_pc {
        display: none;
    }

    .thought_sp {
        display: inline-block;
        width: 100%;
        position: relative;
        left: 20%;
        margin-bottom: 200px;
        padding-top: 120px;
    }
}

@media screen and (max-width: 576px) {
    .thought_pc {
        display: none;
    }

    .thought_sp {
        display: inline-block;
        width: 100%;
        position: relative;
        left: 10%;
        margin-bottom: 200px;
        padding-top: 120px;
    }
}

/*********** 画像の調整 ************/

#Company_introduction .heihati {
    width: 30%;
    margin: auto;
}

/*********** 会社の思い本文箱 ************/

#Company_introduction .company_thought {
    display: flex;
    justify-content: space-between;

    padding: 60px 40px;
    margin: auto;
    margin-bottom: 60px;

    color: var(--mainTextColor);
    border: 5px solid black;

    background-color: rgba(255, 255, 255, 0.900);
    background-repeat: repeat;

    position: relative;
    z-index: 6;
}

/* 993~ PC */
@media screen and (max-width: 992px) {
    #Company_introduction .company_thought {
        flex-direction: column;
        align-items: center;
        padding: 20px 5%;
    }
}

/*********** 会社の思い本文 ************/

#Company_introduction .heading {
    font-size: 18px;
    margin-bottom: 3%;
}

#Company_introduction .company_hoop {
    font-size: 14px;
}


#Company_introduction .company_hoop_text {
    text-align: left;
}