html {
    font-size: 100%;
    --base-color:#484848;
    --main-color:#FF3400;
    --margin-color:#FFFFFF;
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
}

@media screen and (max-width:900px) {
    html {
        scroll-padding-top: 100px;
    }
}

html *{
    color: var(--base-color);
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

html img{
    width: 100%;
    vertical-align: bottom;
    object-fit: cover;
}

/* ************

アニメーション

******/
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--margin-color);
    top: 0;
    left: 0;
    z-index: 99999;
    transition: all .7s;
}

#loading.active {
    top: -100%;
    opacity: 0.3;
}

#loading > img {
    max-width: 300px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* display: none; */
    opacity: 0;
    animation-name: openingLogo;
    animation-delay: 1s;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    transform-origin: center center;
}


@keyframes openingLogo {
    0% {
        width: 300px;
        opacity: 0;
    }
    30% {
        width: 300px;
        opacity: 1;
    }
    60% {
        width: 300px;
        opacity: 1;
    }
    90% {
        width: 200px;
        opacity: 0;
    }
    100% {
        width: 200px;
        opacity: 0;
    }
}


/* ************

レイアウト

******/
#container{
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
}

main{
    width: calc(100% - 250px);
    overflow: hidden;
}

section{
    padding: 50px 50px 50px 100px;
}

section.sdgs{
    /*SDGsだけ調整*/
    padding-top: 0;
}

section:first-child{
    padding: 0 0;
}

/*サンクスページ*/
.main-thanks {
    padding-top: 100px;
    padding-left: 50px;
}

.main-cta {
    margin-left: -50px;
}

@media screen and (max-width:900px) {
    #container{
        gap: 0 50px;
        flex-direction: column;
    }

    main{
        width: 100%;
    }

    section{
        padding: 50px 30px;
    }

    /*サンクスページ*/
    .main-thanks {
            padding-top: 50px;
            padding-left: 30px;
    }

    .main-thanks span:nth-of-type(2) {
            width: calc(100% - 30px);
    }

    .main-cta {
        margin-left: -30px;
    }
}

/* ************

グローバルメニュー

******/
header{
    box-sizing: border-box;
    background-color: var(--base-color);
    height: 100vh;
    width: 250px;
    padding: 50px 30px;
    position: sticky;
    top: 0;
}

h1 {
    background-color: var(--margin-color);
    width: 100%;
    margin: 0 auto;
    padding: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px 0;
}

h1 > a {
    text-decoration: none;
}

h1 > a > span {
    display: block;
    font-size: 40%;
}

header > #header-sec-area {
    height: 100vh;
}

header > #header-sec-area > nav  {
    padding: 30px 0;
}

header > #header-sec-area > nav > ul {
    display: flex;
    flex-direction: column;
    gap: 50px 0;
    list-style: none;
}

#header-sec-area > nav > ul > li {
    clip-path: inset(0 100% 0 0);
    transition: 1.5s cubic-bezier(0.37, 0, 0.63, 1);
    transition-property: clip-path;
    line-height: 1;
}

#header-sec-area > nav > ul > li.is-animated {
  clip-path: inset(0);
}

#header-sec-area > nav > ul > li a{
    color: var(--margin-color);
    text-decoration: none;
    font-weight: 900;
    font-size: 135%;
    transition: all .3s;
}

#header-sec-area > nav > ul > li a:hover{
    color: var(--main-color);
}

#header-sec-area > nav > ul > li > a.active {
    color: var(--main-color);
}

#header-sec-area > a{
    display: block;
    background-color: var(--main-color);
    width: 180px;
    height: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--margin-color);
    text-decoration: none;
    font-weight: 900;
    font-size: 125%;
    clip-path: inset(0 100% 0 0);
    transition: 1.5s cubic-bezier(0.37, 0, 0.63, 1);
    transition-property: clip-path;
    line-height: 1;
}

#header-sec-area > a.is-animated {
  clip-path: inset(0);
  transition: all .3s;
}

#header-sec-area > a.is-animated:hover {
    background-color: var(--base-color);
    color: var(--margin-color);
    border: 1px solid var(--margin-color);
}


header > #thanks-header {
    height: 100vh;
}

header > #thanks-header > nav  {
    padding: 30px 0;
}

header >#thanks-header > nav > ul {
    display: flex;
    flex-direction: column;
    gap: 50px 0;
    list-style: none;
}

#thanks-header > nav > ul > li {
    clip-path: inset(0 100% 0 0);
    transition: 1.5s cubic-bezier(0.37, 0, 0.63, 1);
    transition-property: clip-path;
    line-height: 1;
}

#thanks-header > nav > ul > li.is-animated {
  clip-path: inset(0);
}

#thanks-header > nav > ul > li a{
    color: var(--margin-color);
    text-decoration: none;
    font-weight: 900;
    font-size: 135%;
    transition: all .3s;
}

#thanks-header > nav > ul > li a:hover{
    color: var(--main-color);
}

#thanks-header > nav > ul > li > a.active {
    color: var(--main-color);
}

#thanks-header > a{
    display: block;
    background-color: var(--main-color);
    width: 180px;
    height: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--margin-color);
    text-decoration: none;
    font-weight: 900;
    font-size: 125%;
    clip-path: inset(0 100% 0 0);
    transition: 1.5s cubic-bezier(0.37, 0, 0.63, 1);
    transition-property: clip-path;
    line-height: 1;
}

#thanks-header > a.is-animated {
  clip-path: inset(0);
  transition: all .3s;
}

