/* ---------------
 *
 *  共通
 *  
 * --------------- */

.title-top {
    position: relative;
    display: block;
    margin: 0 auto;
    text-align: center;
    font-weight: bold;
    color: var(--color-black);
    width: fit-content;
}

.title-top::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
}

.title-white {
    color: var(--color-white);
}

.title-white::after {
    background-color: var(--color-white);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 183px;
    height: 49px;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid transparent;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-blue {
    color: var(--color-main-blue);
    border-color: var(--color-main-blue);
    background-color: transparent;
}

.btn-blue:hover {
    border-color: var(--color-main-blue);
    background-color: var(--color-main-blue);
    color: var(--color-white);
}

.service-btn {
    border-color: var(--color-white);
    background-color: transparent;
    color: var(--color-white);
}

.en-title {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Hiragino Mincho Pro', 'Hiragino Mincho ProN', 'MS PMincho', serif !important;
    text-align: center;
    color: var(--color-main-blue);
    line-height: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-main-blue);
    color: var(--color-black);
    text-decoration: none;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: background-color 0.2s, color 0.2s;
    margin-bottom: 180px;
}

.pagination .page-numbers:hover {
    background-color: #EEF3F9;
}

.pagination .page-numbers.current {
    background-color: #EEF3F9;
}

@media screen and (max-width: 768px) {
    .title-top {
        font-size: 24px;
    }
    .en-title {
        font-size: 18px;
    }
    .pagination .page-numbers {
        margin-bottom: 80px;
    }
}


/* ---------------
 *
 *  TOPページ
 *  
 * --------------- */

#top .container {
    max-width: 1100px;
}

.fv-section {
    width: 100%;
    background-image: url('../images/fv.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
    aspect-ratio: 19.7 / 11;
}

.fv-section h1 {
    font-size: 50px;
    font-weight: bold;
    color: var(--color-main-black);
    padding-top: 85px;
    margin-left: 72px;
    margin-bottom: 10px;
}

.fv-section p {
    font-size: 24px;
    font-weight: 600;
    margin-left: 72px;
}

@media screen and (max-width: 768px) {
    .fv-section {
        background-image: url('../images/fv_sp.png');
        margin-top: 20px;
    }
    .fv-section h1 {
        font-size: 24px;
        padding-top: 18px;
        margin-left: 22px;
        margin-bottom: 80px;
    }
    .fv-section p {
        font-size: 14px;
        margin-left: 22px;
    }
}

@media screen and (max-width: 420px) {
    .fv-section h1 {
        margin-bottom: 60px;
    }
}

/* 
 * 富士島建設について
 */

.about-section {
    padding: 140px 0 172px;
    text-align: center;
}

.about-section h2 {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 28px;
}

.about-section .en-title {
    margin-bottom: 70px;
}

.about-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 74px;
    text-align: left;
    flex-wrap: wrap;
}

.about-text-block{
    position: relative;
    max-width: 557px;
    z-index: 2;
}

