@charset "UTF-8";

/* =============================================================================
   会社紹介ページ専用CSS（ページID: 380）

   ※ コンタクトセクション（.top_contact_* 等）はトップページと共通のため
     css/global.css で管理しています。
   ============================================================================= */


/* =============================================================================
   企業の想い（thought）
   ============================================================================= */

.post_content .thought h3 {
    margin-bottom: 16px;
}

@media screen and (min-width: 960px) {
    .pc-py-80.thought {
        position: relative;
        padding-top: 180px !important;
        padding-bottom: 0 !important;
    }

    /* NOTE: 本番公開時は URL を rocksss.xsrv.jp/kani/... に変更してください */
    .thought::after {
        content: "";
        background-image: url(http://localhost:8888/tiplushd/wp-content/uploads/2025/11/thought_bg.png);
        width: 100%;
        height: 2000px;
        position: absolute;
        top: -25px;
        left: 0;
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .thought_logo {
        transform: translateX(-100px);
    }
}


/* =============================================================================
   代表からの挨拶（aisatsu）
   ============================================================================= */

.is-style-card.wp-block-media-text {
    background: inherit;
}

.wp-block-media-text__content p {
    word-break: break-word;
}

.post_content h3.sp_only {
    margin: 24px 0 12px;
}

/* 写真スライダー（左方向スクロール） */
.slider-wrapper {
    display: flex;
    width: 100%;
}

.slider {
    display: flex;
    width: 2976px;
    animation: scroll-left 25s infinite linear;
}

.post_content .slide {
    list-style: none;
    padding-left: 32px;
    flex-shrink: 0;
    width: 496px;
    display: grid;
    place-items: center;
}

.slide img {
    display: block;
    width: 464px;
    height: 320px;
}

@keyframes scroll-left {
    from { transform: translateX(-1488px); }
    to   { transform: translateX(-4464px); }
}

@media screen and (max-width: 595px) {
    .sp-py-40.aisatsu {
        padding-bottom: 0 !important;
    }

    .slider {
        width: 1584px;
        animation: scroll-left-sp 25s infinite linear;
    }

    .post_content .slide {
        padding-left: 16px;
        width: 248px;
    }

    .slide img {
        width: 248px;
        height: 160px;
    }

    @keyframes scroll-left-sp {
        from { transform: translateX(-744px); }
        to   { transform: translateX(-2232px); }
    }
}


/* =============================================================================
   取り組み（attempt）
   ============================================================================= */

.attempt::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 500px;
    top: -250px;
    background-color: #EBF6FC;
    z-index: -1;
}

.attempt .l-article {
    max-width: 1080px;
}

.attempt .l-article h3,
.attempt .l-article .swell-block-columns {
    padding-left: 1em;
}

.attempt .l-article .wp-block-image.pc_only {
    text-align: right;
}

.attempt .l-article .sdgs {
    padding-left: 0;
}

.sdgs .swell-block-columns__inner {
    margin-left: 0;
}

.attempt .sdgs.swell-block-columns .swell-block-column {
    text-align: left;
    width: 72px;
    height: 72px;
    margin: 0 20px 0 0;
    padding: 0;
}

.sdgs .swell-block-columns .swell-block-column figure {
    width: 100%;
}

@media screen and (min-width: 960px) {
    .attempt_card h3.is-style-section_ttl {
        border-bottom: 1px solid #333333;
        margin-bottom: 1em;
        padding-bottom: 1em;
    }
}

@media screen and (max-width: 959px) {
    .attempt h2 {
        margin-bottom: 15px !important;
    }

    .attempt p {
        word-break: break-word;
    }

    .attempt_card {
        background-color: #ffffff;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        border-radius: 11px;
        padding: 0 0 21px;
        overflow: hidden;
    }

    .attempt_card .swell-block-columns .swell-block-column {
        margin: 0;
        width: 100%;
    }

    .attempt_card h3 {
        margin: 0 28px;
        padding-left: 0 !important;
    }

    .attempt_card .swell-block-columns {
        margin: 0 30px;
    }

    .attempt .l-article .sdgs {
        margin: 0;
    }

    .attempt .sdgs.swell-block-columns .swell-block-column {
        margin: 0 12px 0 0;
        width: 60px;
        height: 60px;
    }
}


/* =============================================================================
   会社概要 / グループ企業（about）
   ============================================================================= */

.about .l-container {
    background-color: #fff;
    border-radius: 24px;
    padding: 48px;
    width: calc(100% - 180px);
    margin: 0 auto;
}

.about .wp-block-button__link {
    font-size: 1em;
    padding: 10px 22px;
}

@media screen and (max-width: 1200px) {
    .post_content h3.long_text {
        font-size: 1.1em;
        line-height: 1.9em;
    }
}

.about table tr th,
.about table tr td {
    border-top: none;
    border-bottom: 1px solid #EBF6FC;
}

@media screen and (max-width: 959px) {
    .about .l-container {
        width: calc(100% - 20px);
        padding: 24px 18px 72px;
    }

    .about .wp-block-table table th,
    .about .wp-block-table table td {
        display: block;
        width: 100%;
        max-width: 1000px;
    }

    .about .wp-block-table table th {
        border: none;
    }
}

/* 矢印付きリンクボタン */
.btn_link {
    position: relative;
}

.about .btn_link:hover {
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.about .btn_link:hover::before {
    transform: translateX(4px) translateY(-50%);
}

.btn_link::before {
    position: absolute;
    content: "→";
    color: #fff;
    font-size: 8px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    background-color: #3BA6D7;
    border-radius: 50%;
    padding: 0 4px;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}


/* =============================================================================
   グループ企業（group）
   ============================================================================= */

.post_content .group_h3.is-style-section_ttl {
    font-family: "Noto Sans JP", serif;
    width: 100%;
    font-size: 32px;
    padding: 12px 0;
    text-align: center;
    margin: 0 auto 40px;
}

.group .wp-block-button__link {
    background-color: transparent;
    color: #333;
}

.more a {
    border-radius: 24px;
}

@media screen and (max-width: 959px) {
    .post_content .group_h3.is-style-section_ttl {
        font-size: 24px;
        width: calc(100vw - 20px);
        margin: 0 calc(50% - 50vw + 10px) 30px;
    }

    .group h3.wp-block-heading {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .group .wp-block-buttons {
        gap: 1em;
    }
}