#thanks-header > a.is-animated:hover {
    background-color: var(--base-color);
    color: var(--margin-color);
    border: 1px solid var(--margin-color);
}

#sp-menu {
    display: none;
}

@media screen and (max-width:900px) {
    header{
        height: auto;
        width: 100%;
        padding: 0 15px;
        z-index: 400;
        height: 60px;
        display: flex;
    }

    h1 {
        width: 20%;
        margin: 0 15px 0 0;
        padding: 0 5px;
        gap: 0;
    }

    h1 > a img {
        transform: translateY(-5px);
    }

    h1 > a > span {
        font-size: 0.5rem;
         transform: translateY(-5px);
    }

    header > #header-sec-area {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    header > #header-sec-area > nav,
    header > #thanks-header > nav,
    header > #header-sec-area > a,
    header > #thanks-header > a  {
        display: none;
    }

    #sp-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -80%;
        width: 40%;
        height: 100%;
        cursor: pointer;
        z-index: 750;
        background-color:var(--base-color);
        box-sizing: border-box;
        transition: right 0.3s ease;
        box-shadow: -1px -1px 5px black;
        padding: 130px 0 0 30px;
    }

    #sp-menu.open {
        right: 0;
    }

    #sp-menu .hamburger {
        position: fixed;
        z-index: 780;
        width: 50px;
        height: 50px;
        top: 15px;
        right: 20px;
    }

    #sp-menu .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--main-color);
        margin: 5px 0;
        transition: 0.4s;
    }

    #sp-menu .hamburger.active span:nth-of-type(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #sp-menu .hamburger.active span:nth-of-type(2) {
        opacity: 0;
    }

    #sp-menu .hamburger.active span:nth-of-type(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    #sp-menu ul {
        display: flex;
        flex-direction: column;
        gap: 30px 0;
    }

    #sp-menu ul li {
        list-style: none;
    }

    #sp-menu ul li a{
        color: var(--margin-color);
        text-decoration: none;
        font-size: 1.3rem;
    }

    #sp-menu ul li a.sp-contact-bt{
        color: var(--margin-color);
        background-color: var(--main-color);
        display: block;
        text-align: center;
        width: calc(100% - 30px);
        padding: 8px 0;
        border-radius: 3px;
    }
}

/* ************

見出し

******/

h2 {
    display: flex;
    flex-direction: column;
    gap: 10px 0;
}

h2 span:first-child {
    display: block;
    position: relative;
    padding: 0 0 10px 0;
}

h2 span:first-child::before {
    position: absolute;
    content: '';
    width: 5%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--main-color);
}

h2 span:first-child::after {
    position: absolute;
    content: '';
    width: 15%;
    height: 3px;
    bottom: 0;
    left: 5%;
    background-color: var(--base-color);
}

h2 span:last-child {
    font-weight: normal;
    font-size: 60%;
}

@media screen and (max-width:900px) {
    h2 span:first-child::before {
        width: 8%;
        height: 3px;
        z-index: 1;
    }

    h2 span:first-child::after {
        position: absolute;
        content: '';
        width: 35%;
        height: 3px;
        bottom: 0;
        left: 5%;
        background-color: var(--base-color);
    }
}

/* ************

hero-sec

******/
#hero-sec{
    height: 700px;
    width: 100%;
}

.hero-contents{
    position: relative;
    height: 700px;
    width: 100%;
}

#hero-sec > .hero-contents > div.hero-back-content {
    /*赤色背景*/
    display: block;
    position: absolute;
    width: 60%;
    height: 100%;
    background-color: var(--main-color);
    right: 0;
    top: 0;
    border-bottom-left-radius: 50px;
    z-index: 50;
    transform: translateX(2000px);
}

.hero-back-content.is-animated {
    animation: slideIn 1.5s cubic-bezier(0.25, 1, 0.5,1) forwards;
}

    @keyframes slideIn {
    0% {
        transform: translateX(2000px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
    }
    40%,100% {
        opacity: 1;
    }
    }

.hero-contents > .hero-img-cover {
    /*画像*/
    display: block;
    position: absolute;
    top: 50px;
    left: 100px;
    width: calc(1280px - 150px);
    max-width: 1280px;
    height: 85%;
    z-index: 110;
    background-color: #484848;
    opacity: 0.2;
}

.hero-contents > picture {
    /*画像*/
    display: block;
    position: absolute;
    top: 50px;
    left: 100px;
    height: 85%;
    width: calc(1280px - 150px);
    z-index: 100;
    max-width: 1280px;
    overflow: hidden;   
}

.hero-contents > picture > img {
    /*画像*/
    transform: scale(1.3) translateY(-100px);
}

.hero-contents div:nth-of-type(2) {
    position: absolute;
    top: 380px;
    left: 150px;
    z-index: 150;
    clip-path: inset(0 100% 0 0);
    transition: 1.4s cubic-bezier(0.37, 0, 0.63, 1);
    transition-property: clip-path;
    line-height: 1;
}

.hero-contents div:nth-of-type(2).is-animated {
  clip-path: inset(-10%);
}

.hero-contents div:nth-of-type(2) > strong {
    color: var(--margin-color);
    text-shadow: 0.5px 0.5px 3px  black;
    line-height: 1.2em;
    font-size: 70px;
    font-weight: 900;
}

.hero-contents div:nth-of-type(2) > span {
    display: block;
    font-size: 46px;
    font-weight: 900;
    color: var(--margin-color);
    text-shadow: 0.5px 0.5px 5px black;
    font-family: "Antonio", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.hero-contents div:nth-of-type(2) > span > span {
    /*Daitoの赤文字*/
    color: var(--main-color);
    text-shadow: 0.5px 0.5px 5px black;
    font-family: "Antonio", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.hero-contents .scroll-line {
    position: absolute;
    bottom: 200px;
    /* right: 100px; */
    left: 1020px;
    z-index: 200;
}

.hero-contents .scroll-line p{
    color: var(--margin-color);
    font-family: "Antonio", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-size: 1.4rem;
    text-shadow: 1px 1px 5px black;
}

.hero-contents .scroll-line::after {
    content: '';
    display: inline-block;
    position: absolute;
    z-index: 100;
    background-color: var(--margin-color);
    right: 50%;
    bottom: -80px;
    transform: translate(-50%);
    width: 1px;
    height: 75px;
    animation: line 1.5s infinite;
}

@keyframes line {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }
    50% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }
    50.1% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }
    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}