.about-text-block::after {
    content: "";
    position: absolute;
    top: -22%;
    left: 15%;
    width: 430px;
    height: 446px;
    background: url("../images/yamanashi-image.png");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

.about-text-block p {
    font-size: 18px;
    line-height: 2.1;
    letter-spacing: -1.4px;
    margin-bottom: 45px;
    font-family: 'Hiragino Mincho Pro', 'Hiragino Mincho ProN', 'MS PMincho', serif !important;
}

.about-text-block p:last-of-type {
    margin-bottom: 40px;
}

.about-content .btn {
    position: relative;
    top: -186px;
    left: -41.6%;
    z-index: 100;
}

.about-image-block {
    flex: 1 1 45%;
    width: 100%;
    max-width: 469px;
    height: 328px;
}

.about-image-block img {
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

@media (max-width: 768px) {
    .about-section {
        padding: 78px 0 100px;
    }
    .about-section h2 {
        font-size: 26px;
        margin-bottom: 18px;
    }
    .about-section .en-title {
        margin-bottom: 130px;
    }
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    .about-text-block {
        max-width: 100%;
    }
    .about-text-block p {
        font-size: 16px;
        line-height: 40px;
        letter-spacing: -1.4px;
        margin-bottom: 45px;
    }
    .about-content .btn {
        position: relative;
        top: 0;
        left: 0;
    }
    .about-image-block {
        max-width: 100%;
    }
    .about-text-block::after {
        top: -19.5%;
        left: 10%;
        width: 309px;
        height: 320px;
    }
    .about-text-block p:last-of-type {
        margin-bottom: 72px;
    }
    .about-image-block img {
        margin-top: 0;
    }
}


/* 
 * 会社紹介動画
 */

.movie-section {
    padding-bottom: 220px;
}

.movie-section .container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.movie-section .container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.movie-attention {
    font-size: 18px;
    font-weight: 300;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1;
    text-align: left;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .movie-section {
        padding-bottom: 100px;
    }
    .movie-attention {
        font-size: 12px;
        margin-top: 13px;
    }
}


/* 
 * 事業案内
 */

.business-section {
    background: var(--color-mid-blue);
    padding: 85px 0 80px 100px;
    margin-left: 80px;
    color: var(--color-white)
}

.business-section h2 {
    margin-bottom: 18px;
}

.business-section h2,
.business-section .en-title {
    text-align: center;
    padding-right: 180px;
     color: var(--color-white);
}

.business-inner {
    max-width: 1260px;
    display: flex;
    align-items: flex-end;
    gap: 29px;
    margin: 80px auto 0;
}   

.business-text {
    min-width: 459px;
}

.business-catch {
    font-size: 32px;
    margin-bottom: 30px;
    line-height: 40px;
}

.business-desc {
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 56px;
}

.business-btn {
    width: 147px;
    color: var(--color-white);
    border-color: var(--color-white);
}

.business-slider img {
    width: 100%;
    max-width: 493px;
    height: 369px;
}

.swiper-slide {
    width: unset !important;
}

@media (max-width: 768px) {
    .business-section {
        padding: 85px 0 100px 20px;
        margin-left: 0;
    }
    .business-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .business-section h2,
    .business-section .en-title {
        padding-right: 20px;
    }
    .business-slider img {
        max-width: 267px;
        height: 200px;
    }
    .business-catch {
        font-size: 24px;
    }
    .business-text {
        min-width: 100%;
        padding-right: 20px;
    }
    .business-desc {
        font-size: 16px;
        padding-right: 20px;
        margin-bottom: 60px;
    }
    .business-btn {
        width: 147px;
        color: var(--color-white);
        border-color: var(--color-white);
        position: relative;
        left: calc(50% - 10px);
        transform: translateX(-50%);
    }
}

/* 
 * 施工事例
 */

.works-section {
    text-align: center;
    padding: 140px 0;
}

.works-section h2 {
    margin-bottom: 18px;
}

.works-section .en-title {
    margin-bottom: 70px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scroll-left 60s linear infinite;
    position: relative;
    margin-bottom: 77px;
}

.slide-group {
    position: relative;
    width: 1440px;
    height: 427px;
}

.img {
    position: absolute;
    object-fit: cover;
}

.img1 {
    max-width: 351px;
    max-height: 290px;
    top: 8%;
    left: 1%;
}

.img2 {
    max-width: 216px;
    max-height: 179px;
    top: 1%;
    left: 31%;
}

.img3 {
    max-width: 320px;
    max-height: 180px;
    top: 53%;
    left: 27.5%;
}

.img4 {
    max-width: 289px;
    max-height: 320px;
    top: 0;
    left: 52%;
}

.img5 {
    max-width: 351px;
    max-height: 201px;
    top: 3%;
    left: 74.5%;
}

.img6 {
    max-width: 163px;
    max-height: 188px;
    top: 56%;
    left: 81%;
}

.works-section .btn {
    margin-bottom: 136px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .works-section {
        padding: 100px 0;
    }
    .works-section .en-title {
        margin-bottom: 60px;
    }
    .slider-track {
        margin-bottom: 60px;
    }
    .works-section .btn {
        margin-bottom: 100px;
    }
}


/* 
 * 採用情報
 */

.recruit-section {
    padding: 0 0 140px;
    text-align: center;
}

#top .recruit-section .container {
    max-width: 1180px;
}

.recruit-section .en-title {
    margin-bottom: 80px;
}

.recruit-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 57px;
}

.recruit-content .text-block {
    text-align: left;
}

.recruit-content h3 {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: -2px;
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 30px;
}

.recruit-content .text-block p {
    font-size: 18px;
    line-height: 2.1;
    margin-bottom: 0;
}

.recruit-content .btn {
    position: relative;
    top: -100px;
    left: -41.4%;
    z-index: 100;
}

.image-block {
    text-align: center;
}

.image-block img {
    width: 537px;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .recruit-section {
        padding: 0 0 100px;
    }
    .recruit-content {
        gap: 60px;
    }
    .recruit-content h3 {
        font-size: 24px;
        letter-spacing: 0;
        text-align: center;
        white-space: wrap;
    }
    .recruit-content .text-block p {
        font-size: 16px;
        line-height: 36px;
        letter-spacing: -1px;
    }
    .recruit-content .btn {
        top: 0;
        left: 0;
    }
    .image-block img {
        width: 100%;
    }
}

/* 
 *　お知らせ
 */

.top-news-section {
    padding: 140px 0;
    background-color: #EEEEEE;
}

