body {
    font-family: 'Meiryo', 'メイリオ', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    font-size: 16px;
}
a { color: #0056b3; text-decoration: none; }
a:hover { text-decoration: underline; }
.コンテナ { width: 980px; margin: 20px auto; background-color: #ffffff; border: 1px solid #ddd; box-shadow: 0 0 10px rgba(0,0,0,0.05); }
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
    min-height: 100px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/nav.png');
    background-size: cover;
    background-position: center;
}
nav ul { margin: 0; padding: 0; list-style-type: none; display: flex; }
nav ul li { margin: 0 15px; }
nav ul li a {
    font-size: 1.1em;
    font-weight: 500;
    color: #ffffff;
    padding: 5px 0;
    display: block;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
nav ul li a:hover, nav ul li.現在位置 a {
    color: #ffffff;
    border-bottom: 2px solid #c5931b;
    text-decoration: none;
}
main { padding: 30px; }
h1.ページタイトル { font-size: 2em; color: #003366; border-left: 10px solid #003366; padding: 10px 0 10px 15px; margin-bottom: 30px; }
h2 { font-size: 1.6em; color: #333; border-bottom: 2px solid #ccc; padding-bottom: 10px; margin-top: 40px; margin-bottom: 20px; }
p { margin-bottom: 1.5em; text-align: justify; }

.分割ビジュアル {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    height: 500px;
}
.分割ロゴ部 {
    background-color: #101012;
    flex: 0 0 auto;
    padding: 0;
}
.分割ロゴ部 img {
    width: 100%;
    height: auto;
    display: block;
}
.分割画像部 {
    overflow: hidden;
    background-color: #101012;
    flex: 1;
    width: 100%;
}
.分割画像部 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.リード文 { font-size: 1.2em; font-weight: bold; text-align: center; margin: 20px 0 40px 0; color: #111; }

.動画ラッパー {
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}
.動画ラッパー video {
    width: 100%;
    display: block;
    height: auto;
}

.お知らせ欄 { border: 1px solid #ddd; padding: 20px; margin-top: 20px; }
.お知らせリスト { list-style: none; padding: 0; }
.お知らせリスト li { border-bottom: 1px dotted #ccc; padding: 15px 0; }
.お知らせリスト li:last-child { border-bottom: none; }
.お知らせ日付 { display: inline-block; width: 120px; color: #555; }
.お知らせタグ { display: inline-block; background-color: #003366; color: #fff; font-size: 0.8em; padding: 2px 8px; margin-right: 10px; border-radius: 3px; }

.事業ブロック { display: flex; gap: 20px; margin-bottom: 40px; align-items: center; }
.事業画像 { flex: 1 1 40%; }
.事業画像 img { width: 100%; border: 1px solid #ccc; }
.事業テキスト { flex: 1 1 60%; }

.概要表 { width: 100%; border-collapse: collapse; }
.概要表 th, .概要表 td { border: 1px solid #ddd; padding: 15px; text-align: left; }
.概要表 th { background-color: #f5f8fa; width: 25%; font-weight: 500; }

.理念ボックス { border: 2px solid #003366; background-color: #f5f8fa; padding: 25px; margin-bottom: 30px; }
.理念ボックス h3 { font-size: 1.3em; color: #003366; text-align: center; margin: 0 0 15px 0; }

footer { background-color: #333; color: #e0e0e0; text-align: center; padding: 20px; font-size: 0.9em; }

.txkゴールド { color: #c5931b; font-weight: bold; }
.kogaiリンク { color: #3b82f6; font-weight: bold; }

@media (max-width: 1024px) {
    .コンテナ { width: 100%; margin: 0; border: none; box-shadow: none; }
    header {
        justify-content: center;
        padding: 15px;
        min-height: auto;
    }
    nav ul { flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 5px 10px; }
    main { padding: 20px; }
    h1.ページタイトル { font-size: 1.8em; }
    h2 { font-size: 1.4em; }
    .事業ブロック { flex-direction: column; }
    .概要表 th { width: 35%; }
}
@media (max-width: 480px) {
    .分割ビジュアル {
        height: auto;
    }
    .分割ロゴ部 h1 {
        font-size: 2.2em;
    }
    nav ul { flex-direction: column; width: 100%; gap: 0; }
    nav ul li { margin: 0; width: 100%; text-align: center; background-color: rgba(0, 0, 0, 0.2); }
    nav ul li a { border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-top: 12px; padding-bottom: 12px; }
    nav ul li a:hover, nav ul li.現在位置 a {
        border-bottom: 2px solid #c5931b;
        background-color: rgba(0, 0, 0, 0.4);
    }
    nav ul li:last-child a { border-bottom: none; }
    .お知らせ日付 { display: block; width: auto; margin-bottom: 5px; }
}

/* --- お問い合わせフォームのスタイル --- */
#問い合わせフォーム {
    margin-top: 40px;
}
.入力項目群 {
    margin-bottom: 25px;
}
.入力項目群 label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.入力項目群 .必須タグ {
    display: inline-block;
    margin-left: 8px;
    background-color: #c53030;
    color: #fff;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}
.入力項目群 input[type="text"],
.入力項目群 input[type="email"],
.入力項目群 input[type="tel"],
.入力項目群 textarea {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.入力項目群 input:focus,
.入力項目群 textarea:focus {
    border-color: #003366;
    box-shadow: 0 0 8px rgba(0, 51, 102, 0.2);
    outline: none;
}
.入力項目群 input.エラー,
.入力項目群 textarea.エラー {
    border-color: #c53030;
    background-color: #fdeaea;
}
.エラーメッセージ {
    color: #c53030;
    font-size: 0.9em;
    margin-top: 5px;
}
.操作欄 {
    text-align: right;
}
#送信ボタン {
    background-color: #003366;
    color: #fff;
    font-size: 1.1em;
    font-weight: 500;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
#送信ボタン:hover {
    background-color: #0056b3;
}
#送信ボタン:disabled {
    background-color: #999;
    cursor: not-allowed;
}
#フォーム状態 {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}
#フォーム状態 p {
    margin: 0;
    text-align: center;
}
.状態成功 {
    background-color: #e6f7f2;
    border: 1px solid #006442;
    color: #006442;
}
.状態エラー {
    background-color: #fdeaea;
    border: 1px solid #c53030;
    color: #c53030;
}
