@charset "UTF-8";

/*
Theme Name: テックホールディングス
Description: 2025-11-14
Version: 1.0.0
*/


:root {
    /* --- 基本のカラーパレット --- */
    --color-red: #E50012;
    --color-blue: #268FCF;
    --color-yellow-green: #CEDA00;
    --color-dark-green: #245C44;
    --color-dark-blue: #00469B;
    --color-white: #fff;
    --color-black: #000;
    
    /* --- (A) 役割ベースの変数を定義 --- */
    /* デフォルトは「赤」のテーマに設定 トップページとPage ID 6: TECH JAPAN*/
    --primary-color: var(--color-red);
    --primary-color-light: rgba(229, 0, 18, 0.1); /* 赤の薄い版 */
}

/* Page ID 8: TECH JAPAN LOGI */
.page-id-8 {
    --primary-color: var(--color-blue);
    --primary-color-light: rgba(38, 143, 207, 0.15); /* 青の薄い版 */
}

/* Page ID 10: TECH JAPAN ENGINEERING */
.page-id-10 {
    --primary-color: var(--color-yellow-green);
    --primary-color-light: rgba(206, 218, 0, 0.1);
}

/* Page ID 12: TECH JAPAN TOOL */
.page-id-12 {
    --primary-color: var(--color-dark-blue);
    --primary-color-light: rgba(0, 70, 155, 0.1);

}

/* Page ID 14: GRAIN WORKS */
.page-id-14 {
    --primary-color: var(--color-dark-green);
    --primary-color-light: rgba(36, 92, 68, 0.1);
}


/* --- ヘッダーの基本スタイル（全ページ共通） --- */
.site,
#page {
    position: relative;
    z-index: 1;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
body.admin-bar header {/* ログインしていて管理バーが表示されている場合のみ適用 */
    top: 32px; /* 管理バーの高さ分だけ下に下げる */
}

.header-wrap {
    max-width: 1340px;
    width: 90%;
    margin: 0 auto;
    padding: 58px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    width: auto;
    height: 40px;
}

ul.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

ul.header-nav li a {
    font-size: 1.6rem;
    font-weight: 700;
}
ul.header-nav li.nav-contact a {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 24px;
    border-radius: 9999px;
}

/* ジャパンエンジニアリングのテキストは黒 */
body.page-id-10 ul.header-nav li.nav-contact a {
background-color: var(--primary-color);
color: #000;
}

.nav-icon-link {
    display: block; 
    height: 20px;
    width: auto;
}

/* ========================================
   Header Dropdown Menu
======================================== */

.has-submenu {
    position: relative;
}

/* サブメニューの基本スタイル（通常時は非表示） */
.submenu {
    z-index: 101;
    position: absolute;
    
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px 0;
    min-width: 200px;
    
    /* ★★★ 通常時は非表示にする ★★★ */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

/* サブメニュー内のスタイル */
.submenu li {
    display: block;
}
.submenu li a {
    display: block;
    padding: 8px 20px;
    white-space: nowrap;
    color: #333;
    text-decoration: none;
}

/* ヘッダー専用スタイル */
.header-nav .submenu {
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px);
}
.header-nav .submenu li:not(:last-child) {
    border-bottom: 1px solid #666; 
}
.header-nav .submenu li a {
    padding: 12px 20px; 
}
.submenu li a:hover {
    background-color: #f8f8f8;
}

.header-nav .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.submenu-toggle {
    display: none;
}
/* フッター専用スタイル */
.footer-nav .submenu {
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -10px);
    margin-bottom: 5px;
}
.footer-nav .submenu li:not(:last-child) {
    border-bottom: 1px solid #666; 
}
.footer-nav .submenu li a {
    padding: 12px 20px; 
}
.footer-nav .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (max-width:970px) {
    ul.header-nav {
        display: none;
    }
    .header-wrap {
        padding: 20px 0;
    }
}

.main-content {
    position: relative;
    z-index: 1; /* ヘッダーよりは後ろ */
}

/* キービジュアル */
.kv-top {
    position: relative;
    z-index: 1;
    max-width: 1328px;
    width: 90%;
    margin: 30px auto 88px;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
}
.kv-top img {
    margin-bottom: 30px;
}
.kv-top__text h2 {
    font-size: clamp(2.2rem, 1.948vw + 1.413rem, 4rem);
    font-weight: bold;
}
.kv-top__text p {
    font-size: clamp(1.8rem, 1.299vw + 1.275rem, 3rem);
    font-weight: bold;
    color: #E50012;
}

.content-wrap {
    max-width: 1140px;
    margin: 0 auto;
    width: 87%;
}

@media (max-width: 768px) {
    .kv-top {
        width: 100%;
        margin: 0 auto 45px;
    }

    .kv-top__image {
        height: 300px;
        overflow: hidden;
    }

    .kv-top__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .kv-top__text {
        padding: 30px 0 0;
        text-align: center;
    }
}


/* ========================================
   Wavy Background (共通スタイル)
======================================== */

/* 波形背景を適用するセクションの基本設定 */
.bg-wavy-container {
    position: relative;
    /* 上下の余白は各セクションで個別に調整できるように、ここでは設定しないか、最小限にする */
    /* padding: 150px 0; */
}

/* 波形画像の共通スタイル */
.bg-wavy-container::before,
.bg-wavy-container::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 上側の波形画像 */
.bg-wavy-container::before {
    top: 0;
    height: 150px;
    /* height: 100px; */
    background-image: url(images/wave-top.svg);
    background-size: 100% auto;
    background-position: center top;
}

/* 下側の波形画像 */
.bg-wavy-container::after {
    bottom: 0;
    height: 150px;
    /* height: 100px; */
    background-image: url(images/wave-bottom.svg);
    background-size: 100% auto;
    background-position: center bottom;
}

/* 波形背景を持つセクション内のコンテンツラッパーの共通設定 */
.bg-wavy-container .content-wrap {
    position: relative; /* 背景の上にコンテンツが乗るように */
}

/* ========================================
   セクション　ABOUT
======================================== */
.about-wrapper {
    position: relative;
    background-color: #f2f2f2;
}

.section-about {
    position: relative;
    /* overflow: hidden; */
    padding: 250px 0;
    clip-path: inset(0 0 -200px 0);
}
.section-about .content-wrap {
    position: relative;
    z-index: 2;
    margin-top: -230px;
    margin-bottom: -280px;
}
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-chare {
    margin-bottom: 30px;
}
.subtitle {
    display: flex;
    align-items: center;
    gap: 15px;

    font-size: clamp(2.6rem, 0.523vw + 2.404rem, 3rem);
    font-weight: bold;
    font-family: "Inter", sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}
.subtitle::before {
    content: "";
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: url(images/title_icon.svg) no-repeat left center / contain;
}

.about-text {
    flex: 1;
    transform: translateY(-100px);
}

.content-wrap--about p {
    font-size: clamp(1.5rem, 0.678vw + 1.228rem, 2rem);
    font-weight: bold;
    margin-bottom: 2em;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-character;
}
.about-images {
    flex-basis: 520px;
    flex-shrink: 0;
    transform: translateX(40px);
}

.about-images img {
    border-radius: 10px;
    margin-bottom: 40px;
}

.about-images img.about01 {
    /* margin-left: 140px; */
    margin-left: 37%;
}
.about-images img.about02 {
    /* margin-left: 70px; */
    margin-left: 13%;
}
.about-images img.about03 {
    margin-bottom: 0;
}

