/* フリーページを幅100%で表示するための打ち消し用css */

div.ms-site-container > .container #main{
    margin-bottom: 0!important;
}

/* フリーページの幅を100%にする */
div.ms-site-container > .container .main{
    max-width: 100%;
}

/* rowのマージンを0にする */
.row{
    margin: 0;
}

/* カラムのパディングを0にする */
.col{
    padding: 0;
}

/* フリーページ下部の不要な余白の削除 */
#free_top .col{
    min-height: auto;
}
#free_bottom .col{
    min-height: auto;
}

.freepage footer {
    margin-top: 0;
}

div.ms-site-container > .container {
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    div.ms-site-container > .container .main{
        margin-left: 0!important;
        margin-right: 0!important;
    }
}

/* フリーページを幅100%で表示するための打ち消し用css */
/* ここまで */


/* ここからカスタマイズ */
@media (min-width: 768px) {
    #company-content sp{
        display: none!important;
    }
}

@media (max-width: 767px) {
    #company-content pc{
        display: none!important;
    }
}

#company-content{
    width: 100%;
}

#company-content section .inner{
    max-width: 1240px;
    margin: 0 auto;
    padding-left: clamp(0px, calc(100vw / 1240 * 50), 50px);
    padding-right: clamp(0px, calc(100vw / 1240 * 50), 50px);
    box-sizing: border-box;
}

#company-content section h2{
    font-size: 40px;
    line-height: 1.35em;
    font-weight: 600;
}

#company-content section p{
    font-size: 20px;
    line-height: 1.5em;
    font-weight: 500;
}

#company-content section img{
    width: 100%;
}

/*#sec01*/
#company-content section#sec01{
    background-image: url(/user_data/img/free_page/company/company_img01_pc.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    display: flex;
    align-items: center;
    height: 800px;
}

#company-content section#sec01 .inner{
    padding-top: 280px;
    padding-bottom: 340px;
    width: 100%;
}

/*#sec02*/
#company-content section#sec02 .inner{
    padding-top: 100px;
    padding-bottom: 100px;
}

#company-content section#sec02 h1{
    font-size: 60px;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

#company-content section#sec02 p.line{
    font-size: 40px;
    color: #fff;
    width: 650px;
    margin: 0 auto 90px;
    text-align: center;
    background-color: #00a946;
    text-align: center;
}

#company-content section#sec02 .inner .flex_wrap{
    display: flex;
    gap: 80px;
    width: 100%;
}

#company-content section#sec02 .inner .flex_wrap img{
    width: 100%;
}

#company-content section#sec02 .inner .flex_wrap .text_wrap{
    width: 50%;
}

#company-content section#sec02 .inner .flex_wrap .text_wrap h2{
    margin-bottom: 35px;
}

#company-content section#sec02 .inner .flex_wrap + .flex_wrap{
    margin-top: 100px;
}

#company-content section#sec02 .inner .flex_wrap + .flex_wrap .text_wrap{
    order: 2;
}

#company-content section#sec02 .inner .flex_wrap + .flex_wrap .picture{
    order: 1;
}

/*#sec03*/
#company-content section#sec03{
    background-image: url(/user_data/img/free_page/company/company_img04_pc.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top left;
}

#company-content section#sec03 .inner{
    width: 100%;
    padding-top: 90px;
    padding-bottom: 100px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

#company-content section#sec03 .inner .wrap{
    width: 570px;
    padding: 0;
}

#company-content section#sec03 .inner h2{
    margin-bottom: 25px;
}

#company-content section#sec03 .inner p{
    margin-bottom: 50px;
    width: 100%;
}


/*#sec04*/
#company-content section#sec04{
    background-color: #f8f8f8;
}

#company-content section#sec04 .inner{
    width: 1140px;
    padding-top: 90px;
    padding-bottom: 115px;
    margin: auto;
    box-sizing: content-box;
    position: relative;
}

#company-content section#sec04 .inner h2{
    margin-bottom: 35px;
}


#company-content section#sec04 .history__inner { position: relative; }

#company-content section#sec04 .history__list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