@media screen and (max-width:900px) {
    #hero-sec{
        height: 500px;
        /* background-color: #31b0d5; */
    }

    .hero-contents{
        height: 500px;
    }

    #hero-sec > .hero-contents > div.hero-back-content {
        /*赤色背景*/
        height: 100%;
        z-index: 50;
    }

    .hero-contents > .hero-img-cover {
        /*画像フィルター*/
        top: 25px;
        left: 25px;
        width: calc(100% - 25px);
        max-width: 100%;
        height: 50%;
        z-index: 110;
    }

    .hero-contents > picture {
        /*画像*/
        top: 25px;
        left: 25px;
        height: 50%;
        width: calc(100% - 25px);
        z-index: 100;
        max-width: 100%; 
    }

    .hero-contents > picture > img {
        /*画像*/
        transform: scale(1.7) translateY(0);
    }

    .hero-contents div:nth-of-type(2) {
        position: absolute;
        top: 300px;
        left: 25px;
        z-index: 150;
    }

    .hero-contents div:nth-of-type(2) > strong {
        text-shadow: 0.5px 0.5px 5px  black;
        line-height: 1.2em;
        font-size: 2.3rem;
    }

    .hero-contents div:nth-of-type(2) > span {
        font-size: 1.25rem;
        text-shadow: 0.2px 0.2px 3px  black;
    }

    .hero-contents .scroll-line {
        position: absolute;
        bottom: 290px;
        left: auto;
        right: 30px;
        z-index: 300;
    }

    .hero-contents .scroll-line p{
        color: var(--margin-color);
        font-family: "Antonio", sans-serif;
        font-optical-sizing: auto;
        font-weight: 200;
        font-style: normal;
        font-size: 1.4rem;
        text-shadow: 1px 1px 5px black;
    }

    .hero-contents .scroll-line::after {
        content: '';
        display: inline-block;
        position: absolute;
        z-index: 100;
        background-color: var(--margin-color);
        right: 50%;
        bottom: -80px;
        transform: translate(-50%);
        width: 1px;
        height: 75px;
        animation: line 1.5s infinite;
    }
}

/* ************

about-business

******/
.business-flex{
    width: 100%;
    display: flex;
    gap: 0 30px;
    padding: 50px 0 0 0;
}

.business-flex > .flex-content:nth-of-type(1){
    /*コンテンツ左*/
    width: 25%;
    padding: 50px 20px;
    border-radius: 30px;
    border: 1px solid var(--base-color);
    display: flex;
    flex-direction: column;
    gap: 30px 0;
    text-align: center;
    justify-content: center;
}

.business-flex > .flex-content:nth-of-type(1) > img{
    /*コンテンツ左 ロゴ*/
    width: 100%;
}

.business-flex > .flex-content:nth-of-type(1) > span{
    margin-top: -25px;
}

.business-flex > .flex-content:nth-of-type(1) >  p:nth-of-type(1){
    /*コンテンツ左 赤文字*/
    color: var(--main-color);
    font-weight: 900;
    font-size: 26px;
}

.business-flex > .flex-content:nth-of-type(1) >  p:nth-of-type(2){
    /*コンテンツ左 説明*/
    text-align: left;
    font-size: 18px;
}

.business-flex > .flex-content:nth-of-type(2){
    /*コンテンツ右*/
    width: calc(100% - 25%);
    display: flex;
    flex-direction: column;
    gap: 30px 0;
}

.business-flex > .flex-content:nth-of-type(2) > div{
    /*コンテンツ右*/
    display: flex;
    gap: 0 30px;
}

.business-flex > .flex-content:nth-of-type(2) > div > picture{
    /*コンテンツ右画像*/
    width: 250px;
    border-radius: 15px;
    overflow: hidden;
}

.business-flex > .flex-content:nth-of-type(2) > div > picture > img{
    object-fit: cover;
    border-radius: 15px;
}

.business-flex > .flex-content:nth-of-type(2) > div > dl {
    width: calc(100% - 250px);
    display: flex;
    flex-direction: column;
    gap: 10px 0;
}

.business-flex > .flex-content:nth-of-type(2) > div > dl > dt{
    font-size: 36px;
    font-weight: 700;
    color: var(--main-color);
}

.business-flex > .flex-content:nth-of-type(2) > div > dl > dd{
    width: 100%;
    font-weight: 500;
}