@media (max-width:970px) {
    .section-about {
        padding: 0 0 50px;
        clip-path: none;
    }

    .content-wrap {
        margin: 0 auto;
    }

    .section-about .content-wrap {
        margin-top: 0;
        margin-bottom: 0;
    }
    .content-wrap--about {
        width: 100%;
        transform: none;
    }
    .about-content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 45px;
    }
    .subtitle {
        gap: 10px;
    }
    .subtitle::before {
        width: 25px;
        height: 25px;
    }
    .about-text {
        width: 87%;
        max-width: 500px;
        transform: none;
        margin-top: -10px;
    }

    /* スマホ写真配置変更 */
    .about-images {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 15px;

        position: relative;

        height: auto !important;
        min-height: 0 !important;
        flex: none !important;

        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible;

        padding-bottom: 170px !important;
        margin-bottom: 0 !important; 
        grid-template-rows: auto;
    }

    /* 画像共通：3枚とも同じサイズに設定 */
    .about-images img {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 10px;
        object-fit: cover;
        position: relative;
    }

    /* 1枚目（左上）：右に少し隙間を作る */
    .about-images img.about01 {
        z-index: 1;
    }

    /* 2枚目（右上） */
    .about-images img.about02 {
        z-index: 1;
        margin-top: 25px !important;
    }

    /* 3枚目（真ん中下） */
    .about-images img.about03 {
        grid-column: auto;
        position: absolute !important;
        z-index: 2;
        
        left: 50%;
        transform: translateX(-50%);
        
        width: 60% !important;
        
        top: 45%;
    }

    .about-content .btn-wrap {
        text-align: center;
    }
    .icon-chare {
        width: 94px;
        height: auto;
        margin-bottom: 25px;
    }
}

/* タブレットサイズ（例: 768px 〜 970px）だけの微調整 */
@media (min-width: 768px) and (max-width: 970px) {
    .about-images {
        padding-bottom: 400px !important;
    }
    
    .about-images img.about03 {
        top: 40%;
    }
}

/* ========================================
   セクション　サービス　service
======================================== */

.section-service {
    margin-top: 30px;
}
.section-description {
    font-size: clamp(1.5rem, 0.678vw + 1.228rem, 2rem);
    font-weight: bold;
    margin-bottom: 2em;
    line-height: 1.8;
}
/* --- PCのスタイル (デフォルト) --- */
.service-tabs__list {
    display: flex;
}

.service-tabs-slider .swiper-slide {
    flex: 1;
    display: flex;
    height: 130px;
}
.service-tabs__btn {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: none;
    border-radius: 30px 30px 0 0;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    color: #fff;
}
.service-tabs__icon svg {
    /* SVGの塗りつぶし色を、親要素の文字色(color)と連動させる */
    fill: currentColor;
    width: 32px;
    height: 32px;
}

.service-tabs__text-wrap {
    min-height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 0.96vw + 0.84rem, 1.8rem);
    font-weight: bold;
    line-height: 1.4;
}

