@charset "utf-8";

main{ margin-top: 100px;}

.flex{ display: flex; justify-content: space-between; flex-wrap: wrap;}


h2{ font-size: 5rem; font-weight: bold; max-width: 1200px; width: calc(100% - 50px); line-height: 1.5; margin:0 auto 30px;}
h2 span{ display: block; font-size: clamp(16px,1.5vw,1.8rem); }
h3{ font-size: 3.6rem; line-height: 1.4;}
h3 span{ display: block; font-size: 1.6rem; }

.company{ background: #f5f5f5; padding: 105px 0 220px; margin-bottom: 150px;}
.box{ padding-bottom: 50px; border-bottom: #000 solid 1px;}
.box:not(:first-of-type){ padding-top: 50px;}
.box .txtBox{ width: 54.17%; }
.box .txtBox p{ margin-top: 35px;}
.box figure{ width: 41.08%;}

@media (max-width: 1400px){
    h2{ font-size: 4.5rem; margin-bottom: 30px;}
    .company{ padding: 80px 0 150px;}
}

@media (max-width: 768px){
    main{ margin-top:70px;}
    
    h2{ font-size: clamp( 2rem , 6.5vw, 5rem); margin-bottom: 20px;}
    h3{ font-size: min(6vw, 4.8rem); margin-top: 20px;}
    h3 span{ font-size: min(3vw, 2.4rem);}
    .box:last-of-type{ border-bottom: none;}
    .box .txtBox{  width: 100%; order: 2;}
    .box .txtBox p { margin-top: 20px;}
    .box figure{ width: 100%; order: 1;}
}