@media screen and (max-width:900px) {
    .business-flex{
        flex-direction: column;
        gap: 30px 0;
    }

    .business-flex > .flex-content:nth-of-type(1){
        /*コンテンツ左*/
        width: 100%;
        padding: 25px 35px 0 35px;
        border-radius: 20px;
        flex-direction: column;
        gap: 30px 0;
    }

    .business-flex > .flex-content:nth-of-type(1) >  p:nth-of-type(1){
        /*コンテンツ左 赤文字*/
        font-size: 1.5rem;
    }

    .business-flex > .flex-content:nth-of-type(1) >  p:nth-of-type(2){
        /*コンテンツ左 説明*/
        text-align: left;
        font-size: 1rem;
    }

    .business-flex > .flex-content:nth-of-type(2) {
        /*コンテンツ右*/
        width: 100%;
    }

    .business-flex > .flex-content:nth-of-type(2) > div{
        /*コンテンツ右*/
        gap: 0 15px;
    }

    .business-flex > .flex-content:nth-of-type(2) > div > picture{
        /*コンテンツ右画像*/
        width: 45%;
    }

    .business-flex > .flex-content:nth-of-type(2) > div > picture > img{
        border-radius: 15px;
    }

    .business-flex > .flex-content:nth-of-type(2) > div > dl {
        width: calc(100% - 45%);
    }

    .business-flex > .flex-content:nth-of-type(2) > div > dl > dt{
        font-size: 1.2rem;
    }

}

/* ************

results（カード）

******/


#results-construction{
    background-color: rgba(0, 0, 0, 0.05)
}
.results-flex {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px 30px;
    padding: 50px 0 0 0;;
}

.results-flex > article {
    /*カード全体*/
    width: 250px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 15px 0;
    position: relative;
    transition: all .3s;
}

.results-flex > article[data-aos="fade-up"] {
    transition: all .1s;
}

.results-flex > article[data-aos="fade-up"]:hover {
    opacity: 0.5;
    cursor: pointer;
}

.results-flex > article::after {
    /*カード右下三角*/
    position: absolute;
    content: '';
    right: 0;
    bottom: 0;
    border-top: 15px solid transparent;
    border-right: 15px solid var(--main-color);
    border-bottom: 15px solid var(--main-color)4;
    border-left: 15px solid transparent;
}

.results-flex > article > picture {
    /*カード画像全体*/
    display: block;
    position: relative;
    height: 188px;
    border-radius: 15px;
    overflow: hidden;
}

.results-flex > article > picture > img {
    /*カード画像*/
    border-radius: 15px;
    object-fit: cover;
}

.results-flex > article > picture > span {
    /*工事種類*/
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: right;
    background-color: var(--base-color);
    padding: 3px 10px;
    color: var(--margin-color);
    font-size: 14px;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.results-flex > article > h3 {
    /*工事名*/
    font-size: 16px;
    flex-grow: 1;
}

.results-flex > article > span > span {
    /*完成日・発注者タイトル*/
    font-size: 14px;
    padding: 5px 10px;
    background-color: var(--base-color);
    color: var(--margin-color);
    border-radius: 10px;
    margin-right: 10px;
}

@media screen and (max-width:900px) {
    .results-flex {
        gap: 30px 20px;
    }

    .results-flex > article {
        /*カード全体*/
        width: calc(50% - 10px);
        gap: 15px 0;
    }

    .results-flex > article > picture {
        /*カード画像全体*/
        height: 185px;
        min-height: 185px;
        border-radius: 15px;
    }

    .results-flex > article > picture > img {
        transform: scale(2);
    }

    .results-flex > article > picture > span {
        /*工事種類*/
        font-size: 1rem;
    }

    .results-flex > article > h3 {
        /*工事名*/
        font-size: 0.8rem;
    }

    .results-flex > article > span > span {
        /*完成日・発注者タイトル*/
        font-size: 0.8rem;
    }
}

/* ************

results（モーダル）

******/

.results-modal-sec{
    /*モーダル全体*/
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    overflow: auto;
    z-index: 580;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
}

.results-modal-content {
    position: fixed;
    width: 80%;
    height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: rgb(247, 247, 247);
    z-index: 600;
    text-align: center;
    overflow: auto;
}

.results-modal-content::before {
    position: absolute;
    content: 'Results';
    top: 50%;
    left: 50px;
    font-family: "Antonio", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    color: var(--main-color);
    transform: scale(10) rotate(90deg);
}

.results-modal-close{
    display: block;
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 40px auto 20px auto;
    position: relative;
    cursor: pointer;
}

.results-modal-close span{
    position: absolute;
    content: '';
    height: 2px;
    width: 30px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    margin: auto;
    background-color: var(--base-color);
}

.results-modal-close span:nth-child(1){
  transform: rotate(-45deg);
}
.results-modal-close span:nth-child(2){
  transform: rotate(45deg);
}

.modal-title {
    text-align: center;
    padding: 0 0 30px 0;
}

.modal-gallery {
    display: flex;
    gap: 0 50px;
    width: 60%;
    margin: 0 auto;
    /* transform: translateX(-25px); */
    border-radius: 15px;
}

.modal-gallery > picture {
    width: 50%;
    border-radius: 15px;
    overflow: hidden;
    width: 50%;
}

.modal-gallery > picture {
    width: 100%;
    border-radius: 15px;
}

.results-modal-content > table {
    width: 60%;
    margin: 30px auto;
    border-spacing: 0;
}

.results-modal-content > table > tr {
    width: 100%;
    margin: 50px;
    border-collapse: collapse;
    display: inline-block;
}

.results-modal-content table tr th {
    width: 35%;
    padding: 25px 0 15px 0;
    border-bottom: 2px solid var(--main-color);
}

.results-modal-content table tr td {
    width: calc(100% - 35%);
    padding: 25px 0 15px 0;
    border-bottom: 2px solid var(--base-color);
}

@media screen and (max-width:900px) {
    .results-modal-sec{
        /*モーダル全体*/
        z-index: 600;
    }

    .results-modal-content {
        width: 90%;
        height: 95%;
        z-index: 600;
    }

    .results-modal-content::before {
        top: 50%;
        left: 20px;
        transform: scale(6.5) rotate(90deg);
    }

    .modal-gallery {
        flex-direction: column;
        gap: 30px 0;
        width: 50%;
    }
}

/* ************

about-company

******/
section.about-company > div {
    padding: 50px 0;
    /* background-color: #fcd1c6; */
}

section.about-company div h3 {
    font-size: 18px;
    padding: 30px 0;
}

/*代表者挨拶*/
section.about-company div.ceo-flex-box {
    display: flex;
    gap: 0 100px;
    position: relative;
    /* background-color:bisque; */
}

section.about-company div.ceo-flex-box div {
    /*挨拶文*/
    width: 580px;
    font-weight: 400;
}

section.about-company div.ceo-flex-box div > span {
    /*代表者名*/
    display: block;
    text-align: right;
    padding: 30px 0 0 0;
    font-size: 18px;
    font-weight: 700;
}

section.about-company div.ceo-flex-box picture {
     /*会長画像*/
    width: 480px;
    min-width: 480px;
    display: block;
    height: 550px;
    min-height: 550px;
    overflow: hidden;
    position: relative;
    box-shadow: 20px 20px 0px var(--main-color);
}

section.about-company div.ceo-flex-box picture img {
    width: 100%;
    object-fit: cover;
    transform: scale(1.40);
}

@media screen and (max-width:900px) {
    section.about-company div.ceo-flex-box {
        flex-direction: column-reverse;
        gap: 50px 100px;
    }

    section.about-company div.ceo-flex-box div {
        /*挨拶文*/
        width: 100%;
    }

    section.about-company div.ceo-flex-box div > span {
        /*代表者名*/
        padding: 30px 0 0 0;
        font-size: 1rem;
    }

    section.about-company div.ceo-flex-box picture {
        /*会長画像*/
        width: 90%;
        min-width: 90%;
        height: auto;
        min-height: auto;
        box-shadow: 20px 20px 0px var(--main-color);
    }
}

/*会社ギャラリー（Grid）*/
#company-gallery-sec{
    display: grid;
    background-color: rgba(0, 0, 0, 0.05);
    width: 100%;
    min-width: 1080px;
    padding: 30px;
    grid-template-columns: 1fr 30px 1fr 30px 1fr;
    grid-template-rows: 120px 30px 120px 30px 120px 30px 120px;
}