/* 非アクティブ時のスタイル */
.service-tab--aircon .service-tabs__btn { background-color: #E50012; color: #fff; }
.service-tab--delivery .service-tabs__btn { background-color: #268FCF; color: #fff; }
.service-tab--electric .service-tabs__btn { background-color: #CEDA00; color: #fff; }
.service-tab--waterheater .service-tabs__btn { background-color: #00469B; color: #fff; }
.service-tab--car .service-tabs__btn { background-color: #007F41; color: #fff; }

/* アクティブ時の色を個別に指定 */
.service-tabs__btn.is-active {
    /* color: #fff; */
    opacity: 0.5;
}
/* .service-tab--electric .service-tabs__btn.is-active { color: #757575; } */

.service-contents .swiper-slide {
    display: none;
}
.service-contents .swiper-slide.is-active {
    display: block;
}

/* コンテンツパネルの枠線色の指定 */
.service-contents__panel {
    border-width: 2px;
    border-style: solid;
    border-radius: 0 0 30px 30px;
    height: 644px;
}

.service-panel--aircon { border-color: #E50012; }
.service-panel--delivery { border-color: #268FCF; }
.service-panel--electric { border-color: #CEDA00; }
.service-panel--waterheater { border-color: #00469B; }
.service-panel--car { border-color: #007F41; }



.panel-content-wrap {
    display: flex;
    justify-content: space-between;
    gap: 30px; 
    height: 100%;
    padding: 80px;
}

/* 左側のテキストエリアのスタイル */
.service-text-area {
    flex-basis: 60%;
}

/* 右側の画像エリアのスタイル */
.service-images {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 画像が親要素からはみ出ないようにするレスポンシブ対応 */
.service-images img {
    max-width: 100%;
    height: auto;
    display: block; /* 画像下の余分な余白を消す */
    margin-left: auto; /* 右揃えにする */
}
.sp-service-img {
    display: none !important;
}
.pc-service-img {
    display: block;
}
.btn-wrap--sp { display: none; }
.btn-wrap--pc { display: block; }

.service-text__title01 {
    font-size: clamp(2rem, 1.626vw + 1.346rem, 3.2rem);
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 10px;
}
.service-text__title02 {
    font-size: clamp(1.5rem, 0.949vw + 1.119rem, 2.2rem);
    font-weight: bold;
    margin-bottom: 10px;
}
.sv-logo {
    margin-bottom: 112px;
}
dl.service-detai-list {
    display: flex;
    align-items: flex-start;
}
dl.service-detai-list dt {
    flex-basis: 150px;
    flex-shrink: 0;
}
dl.service-detai-list dt span {
    font-size: clamp(1.2rem, 0.96vw + 0.84rem, 1.8rem);
    font-weight: bold;
    border: 1px solid #000;
    border-radius: 9999px;
    padding: 0.25em 0.8em;
}
dl.service-detai-list dd {
    flex: 1;
    font-size: clamp(1.2rem, 0.96vw + 0.84rem, 1.8rem);
    font-weight: bold;
    line-height: 1.8;
}
.service-images .btn-wrap {
    margin-top: auto;
    margin-left: auto;
}

.scroll-indicator {
    display: none;
}

@media (max-width:1024px) {
    dl.service-detai-list {
        display: block;
        margin-bottom: 1em;
    }
    dl.service-detai-list dt {
        margin-bottom: 0.5em;
    }
}
@media (min-width: 769px) {
    .service-tabs-slider.swiper-initialized .swiper-wrapper,
    .service-contents-slider.swiper-initialized .swiper-wrapper {
        transform: none !important; 
    }
}

@media (max-width: 768px) {

    .scroll-indicator {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-bottom: 20px;
    }
    .scroll-indicator span {
        font-size: 1.8rem;
        font-weight: bold;
        color: var(--primary-color);
        display: block;
        padding-right: 10px;
    }
    .scroll-indicator img {
        display: block;
        width: 100%;
        height: auto;
        transform: translateY(-6px);
    }

    .service-slider-wrap {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        overflow: hidden;
    }
    .service-tabs-slider,
    .service-contents-slider {
        overflow: visible;
        margin: 0 !important;
    }
    .service-tabs-slider .swiper-slide,
    .service-contents-slider .swiper-slide {
        flex: none; 
        width: 80% !important; 
    }
    .service-tabs-slider .swiper-slide {
        height: auto;
    }
    .service-contents .swiper-slide {
        display: block !important;
    }
    .service-contents-slider {
        margin-top: -2px !important;
    }

    /* --- タブのスタイル --- */
    .service-tabs__list {
        border-bottom: none;
        /* justify-content: flex-start; */
    }
    .service-tabs__btn {
        border-radius: 30px 30px 0 0;
        white-space: nowrap;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0.5em;
        gap: 10px;
        height: 58px;
    }
    .service-tabs__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }
    .service-tabs__icon svg {
        vertical-align: middle;
        width: 28px;
        height: auto;
    }
    .service-tabs__text-wrap {
        line-height: 1.2;
        display: block;
        min-height: initial;
        width: auto;
    }

    .service-tabs__btn.is-active {
        color: #fff;
        opacity: 1;
    }


    /* --- コンテンツパネルのスタイル --- */
    .service-contents__panel {
        display: flex;
        height: auto;
        min-height: 46vh;
    }
    .panel-content-wrap {
        display: flex;
        width: 100%;
        padding: 20px;
    }
    .service-text-area {
        display: flex;
        flex-direction: column;
        width: 100%;
        flex-grow: 1;
    }
    .btn-wrap--sp {
        display: block;
        text-align: center;
        margin-top: auto;
    }
    .service-images {
        display: none;
    }
    .btn-wrap--pc { display: none; }

    .sv-logo {
        margin-bottom: 20px;
    }
    .sv-logo img {
        width: auto;
        height: 35px;
    }

    .service-images .btn-wrap {
        margin-top: 20px;
        margin-left: 0;
    }

    .sp-service-img {
        display: block !important;
        max-width: 100%;
        height: 210px;
        object-fit: contain;
    }
    .service-text-area .btn-wrap {
        text-align: center;
    }

    /* 個別指定 */
    #panel-2  .sp-service-img {
        margin-bottom: 10px;
    }
    #panel-3 .sp-service-img {
        margin-bottom: 10px;
    }
    #panel-4 .sp-service-img {
        margin-bottom: 10px;
    }
    #panel-1 .service-text__title01 {
        font-size: 1.9rem;
    }
    #panel-2  .service-text__title01 {
        font-size: 1.8rem;
    }
    #panel-3 .service-text__title02 {
        font-size: 1.3rem;
    }
    #panel-4 .service-text__title01 {
        font-size: 1.9rem;
    }
    .page-id-14 .image-in-circle img {
        object-position: 174% center;
        transform: scale(1.3) translateY(-30px); 
    }
}

/* ============================================= */
/*  SP: レスポンシブ設定     */
/* ============================================= */
.sp-nav,
.hamburger {
    display: none;
}

@media (max-width: 970px) {

    /* SP用のヘッダーとハンバーガーを表示 */
    .hamburger {
        display: block;
    }

    /* ハンバーガーボタンのスタイル */
    .hamburger {
        position: fixed;
        /* ★★★ 位置をヘッダーバーの高さに合わせて微調整 ★★★ */
        top: 18px;
        right: 28px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    body.admin-bar .hamburger { /* ログインしていて管理バーが表示されている場合のみ適用 */
        top: 50px; /* 元のtop(18px) + 管理バーの高さ(32px) */
    }
    .hamburger__line {
        display: block;
        width: 40px;
        height: 2px;
        background-color: var(--primary-color);
        position: absolute;
        left: 8px;
        transition: transform 0.3s, opacity 0.3s;
    }
    .hamburger__line:nth-child(1) { top: 10px; }
    .hamburger__line:nth-child(2) { top: 19px; }
    .hamburger__line:nth-child(3) { top: 28px; }

    /* ハンバーガーメニューが開いた時のスタイル (JSでis-openクラスを付与) */
    .hamburger.is-open .hamburger__line:nth-child(1) {
        top: 19px;
        transform: rotate(45deg);
    }
    .hamburger.is-open .hamburger__line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-open .hamburger__line:nth-child(3) {
        top: 19px;
        transform: rotate(-45deg);
    }
    /* SP用 全画面ナビゲーション */
    .sp-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
        z-index: 999;
        text-align: left;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sp-nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .header-sp {
        width: 90%;
        padding: 20px 20px 20px 19px;
    }
    body.admin-bar .header-sp {
        margin-top: 32px;
    }
    .sp-nav ul {
        margin-bottom: 38px;
        border-top: 1px solid #000;
    }
    .sp-nav ul li {
        border-bottom: 1px solid #000;
    }
    .sp-nav ul li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        font-size: 1.6rem;
        font-weight: bold;
        border-bottom: none;
    }
    .sp-nav .btn-wrap {
        padding: 0 40px;
        margin: 0 auto 18px;
        text-align: center;
    }

     .sp-nav .btn-more span {
        margin-right: auto;
     }
    /* --- ::beforeでアイコンを追加する領域を作成 --- */
    .sp-nav .btn-more::before {
        content: '';
        display: block;
        width: 24px;  /* アイコンのサイズ */
        height: 20px; /* アイコンのサイズ */
        flex-shrink: 0; /* 縮まないように */
    }
    .sp-nav__footer {
        padding: 20px 30px;
        text-align: center;
        font-size: 1.3rem;
        font-weight: 700;
    }

/* ここに追加（グループ会社のアコーディオンメニュー） */
    .sp-nav .has-submenu > a,
    .footer-nav .has-submenu > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .sp-nav .has-submenu > a .btn-more__arrow,
    .footer-nav .has-submenu > a .btn-more__arrow {
        display: none;
    }

    /* アコーディオンのスタイル */
    .sp-nav .has-submenu .submenu-main-row,
    .footer-nav .has-submenu .submenu-main-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-right: 20px;
        cursor: pointer;
    }

    /* >>アイコンを非表示にするセレクタも修正 */
    .sp-nav .has-submenu a .btn-more__arrow,
    .footer-nav .has-submenu a .btn-more__arrow {
        display: none;
    }

    /* 開閉ボタンのスタイル */
    .submenu-toggle {
        display: block;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        border: 1px solid #000;
        border-radius: 50%;
        background-color: transparent;
        position: relative;
        pointer-events: none;
    }

    /* プラス・マイナス記号のスタイルを再定義 */
    .submenu-toggle::before,
    .submenu-toggle::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 2px;
        background-color: #000; /* ★色を明示的に指定 */
        transform: translate(-50%, -50%);
        transition: transform 0.3s;
    }
    .submenu-toggle::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }
    .submenu-toggle[aria-expanded="true"]::after {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    .sp-nav .submenu,
    .footer-nav .submenu {
        position: static !important;
        display: none; /* JSで切り替えるので、最初は非表示 */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        min-width: auto !important;
        padding: 0 0 0 40px !important; 
        background-color: rgba(0,0,0,0.05);
    }

    .has-submenu > ul {
        margin-bottom: 0;
    }

    /* JSで .is-open クラスが付いたら表示する */
    .sp-nav .submenu.is-open,
    .footer-nav .submenu.is-open {
        display: block;
        margin-bottom: 0;
    }
    
    /* サブメニュー内のスタイル */
    .sp-nav .submenu li,
    .footer-nav .submenu li {
        border-bottom: 1px solid #000;
    }
    .sp-nav .submenu li:last-child,
    .footer-nav .submenu li:last-child {
        border-bottom: none;
    }
    .sp-nav .submenu li a,
    .footer-nav .submenu li a {
        padding: 20px 20px 20px 0;
    }

    .has-submenu {
        position: static;
    }
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
    }

    /* スクリーンリーダー用のテキストを隠す */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

}

/* ========================================
   共通
======================================== */

/* ボタン */
.btn-more {
    /* --- 基本設定 --- */
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;

    /* --- サイズと余白 --- */
    width: 320px;
    /* height: 70px; */

    /* --- デザイン --- */
    background-color: var(--primary-color);
    border-radius: 9999px;
    border: 1px solid var(--primary-color);
    /* --- テキストのスタイル --- */
    color: #fff;
    font-size: clamp(1.8rem, 0.578vw + 1.568rem, 2.4rem);
    font-weight: bold;
    padding: 14px 38px;

    /* --- アニメーション --- */
    transition: background-color 0.3s, color 0.3s;
}