#top .top-news-section .container {
    max-width: 1160px;
    display: flex;
    align-items: flex-start;
    gap: 132px;
}

.top-news-title h2,
.top-news-title .en-title {
    text-align: left;
    white-space: nowrap;
}

.top-news-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
}

.top-news-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #979797;
    padding: 10px 0;
    font-size: 16px;
    font-family: 'Hiragino Mincho Pro', 'Hiragino Mincho ProN', 'MS PMincho', serif !important;
}

.top-news-item:last-of-type {
    border-bottom: 1px solid #979797;
    margin-bottom: 50px;
    padding-bottom: 8px;
}


.top-news-date {
    min-width: 80px;
    opacity: 0.7;
}

.top-news-text {
    text-align: left;
    color: var(--color-main-black);
    text-decoration: none;
    flex: 1;
    margin-left: 20px;
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .top-news-section {
        padding: 100px 0;
        background-color: #EEEEEE;
    }
    #top .top-news-section .container {
        flex-direction: column;
        align-items: center;
        gap: 74px;
    }
    .top-news-title h2,
    .top-news-title .en-title {
        text-align: center;
    }
    .top-news-list {
        align-items: center;
        margin-bottom: 0;
    }
}



/* ---------------
 *
 *  会社情報
 *  
 * --------------- */

.company-section {
    color: #ccc;
    transition: color 0.3s;
}

.company-section h2,
.company-section h3,
.company-section p,
.company-section td,
.company-section th {
    color: inherit;
}

.company-section.active {
    color: var(--color-main-black);
}

.company-section img {
    opacity: 0.3;
    transition: opacity 0.3s;
}

.company-section.active img {
    opacity: 1;
}

.company-page {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

.company-subnav {
    position: sticky;
    top: 100px;
    width: 212px;
    height: fit-content;
    z-index: 5;
}

.company-content #message {
    max-width: 825px;
}

.company-content #about {
    max-width: 800px;
}

.company-content #certification {
    max-width: 828px;
}

.company-content section {
    margin-bottom: 120px;
}

.company-content section:last-of-type {
    margin-bottom: 140px;
}

.company-content h2 {
    position: relative;
    display: inline-block;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 50px;
}

.company-section.active h2 {
    color: var(--color-main-blue);
}

.company-section h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: calc(100% - 35px);
    height: 2px;
    background-color: #ccc;
}

.company-section.active h2:after {
    background-color: var(--color-main-blue);
}

.company-content h3 {
    font-size: 24px;
    font-weight: bold;
    line-height: 60px;
}

.company-content p {
    font-size: 20px;
    line-height: 1.8;
}

.company-subnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-subnav li {
    position: relative;
    font-size: 24px;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1;
    margin-bottom: 25px;
}

.company-subnav li:last-child {
    margin-left: 0 !important;
    margin-bottom: 150px;
}

.company-subnav a {
    position: relative;
    display: inline-block;
    color: #ccc;
    text-decoration: none;
    font-weight: normal;
    font-size: 24px;
}

.company-subnav a.active::before {
    content: "•";
    color: var(--color-main-blue);
    position: absolute;
    left: -20px;
    top: 1px;
}

.company-subnav a.active {
    color: var(--color-main-blue);
    font-weight: bold;
    letter-spacing: -.75px;
}

.company-content #message h2 {
    margin-bottom: 50px;
}

#message h3 {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 60px;
}

.message-text {
    flex: 1;
}

.message-text p {
    font-size: 18px;
    text-align: justify;
    line-height: 1.62;
}

.message-text-br {
    margin-bottom: 20px;
}

.message-image img {
    max-width: 340px;
    max-height: 342px;
}

.message-content .president-name {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    margin-top: 32px;
}


.guideline-list {
    list-style: none;
    counter-reset: number;
}

.guideline-list li {
    counter-increment: number;
    position: relative;
    font-size: 24px;
    font-family: 'Hiragino Mincho Pro', 'Hiragino Mincho ProN', 'MS PMincho', serif !important;
    line-height: 60px;
    padding-left: 50px;
}

.guideline-list li::before {
    content: counter(number) "．";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    font-family: 'Hiragino Mincho Pro', 'Hiragino Mincho ProN', 'MS PMincho', serif !important;
    padding-left: 5px;
}

.history-list {
    list-style: none;
    font-size: 18px;
    margin: 0;
    padding: 0;
}

.history-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.history-list .year {
    display: inline-block;
    min-width: 120px;
}

.about-table {
    width: 100%;
}

.about-table th,
.about-table td {
    border-top: 1px solid #000;
    font-size: 16px;
    font-weight: 300;
    text-align: left;
    vertical-align: text-top;
    padding-top: 22px;
    padding-bottom: 22px;
    padding-left: 20px;
}