#company-gallery-sec > picture {
    display: block;
    overflow: hidden;
}

#company-gallery-sec > picture:nth-of-type(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 8;
    /* background-color: #46b8da; */
}

#company-gallery-sec > picture:nth-of-type(1) > img{
    transform: scale(2.6) translateX(-80px) translateY(75px);
}

#company-gallery-sec > picture:nth-of-type(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 4;
    /* background-color: #46b8da; */
}

#company-gallery-sec > picture:nth-of-type(2) > img{
    transform: scale(1.5); 
}

#company-gallery-sec > picture:nth-of-type(3) {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 5;
    grid-row-end: 8;
}

#company-gallery-sec > picture:nth-of-type(3) > img{
    transform: scale(1.3);
}

#company-gallery-sec > picture:nth-of-type(4) {
    grid-column-start: 5;
    grid-column-end: 6;
    grid-row-start: 1;
    grid-row-end: 8;
}

#company-gallery-sec > picture:nth-of-type(4) > img{
    transform: scale(2.5) translateX(-85px) translateY(75px);
}

@media screen and (max-width:900px) {
    #company-gallery-sec{
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 30px 1fr 30px 1fr 30px 1fr 30px 1fr 30px 1fr 30px 1fr 30px 1fr;
    }

    #company-gallery-sec > picture:nth-of-type(1) {
        grid-column: 1 / 1;
        grid-row: 1 / 4;
    }

    #company-gallery-sec > picture:nth-of-type(1) > img{
        transform: scale(1) translateX(0) translateY(0);
    }

    #company-gallery-sec > picture:nth-of-type(2) {
        grid-column: 1 / 1;
        grid-row: 5 / 8;
    }

    #company-gallery-sec > picture:nth-of-type(2) > img{
        transform: scale(1.5) translateY(0);
    }

    #company-gallery-sec > picture:nth-of-type(3) {
        grid-column: 1 / 1;
        grid-row: 9 / 12;
    }

    #company-gallery-sec > picture:nth-of-type(3) > img{
        transform: scale(1) translateY(0);
    }

    #company-gallery-sec > picture:nth-of-type(4) {
        grid-column: 1 / 1;
        grid-row: 13 / 16;
    }

    #company-gallery-sec > picture:nth-of-type(4) > img{
        transform: scale(1) translateY(0);
    }
}

/*会社概要*/
section.about-company div table {
    width: 980px;
}

section.about-company div table tr {
    display: flex;
    margin: 0 0 15px 0;
}

section.about-company div table tr th {
    width: 30%;
    border-bottom: 2px solid var(--main-color);
    padding: 0 0 15px 0;
    font-weight: 600;
}

section.about-company div table tr td {
    width: 70%;
    border-bottom: 2px solid var(--base-color);
    padding: 0 0 15px 15px;
    font-weight: 400;
}