/* ジャパンエンジニアリングのテキストは黒 */
body.page-id-10 .btn-more {
    color: #000;
}

@media (max-width:768px) {
    .btn-more {
        max-width: 338px;
        width: 100%;
        padding: 12px 30px;
    }
}

.btn-more:hover {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* SVGアイコンのスタイル */
.btn-more .btn-more__arrow {
    width: 30px;
    height: 25px;
    transition: transform 0.3s ease;
}
@media (max-width:768px) {
    .btn-more .btn-more__arrow {
        width: 24px;
        height: 20px;
    }
}

.service-panel--delivery .btn-more {
    background-color: #268FCF;
    border-color: #268FCF;
}
.service-panel--delivery .btn-more:hover {
    background-color: #fff;
    color: #268FCF;
}
.service-panel--electric .btn-more {
    background-color:#CEDA00;
    border-color: #CEDA00;
}
.service-panel--electric .btn-more:hover {
    background-color: #fff;
    color: #CEDA00;
}
.service-panel--waterheater .btn-more {
    background-color:#00469B;
    border-color: #00469B;
}
.service-panel--waterheater .btn-more:hover {
    background-color: #fff;
    color: #00469B;
}
.service-panel--car .btn-more {
    background-color:#007F41;
    border-color: #007F41;
}
.service-panel--car .btn-more:hover {
    background-color: #fff;
    color: #007F41;
}

/* ========================================
   セクション　NEWS
======================================== */
.news-wrapper {
    position: relative;
    background-color: #f2f2f2;
    /* z-index: -2; */
}
.section-news {
    position: relative;
    margin: 174px 0;
    padding: 200px 0;
}
.section-news .content-wrap {
    position: relative;
    z-index: 2;
}
.news-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}
.news-content .subtitle {
    flex-basis: 215px;
    flex-shrink: 0; 
}
.news-list {
    flex: 1;
}
.news-list__item {
    margin-bottom: 20px;
}
.news-article {
    display: block; /* aタグをブロック要素に */
    background-color: #fff;
    border-radius: 9999px; /* 水平方向のカプセル型 */
    padding: 45px 60px;
    color: inherit; /* 親要素の色を継承 */
    text-decoration: none; /* 下線を消す */
    transition: background-color 0.3s;
}
.news-article:hover {
    background-color: #f8f8f8; /* ホバー時の効果 */
}
.news-article__meta {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1em;
}
.news-date {
    font-family: "Inter", sans-serif;
    border: 1px solid #000;
    border-radius: 9999px;
    padding: 5px 12px;
    margin-right: 5px;
}
.news-category {
    /* スタイルはほぼ同じ */
    border-radius: 9999px;
    padding: 5px 10px;
    color: #fff; /* 文字色を白にすると見やすい */
}

/* ★★★ カテゴリごとの色指定 ★★★ */
/* テックグループホールディングス */
.category--tech {
    background-color: #E50012;
}
/* テックジャパンロジ */
.category--logi {
    background-color: #268FCF;
}
/* テックジャパンエンジニアリング */
.category--engineering {
    background-color: #CEDA00;
    color: #333;
}
/* テックジャパンツール */
.category--tool {
    background-color: #00469B;
}
/* グレインワークス */
.category--grain-works {
    background-color: #007F41;
}


.news-article__title {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.5;
}

/* 「お知らせ一覧」ボタン用のスタイル */
.btn-wrap--right {
    text-align: right;
    margin-top: 20px;
}
.btn-text-arrow {
    font-size: clamp(1.5rem, 1.44vw + 0.96rem, 2.4rem);
    font-weight: bold;
    color: #E50012;
    text-decoration: none;
}

.btn-text-arrow svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transform: translateY(-2px);
    margin-left: 0.25em;
 }

@media (max-width: 768px) {
    /* --- NEWS Section --- */
    .section-news {
        padding: 80px 0;
        margin: 40px 0;
    }

    .news-content {
        display: block;
    }

    .news-content .subtitle {
        margin-bottom: 0.5em;
        flex-basis: auto;
    }

    .news-article {
        border-radius: 20px;
        padding: 24px;
    }

    .news-article__meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 1.2rem;
    }

    .news-date {
        margin-right: 0;
        padding: 1px 17px;
    }

    .news-category {
        font-size: 1.2rem;
    }

    .news-article__title {
        font-size: 1.6rem;
    }
    
    .btn-wrap--right svg {
        width: 15px;
        height: 15px;
    }
}

/* ========================================
   セクション　リクルート
======================================== */
.section-recruit {
    position: relative;
    padding-top: 274px;
    isolation: isolate;
    margin-bottom: 100px;
}
.section-recruit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/line_dot.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top;
    z-index: -1;
}
.recruit-content {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}
.recruit-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    margin-bottom: 35px;
}
.recruit-heading h2 {
    font-size: clamp(3.8rem, 5.12vw + 1.88rem, 7rem);
    font-weight: bold;
    color: #E50012;
}
.recruit-description {
    font-size: clamp(1.5rem, 0.867vw + 1.151rem, 2.4rem);
    font-weight: bold;
    margin-top: -0.5em;
    text-align: center !important;
}
.recruit-heading .title-wrap {
    margin-top: -20px;
}
.section-recruit .btn-wrap {
    text-align: center;
}
.company-wrap {
    margin-top: 90px;
}
.company-wrap h3 {
    font-size: clamp(2rem, 0.64vw + 1.76rem, 2.4rem);
    font-weight: bold;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1em;
}

