@charset "utf-8";

/* Bootstrap v4.4.1 公式CSSを読み込み */
@import url('https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css');

/* --- 基本設定 --- */
body { 
    font-family: "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif; 
    color: #333; 
    line-height: 1.8; 
    overflow-x: hidden; 
    -webkit-text-size-adjust: 100%; 
}

h1, h2, h3, h4, .navbar-brand, .nav-link, .btn { 
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; 
}

img { max-width: 100% !important; height: auto !important; }

/* --- ナビゲーション徹底調整（高さを絞る） --- */
.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
}

.navbar-brand {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-right: 0;
}

.navbar-brand-logo { 
    height: 38px !important; 
    width: auto; 
    margin-right: 12px; 
    vertical-align: middle;
}

.navbar-brand strong { 
    font-size: 1.25rem; 
    line-height: 1 !important;
    letter-spacing: 1px;
}

/* 右側メニューのリンク余白（ここで全体の厚みをコントロール） */
.ml-auto a {
    padding-top: 18px !important; 
    padding-bottom: 18px !important;
    line-height: 1 !important;
    display: inline-block;
    transition: 0.3s;
}

.ml-auto a:hover {
    color: #3ca82e !important;
    text-decoration: none;
}

/* セクション設定 */
.section-padding { padding: 100px 0; }
.section-title-wrapper { margin-bottom: 60px; text-align: center; }
.section-title { font-size: 2.2rem; font-weight: 700; position: relative; display: inline-block; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background-color: #3ca82e; }

/* ヒーローセクション */
.hero-section { background-image: url('images/chikushino2.jpg'); background-size: cover; background-position: center; height: 65vh; min-height: 400px; display: flex; align-items: center; position: relative; }
.hero-section::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.4); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 0 5%; }
.hero-title { font-size: 3.2rem; font-weight: 700; line-height: 1.2; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }

/* 共通コンテナ */
.news-container, .message-container, .card-custom { 
    max-width: 1000px; margin: 0 auto; background: #fff; padding: 40px; 
    box-shadow: 0 5px 30px rgba(0,0,0,0.05); border-radius: 8px; border: 1px solid #eee;
}