section.about-company div table tr td img {
    width: 150px;
    vertical-align: bottom;
    margin: 30px 0;
}

@media screen and (max-width:900px) {
    section.about-company div table {
        width: 100%;
    }
}

/*モノクロ素材画像*/
section.about-company > picture,
section.about-company > picture > img{
    width: 100%;
    min-width: 1080px;
}

section.about-company > picture{
    display: block;
    height: 300px;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(../images/company/material_01.webp);
}

/* section.about-company > picture img{
    object-fit: cover;
    transform: translateY(-150px);
} */

@media screen and (max-width:900px) {
    section.about-company > picture,
    section.about-company > picture > img{
        width: 100%;
        min-width: 100%;
    }

    section.about-company > picture{
        height: 200px;
        background-attachment: initial;
    }

}

.history-sec {
    /*会社沿革*/
    /* background-color: antiquewhite; */
    padding-bottom: 0;
      width: 100%;
  overflow: hidden;
}

.history-sec > h3 {
    position: relative;
    font-size: 18px;
}

.history-sec h3 > span {
   font-family: "Antonio", sans-serif;
   font-optical-sizing: auto;
   font-weight: 400;
   font-style: normal;
   font-size: 170%;
   opacity: 0.2;
   margin-left: 10px;
}

.history-sec h3::before {
   position: absolute;
   content: '';
   top: 60%;
   left: 170px;
   /* transform: translateY(-50%); */
   width: 150px;
   height: 1px;
   background-color: var(--base-color);
   opacity: 0.3;
   animation:blink 1s ease-in-out infinite alternate;
}

.history-sec h3::after {
   position: absolute;
   content: '';
   top: 38.5%;
   left: 306px;
   height: 30px;
   width: 1px;
   background-color: var(--base-color);
   transform: rotate(-60deg);
   opacity: 0.3;
   animation:blink 1s ease-in-out infinite alternate;
}

.blinking{
	-webkit-animation:blink 1s ease-in-out infinite alternate;
    -moz-animation:blink 1s ease-in-out infinite alternate;
    animation:blink 1s ease-in-out infinite alternate;
}

@-webkit-keyframes blink{
    0% {opacity:0;}
    100% {opacity:0.3;}
}
@-moz-keyframes blink{
    0% {opacity:0;}
    100% {opacity:0.3;}
}
@keyframes blink{
    0% {opacity:0;}
    100% {opacity:0.3;}
}

.history-sec .history-scroll-sec {
    /*会社沿革　横スクロール*/
    width: 100%;
    overflow-x: scroll;
    display: flex;
    padding: 8px 0 0 5px;
}

.history-sec .history-scroll-sec .history-content {
    width: 400px;
    min-width: 400px;
    border-top: 1px solid var(--base-color);
    display: flex;
    flex-direction: column;
    gap: 10px 0;
    padding: 20px 20px 0 0;
    position: relative;
    /* background-color:aquamarine; */
}

.history-sec .history-scroll-sec .history-content::before {
    position: absolute;
    top: -12px;
    left: -5px;
    content: '●';
    color: #FF3400;
    z-index: 200;
}

.history-sec .history-scroll-sec .history-content p:nth-of-type(1) {
    font-size: 90%;
}

.history-sec .history-scroll-sec .history-content p:nth-of-type(1)  > span {
    font-family: "Antonio", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 150%;
}

/* ************

SDGs

******/
.sdgs-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 30px;
    padding: 50px 0 0 0;
    max-width: 980px;
}

.sdgs-flex > .sdgs-card {
    width: calc(50% - 30px);
    padding: 30px 0;
    border: 3px solid var(--main-color);
}

.sdgs-flex > .sdgs-card > .sdgs-card-img{
    display: flex;
    justify-content: space-between;
    gap: 0 15px;
    width: 50%;
    margin: 0 auto;
    /* background-color: antiquewhite; */
}

.sdgs-flex > .sdgs-card > .sdgs-card-img > img{
    width: calc(100% / 3.3);
}

.sdgs-flex > .sdgs-card:nth-of-type(4) > .sdgs-card-img {
    display: flex;
    justify-content: space-around;
    gap: 0 15px;
    width: 100%;
    margin: 0 auto;
}

.sdgs-flex > .sdgs-card:nth-of-type(4) > .sdgs-card-img > img {
    width: calc(100% / 6.6);
}

.sdgs-flex > .sdgs-card > h3{
    text-align: center;
    padding: 20px 0;
    border-bottom: 3px solid var(--main-color);
}

.sdgs-flex > .sdgs-card > ul{
    padding: 30px 0 0 50px;
}

.sdgs-flex > .sdgs-card > ul > li{
    line-height: 2em;
}

@media screen and (max-width:900px) {
    .sdgs-flex {
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 50px 30px;
        padding: 50px 0 0 0;
        max-width: 100%;
    }

    .sdgs-flex > .sdgs-card {
        width: calc(100%);
        padding: 30px 0;
    }
}

/* ************

contact

******/

form#mail_form * {
	margin: 0;
	padding: 0;
	box-sizing: content-box;
}

form#mail_form {
	width: 1080px;
	margin: 50px 0 0 0;
	/* background: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 7px;
	box-shadow: 0 0 7px rgba( 0, 0, 0, 0.2 ); */
	line-height: 1.8;
}

form#mail_form dl {
	width: 100%;
	/* margin: 0 auto; */
	/* border-bottom: 1px solid #cccccc; */
    display: flex;
}

