@charset "utf-8";

/* ==========================================================
   responsive.css
   WordPressテーマ共通 + HOME静的実装レスポンシブを統合
   - Header / Footer / Mobile Menu は旧テーマを継承
   - HOME各セクションは静的最新版を継承
   - HOME完成時の20px左右余白を優先し、旧 .container の32px/24px指定は採用しない
   ========================================================== */

/* ==============================
   Tablet / Mobile : 900px以下
============================== */
@media screen and (max-width: 900px) {
    :root {
        --header-height: 70px;
    }

    /* Header */
    .site-header-inner {
        min-height: var(--header-height);
        gap: 20px;
    }

    .site-logo img {
        max-height: 46px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1100;
        flex-shrink: 0;
    }

    .global-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(84vw, 360px);
        height: 100vh;
        height: 100dvh;
        padding: 100px 32px 40px;
        background: #fff;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
        transform: translateX(100%);
        visibility: hidden;
        transition: none;
    }

    .global-nav.is-open {
        transform: translateX(0);
        visibility: visible;
    }
    /* ユーザー操作時のみアニメーション */
.global-nav.is-animated {
    transition:
        transform 0.3s ease,
        visibility 0.3s ease;
}

    .global-nav-list {
        display: block;
    }

    .global-nav-list li {
        border-bottom: 1px solid var(--color-border);
    }

    .global-nav-list a {
        padding: 16px 0;
        font-size: 1rem;
    }

    /* Footer */
    .site-footer-inner {
        display: block;
        max-width: none;
        padding-top: 36px;
        padding-bottom: 20px;
    }

    .footer-logo {
        margin-bottom: 16px;
    }

    .footer-company {
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
    }

    .footer-company-info {
        margin-bottom: 16px;
    }

    .footer-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 0 24px;
    }

    .footer-nav-list a {
        display: block;
        padding: 10px 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .copyright {
        text-align: center;
    }

    .page-top {
        align-self: flex-end;
    }

    /* ABOUT */
    .about {
        grid-template-columns: 1fr;
    }

    .about-body {
        padding: 56px 20px 40px;
    }

    .about-photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .about-photo::after {
        background: none;
    }

    /* BUSINESS */
    .business-inner {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .business .section-label {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-top: 0;
    }

    .business .section-label::after,
    .business .section-label-num::before {
        display: none;
    }

    .business .section-label-num {
        margin-top: 0;
        padding-top: 0;
        font-size: 1.25rem;
    }

    .business-list {
        gap: 14px;
    }

    .business-card-body {
        padding: 12px 14px 16px;
        column-gap: 10px;
    }

    .business-card-num {
        font-size: 1.75rem;
    }

    .business-card-title {
        font-size: 1.2rem;
    }

    /* WORKS */
    .works-inner {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .works .section-label {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-top: 0;
    }

    .works .section-label::after,
    .works .section-label-num::before {
        display: none;
    }

    .works .section-label-num {
        margin-top: 0;
        padding-top: 0;
        font-size: 1.25rem;
    }

    .works-list {
        gap: 14px;
    }

    /* QUALITY */
    .quality {
        grid-template-columns: 1fr;
    }

    .quality-body {
        padding: 48px 20px 36px;
    }

    .quality-photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .quality-photo::after {
        background: none;
    }

    /* RECRUIT */
    .recruit {
        min-height: 240px;
    }

    .recruit::after {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, .45) 0%,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, .82) 100%
        );
    }

    .recruit-inner {
        padding-block: 32px;
    }

    .recruit-text {
        width: min(100%, 380px);
    }

    /* NEWS */
    .news-inner {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .news .section-label {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-top: 0;
    }

    .news .section-label::after,
    .news .section-label-num::before {
        display: none;
    }

    .news .section-label-num {
        margin-top: 0;
        padding-top: 0;
        font-size: 1.25rem;
    }

    /* CONTACT CTA */
    .contact-cta-inner {
        gap: 20px 24px;
        padding-left: 0;
    }

    .contact-cta-btn {
        padding: 14px 20px;
        font-size: .9375rem;
    }
}