.about-table th {
    width: 110px;
    font-weight: 700;
}

.about-table tr:last-of-type {
    border-bottom: 1px solid #000;
}

.certification-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 80px 36px;
    margin: 0 auto;
}

.certification-wrapper .cert-item:nth-child(2) img,
.certification-wrapper .cert-item:nth-child(3) img {
    margin-bottom: 88px;
}

.certification-wrapper .cert-item:last-child img {
    margin-bottom: 60px;
}

.cert-item {
    width: 252px;
    text-align: left;
    color: var(--color-main-black);
}

.cert-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.cert-item .cert-date {
    font-size: 14px;
    color: #ccc;
}

.cert-item .cert-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #ccc;
}

.active .cert-date,
.active .cert-title {
    color: var(--color-main-black);
}


#awards .history-list li {
    display: flex;
    justify-content: flex-start;
}

.award-title {
    width: 310px;
}

#access h4 {
    font-size: 26px;
    margin-bottom: 6px;
}

#access p {
    font-size: 20px;
    margin-bottom: 30px;
}

.access-map {
    margin-bottom: 100px;
}

.access-map img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.access-map iframe {
    width: 100%;
    height: 485px;
}

@media (max-width: 768px) {
    #company h2 {
        margin-bottom: 52px;
    }
    .company-subnav {
        display: none;
    }
    .company-content {
        margin-top: 60px;
    }
    .company-content h2 {
        font-size: 26px;
        margin-bottom: 48px;
    }
    .company-content h3 {
        font-size: 20px;
        line-height: 62px;
    }
    #vision h3 {
        margin-top: -18px;
    }
    #vision h2 {
        margin-bottom: 47px;
    }
    #guideline h2,
    #message h2 {
        margin-bottom: 42px;
    }
    .company-page {
        display: block;
    }
    .company-content section {
        margin-bottom: 110px;
    }
    #message {
        margin-bottom: 60px;
    }
    #message h3 {
        font-size: 24px;
        line-height: 40px;
        margin-bottom: 40px;
    }
    .message-content {
        flex-direction: column-reverse;
        gap: 60px;
    }
    .message-image p {
        font-size: 14px;
        margin-top: 16px;
    }
    .message-text p {
        font-size: 16px;
        text-align: left;
        line-height: 32px;
        letter-spacing: -.3px;
    }
    .message-text-br {
        margin-bottom: 30px;
    }
    #guideline,
    #history,
    #awards {
        margin: 0 calc(50% - 50vw) 60px;
        width: 100vw;     
        background-color: #EDF4F6;
        padding-top: 60px;
        padding-bottom: 50px;
    }
    .company-container {
        width: calc(100% - 40px);
        margin: 0 auto;
    }
    .guideline-list li {
        font-size: 18px;
        line-height: 50px;
        padding-left: 30px;
    }
    .guideline-list li::before {
        font-size: 18px;
        line-height: 50px;
    }
    #about {
        margin-bottom: 60px;
    }
    .about-table th {
        width: 105px;
        padding-left: 14px;
    }
    .about-table td {
        padding-left: 0;
    }
    .history-list {
        font-size: 16px;
    }
    .history-list li:last-of-type {
        margin-bottom: 0;
    }
    .history-list .year {
        min-width: 105px;
    }
    #certification {
        margin-bottom: 60px;
    }
    .certification-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        gap: 59px 30px;
    }
    .certification-wrapper .cert-item:nth-child(2) img {
        margin-bottom: 70px;
    }
    .certification-wrapper .cert-item:nth-child(3) img {
        margin-bottom: 46px;
    }
    .certification-wrapper .cert-item:last-child img {
        margin-bottom: 12px;
    }
    .cert-item {
        width: 100%;
        max-width: 180px;
    }
    .cert-item .cert-title {
        font-size: 13px;
    }
    .cert-item .cert-date {
        font-size: 12px;
    }
    .awards-container {
        width: 100%;
        padding-left: 20px;
    }
    .award-title {
        width: 268px;
    }
    .awards-container .history-list .year {
        min-width: 95px;
    }
    #awards .history-list {
        overflow-x: auto;
        padding-right: 20px;
        padding-bottom: 8px;
    }
    #awards .history-list li {
        min-width: 520px;
        white-space: nowrap;
    }
    .access-map {
        margin-bottom: 30px;
    }
    #access h4 {
        font-size: 20px;
    }
    #access p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .access-map iframe {
        height: 243px;
    }
    .company-content section:last-of-type {
        margin-bottom: 56px;
    }
}


/* ---------------
 *
 *  事業案内
 *  
 * --------------- */
#service .title {
    margin-bottom: 40px;
}

.service-intro {
    font-size: 18px;
    letter-spacing: 0.72px;
    line-height: 30px;
    margin-bottom: 120px;
}