/* ジャパンエンジニアリングのテキストは黒 */
body.page-id-10 .company-wrap h3 {
    color: #000;
}
dl.company-list {
    border: 1px solid #000;
    border-radius: 20px;
    overflow: hidden;
}
dl.company-list div {
    display: flex;
    font-size: 1.6rem;
    font-weight: bold;
    border-bottom: 1px solid #000;
}
dl.company-list div dt {
    flex-basis: 120px;
    flex-shrink: 0;
    color: var(--primary-color);
    background-color: var(--primary-color-light);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ジャパンエンジニアリングのテキストは黒 */
body.page-id-10 dl.company-list div dt {
    color: #000;
}

dl.company-list div dd {
    flex: 1;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}
dl.company-list div:last-of-type {
    border-bottom: none;
}

@media (max-width: 768px) {
    .section-recruit {
        padding-top: 150px; 
        margin-bottom: 60px;
    }
    
    .section-recruit::before {
        height: 95px;
        background-size: cover;
        /* background-position: center 10%;  */
    }

    .recruit-heading {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .company-wrap {
        margin-top: 34px;
    }
    dl.company-list div dt {
        flex-basis: 5em;
    }
    dl.company-list div dd {
        flex: 1;
        padding: 10px 20px;
        display: block;
    }
}

/* ========================================
   セクション　お問い合わせインフォメーション
======================================== */
.section-info-contact {
    background-color: #f2f2f2;
    padding: 62px 0;
    text-align: center;
}
.section-info-contact .subtitle {
    text-align: left;
}
.contact-description {
    font-size: clamp(1.5rem, 0.8vw + 1.2rem, 2rem);
    font-weight: bold;
    margin: 20px 0 58px;
}
.contact-methods {
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-method {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.contact-method__heading {
    display: inline-block;
    font-size: clamp(1.5rem, 0.48vw + 1.32rem, 1.8rem);
    font-weight: bold;
    background-color: #fff;
    border-radius: 999px;
    padding: 0.5em 1em;
    align-self: center;
    margin-bottom: 10px;
}
.contact-method__tel {
    font-size: clamp(3.8rem, 0.64vw + 3.56rem, 4.2rem);
    font-family: "Inter", sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-method__icon {
    width: 31px;
    height: 20px;
    margin-right: 10px;
}
.contact-method__note {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: -5px;
    text-align: center;
}
.btn-primary {
    font-size: clamp(2rem, 0.64vw + 1.76rem, 2.4rem);
    font-weight: bold;
    border: 1px solid #000;
    border-radius: 999px;
    padding: 0.5em 2em;
    display: inline-block;
    align-self: center;
    margin-top: 1em;
    transition: background-color 0.3s, color 0.3s;
}
.btn-primary:hover {
    background-color: #000;
    color: #fff;
}
.contact-method--mail {
    position: relative;
}
.contact-method--mail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background-color: #000;
}

@media (max-width:780px) {
    .section-info-contact {
        padding: 50px 0;
    }
    .contact-methods {
        flex-direction: column;
        gap: 20px;
    }
    .contact-method--mail {
        padding-top: 30px;
    }
    .contact-method--mail::before {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 100%;
        height: 1px;
    }
    .contact-method {
        width: 100%;
    }
    .contact-description {
        text-align: left;
        margin: 18px 0 38px;
    }
    /* 親要素のFlex設定を再確認*/
    .contact-method__tel,
    .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    /* アイコンの表示を、他のあらゆるスタイルに打ち勝って保証する */
    .contact-method__tel .contact-method__icon,
    .btn-primary .btn-primary__icon {
        /* (1) 表示形式を強制 */
        display: inline-block !important;
        
        /* (2) サイズを強制 */
        width: 31px !important;
        height: 20px !important;
        
        /* (3) 見えなくするプロパティをすべてリセット */
        opacity: 1 !important;
        visibility: visible !important;
    }

    .contact-method__heading {
        margin-bottom: 5px;
    }
    .contact-method__tel .contact-method__icon {
        margin-right: 0;
    }

}

/* ========================================
   フッター
======================================== */
footer {
    position: relative;
    z-index: 1;
}
.footer-wrap {
    padding: 50px 0;
}
.footer-content {
    display: grid !important;
    grid-template-columns: 1fr 450px;
    grid-auto-rows: auto;
    gap: 20px 40px;
}
.footer-left {
    grid-row: 1;
    grid-column: 1;
    
    /* 中身のレイアウト */
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.footer-right {
    /* 1行目から2行目にかけて配置 */
    grid-row: 1 / 3;
    grid-column: 2;
}
.footer-copy {
    grid-row: 2;
    grid-column: 1;
    
    /* エリアの下端に配置 */
    align-self: end;
    font-weight: bold;
    font-style: normal;
}

.footer-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 2em;
    font-size: 1.6rem;
    font-weight: bold;
}
.companies-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.companies-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}
.companies-logo {
    flex-basis: 160px; 
    flex-shrink: 0;
}
.companies-logo img {
    height: 23px;
    width: auto;
}
.companies-text {
    flex: 1;
    font-size: 1.4rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .footer-wrap .content-wrap {
        width: 100%;
    }
    .footer-wrap {
        padding: 34px 0;
    }

    .footer-content {
        /* Gridを解除し、Flexboxの縦積みに変更 */
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .footer-logo {
        padding: 0 2em;
    }

    /* PC用のGrid配置指定をリセット */
    .footer-left,
    .footer-right,
    .footer-copy {
        grid-row: auto;
        grid-column: auto;
        align-self: auto;
        width: 100%;
    }
    
    /* スマホでの表示順をorderで制御 */
    .footer-left { order: 1; }
    .footer-right { order: 2; }
    .footer-copy { order: 3; }

    /* 各パーツのスマホ用スタイル */
    .footer-left {
        gap: 20px;
    }
    .footer-nav {
        width: 100%;
    }
    .footer-nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: left;
    }
    .footer-nav__list > li {
        width: 100%;
        border-top: 1px solid #000;
    }
    .footer-nav__list li a {
        display: block;
        padding: 1em 40px;
    }
    .footer-nav__list li:last-child {
        border-bottom: 1px solid #000;
    }
    .footer-right {
        padding: 0 40px;
    }
    .companies-list {
        width: 100%;
        align-items: flex-start;
        gap: 0;
    }
    .companies-list li {
        width: 100%;
    }
    .companies-list a {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 0;
    }
    .companies-logo {
        flex-basis: auto; 
    }
    .companies-logo img {
        height: 28px;
    }
    .footer-copy {
        font-size: 1.2rem;
        text-align: center;
    }
}

/* ========================================
   下層ページスタイル（共通）
======================================== */
.page .header-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
}


/* 下層ページ　キービジュアル */
.kv-page {
    position: relative;
    width: 100%;
    height: 978px;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
    z-index: 0;
    border-bottom: 10px solid var(--primary-color);
}

.kv-page__image {
    width: 100%;
    height: 100%;
}

.kv-page__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.kv-page__text .kv-title {
    width: 90%;
    font-size: clamp(2.2rem, 1.69vw + 1.566rem, 4rem);
    font-weight: bold;
    line-height: 1.7;
    text-align: center;
    position: absolute;
    top: 155px;
    left: 50%;
    transform: translateX(-50%);
}

.subtitle-com {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(2.6rem, 0.523vw + 2.404rem, 3rem);
    font-weight: bold;
    font-family: "Inter", sans-serif;
    color: var(--primary-color);
}

.page-id-8 .kv-page__image-pc {
    display: block;
}
.page-id-8 .kv-page__image-sp {
    display: none;
}

@media (max-width:768px) {
    .kv-page {
        height: 548px;
    }

    .kv-page__text .kv-title {
        top: 104px;
    }

    .subtitle-com {
        margin-bottom: 10px;
    }
}

@media (max-width:430px) {
    /* --- Page ID 10 (JAPAN ENGINEERING) のページだけ --- */
    .page-id-10 .kv-page__image-pc {
        display: none;
    }
    .page-id-10 .kv-page__image-sp {
        display: block;
    }
}

.section-kv-page__foot {
    margin-bottom: 100px;
}
.kv-page__foot-content {
    max-width: 972px;
    margin: 0 auto;
}
.message-card {
    position: relative;
    background-color: #fff;
    border-radius: 999px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    margin-top: -90px;
    z-index: 2;
}
.message-title {
    font-size: clamp(2.2rem, 1.69vw + 1.566rem, 4rem);
    font-weight: bold;
    margin-bottom: 10px;
}
.message-subtitle {
    font-size: clamp(1.8rem, 1.127vw + 1.377rem, 3rem);
    font-weight: bold;
    line-height: 1.4;
    color: var(--primary-color);
}

@media (max-width:768px) {
    .section-kv-page__foot {
        margin-bottom: 50px;
    }
    .message-card {
        background-color: none;
        border-radius: 999px;
        height: auto;
        margin-bottom: 20px;
        margin-top: 30px;
        padding: 0 20px;
    }
}

/* 下層ページ用ボタン */
.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.btn-more-page {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;

    /* --- サイズと余白 --- */
    width: 320px;

    /* --- デザイン --- */
    background-color:var(--primary-color);
    border-radius: 999px;
    border: 1px solid var(--primary-color);;
    /* --- テキストのスタイル --- */
    color: #fff;
    font-size: clamp(1.8rem, 0.563vw + 1.589rem, 2.4rem);
    font-weight: bold;
    padding: 14px 38px;

    /* --- アニメーション --- */
    transition: background-color 0.3s, color 0.3s;
}

body.page-id-10 .btn-more-page {
    color: #000;
}

@media (max-width:768px) {
    .button-group {
        display: block;
        width: 90%;
        margin: 0 auto;
        text-align: center;
    }
    .btn-more-page {
        max-width: 338px;
        width: 100%;
        padding: 16px 30px;
        margin-bottom: 20px;
    }
}

.btn-more-page:hover {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* SVGアイコンのスタイル */
.btn-more-page .btn-more__arrow {
    width: 30px;
    height: 25px;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}
@media (max-width:768px) {
    .btn-more-page .btn-more__arrow {
        display: block !important;
        width: 24px !important;
        height: 20px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ========================================
   下層ページ　セクション　ABOUT
======================================== */
.page-about-wrapper {
    position: relative;
    background-color: #f2f2f2;
}

.page-section-about {
    position: relative;
    overflow: hidden;
    padding: 150px 0;
}
.page-section-about .content-wrap {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
}
.page-about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}
.page-about-container__text {
    flex:1;
}

.subject {
    font-size: clamp(2rem, 2.614vw + 1.02rem, 4rem);
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 60px;
}
.page-about-container__text p {
    font-size: clamp(1.5rem, 0.678vw + 1.228rem, 2rem);
    font-weight: bold;
    margin-bottom: 2em;
    line-height: 1.8;
}

.page-about-container__image {
    flex-basis: 440px;
    flex-shrink: 0;
    transform: translateY(10px);
}
.image-in-circle {
    border: 4px solid var(--primary-color);
    background-color: #fff;
    border-radius: 50%;
    overflow: hidden;
    width: 440px;
    height: 440px;
}
.image-in-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width:970px) {
    .page-section-about {
        padding: 80px 0 100px;
        /* overflow: hidden; */
    }

    .page .content-wrap {
        margin: 0 auto;
    }

    .page-section-about .content-wrap {
        padding: 0 0;
    }
    .page-about-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .subject {
        margin-bottom: 20px;
    }
    .page-about-container__text {
        width: 100%;
    }

    .page-about-container__image {
        flex-basis: auto;
        margin-top: 10px;
        transform: none;
    }

    .image-in-circle {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

}

/* ========================================
   下層ページ　セクション　ミッション(MISSION)
======================================== */
.section-mission {
    padding-bottom: 100px;
}
.section-mission .content-wrap {
    position: relative;
    z-index: 2;
}
.mission-container {
    margin-top: -20px;
    display: flex;
    align-items: stretch;
    gap: 40px;
    background-color: var(--primary-color);
    padding: 70px 50px;
    border-radius: 65px;
    color: #fff;
}
.mission-label {
    writing-mode: vertical-rl;
    font-size: clamp(2rem, 6.536vw + -0.451rem, 7rem);
    font-family: "Inter", sans-serif;
    font-weight: bold;
}
.mission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    /* gap: 50px; */
}
.mission-content__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.mission-content h2 {
    font-size: clamp(2rem, 2.614vw + 1.02rem, 4rem);
    font-weight: bold;
    margin-top: -16px;
}

.mission-content__icon {
    flex-shrink: 0;
}
.mission-content p {
    font-size: clamp(1.5rem, 0.654vw + 1.255rem, 2rem);
    line-height: 1.8;
    font-weight: bold;
    text-align: justify;
    text-justify: inter-character;
}

/* ジャパンエンジニアリングのテキストは黒 */
body.page-id-10 .mission-content h2,
body.page-id-10 .mission-content p {
    color: #000;
}


@media (max-width: 768px) {
    .section-mission {
        padding-bottom: 50px;
    }
    .mission-container {
        margin-top: -60px;
        flex-direction: column;
        padding: 30px 20px;
        border-radius: 30px;
        gap: 0;
    }
    .mission-label {
        writing-mode: horizontal-tb;
        text-align: center;
        margin-bottom: 1em;
    }
    .mission-content {
        display: flex;
        flex-direction: column;
        position: static;
        padding-right: 0;
        gap: 0;
    }
    .mission-content__header {
        display: contents;
    }
    /* ★★★ ここがキーポイント ★★★ */
    .mission-content h2 {
        order: 1; /* 見出しが1番目 */
        margin-bottom: 1em;
        margin-top: 0;
    }
    .mission-content p {
        order: 2; /* 段落が2番目 */
        margin-bottom: 30px;
    }
    .mission-content__icon {
        order: 3; /* ★アイコンが3番目（一番下） */
        align-self: center;
    }
}

/* ========================================
   下層ページ　セクション　事業内容（SERVICS）
======================================== */
.services-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.services-container__heading {
    flex-basis: 268px;
    flex-shrink: 0;
}
.services-container__list {
    flex: 1;
    transform: translateY(10px);
}
.service-item {
    display: flex;
    align-items: center;
    border-bottom: 5px dotted var(--primary-color);
    padding-bottom: 50px;
    margin-bottom: 50px;
    gap: 38px;
}
.service-item:last-of-type {
    border-bottom: none;
    margin-bottom: 26px;
}
.services-item__image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    overflow: hidden;
}
.services-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.services-item__text {
    flex: 1;
}
.services-label {
    display: inline-block;
    font-size: clamp(1.2rem, 0.784vw + 0.906rem, 1.8rem);
    font-weight: bold;
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 999px;
    padding: 0.5em 1em;
    line-height: 1;
    margin-bottom: 0.8em;
}

/* ジャパンエンジニアリングのテキストは黒 */
body.page-id-10 .services-label {
    color: #000;
}

.services-item__text h4 {
    font-size: clamp(2rem, 1.046vw + 1.608rem, 2.8rem);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

/* ジャパンエンジニアリングのテキストは黒 */
body.page-id-10 .services-item__text h4 {
    color: #000;
}

.services-item__text p {
    font-size: clamp(1.5rem, 0.523vw + 1.304rem, 1.9rem);
    font-weight: bold;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-character;
}

@media (max-width:970px) {
    .services-container {
        flex-direction: column;
        padding-bottom: 65px;
    }
    .services-container__heading {
        flex-basis: auto;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .service-title-wrap {
        flex: 1;
    }
    .service-icon {
        width: 121px;
    }
    .services-container__list {
        width: 100%;
        transform: none;
    }
    .service-item {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 35px;
        padding-bottom: 35px;
    }
    .service-item:last-of-type {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .services-item__image {
        width: 206px;
        height: 206px;
    }
    .services-label {
        margin-bottom: 0.5em;
    }
}

/* ========================================
   セクション　会社の強み　STRENGTHS
======================================== */
.strengths-wrapper {
    position: relative;
    background-color: #f2f2f2;
}
.section-strengths {
    position: relative;
    padding: 150px 0;
    margin-bottom: 100px;
}
.section-strengths .content-wrap {
    position: relative;
    z-index: 2;
    padding: 0 0 120px;
}

.strengths-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 20px; 
    margin-top: 60px;
}

/* (3) 3番目と4番目のアイテムだけを選択 */
.strengths-item:nth-child(n + 3) {
    transform: translateX(65px);
}

/* --- 以下、アイテム内のスタイル --- */
.strengths-item {
    border: 4px solid var(--primary-color);
    border-radius: 0 50px 0 50px;
    padding: 20px 40px 40px 40px;
    position: relative;
    background-color: #fff;
}

.strengths-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 20px;
}

.strengths-item__header h4 {
    font-size: clamp(2rem, 1.046vw + 1.608rem, 2.8rem);
    font-weight: bold;
    color: var(--primary-color);
}

/* ジャパンエンジニアリングのテキストは黒 */
body.page-id-10 .strengths-item__header h4 {
    color: #000;
}

.strengths-item p {
    font-size: clamp(1.5rem, 0.523vw + 1.304rem, 1.9rem);
    font-weight: bold;
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-character;
}

/* --- 数字のスタイリング --- */
/* olの自動カウンターを利用 */
.strengths-list {
    counter-reset: strengths-counter; /* カウンターを初期化 */
}
.strengths-item::before {
    counter-increment: strengths-counter; /* カウンターを1増やす */
    content: counter(strengths-counter); /* カウンターの値を表示 */
    
    /* 赤い丸のデザイン */
    position: absolute;
    top: -35px; /* 丸の半径分だけ上にずらす */
    left: -15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px; 
}
@media (max-width:1335px) {
    /* PC用にずらしていたのをリセット */
    .strengths-item:nth-child(n + 3) {
        transform: none;
    }
}
@media (max-width: 768px) {
    .section-strengths {
        /* 上下の余白をスマホ用に調整 */
        padding: 80px 0 100px;
        margin-bottom: 50px;
    }

    .section-strengths .content-wrap {
        padding: 0;
    }

    .strengths-list {
        /* Gridを解除し、Flexboxの縦積みに変更 */
        display: flex;
        flex-direction: column;
        margin-top: 50px;
    }
    
    /* 数字の位置を調整 */
    .strengths-item::before {
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%); /* 上下左右中央に */
    }

    /* アイテムの上部に数字用のスペースを確保 */
    .strengths-item {
        margin-top: 10px;
        padding: 40px 20px;
    }
    .strengths-list li:first-child {
        margin-top: 0; /* 最初のアイテムだけは上の余白をなくす */
    }
    .strengths-item__header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-bottom: none;
        margin-bottom: 0;
    }
    .strengths-item__header h4 {
        order: 2;
        width: 100%;
        text-align: center;
    }
    .strengths-item__icon {
        order: 1;
        margin-bottom: 20px;
    }

    .strengths-item::before {
        top: -32px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        font-size: 3rem;
    }
}

/* ========================================
   セクション　リクルート
======================================== */
.section-recruit--sub {
    position: relative;
    padding-top: 250px;
    isolation: isolate;
    margin-bottom: 100px;
}
.section-recruit--sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/line_dot_sub.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top;
    z-index: -1;
}
.page-id-8 .section-recruit--sub::before {
    background-image: url(images/logi/line_dot_sub.svg);
}
.page-id-10 .section-recruit--sub::before {
    background-image: url(images/engr/line_dot_sub.svg);
}
.page-id-12 .section-recruit--sub::before {
    background-image: url(images/tool/line_dot_sub.svg);
}
.page-id-14 .section-recruit--sub::before {
    background-image: url(images/grain/line_dot_sub.svg);
}