#company-content section#sec04 .history__row {
  display: flex;
  gap: 1.5em;
  padding: 21px 0;
  max-width: 68%; /* 画像スペース分を空けておく */
}
#company-content section#sec04 .history__row .year { 
    color: #00a946; 
    font-weight: bold; 
    white-space: nowrap; 
    font-size: 20px;
}
#company-content section#sec04 .history__row .dash { 
    color: #00a946; 
    font-size: 20px;
}

#company-content section#sec04 .history__imgwrap { height: 0; }

#company-content section#sec04 .history__img {
  position: absolute;
  right: 0;
}
#company-content section#sec04 .history__img01 { 
    top: 0; 
    width: 217px;
}
#company-content section#sec04 .history__img02 { 
    top: 220px; 
    width: 243px;
}

#company-content section#sec04 .history__link {
    display: block;
    margin-top: 40px;
    width: 720px;
    margin: 60px auto 0;
}
/*#sec05*/

#company-content section#sec05{
    background-color: #4a4442;
    padding: 93px 0 80px;
    margin-bottom: 10px;
}

#company-content section#sec05 .inner{
    padding-top: 200px;
    padding-bottom: 180px;
}

#company-content section#sec05 .inner .flex_wrap{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}


#company-content section#sec05 .inner h2{
    color: #fff;
    padding: 0;
}

#company-content section#sec05 .inner p{
    color: #fff;
}


#company-content section#sec05 .awards {
  padding: 80px 0;
}

#company-content section#sec05 .inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

#company-content section#sec05 .awards__title {
  color: #fff;
  font-size: 40px;
  letter-spacing: 0.1em;
  margin-bottom: 55px;
}

#company-content section#sec05  .awards__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#company-content section#sec05 .awards__row {
  display: flex;
  align-items: baseline;
  gap: 1em;
  padding: 0 0 38px;
}

#company-content section#sec05 .awards__year {
  flex: 0 0 140px; /* 「2006・2010年」でも改行しない幅を確保 */
  color: #d9a441;  /* オレンジ系 */
  font-size: 20px;
  font-weight: bold;
  white-space: nowrap;
}

#company-content section#sec05 .awards__dash {
  flex: 0 0 auto;
  color: #d9a441;
  font-size: 20px;
}

#company-content section#sec05 .awards__text {
  margin: 0;
  color: #fff;
  line-height: 1.7;
}



@media (max-width: 1239px) and (min-width: 768px) {
    #company-content section .inner {
        width: 100%;
    }


    #company-content section#sec02 .inner{
        padding:  80px 5vw ;
        gap: 20px;
    }

    #company-content section#sec02 .inner .flex_wrap picture{
        width: auto;
    }

    #company-content section#sec04 .inner{
        width: 100%;
        box-sizing: border-box;
    }

    #company-content section#sec04 .history__imgwrap{
        height: auto;
    }

    #company-content section#sec04 .history__img{
        position: relative;
    }

    #company-content section#sec04 .history__img01{
        top: 0;
        left: 0;
    }

    #company-content section#sec04 .history__img02{
        top: 0;
        left:auto;
        right: 0;
    }

    #company-content section#sec04 .history__link{
        width: 80%;
    }

    #company-content section#sec04 .history__link picture{
        width: 100%;
    }


}