.construction-item {
    position: relative;
    margin-bottom: 120px;
}

.construction-box {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.construction-item:nth-of-type(2) .construction-box  {
    flex-direction: row-reverse;
}

.construction-item:nth-of-type(2) img {
    margin-top: -230px;
}

.reverse-box {
    position: relative;
    width: 400px;
    right: -61.5%;
}

.construction-item:last-child .construction-box {
    margin-bottom: 160px;
}

.construction-text {
    max-width: 400px;
}

.construction-item h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: left;
    line-height: 1;
    color: var(--color-main-black);
    margin-bottom: 20px;
}

.construction-item .sub {
    color: var(--color-main-blue);
    font-size: 14px;
    text-align: left;
    line-height: 1;
    margin-bottom: 40px;
}

.construction-item h3 {
    max-width: 400px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

.construction-item:first-of-type .construction-content {
    margin-bottom: 60px;
}

.construction-content {
    margin-bottom: 40px;
}

.construction-content p {
    font-size: 16px;
    line-height: 30px;
    text-align: justify;
    letter-spacing: .5px;
    margin-bottom: 30px;
}

.construction-content p:last-child {
    margin-bottom: 0;
}

.construction-image img {
    width: 100%;
    max-width: 560px;
    height: auto;
    margin-top: -200px;
}

.construction-text a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 50px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .service-intro {
        font-size: 16px;
    }
    .reverse-box {
        position: relative;
        width: 100%;
        right: 0;
    }
    .construction-item:nth-of-type(2) img {
        margin-top: 0;
    }
    .construction-box {
        flex-direction: column-reverse !important;
        gap: 40px;
    }
    .construction-image img {
        max-width: 100%;
        margin-top: 0;
    }
    .construction-item h2 {
        font-size: 28px;
        margin-bottom: 14px;
    }
    .construction-item .sub {
        font-size: 12px;
    }
    .construction-item h3 {
        margin-bottom: 40px;
    }
    .construction-text {
        max-width: 100%;
    }
    .construction-content {
        margin-bottom: 60px !important;
    }
    .construction-item:last-child,
    .construction-item:last-child .construction-box {
        margin-bottom: 80px;
    }
}


/* ---------------
 *
 *  施工実績ページ
 *  
 * --------------- */
#works .title {
    margin-top: 60px;
    margin-bottom: 42px;
}

#works .container {
    max-width: 1200px;
}

.works-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 20px;
    margin-bottom: 60px;
}

.works-category-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 38px;
    border: 1px solid var(--color-main-blue);
    border-radius: 50px;
    color: var(--color-main-blue);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 0 34.5px;
}

.works-category-buttons a.active {
    background: var(--color-main-blue);
    color: var(--color-white);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 140px;
}

.works-item {
    position: relative;  
    overflow: hidden;
}

.works-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.0) 75%,
        rgba(0,0,0,0.7) 88%,
        rgba(0,0,0,0.8) 92%,
        rgba(0,0,0,1) 100% 
    );
    opacity: 0.8; 
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 5;
}

.works-item:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.6) 70%,
        rgba(0,0,0,0.7) 80%,
        rgba(0,0,0,0.8) 100%
    );
    opacity: 1;
}

.works-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.works-item img:hover {
    transform: scale(1.1);
}

.works-cat {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 28px;
    background-color: var(--color-main-blue);
    font-size: 14px;
    color: var(--color-white);
    padding: 0 11px;
}

.works-title {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    padding-right: 14px;
    z-index: 8;
}

@media (max-width: 768px) {
    #works .title {
        margin-top: 24px;
        margin-bottom: 40px;
    }
    #works .title .container,
    #works .breadcrumb .container {
        margin: 0;
    }
    .works-category-buttons {
        margin: 0 calc(50% - 50vw) 40px;
        width: 100vw;                
        overflow-x: auto;
        flex-wrap: nowrap;
        margin-left: 0;
        padding-bottom: 8px;
    }
    .works-category-buttons a {
        white-space: nowrap;
    }
    .works-category-buttons a:last-of-type {
        margin-right: 50px;
    }
    .works-item img {
        height: 260px;
    }
    .works-grid {
        gap: 40px;
        margin-bottom: 80px;
    }
}


/* ---------------
 *
 *  お知らせ一覧
 *  
 * --------------- */

.news-list {
    list-style: none;
    padding: 0;
    margin-top: 60px;
    margin-bottom: 59px;
}

.news-item {
    border-top: 1px solid #B3B3B3;
    padding: 29.5px 24px;
}

.news-item:last-of-type {
    border-bottom: 1px solid #B3B3B3;
}

.news-item a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    font-size: 18px;
    text-decoration: none;
    color: var(--color-main-black);
}

