@import url("https://fonts.googleapis.com/css2?family=Suravaram&display=swap");

:root {
    --wp--style--global--content-size: 1040px;
}

main {
    margin: 0 !important;
    padding: 0 !important;
}
main > .wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
}

.has-global-padding > .alignfull.mv {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
}

.has-global-padding > .alignfull {
    margin: 0 !important;
    padding: 0 !important;
}

/* ボタン */

.wp-block-button__link {
    background-color: transparent;
    color: #fff;
    border-radius: 0;
    border: 1px solid #fff;
    padding: 10px 40px;
    font-size: 2rem;
    font-weight: 700;
}

.wp-block-button__link:hover {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    transition: all 0.3s ease;
}

.black-btn .wp-block-button__link {
    color: #000;
    border: 1px solid #000;
    font-weight: normal;
}

.black-btn .wp-block-button__link:hover {
    background-color: #000;
    color: #fff;
}

/* メインビジュアル */

.mv {
    padding: 0 20px;
}

.mv-text {
    font-size: 2rem;
    margin-bottom: 18px;
}

.mv-en {
    font-family: "Suravaram", serif;
    color: #5f4210;
    font-size: 9rem !important;
    line-height: 100px;
    margin-top: 60px;
}

.btn-isfet {
    display: inline-block;
    padding: 10px 12px 20px 12px;
    background-color: #f6ad00;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* 小さなタグ部分のスタイル */
.btn-isfet .tags {
    display: flex;
    gap: 6px; /* タグ同士の間隔 */
    margin-bottom: 12px; /* タグ部分とメインテキストの間隔 */
    padding: 0;
    list-style: none;
}

.btn-isfet .tags li {
    background-color: #e0e0e0; /* タグの背景色 */
    color: #000; /* タグの文字色 */
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 1.4rem;
    white-space: nowrap; /* タグ内で改行しない場合 */
}

/* メインテキスト部分のスタイル */
.btn-isfet .main-text {
    font-size: 2rem;
    font-weight: bold;
}

/* ホバー時の変化（お好みで） */
.btn-isfet:hover {
    background-color: #fb8c00;
}

@media (max-width: 768px) {
    .mv-en {
        font-size: 5rem !important;
        line-height: 50px;
    }

    .mv-text {
        font-size: 1.6rem !important;
    }

    .mv-contents {
        padding: 0 10px;
    }
    .btn-isfet {
        display: block;
        text-align: center;
    }

    .btn-isfet .tags {
        justify-content: center;
    }

    .has-global-padding > .alignfull.mv {
        min-height: 85vh;
    }
}

/* 当社の製品 */

.products {
    max-width: 100% !important;
    background-color: #0f8f73;
    color: #fff;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.products::before {
    content: "";
    position: absolute;
    background-image: url(../img/bg-products.svg);
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    width: 902px;
    height: 354px;
    top: 0;
    right: -400px;
    overflow: hidden;
}

.products:after {
    content: "";
    position: absolute;
    background-image: url(../img/bg-products.svg);
    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
    width: 902px;
    height: 354px;
    bottom: 0;
    left: -400px;
    overflow: hidden;
}

.products-contents {
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .products::before {
        width: 400px;
        height: 177px;
        right: -200px;
    }

    .products::after {
        width: 400px;
        height: 177px;
        left: -200px;
    }
    .products-contents,
    .products-contents h3 {
        text-align: center;
    }

    .products-contents .wp-block-columns {
        gap: 60px;
    }
}

/* 取り扱い技術 */
.tech-contents {
    max-width: 860px;
}

/* お知らせ・ブログ */

.post {
    background-color: #0f8f73;
    color: #fff;
    max-width: 100% !important;
}

.post a:hover {
    text-decoration: underline;
}

.post .wp-block-columns {
    max-width: var(--wp--style--global--content-size) !important;
    margin: 0 auto !important;
}

.post li {
    display: flex;
    flex-direction: column-reverse;
}

.post h2 {
    margin-bottom: 28px;
}

.post time {
    font-size: 1.4rem;
    font-weight: 700;
}

.post .post-news li {
    margin-bottom: 16px;
}

.post .page-link {
    text-align: right;
    text-decoration: underline;
    margin-top: 40px;
    display: block;
    width: fit-content;
    margin-left: auto;
}

.post .page-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

.post .post-tech {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.post .post-tech li {
    display: flex;
    flex-direction: column;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

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

/* 会社概要 */

.company table {
    border-top: 4px solid #cccccc;
    border-bottom: 4px solid #cccccc;
}

.company table tr {
    border: none;
    border-bottom: 1px solid #cccccc;
}

.company table td {
    border: none;
}

@media (max-width: 768px) {
    .company table {
        width: 100%;
    }
    .company .wp-block-image {
        margin-bottom: 20px;
        text-align: center;
    }
}
