/* =========================================
   カスタムトップページ用スタイル
   ========================================= */
.site-content {
       margin-left: auto;
    margin-right: auto;
    max-width: 980px;
    padding-left: 20px;
    padding-right: 20px;
}
/* --- ヒーローエリア（フェードスライダー） --- */
.custom-hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* 必要に応じて高さを調整 */
    overflow: hidden;
    background-color: #333;
}
    .main-navigation a {
        font-size: 16px;
    }
.hero-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 18s infinite; /* 3枚 × 6秒 */
}

/* アニメーションのタイミング調整 */
.hero-item:nth-child(1) { animation-delay: 0s; }
.hero-item:nth-child(2) { animation-delay: 6s; }
.hero-item:nth-child(3) { animation-delay: 12s; }

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1); } /* ふわっと現れる */
    33% { opacity: 1; transform: scale(1); } /* 表示維持 */
    43% { opacity: 0; transform: scale(1.05); } /* ふわっと消える */
    100% { opacity: 0; }
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
}

.hero-sub {
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.hero-title {
color: #fff;
    font-size: 4rem;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    font-family: noto-sans-jp, sans-serif;
}

/* --- 共通レイアウト --- */
.custom-front-page section {
    padding: 40px 0;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.btn-wrapper {
    text-align: center;
    margin-top: 40px;
}
.btn-oval {
    display: inline-block;
    padding: 15px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
    color: #fff;
}
.btn-oval:hover { opacity: 0.8; }
.btn-blue { background-color: #111354; }
.btn-dark-blue { background-color: #0d1245; }

/* --- コンセプト --- */
.section-concept .concept-text {
    text-align: left;
    max-width: 665px;
    margin: 0 auto 60px;
    line-height: 1.75;
    width: 100%;
    font-size: 16px;
}
.concept-gallery {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.concept-gallery img {
    width: 24%; /* 4枚並び */
    height: 200px;
    object-fit: cover;
}

/* --- WORKS --- */
.section-title {
text-align: center;
    font-size: 4.5rem;
    color: #111354;
    margin-bottom: 50px;
    text-transform: uppercase;
    margin-top: 4rem;
    letter-spacing: 2px;
    font-weight: 500;
    font-family: noto-sans-jp, sans-serif;
}
.works-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.work-card {
    width: 32%; /* 3カラム */
}
.work-card a {
    text-decoration: none;
    color: #333;
}
.work-thumb {
    overflow: hidden;
    margin-bottom: 15px;
}
.work-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}
.work-card:hover .work-thumb img {
    transform: scale(1.05);
}
.work-title {
    line-height: 1.5;
    margin-top: 0;
    font-size: 14px;
    font-weight: 500;
    color: #191919;
}

/* --- Contact --- */
/* --- Contact --- */
.section-contact {
    /* 親要素の幅制限を無視して画面いっぱい(100vw)に広げる魔法の記述 */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    
    /* 背景色と余白の設定をここに移動 */
    background-color: #dbe4ea;
    padding: 60px 0!important; 
	    margin-top: 100px;
}

/* 中身のコンテンツ幅はサイト全体(980px)と揃える */
.section-contact .container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-box {
    /* 背景色などは親要素に移したのでリセット */
    background-color: transparent;
    padding: 0;
    text-align: center;
}

p.contact-lead{
	    color: #191919;
    text-align: center;
    margin-bottom: 0;
}
.contact-tel {
    font-size: 3rem;
    font-weight: bold;
    color: #113354;
    margin: 20px 0 10px;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: noto sans jp, sans-serif;
}

.contact-hours {
    margin-bottom: 30px;
    margin-top: -15px;
    font-size: 15px;
}
/* --- モバイル対応 (簡易版) --- */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .concept-gallery { flex-wrap: wrap; }
    .concept-gallery img { width: 48%; margin-bottom: 10px; }
    .works-grid { flex-direction: column; }
    .work-card { width: 100%; margin-bottom: 30px; }
    .contact-tel { font-size: 1.8rem; }
}

.custom-front-page section.section-concept{
	padding-top:0;
}

/* =========================================
   コンセプトギャラリー（無限ループスクロール）
   ========================================= */

/* 外側のコンテナ（表示領域の制限） */
.concept-gallery-container {
    max-width: 980px;   /* 要件：最大幅980px */
    margin: 0 auto 60px; /* 中央寄せと下の余白 */
    overflow: hidden;   /* はみ出した部分を隠す */
    position: relative;
}

/* スクロールするラッパー */
.concept-gallery-scroller {
    display: flex;      /* 画像を横並びにする */
    width: fit-content; /* 子要素の合計幅に合わせる */
    /* アニメーション設定：名前 時間 速度曲線 無限ループ */
    animation: scrollLoop 30s linear infinite; 
}

/* 各画像の設定 */
.concept-gallery-scroller img {
    height: 350px;      /* 高さを統一 */
    width: auto;        /* 幅はなりゆき */
    flex-shrink: 0;     /* 幅が縮まないようにする */
    margin-right: 20px; /* 画像間の余白 */
}

/* アニメーションキーフレーム */
@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 全体の幅の50%（＝画像1セット分）だけ左に移動 */
        transform: translateX(-50%);
    }
}

/* --- モバイル対応（任意） --- */
@media (max-width: 768px) {
    .concept-gallery-scroller img {
        height: 180px; /* スマホでは少し小さく */
        margin-right: 10px;
    }
}

.btn-wrapper a:hover{
color:#fff;
}

.home .content-area {
	margin-bottom:0;
}

@media (max-width: 768px) {

	.custom-hero-slider {
    height: 40vh;
}
.concept-text p{
	text-align:justify;
}
.container {
    padding: 0;
}
.section-works .section-title{
	    margin: 40px 0;
}

}


/* =========================================
   スクロールフェードイン・アニメーション
   ========================================= */

/* 初期状態：透明で少し下に配置 */
.js-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 表示状態：不透明で元の位置へ */
.js-fade.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- WORKS (修正版) --- */
.works-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

.work-card {
    /* 3列にするための計算式： (全体100% - 隙間30px×2つ分) ÷ 3 */
    width: calc((100% - 60px) / 3); 
    margin-bottom: 10px; /* 必要に応じて微調整 */
}

/* スマホ対応も念のため確認・修正 */
@media (max-width: 768px) {
    .works-grid {
        flex-direction: column;
        gap: 20px;
    }
    .work-card {
        width: 100%; /* スマホなら横幅いっぱい */
    }
}

.wpcf7-submit{
    width: 210px;
    padding: 16px 0 !important;
    background: #113465 !important;
    font-size: 14px !important;
    letter-spacing: 6px;
    border: none !important;
    text-indent: 14px;
}

.wpcf7-previous{
    width: 210px;
    padding: 16px 0 !important;
    font-size: 14px !important;
    letter-spacing: 6px;
    border: none !important;
    text-indent: 14px;
    margin:16px 0;
}
/* --- 会社概要テーブル（PC/共通） --- */
/* .company-table の中にある table タグに対して指定 */
.company-table table {
    border-collapse: separate !important; /* セルを分離 */
    border-spacing: 10px 15px !important; /* 横に10px、縦に15pxの隙間 */
    width: 100%; /* 全体の幅を確保 */
}

.company-table table td {
    vertical-align: middle; /* 文字を上下中央揃え */
    border: none; /* 余計な枠線を消す */
}

    .company-table table td.blue {
        text-align: center!important;
    }

    .company-table table td {
        border: none!important;
    }

    .company-table table td.white {
border-bottom: 1px solid #ddd !important;
    }

/* --- 会社概要テーブル（スマホ対応） --- */
@media (max-width: 768px) {
    .company-table table {
        border-spacing: 0 !important; /* スマホではテーブル自体の隙間設定をリセット */
    }

    /* テーブルの構造をブロック崩しして縦積みにする */
    .company-table table tbody,
    .company-table table tr,
    .company-table table td {
        display: block;
        width: 100% !important; /* インラインスタイルの25%幅などを強制上書き */
        box-sizing: border-box;
        border: none;
    }


    /* 各行（項目ごとのまとまり）の下に余白 */
    .company-table table tr {
        margin-bottom: 30px;
    }

    /* 青いセル（項目名）の下に少し隙間 */
    .company-table table td:first-child {
        margin-bottom: 5px;
    }
}