form#mail_form dl:after,
form#mail_form dl dt:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

form#mail_form dl dt {
	width: 35%;
	padding: 25px 0 25px 0;
    /* background-color:rgb(199, 202, 202); */
    /* align-self: center; */
    /* display: flex;
    flex-direction: row-reverse;
    justify-content: space-between; */
    float: left;
}

form#mail_form dl dt::after {
	content: '';
    display: block;
    clear: both;
}

form#mail_form dl dd {
	width: 65%;
	padding: 25px 0 25px 5%;
    /* background-color: antiquewhite; */
}

form#mail_form dl dt span:nth-child(2) {
	/* position: relative;
	top: -2px; */
    display: block;
    text-align: left;
    width: 70%;
}

form#mail_form dl dt i {
	position: relative;
	top: -2px;
    float: right;    
}

/* -- span.required, span.optional -------------------- */

form#mail_form dl dt span.required,
form#mail_form dl dt span.optional {
	display: block;
	font-size: 85%;
	color: var(--margin-color);
	padding: 4px 28px;
	border-radius: 20px;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

form#mail_form dl dt span.required {
	background: var(--main-color);
	border: 1px solid var(--main-color);
}

form#mail_form dl dt span.optional {
	background: #2e6da4;
	border: 1px solid #2e6da4;
}

/* -- error message -------------------- */

form#mail_form dl dd span.error_blank,
form#mail_form dl dd span.error_format,
form#mail_form dl dd span.error_match {
	display: block;
	color: var(--main-color);
	margin-top: 5px;
}

form#mail_form dl dd span.error_blank::after,
form#mail_form dl dd span.error_format::after,
form#mail_form dl dd span.error_match::after {
	content: '';
    display: block;
    clear: both;
}

/* -- loading ----------------------------- */

div.loading-layer {
	width: 100vw;
	height: 100vh;
	background: rgba( 0, 0, 0, 0.7 );
	position: fixed;
	left: 0px;
	top: 0px;
	z-index: 10000;
}

span.loading {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border-top: 5px solid rgba( 255, 255, 255, 0.2 );
	border-right: 5px solid rgba( 255, 255, 255, 0.2 );
	border-bottom: 5px solid rgba( 255, 255, 255, 0.2 );
	border-left: 5px solid #ffffff;
	-webkit-transform: translateZ( 0 );
	-ms-transform: translateZ( 0 );
	transform: translateZ( 0 );
	-webkit-animation: load-circle 1.0s linear infinite;
	animation: load-circle 1.0s linear infinite;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -30px;
	margin-left: -30px;
}

@-webkit-keyframes load-circle {
	0% {
		-webkit-transform: rotate( 0deg );
		transform: rotate( 0deg );
	}
	100% {
		-webkit-transform: rotate( 360deg );
		transform: rotate( 360deg );
	}
}

@keyframes load-circle {
	0% {
		-webkit-transform: rotate( 0deg );
		transform: rotate( 0deg );
	}
	100% {
		-webkit-transform: rotate( 360deg );
		transform: rotate( 360deg );
	}
}

/* -- input, select, textarea ----------------- */

form#mail_form input[type="text"],
form#mail_form input[type="email"],
form#mail_form input[type="tel"] {
	width: calc( 100% - 4% - 2px );
	padding: 7px 2%;
	border: 1px solid #cccccc;
	border-radius: 10px;
	/* background: #fafafa; */
	-webkit-appearance: none;
	font-size: 16px;
	font-family: inherit;
	line-height: normal;
}

form#mail_form input[type="text"]:focus,
form#mail_form input[type="email"]:focus,
form#mail_form input[type="tel"]:focus,
form#mail_form select:focus,
form#mail_form textarea:focus {
	box-shadow: 0px 0px 5px #55ccff;
	border: 1px solid #55ccff;
	background: #ffffff;
}

form#mail_form ul li input[type="radio"],
form#mail_form ul li input[type="checkbox"] {
	margin: 0 10px 0 0;
}

form#mail_form select {
	padding: 7px 2%;
	border: 1px solid #cccccc;
	border-radius: 3px;
	background: #fafafa;
	font-size: 16px;
	font-family: inherit;
	line-height: normal;
}

form#mail_form textarea {
	display: block;
	width: calc( 100% - 4% - 2px );
	height: 200px;
	padding: 7px 2%;
	resize: vertical;
	border: 1px solid #cccccc;
	border-radius: 15px;
	/* background: #fafafa; */
	-webkit-appearance: none;
	font-size: 16px;
	font-family: inherit;
	line-height: normal;
}

/* -- ul, li ------------------- */

form#mail_form ul {
	list-style-type: none;
    text-align: left;
}

form#mail_form ul li {
	display: inline-block;
}

form#mail_form ul li label {
	/* display: inline; */
	/* margin-top: 10px;
	padding: 7px 2%;
	border-radius: 3px;s
	background: #f0f0f0; */
}

form#mail_form ul li:first-child label {
	margin-top: 0px;
}

form#mail_form ul li label:hover {
	cursor: pointer;
	background: #e0e0e0;
}

/* -- input design ------------------------- */

form#mail_form input[name="company"] {
	width: 70%;
}

form#mail_form input[name="name_1"],
form#mail_form input[name="name_2"],
form#mail_form input[name="read_1"],
form#mail_form input[name="read_2"],
form#mail_form input[name="postal"],
form#mail_form input[name="phone"],
form#mail_form input[name="schedule"] {
	width: 30%;
}