.news-date {
    min-width: 140px;
    color: var(--color-main-black);
    line-height: 1;
}

.news-title {
    font-size: 18px;
}

@media (max-width: 768px) {
    .news-list {
        margin-top: 40px;
    }
    .news-item {
        padding: 20px 8px 15px;
    }
    #news .title .container,
    #news .breadcrumb .container {
        margin: 0;
    }
    .news-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: 13px;
    }
    .news-title {
        font-size: 16px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}



/* ---------------
 *
 *  お知らせ詳細
 *  
 * --------------- */

.single-news-date {
    font-size: 14px;
    color: var(--color-main-black);
    margin-top: 30px;
    margin-bottom: 22px;
}

#single-news h1 {
    font-size: 26px;
    font-weight: bold;
    border-bottom: 1px solid #000;
    margin-bottom: 16px;
    padding-bottom: 30px;
}

.single-news-content {
    font-size: 18px;
    line-height: 1.8;
    margin-top: 40px;
    margin-bottom: 54px;
    padding: 0 20px;
}

.single-news-back {
    text-align: center;
    margin-bottom: 140px;
}

.btn-back {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 165px;
    height: 43px;
    font-size: 18px;
    text-decoration: none;
    color: var(--color-main-blue);
    border: 1px solid var(--color-main-blue);
    transition: 0.3s;
    margin: 0 auto;
}

.btn-back:hover {
    background-color: var(--color-main-blue);
    color: var(--color-white);
}

@media (max-width: 768px) {
    #single-news .breadcrumb {
        overflow-x: auto;
        padding-right: 10px;
        padding-bottom: 8px;  
        margin: 0 calc(55% - 50vw);
        width: 100vw;
        
    }
    #single-news .breadcrumb ul {
        min-width: 500px;
        white-space: nowrap;  
        margin-left: -5%;  
    }
    .single-news-date {
        margin-top: 24px;
        margin-bottom: 14px;
        font-size: 12px;
        line-height: 1;
    }
    #single-news h1 {
        font-size: 20px;
        padding-bottom: 20px;
        margin-bottom: 0;
    }
    .single-news-content {
        padding: 0;
        font-size: 16px;
    }
    .single-news-content p {
        line-height: 28px;
        letter-spacing: .8px;
    }
    .single-news-back {
        margin-bottom: 80px;
    }
}


/* ---------------
 *
 *  地域貢献
 *  
 * --------------- */

.community-section-title {
    font-size: 35px;
    font-weight: 600;
    text-align: center;
}

.community-top-text {
    width: 100%;
    max-width: 1040px;
    font-size: 18px;
    line-height: 32px;
    margin: 0 auto 80px;
}

.community-contents__inner {
  padding: 100px 0 0;
  background: var(--color-white);
  max-width: 1040px;
  margin: 0 auto;
}

.community-contents__row {
  position: relative;
  margin: 0 0 160px;
}

.community-contents__row:last-of-type {
  margin-bottom: 180px;
}

.community-contents__row::before {
  content: "";
  position: absolute;
  left: 28%;
  top: 41%;
  transform: translateX(-50%);
  width: 158%;
  height: 230px;
  background: var(--color-main-blue);
  z-index: 0;
}

.community-contents__row--right::before {
  left: 72%;
}

.community-contents__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.community-contents__item {
  display: flex;
  flex-direction: column;
}

.community-contents__figure {
  margin: 0;
  background: var(--color-white);
}

.community-contents__figure img {
  width: 100%;
  min-width: 320px;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.community-contents__caption {
  margin: 14px 0 0;
  color: var(--color-white);
  font-size: 16px;
}

.community-contents__note {
  max-width: 860px;
  font-size: 18px;
  line-height: 32px;
  margin: 0 auto 140px;
}

@media (max-width: 768px) {
    #community .title {
        margin-bottom: 30px;
    }
    .community-top-text {
        width: calc(100% - 40px);
        font-size: 16px;
        line-height: 28px;
        letter-spacing: .8px;
        margin-bottom: 60px;
    }
    .community-contents__inner {
        background-color: var(--color-main-blue);
        padding: 60px 35px;
    }
    .community-contents__row,
    .community-contents__row:last-of-type {
        margin-bottom: 60px;
    }
    .community-contents__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .community-contents__caption {
        font-size: 16px;
        font-weight: 300;
        margin-top: 12px;
    }
    .community-contents__row--right::before {
        display: none;
    }
    .community-contents__note {
        width: calc(100% - 40px);
        font-size: 16px;
        line-height: 28px;
        margin-top: 80px;
        margin-bottom: 80px;
    }
}


/* ---------------
 *
 *  採用情報
 *  
 * --------------- */

.recruit-section-title {
    font-size: 35px;
    font-weight: 600;
    text-align: center;
}

