@charset "UTF-8";
/*
Theme Name: JACFS Official Theme
Author: JACFS
Version: 1.0
Description: PHP8, Bootstrap 5, WordPress 6 compatible theme.
*/

/* -------------------------------------------------------------------------
 * 株式会社カイスタ98 - 共通スタイルシート
 * ------------------------------------------------------------------------- */

/* 基本設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #003d7a;
    text-decoration: underline;
}

/* ヘッダー */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    max-height: 50px;
    width: auto;
    margin-right: 10px;
}

.navbar-brand {
    font-size: 1.25rem;
    color: #333 !important;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #0056b3 !important;
}

/* メインビジュアル共通設定 */
.top, .hero, .top_clean, .top_otera, .top_company {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

/* オーバーレイ（文字を読みやすくするため） */
.top::before, .hero::before, .top_clean::before, .top_otera::before, .top_company::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* メインビジュアル共通設定（HTMLのimgタグに対応） */
.top_wrapper, .hero_wrapper, .top_clean_wrapper, .top_otera_wrapper, .top_company_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    height: 60vh; /* 高さを指定 */
    overflow: hidden; /* 画像のはみ出しをカット */
}

/* imgタグ自体のスタイル */
.hero_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 背景画像のようにトリミングして表示 */
    z-index: 0;
}

/* オーバーレイ（黒い透過膜） */
.top_wrapper::before, .hero_wrapper::before, .top_clean_wrapper::before, .top_otera_wrapper::before, .top_company_wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1; /* 画像(0)とテキスト(2)の間 */
}

.container {
    position: relative;
    z-index: 2; /* 最前面に */
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .top_wrapper, .hero_wrapper, .top_clean_wrapper, .top_otera_wrapper, .top_company_wrapper {
        height: 40vh;
    }
}


/* セクションタイトル（バー） */
.bar_blue, .bar_glay, .bar {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.bar_blue {
    background-color: #f0f7ff;
    border-left: 8px solid #0056b3;
}

.bar_blue h3 {
    color: #0056b3;
    font-weight: bold;
    margin-bottom: 1rem;
}

.bar_glay {
    background-color: #f8f9fa;
    border-left: 8px solid #6c757d;
}

.bar_glay h3 {
    color: #333;
    font-weight: bold;
    margin-bottom: 1rem;
}

.bar {
    background-color: #fffaf0;
    border-left: 8px solid #d4af37;
}

/* Q&Aセクション */
.qa_text {
    background: #fff;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.qa {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #ccc;
}

.qa:last-child {
    border-bottom: none;
}

.q_text {
    font-weight: bold;
    color: #d9534f;
    font-size: 1.1rem;
}

.a_text {
    font-weight: bold;
    color: #0056b3;
    font-size: 1.1rem;
}

/* フッター */
footer {
    border-top: 4px solid #0056b3;
    color: #666;
}

footer a {
    color: #333;
    text-decoration: none;
}

footer .display-3 a {
    color: #0056b3;
    font-weight: bold;
}

/* フォーム */
.form-label {
    font-weight: bold;
}

.btn-primary {
    background-color: #0056b3;
    border: none;
    padding: 12px 40px;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #004494;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .top, .hero, .top_clean, .top_otera, .top_company {
        height: 40vh; /* スマホでは高さを少し抑える */
    }

    h1 {
        font-size: 1.5rem;
    }

    .display-3 {
        font-size: 2.2rem;
    }

    .bar_blue, .bar_glay, .bar {
        padding: 1.5rem 1rem;
    }
}