form#mail_form input[name="mail_address"],
form#mail_form input[name="mail_address_confirm"] {
	width: 80%;
}

form#mail_form a.postal_search_button {
	display: inline-block;
	padding: 7px 20px;
	border: 1px solid #46b8da;
	border-radius: 3px;
	background: #5bc0de;
	font-size: 16px;
	line-height: normal;
	color: #ffffff;
	text-decoration: none;
}

form#mail_form a.postal_search_button:hover {
	cursor: pointer;
	background: #31b0d5;
	border: 1px solid #269abc;
}

/* -- button --------------------------------------- */

form#mail_form p#form_submit {
	width: 100%;
	margin: 0;
	padding: 30px 0;
    /* background-color: #449d44; */
}

form#mail_form input[type="button"] {
	padding: 7px 100px;
	border: 1px solid var(--main-color);
	border-radius: 15px;
	background: var(--main-color);
	font-size: 16px;
	color: #ffffff;
	font-family: inherit;
	-webkit-appearance: none;
    transition: all .2s;
}

form#mail_form input[type="button"]:hover {
	cursor: pointer;
	opacity: 0.5;
}

form#mail_form input[type="button"] {
	/* margin-left: 35%; */
}

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

    form#mail_form {
        width: 100%;
        margin: 50px 0 0 0;
        /* background: #ffffff;
        border: 1px solid #cccccc;
        border-radius: 7px;
        box-shadow: 0 0 7px rgba( 0, 0, 0, 0.2 ); */
        line-height: 1.8;
    }

    form#mail_form dl {
        display: block;
        width: 100%;
    }

    form#mail_form dl dt {
        width: 100%;
        padding: 25px 0 5px 0;
    }

    form#mail_form dl dt i {
        float: left;
        margin-right: 5px;
    }

    form#mail_form dl dd {
        width: 100%;
        padding: 5px 0 25px 0;
    }

    form#mail_form dl dt span.required,
    form#mail_form dl dt span.optional {
        font-size: 80%;
        padding: 3px 20px;
    }

    form#mail_form input[name="company"] {
        width: 100%;
    }

    form#mail_form input[name="name_1"],
    form#mail_form input[name="name_2"],
    form#mail_form input[name="read_1"],
    form#mail_form input[name="read_2"],
    form#mail_form input[name="postal"],
    form#mail_form input[name="phone"],
    form#mail_form input[name="schedule"] {
        width: 30%;
    }

    form#mail_form input[name="mail_address"],
    form#mail_form input[name="mail_address_confirm"] {
        width: 100%;
    }

}


/* ************

CTA

******/
section.cta picture {
    display: block;
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin-bottom: 50px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(../images/cta/material05.webp);
}

/* section.cta picture img {
    width: 100%;
    height: 350px;
} */

section.cta div {
    display: block;
    margin: 0 auto;
    width: 1080px;
    background-color: var(--main-color);
    border: 1px solid var(--main-color);
    text-align: center;
    padding: 0 0 50px 0;
    transition: all .3s;
}

section.cta div a{
    display: block;
    position: relative;
    font-size: 300%;
    font-weight: bold;
    height: calc(100% + 50px);
    width: 100%;
    text-decoration: none;
    color: var(--margin-color);
    padding: 20px 0;
    /* background-color: aqua; */
}

section.cta div:hover{
    opacity: 0.5;
}

section.cta div a::after{
    position: absolute;
    content: 'CONTACT';
    font-size: 50%;
    top: 85%;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Antonio", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

@media screen and ( max-width: 900px ) {
    section.cta picture {
        height: 250px;
        background-attachment:initial;
        background-size: cover;
    }

    section.cta div {
        width: 100%;
        padding: 0 0 40px 0;
    }

    section.cta div a {
        font-size: 3rem;
    }

    section.cta div a::after{
        font-size: 1.5rem;
        top: 80%;
    }
}

/* ************

footer

******/
footer{
    width: 100%;
    background-color: var(--base-color);
    color: var(--margin-color);
    padding: 50px 0 25px 0;
}

.footer-flex{
    display: flex;
    justify-content: space-between;
    width: 980px;
    margin: 0 auto;
}

.footer-flex-left{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px 0;
}

.footer-flex-left picture{
    display: block;
    background-color: white;
    width: 40%;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-flex-left picture img{
    width: 100%;
}

.footer-flex-left picture span{
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 900;
}

.footer-flex-left p{
    color: var(--margin-color);
    font-size: 0.85rem;
}

.footer-flex-right{
    width: 50%;
}

.footer-flex-right ul{
    display: flex;
    justify-content: space-between;
    padding-top: 35px;
}

.footer-flex-right a{
    color: var(--margin-color);
    width: 50%;
    text-decoration: none;
}

footer small{
    display: block;
    width: 980px;
    margin: 50px auto 0 auto;
    color: var(--margin-color);
    text-align: center;
}

@media screen and ( max-width: 900px ) {
    .footer-flex{
        justify-content:flex-start;
        flex-direction: column-reverse;
        width: 100%;
        margin: 0;
        gap: 50px 0;
    }

    .footer-flex-left{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px 0;
        text-align: center;
        align-items: center;
    }

    .footer-flex-right{
        width: 100%;
        padding: 0 25px;
    }

    .footer-flex-right ul{
        display: flex;
        justify-content: space-between;
        padding-top: 15px;
    }

    .footer-flex-right a{
        color: var(--margin-color);
        width: 50%;
        text-decoration: none;
    }

    footer small{
        width: 100%;
    }

}