@media (max-width: 767px) {
    #company-content section .inner{
        max-width: 100%;
        margin: 0 auto;
        padding-left: 7.2vw;
        padding-right: 7.2vw;
        box-sizing: border-box;
    }

    #company-content section h2{
        font-size: 6.4vw;
        line-height: 1.35em;
    }

    #company-content section p{
        font-size: 4vw;
        line-height: 1.73em;
    }

    #company-content section img{
        width: 100%;
    }

    /*#sec01*/
    #company-content section#sec01{
        background-image: url(/user_data/img/free_page/company/company_img01_sp.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top center;
        display: flex;
        align-items: center;
        height: 140vw;
    }

    #company-content section#sec01 .inner{
        padding-top: 60vw;
        padding-bottom: 60vw;
        width: 100%;
    }

    /*#sec02*/
    #company-content section#sec02 .inner{
        padding-top: 9.5vw;
        padding-bottom: 13.33vw;
    }

    #company-content section#sec02 h1{
        font-size: 9.33vw;
        margin-bottom: 3vw;
    }

    #company-content section#sec02 p.line{
        font-size: 5.33vw;
        width: 100%;
        margin: 0 auto 13vw;
    }

    #company-content section#sec02 .inner .flex_wrap{
        display: block;
        gap: 0;
        width: 100%;
    }

    #company-content section#sec02 .inner .flex_wrap img{
        width: 100%;
    }

    #company-content section#sec02 .inner .flex_wrap .text_wrap{
        width: 100%;
    }

    #company-content section#sec02 .inner .flex_wrap .text_wrap h2{
        margin-bottom: 4.7vw;
    }
    
    #company-content section#sec02 .inner .flex_wrap .text_wrap p{
        margin-bottom: 8vw;
    }

    #company-content section#sec02 .inner .flex_wrap + .flex_wrap{
        margin-top: 9vw;
    }


    /*#sec03*/
    #company-content section#sec03{
        background-image: url(/user_data/img/free_page/company/company_img04_sp.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top center;
    }

    #company-content section#sec03 .inner{
        width: 100%;
        padding-top: 12vw;
        padding-bottom: 12vw;
        box-sizing: border-box;
        position: relative;
        display: block;
    }

    #company-content section#sec03 .inner .wrap{
        width: 100%;
        padding-top: 0;
        padding-bottom: 0;
    }

    #company-content section#sec03 .inner h2{
        margin-bottom: 4.5vw;
    }

    #company-content section#sec03 .inner p{
        margin-bottom: 9.33vw;
        width: 100%;
    }


    /*#sec04*/
    #company-content section#sec04{
        background-image: none;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top center;
        background-color: #f8f8f8;
    }

    #company-content section#sec04 .inner{
        width: 100%;
        padding-top: 16vw;
        padding-bottom: 16vw;
        padding-right: 7.2vw;
        box-sizing: border-box;
        position: relative;
        display: block;
    }

    #company-content section#sec04 .inner h2{
        margin-bottom: 3.8vw;
    }

    #company-content section#sec04 .inner p{
        margin-bottom: 9.33vw;
        width: 100%;
    }

    #company-content section#sec04 .history__row { 
        max-width: 100%; 
        flex-wrap: nowrap;
        gap: 3vw;
        padding: 3vw 0;
        min-height: 19.84vw;
    }

    #company-content section#sec04 .history__row .year {
        width: auto;
        font-size: 4vw;
    }

    #company-content section#sec04 .history__row .dash {

    }

    #company-content section#sec04 .inner p {
        margin-bottom: 0;
        width: auto;
    }

    #company-content section#sec04 .history__imgwrap { 
        width: auto;
        margin: 0;
        height: auto;
        text-align: right;
        padding: 3vw 0;
    }

    #company-content section#sec04 .history__img {
        position: relative;
        width: 100%;
        max-width: 320px;
    }

    #company-content section#sec04 .history__img.history__img01 {
        width: 28.93vw;
        left: auto;
        right: 0;
        margin-top: -3vw;
    }

    #company-content section#sec04 .history__img02 {
        width: 32.4vw;
        top: 0;
    }


    #company-content section#sec04 .history__link {
        width: 100%;
        margin: 14vw auto 0;
    }


    /*#sec05*/

    #company-content section#sec05{
        background-color: #4a4442;
        padding: 0;
    }

    #company-content section#sec05 .inner{
        padding-top: 10vw;
        padding-bottom: 10.67vw;
    }

    #company-content section#sec05 .inner .flex_wrap{
        display: block;
        gap: 0;
    }

    #company-content section#sec05 .inner .flex_wrap img{
        width: 100%;
    }

    #company-content section#sec05 .inner picture{
        margin-left: 100px;
    }

    #company-content section#sec05 .inner .text_wrap{
        
    }

    #company-content section#sec05 .inner h2{
        color: #fff;
        padding: 0;
        margin-bottom: 2vw;
        font-size: 6.4vw;
    }

    #company-content section#sec05 .inner p{
        color: #fff;
    }

    #company-content section#sec05 .awards__row {
        min-height: 19.84vw;
        gap: 0.2em;
        padding: 4vw 0;
    }
    #company-content section#sec05 .awards__year {
        flex: none;
        font-size: 4vw;
    }
}