.recruit-content--sub {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}
.recruit-heading--sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    margin-bottom: 35px;
}
.recruit-heading--sub h2 {
    font-size: clamp(3.8rem, 5.12vw + 1.88rem, 7rem);
    font-weight: bold;
    color: var(--primary-color);
}

.recruit-heading--sub .title-wrap {
    margin-top: -20px;
}
.section-recruit--sub .btn-wrap {
    text-align: center;
}
.recruit-content--sub p {
    font-size: clamp(1.5rem, 0.523vw + 1.304rem, 1.9rem);
    font-weight: bold;
    line-height: 1.7;
    margin-bottom: 1.5em;
    text-align: justify;
    text-justify: inter-character;
}
.recruit-content--sub .company-wrap {
    margin-top: 50px;
}
.recruit-content--sub .company-wrap:last-of-type {
    margin-top: 80px;
}
.recruit-content--sub dl.company-list {
    margin-bottom: 50px;
}
@media (max-width: 768px) {
    .section-recruit--sub {
        padding-top: 150px; 
        margin-bottom: 60px;
    }
    
    .section-recruit--sub::before {
        height: 95px;
        background-size: cover;
    }
    .recruit-heading--sub {
        /* justify-content: space-between; */
        gap: 10px;
        margin-bottom: 20px;
    }
    .recruit-heading__chara {
        height: 106px;
        width: auto;
    }

}