/* お知らせ・代表挨拶 */
.news-item { border-bottom: 1px solid #eee; padding: 15px 0; display: flex; text-align: left; }
.news-date { font-weight: bold; color: #3ca82e; min-width: 120px; }
.president-portrait { float: left; width: 280px; margin: 0 40px 20px 0; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.message-footer { margin-top: 50px; border-top: 1px solid #eee; padding-top: 30px; clear: both; }

/* 会社案内・Googleマップ */
.google-map { width: 100%; height: 450px; border: 0; margin-top: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* 沿革 */
.history-item { position: relative; padding-bottom: 30px; border-left: 1px solid #dee2e6; padding-left: 30px; text-align: left; }
.history-item::before { content: ''; position: absolute; left: -5px; top: 8px; width: 10px; height: 10px; background: #3ca82e; border-radius: 50%; }
.history-year { font-weight: 700; color: #3ca82e; font-size: 1.1rem; }

/* JCCグループ */
.jcc-group-list { list-style: none; padding: 0; border-top: 1px solid #eee; }
.jcc-group-list li { padding: 12px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }

/* お問い合わせ・ボタン・フッター */
.tel-link { color: #3ca82e !important; font-size: 2.8rem; font-weight: 700; text-decoration: none !important; transition: 0.3s; }
.tel-link:hover { opacity: 0.7; }
footer { background: #000; color: #999; padding: 50px 0; text-align: center; }
footer a { color: #999; }

#back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    line-height: 50px; background-color: #3ca82e; color: #fff !important;
    text-align: center; border-radius: 50%; z-index: 9999;
    opacity: 0; visibility: hidden; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-decoration: none !important;
}
#back-to-top.show { opacity: 1; visibility: visible; }

/* --- スマホ・iPhone表示の最適化 --- */
@media (max-width: 991px) {
    /* ナビゲーションをコンパクトに */
    .navbar { padding: 5px 10px !important; }
    .navbar-brand-logo { height: 32px !important; }
    .navbar-brand strong { font-size: 1.1rem; }
    
    .section-padding { padding: 50px 0; }
    .hero-title { font-size: 1.6rem !important; }

    /* 左右の余白を作って、iPhoneの画面端に文字がつくのを防ぐ */
    .container { padding-right: 20px !important; padding-left: 20px !important; }
    .row { margin: 0 !important; }
    .col-lg-7, .col-lg-5, .col-md-6, .col-lg-10 { 
        width: 100% !important; 
        max-width: 100% !important; 
        padding: 0 !important; 
        flex: none !important; 
    }

    /* 会社案内テーブル：iPhoneで一番崩れやすい場所を修正 */
    .company-table th, .company-table td {
        display: block !important; /* 横並びを解除して上下に並べる */
        width: 100% !important;
        border: none !important;
        padding: 12px 10px !important;
        text-align: left !important;
    }
    .company-table th {
        background-color: #eee !important; /* 見出しを分かりやすく */
        color: #000 !important;
        font-weight: bold !important;
        border-bottom: 1px solid #ddd !important;
    }

    /* JCCグループのリスト */
    .jcc-group-list li { display: block !important; padding: 15px 0; }
    .jcc-group-list li span { display: block; color: #3ca82e; font-size: 0.85rem; margin-bottom: 4px; }
    .jcc-group-list li strong { display: block; font-size: 1.1rem; }
    
    /* 各種ボックスの余白調整 */
    .news-container, .message-container, .card-custom { padding: 20px !important; margin-bottom: 20px !important; }
    .president-portrait { float: none; width: 100%; margin: 0 0 20px 0; }
    .tel-link { font-size: 1.8rem; }
}
.google-map {
    width: 100%;       /* 親要素の幅いっぱいに広げる */
    max-width: 1000px; /* 広がりすぎないよう制限（お好みで） */
    height: 450px;     /* 高さを固定 */
    display: block;
    margin: 20px auto; /* 上下に余白を作り、左右中央に配置 */
    border: none;
}
/* 代表挨拶のキャッチコピーを洗練させる */
.message-lead {
    font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
    font-weight: 600;      /* 少し太めにして存在感を出す */
    line-height: 1.6;      /* 行間を広げてゆとりを持たせる */
    color: #333;           /* 真っ黒より少しだけ柔らかい黒に */
    letter-spacing: 0.05em; /* 文字の間隔をわずかに広げて高級感を出す */
    margin-bottom: 30px;   /* 下の本文との間に余白を作る */
}
/* 会社案内テーブルの視認性を最大まで高める設定 */
.company-table th {
    background-color: #f8f9fa !important;
    color: #000000 !important; /* 真っ黒にしてコントラストを最大に */
    font-weight: 800 !important; /* 極太にして誰でも読めるようにする */
    width: 30%;
    vertical-align: middle;
}

/* 2. フォーカス時の設定：青い枠などを消しつつ、Googleが求める「識別性」を確保します */
a:focus, button:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* 文字のコントラスト改善（PageSpeed Insights対策） */

/* 薄すぎるグレーを、読みやすい濃いグレーに上書き */
.text-muted {
    color: #555555 !important; 
}

/* お知らせの日付や沿革の年号を少し濃くする */
.news-date, .history-year {
    color: #2e8223 !important; /* 少し暗めの緑にして視認性をアップ */
}

/* お問い合わせの下の電話番号などの色 */
.text-dark {
    color: #222222 !important;
}
/* --- PageSpeed Insights コントラスト改善策 --- */

/* 1. 送信ボタンの緑を少し濃くして読みやすくする */
.btn-success {
    background-color: #2b7a21 !important; /* 標準より少し深い緑 */
    border-color: #2b7a21 !important;
    color: #ffffff !important;
}

/* 2. 電話番号リンクの色を濃い緑にする */
.tel-link {
    color: #2b7a21 !important;
    font-weight: bold;
}

/* 3. フォーム内「プライバシーポリシー」のリンク色を濃くする */
#contact-form a {
    color: #216319 !important;
    text-decoration: underline;
}

/* 4. フッターの「個人情報保護方針」などの薄い文字を濃くする */
footer .text-muted.small, 
footer a.text-muted {
    color: #555555 !important;
}

/* 5. 必須バッジ（赤）も念のため少し濃く */
.badge-danger {
    background-color: #c82333 !important;
}
/* --- フッターのコントラスト改善（最終仕上げ） --- */

footer {
    background-color: #343a40 !important; /* 背景の黒を再定義 */
    color: #ffffff !important;           /* 全体の文字を白にする */
}

/* 著作権表示（© 2026...）の文字色を明るく */
footer p {
    color: #eeeeee !important; 
}

/* フッター内のリンク（個人情報保護方針など）を白く、目立たせる */
footer a.text-muted.small {
    color: #ffffff !important;
    text-decoration: underline; /* リンクだと分かりやすく下線を引く */
    opacity: 0.9;               /* ほんの少しだけ透過させて馴染ませる */
}

footer a.text-muted.small:hover {
    color: #ffc107 !important;  /* マウスを置いた時に黄色くして親切に */
    text-decoration: none;
}
/* --- ヒーローセクション（高さ調整 & フェード版） --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh; /* 高さを65vhから75vhにアップ。さらに高くするなら80vhへ */
    min-height: 500px; /* スマホ等で短くなりすぎないよう最小値を底上げ */
    overflow: hidden;
    background-color: #000;
}

/* 以前の ::before（暗幕）を解除 */
.hero-section::before { display: none !important; }

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 1枚目：明るさ確保のためrgba(0.2)へ。フェード間隔を12秒に。 */
.bg1 {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('images/chikushino1.jpg');
    animation: fadeImg1 12s infinite ease-in-out;
}

/* 2枚目 */
.bg2 {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('images/chikushino2.jpg');
    animation: fadeImg2 12s infinite ease-in-out;
}

/* 透明度の切り替えアニメーション（パッとならずに滑らかになります） */
@keyframes fadeImg1 {
    0%, 40% { opacity: 1; }
    60%, 100% { opacity: 0; }
}

@keyframes fadeImg2 {
    0%, 40% { opacity: 0; }
    60%, 100% { opacity: 1; }
}

/* 文字を最前面に */
.hero-content {
    position: relative;
    z-index: 10;
    padding-left: 10% !important; /* 文字の位置を少し右へ寄せてバランス調整 */
}

.hero-title {
    font-size: 3.5rem; /* 高さに合わせて少し文字も大きく */
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5); /* 文字の視認性を確保 */
}