.recruit-top-text {
    width: 100%;
    max-width: 1040px;
    font-size: 18px;
    line-height: 32px;
    margin: 0 auto 70px;
}

.recruit-about {
    margin-top: 118px;
    margin-bottom: 118px;
}

.recruit-about-content {
    position: relative;
    max-width: 1040px;
    background: var(--color-white);
    text-align: left;
    margin: 0 auto;
    z-index: 1;
}

.recruit-about-content p {
    font-size: 24px;
    line-height: 38px;
    margin-bottom: 30px;
}

.recruit-about-content p:last-child {
    margin-bottom: 0;
}

.recruit-benefits {
    background-color: var(--color-main-blue);
    color: var(--color-white);
    padding-top: 140px;
    padding-bottom: 140px;
}

.benefits-cards {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
}

.benefits-card {
    width: 360px;
    height: auto;
    background-color: #FCF8F4;
    border-radius: 20px;
    padding-top: 28px;
    padding-bottom: 46px;
}

.benefits-card p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-main-blue);
    margin-top: 6px;
    margin-left: 24px;
}

.card-top {
    display: flex;
    gap: 2px;
}

.card-top img {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-left: 9px;
}

.card-top h3 {
    font-size: 40px;
    font-weight: 600;
    color: var(--color-main-blue);
    margin-top: 22px;
    line-height: 1;
}

.card-top h3 span {
    font-size: 28px;
}

.employee-voices {
    background: url('../images/bg-voice.jpg');
    padding-top: 140px;
    padding-bottom: 140px;
}

.voice-list {
    margin-top: 126px;
}

.voice-photo {
    position: absolute;
    left: 0;
    z-index: 1;
}

.voice-item:nth-of-type(2) .voice-photo {
    left: 61.5%;
}

.voice-photo img {
    object-fit: cover;
    width: 400px;
    height: 400px;
    margin-top: 60px;
}

.voice-item {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 120px;
}

.voice-item:nth-of-type(2) {
    flex-direction: row-reverse;
}

.voice-item:last-child {
    margin-bottom: 0;
}

.voice-content {
    position: relative;
    max-width: 516px;
    background-color: var(--color-white);
    padding: 60px;
    padding-left: 135px;
    margin-left: 325px;
    z-index: 0;
}

.voice-item:nth-of-type(2) .voice-content {
    padding-left: 60px;
    padding-right: 135px;
    padding-bottom: 49px;
    margin-left: 0;
    margin-right: 325px;
}

.voice-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.voice-meta {
    font-size: 14px;
    line-height: 1;
    margin-bottom: 30px;
}

.voice-description {
    font-size: 18px;
    font-weight: 300;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 30px;
    text-align: justify;
}

.voice-description p {
    line-height: 30px;
    margin-bottom: 30px;
}

.voice-description p:last-child {
    margin-bottom: 0;
}

.job-details {
    margin-top: 120px;
    margin-bottom: 120px;
}

.job-table {
    margin-top: 80px;
    width: 100%;
}

.job-table tr:last-of-type  {
    border-bottom: 1px solid #B3B3B3;
}

.job-table th,
.job-table td {
    border-top: 1px solid #B3B3B3;
    vertical-align: top;
    font-size: 18px;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-main-black);
    line-height: 40px;
    letter-spacing: 0.72px;
    padding: 18px 0 18px 32px;
}

.job-table th {
    width: 118px;
    font-weight: 700;
    text-align: left;
}