/* ========================================
   セクション　価格表（グレンワークス用）
======================================== */
.section-pricelist {
    margin-bottom: 100px;
}
.pricelist-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.pricelist-container__heading {
    flex-basis: 268px;
    flex-shrink: 0;
}
.pricelist-container__list {
    flex: 1;
}

/* Price Table
======================================== */
.price-table-wrapper {
    max-width: 867px;
    border: 1px solid #000;
    border-radius: 20px;
    overflow: hidden;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 2rem;
    font-weight: bold;
}

/* --- テーブルのキャプション（表題） --- */
.price-table caption {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 2.8rem;
    padding: 12px;
}

/* --- テーブルヘッダー --- */
.price-table thead th {
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
}
.price-table thead th:last-child {
    border-right: none;
}
/* --- テーブルボディのセル --- */
.price-table tbody td {
    padding: 12px;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    color: var(--primary-color);
    width: 50%;
}

/* 価格の列は右揃えに */
.price-table tbody td:last-child {
    color: #000;
    border-right: none;
}

/* --- テーブルフッター（注釈） --- */
.price-table-note {
    background-color: #fff;
    margin-top: 15px;
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

@media (max-width: 970px) {
    .pricelist-container {
        flex-direction: column;
        padding-bottom: 50px;
    }
    .pricelist-container__heading {
        flex-basis: auto;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .pricelist-title-wrap {
        flex: 1;
    }
    .pricelist-container__list {
        width: 100%;
    }
    .price-table-wrapper {
        border-radius: 15px;
    }
    
    .price-table {
        display: block;
    }
    
    .price-table caption {
        display: block;
        width: 100%;
        font-size: 2.2rem;
    }
    /* ヘッダーは非表示にする */
    .price-table thead {
        display: none;
    }

    .price-table tbody,
    .price-table tbody tr,
    .price-table tbody td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .price-table tbody tr {
        border-bottom: 1px solid #000;
    }
    .price-table tbody tr:last-child {
        border-bottom: none;
    }

    .price-table tbody td {
        padding: 10px 15px;
        text-align: left; /* 基本は左揃え */
        border: none;
    }

    /* 価格のセル */
    .price-table tbody td:last-child {
        text-align: right; /* 価格は右揃えを維持 */
        font-size: 2rem; /* 少し大きくして目立たせる */
        padding-top: 5px;
    }

    /* 疑似要素で見出しを再現 */
    .price-table tbody td:last-child::before {
        content: '価格（目安）';
        float: left; /* 左側にフロート */
        font-size: 1.4rem; /* 小さめの文字で */
        color: #666;
    }

    .price-table-note {
        text-align: left;
    }
}

/* Vehicle Inspection Fee
======================================== */

.vehicle-inspection-fee {
    max-width: 867px;
    margin: 70px auto 40px;
    border: 1px solid #000;
    border-radius: 20px;
    overflow: hidden;
}

.fee-title {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    padding: 12px;
}

/* --- 車種区分 --- */
.vehicle-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 27px;
    background-color: #fff;
    color: var(--primary-color);
}
.vehicle-type-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vehicle-type-item__icon {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background-color: #e0e0e0;
    flex-shrink: 0;
}
.vehicle-type-item h4 {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 0.25em;
}
.vehicle-type-item p {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.5;
}

/* --- 料金詳細 --- */
.fee-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #000;
}
.fee-detail-item {
    padding: 23px 27px;
}
.fee-detail-item h4 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 1em;
    color: var(--primary-color);
}
.en-mark {
    font-size: 4.4rem;
    font-weight: bold;
}
.fee-price {
    font-size: 6.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: -30px;
}
.fee-price__tax {
    display: block;
    font-size: 1.8rem;
    margin-top: -25px;
    text-align: right;
}
.fee-note {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.7;
    color: var(--primary-color);
}
.fee-note--strong { font-weight: bold; }
.fee-note--highlight { color: #fff; font-weight: bold; }
.fee-note-list {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1em;
}

.fee-detail-item--inspection {
    background-color: #fff;
    border-right: 1px solid #ddd;
}
.fee-detail-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
}
.fee-detail-item--agency {
    background-color: #c95130; /* 赤茶色 */
    color: #fff;
}
.fee-detail-item--agency h4,
.fee-detail-item--agency .fee-price {
    color: #fff;
}
.fee-text-big {
    font-size: 2.5rem;
}
.for-sp-sp {
        display: none;
    }