/* ==============================
   Smartphone : 767px以下
============================== */
@media screen and (max-width: 767px) {
    .visible-xs {
        display: revert !important;
    }

    .hidden-xs {
        display: none !important;
    }
    
table.table-xs,
    table.table-xs tbody,
    table.table-xs tr,
    table.table-xs th,
    table.table-xs td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    body {
        font-size: 15px;
    }

    /* FV */
    .fv {
        min-height: 440px;
    }

    .fv::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 80%);
    }

    .fv-inner {
        padding-block: 48px;
    }

    .fv-content {
        padding-left: 0;
    }

    .fv-title {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    .fv-lead {
        margin-top: 16px;
    }

    .fv-side {
        display: none;
    }

    /* ABOUT */
    .about-body {
        grid-template-columns: 1fr;
        row-gap: 20px;
        padding: 48px 20px 32px;
    }

    .about-body .section-label {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-top: 0;
    }

    .about-body .section-label::after {
        display: none;
    }

    .section-label-num {
        margin-top: 0;
        padding-top: 0;
        font-size: 1.25rem;
    }

    .section-label-num::before {
        display: none;
    }

    .about-photo {
        aspect-ratio: 4 / 3;
    }

    .btn-outline {
        display: flex;
        min-width: 0;
    }

    /* BUSINESS */
    .business {
        padding: 48px 0;
    }

    .business-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }

    .business-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .business-card-photo {
        aspect-ratio: 2 / 1;
    }

    .business-card-body {
        padding: 16px 18px 20px;
        column-gap: 14px;
    }

    .business-card-num {
        font-size: 2rem;
    }

    .business-card-title {
        font-size: 1.25rem;
    }

    .business-card-text {
        font-size: .875rem;
    }

    .business-card-link {
        padding-block: 6px;
    }

    /* BUSINESS アニメーション：1列表示のため時間差なし（各カードが画面に入った時に個別表示） */
    .business-card.fade-up:nth-child(n) {
        --fade-delay: 0s;
    }

    /* WORKS */
    .works {
        padding: 48px 0;
    }

    .works-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }

    .works-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .works-sub {
        font-size: .8125rem;
    }

    .works-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .works-photo {
        aspect-ratio: 16 / 9;
    }

    .works-more {
        padding-block: 6px;
    }

    /* QUALITY */
    .quality-body {
        grid-template-columns: 1fr;
        row-gap: 20px;
        padding: 40px 20px 32px;
    }

    .quality .section-label {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-top: 0;
    }

    .quality .section-label::after,
    .quality .section-label-num::before {
        display: none;
    }

    .quality .section-label-num {
        margin-top: 0;
        padding-top: 0;
        font-size: 1.25rem;
    }

    .quality-photo {
        aspect-ratio: 4 / 3;
    }

    /* RECRUIT */
    .recruit {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        overflow: visible;
        background: #fff;
    }

    .recruit::after {
        display: none;
    }

    .recruit-inner {
        display: contents;
    }

    .recruit .section-label {
        order: 1;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 36px 20px 20px;
    }

    .recruit .section-label::after,
    .recruit .section-label-num::before {
        display: none;
    }

    .recruit .section-label-num {
        margin-top: 0;
        padding-top: 0;
        font-size: 1.25rem;
    }

    .recruit-image {
        order: 2;
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .recruit-text {
        order: 3;
        width: auto;
        margin: 0;
        padding: 24px 20px 40px;
    }

    .recruit-title {
        font-size: clamp(1.375rem, 6vw, 1.75rem);
    }

    .recruit-lead {
        margin: 12px 0 20px;
    }

    /* NEWS */
    .news {
        padding: 48px 0;
        background: #f5f8f5;
    }

    .news-main {
        display: flex;
        flex-direction: column;
    }

    .news-head {
        display: contents;
    }

    .news-title {
        order: 1;
        margin-bottom: 16px;
    }

    .news-list {
        order: 2;
    }

    .news-more {
        order: 3;
        align-self: flex-start;
        margin-top: 20px;
        padding-block: 6px;
    }

    .news-link {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "date cat"
            "title title";
        column-gap: 14px;
        row-gap: 6px;
        padding: 16px 4px;
    }

    .news-cat {
        justify-self: start;
        min-width: 0;
    }

    .news-item-title {
        font-size: .9375rem;
    }

    /* CONTACT CTA */
    .contact-cta {
        min-height: 0;
    }

    .contact-cta::after {
        background: linear-gradient(
            180deg,
            rgba(11, 36, 64, .68) 0%,
            rgba(14, 58, 86, .56) 100%
        );
    }

    .contact-cta-inner {
        flex-direction: column;
        align-items: stretch;
        padding-block: 40px;
    }

    .contact-cta-message {
        font-size: clamp(1.125rem, 5vw, 1.375rem);
    }

    .contact-cta-btn {
        justify-content: center;
        min-height: 56px;
        padding: 14px 20px;
    }

    .contact-cta-btn::after {
        margin-left: auto;
    }

    .contact-cta-icon {
        margin-right: -4px;
    }
    
}

/* ==============================
   Small smartphone : 600px以下
   Header / Footer のみ旧テーマ調整を継承
============================== */
@media screen and (max-width: 600px) {
    .site-logo img {
        max-width: 180px;
        max-height: 42px;
    }

    .global-nav {
        width: 86vw;
        padding-right: 24px;
        padding-left: 24px;
    }

    .site-footer-inner {
        padding-top: 32px;
        padding-bottom: 16px;
    }

    .footer-company-info p {
        font-size: 0.8125rem;
    }



    .copyright {
        padding: 14px 0 4px;
        font-size: 0.7rem;
    }

    .page-top {
        padding: 8px 0 16px;
    }
}