@media (max-width: 768px) {
    #recruit .title {
        margin-bottom: 30px;
    }
    .recruit-top-text {
        width: calc(100% - 40px);
        font-size: 16px;
        line-height: 28px;
        margin: 0 auto 60px;
    }
    .recruit-about-content {
        padding: 20px 18px 0;
        margin: -35px auto 0;
    }
    .recruit-about-content p {
        font-size: 16px;
        line-height: 30px;
    }
    .recruit-about {
        margin-bottom: 80px;
    }
    .recruit-benefits {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .benefits-cards {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        margin-top: 40px;
    }
    .recruit-section-title {
        font-size: 26px;
        letter-spacing: .8px;
    }
    .employee-voices .container {
        position: relative;
    }
    .employee-voices {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .voice-list {
        margin-top: 17px;
    }
    .voice-item {
        margin-bottom: 57px;
    }
    .voice-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .voice-item:nth-of-type(2) {
        flex-direction: column;
        align-items: flex-end;
    }
    .voice-content {
        max-width: 100%;
        margin-left: 0;
        padding-left: 0;
        padding: 47px 15px 24px !important;
    }
    .voice-photo img {
        width: 200px;
        height: 200px;
        margin-top: 0;
        margin-left: 15px;
    }
    .voice-item:nth-of-type(2) .voice-photo img {
        margin-left: 0;
        margin-right: 15px;
    }
    .voice-item:nth-of-type(2) .voice-content {
        margin-left: 0;
        margin-right: 0;
    }
    .voice-photo {
        position: relative;
        left: auto;
        top: 23px;
    }
    .voice-item:nth-of-type(2) .voice-photo {
        left: 0;
    }
    .voice-content h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    .voice-meta {
        margin-bottom: 14px;
    }
    .voice-description p {
        font-size: 16px;
        letter-spacing: .4spx;
    }
    .job-details {
        margin-top: 60px;
        margin-bottom: 80px;
    }
    .job-table {
        margin-top: 40px;
    }
    .job-table th {
        width: 90px;
    }
    .job-table th, .job-table td {
        font-size: 16px;
        line-height: 32px;
        letter-spacing: 0.72px;
        padding: 13px 0 13px 14px;
    }
    .job-table tr:nth-of-type(9) th,
    .job-table tr:nth-of-type(9) td {
        line-height: 1.4;
    }
}


/* ---------------
 *
 *  お問い合わせページ
 *  
 * --------------- */

.contact-top-text {
    font-size: 16px;
    margin: -21px 0 40px;
}

.contact-link {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-link img {
    width: auto;
    height: 39px;
}

.contact-form {
    margin-bottom: 150px;
    background-color: var(--color-white);
    padding: 30px 60px;
}

.contact-form .required {
    color: var(--color-main-red);
    font-size: 10px;
    width: 36px;
    padding: 1px 0;
    margin-left: 14px;
    text-align: center;
    border: 1px solid var(--color-main-red);
    display: inline-block;
    box-sizing: border-box;
    font-weight: normal;
    vertical-align: text-top;
}

.contact-item {
    margin-bottom: 32px;
}

.contact-question {
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 17px 14px;
    font-size: 16px;
    border: 1px solid var(--color-main-black);
    box-sizing: border-box;
    font-family: "YuMincho", serif;
}

.contact-form textarea {
    height: 200px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-main-gray);
    font-weight: normal;
}

.wpcf7-list-item {
    margin: 0 !important;
}

.radio-group,
.wpcf7-radio,
.wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpcf7-radio label,
.wpcf7-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 24px;
    cursor: pointer;
}

.wpcf7-radio input[type="radio"],
.wpcf7-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

input#resume.wpcf7-file {
    display: inline-block !important;
    width: fit-content;
    border: none !important;
    padding: 0;
}

.contact-submit {
    display: flex;
    justify-content: center;
    margin: 75px auto 0;
}

.contact-submit p {
    height: 60px;
}

.contact-form input[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 271px;
    height: 79px;
    text-align: center;
    background-color: var(--color-main-blue);
    color: var(--color-white);
    font-size: 24px;
    font-weight: 600;
    font-family: 'Hiragino Mincho Pro', 'Hiragino Mincho ProN', 'MS PMincho', serif !important;
    border: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    #contact-form .title .container {
        margin: 0;
        margin-bottom: 40px;
    }
    .contact-top-text {
        font-size: 16px;
        letter-spacing: .4px;
        margin: 0 0 40px;
    }
    .contact-link {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 60px;
    }
    .contact-form {
        margin-bottom: 55px;
        padding: 0;
    }
    .contact-form .required {
        padding: 1px 0;
        margin-left: 13px;
    }
    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }
    .contact-item {
        margin-bottom: 40px;
    }
    .contact-question {
        margin-bottom: 20px;
    }
    .radio-group,
    .wpcf7-radio {
        gap: 7px 20px;
    }
    .wpcf7-radio label {
        font-size: 14px;
        margin-right: 0;
    }
    .contact-submit {
        margin: 60px auto 0;
    }
    .contact-form input[type="submit"] {
        width: 200px;
        height: auto;
        font-size: 16px;
    }
}

/* ---------------
 *
 *  プライバシーポリシー
 *  
 * --------------- */

#privacy {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-main-black);
}

.privacy-top-text {
    margin-top: 40px;
    margin-bottom: 50px;
}

#privacy h3 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 22px;
}

#privacy ul {
    margin-bottom: 50px;
}

.privacy-mb {
    margin-bottom: 50px;
}

.privacy-contact {
    margin-bottom: 140px;
}

@media screen and (max-width: 768px) {
    #privacy .breadcrumb .container,
    #privacy .title .container {
        margin: 0;
    }
    #privacy .breadcrumb ul {
        margin-bottom: 0;
    }
    .privacy-top-text,
    #privacy p,
    #privacy li {
        font-size: 16px;
        line-height: 28px;
        letter-spacing: .4px;
    }
    #privacy h3 {
        font-size: 20px;
    }
    .privacy-contact {
        margin-bottom: 60px;
    }
}