/* --- スマホ用のスタイル --- */
@media (max-width: 1270px) {
    .vehicle-inspection-fee {
        text-align: center;
    }

    .vehicle-types {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .vehicle-type-item {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 280px;
    }
    .vehicle-type-item h4 {
        font-size: 2rem;
        text-align: left;
    }
    .vehicle-type-item p {
        text-align: left;
    }
    .fee-details {
        display: flex;
        flex-direction: column;
    }
    .fee-detail-item--inspection {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .fee-detail-content {
        display: block;
        margin-bottom: 10px;
    }
    .fee-detail-item h4 {
        margin-bottom: 0.5em;
    }

    .fee-price__tax {
        display: inline;
        font-size: 1.8rem;
        margin-top: 0;
        text-align: left;
    }
    .fee-price {
        font-size: 6rem;
    }
    .fee-note-list {
        text-align-last: left;
        display: inline-block;
    }

}
@media (max-width:430px) {
    .for-sp-sp {
        display: block;
    }
    .fee-text-big {
        display: block;
        margin-top: 1em;
    }
}

/* ========================================
   法定費用　Statutory Costs Table
======================================== */

.statutory-costs-wrapper {
    max-width: 867px;
    margin: 0 0 40px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #000;
}

.statutory-costs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- キャプション（表題） --- */
.statutory-costs-table caption {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 2.8rem;
    font-weight: bold;
    padding: 10px;
}
.statutory-costs-table caption small {
    font-size: 1.4rem;
    font-weight: normal;
}

/* --- テーブルのセル共通スタイル --- */
.statutory-costs-table th,
.statutory-costs-table td {
    padding: 10px 30px;
    text-align: left;
    border: 1px solid #000;
}
.statutory-costs-table th:first-child,
.statutory-costs-table td:first-child {
    border-left: none;
}
.statutory-costs-table th:last-child,
.statutory-costs-table td:last-child {
    border-right: none;
}
/* --- 行の見出し (th) --- */
.statutory-costs-table th {
    width: 25%; /* 1列目の幅を固定 */
}

/* --- データセル (td) --- */
.statutory-costs-table td {
    font-size: 2.8rem;
}

/* --- フッター（合計行） --- */
.statutory-costs-table tfoot th,
.statutory-costs-table tfoot td {
    background-color: var(--primary-color-light);
}
.statutory-costs-table tfoot th,
.statutory-costs-table tfoot td {
    border-bottom: none;
}

/* --- タブレット用のスタイル --- */
@media (max-width: 1124px) {
    .statutory-costs-table th,
    .statutory-costs-table td {
        padding: 10px;
    }
    .statutory-costs-table th {
        width: 1%;
        white-space:nowrap;
    }
}
/* --- スマホ用のスタイル --- */
@media (max-width: 768px) {
    .statutory-costs-wrapper {
        width: 100%;
        overflow-x: auto;
    }
    .statutory-costs-table {
        min-width: 600px; 
    }
}

/* ========================================
   Comparison Table
======================================== */

.comparison-table-wrapper {
    max-width: 867px;
    margin: 0 0 30px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #000;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-weight: bold;
    color: var(--primary-color);
}

.comparison-table caption {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 2.8rem;
    font-weight: bold;
    padding: 10px;
}
.comparison-table caption small {
    font-size: 1.4rem;
    font-weight: normal;
}

.comparison-table thead th {
    width: 50%;
    padding: 20px;
    border-bottom: 1px solid #000;
    vertical-align: middle;
    text-align: center;
}

.comparison-table thead th:first-child {
    background-color: var(--primary-color-light);
    border-right: 1px solid #ddd;
    font-size: 1.8rem;
}

.comparison-table thead th:first-child {
    border-right: 1px solid #000;
    font-size: 1.8rem;
}
.comparison-table thead img {
    height: 34px;
    width: auto;
    margin: 0 auto;
}

.comparison-table tbody td {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #000;
    font-size: 5.4rem;
}

.comparison-table tbody td:first-child {
    background-color: var(--primary-color-light);
    border-right: 1px solid #000;
}

.comparison-table tbody td:last-child {
    background-color: #fff;
}

@media (max-width: 768px) {
    .comparison-table caption,
    .comparison-table thead th,
    .comparison-table tbody td {
        font-size: 1.6rem;
    }
    .comparison-table caption { font-size: 1.8rem; }
    .comparison-table tbody td { font-size: 2.2rem; }
    .comparison-table thead img { height: 28px; }
    .comparison-table .en-mark {
        font-size: 1.8rem;
    }
}






/* ========================================
   セクション　お問い合わせフォーム
======================================== */
.section-contact-form {
    background-color: #f2f2f2;
    padding: 85px 0 100px;
}
.contact-form__header {
    text-align: center;
}

.section-contact-form .subtitle-com {
    justify-content: center;
}

.contact-form-wrap {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 1.8em;
}

.form-label {
    font-size: clamp(1.5rem, 0.392vw + 1.353rem, 1.8rem);
    font-weight: bold;
}

.form-control {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 1px solid #000;
    border-radius: 10px;
    font-size: clamp(1.5rem, 0.392vw + 1.353rem, 1.8rem);
    background-color: #fff;
    color: #333;
    line-height: 1.5;
    /* height: 70px; */
    padding: 20px 0.5em;
}

textarea.form-control {
    height: 200px;
    resize: vertical; /* 縦方向だけリサイズ可能に */
}
.contact-form-wrap textarea {
    height: 200px;
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★ selectボックスの矢印カスタマイズ ★★★ */
.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px; /* 右からの位置 */
    transform: translateY(-50%); /* 上下中央揃え */
    
    width: 20px;  /* アイコンの幅 */
    height: 15px; /* アイコンの高さ */
    
    /* (A) SVGを直接 background-image に埋め込む（推奨） */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='16' fill='none' viewBox='0 0 26 16'%3E%3Cg fill='%23000'%3E%3Cpath d='M15.37 15.36v-5.12h-5.12v5.12zM10.24 10.24V5.12H5.12v5.12zM5.12 5.12V0H0v5.12zM20.49 10.24V5.12h-5.12v5.12zM25.61 5.12V0h-5.12v5.12z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    
    /* (B) 矢印の上をクリックしてもセレクトボックスが開くようにする */
    pointer-events: none;
    transform: translateY(-4px);
}
.select-wrap {
    color: #333;
}
/* select要素は矢印のスペースを確保するため、右paddingを多めに */
select.form-control {
    padding-right: 40px; 
}
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

.form-submit {
    text-align: center;
    margin-top: 50px;
}

@media (max-width:768px) {
	.section-contact-form {
		padding: 50px 0 100px;
	}
    .contact-form-wrap {
        max-width: none;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 30px 30px 60px;
    }
    .form-submit {
        margin-top: 30px;
    }
}


/* * {
    outline: 1px solid blue !important;
} */