/* 基本設定 */
html { scroll-behavior: smooth; }

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    scroll-behavior: smooth;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ヘッダー */
header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

h1 { margin: 0; font-size: 1.5rem; color: #0044aa; }

nav ul { list-style: none; display: flex; margin: 0; }
nav li { margin-left: 20px; }
nav a { text-decoration: none; color: #333; font-weight: bold; }

/* ヒーローエリア */
.hero {
    background: linear-gradient(rgba(0,68,170,0.7), rgba(0,68,170,0.7)), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1200&q=80'); /* 背景画像例 */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
}

.hero h2 { font-size: 2.5rem; margin-bottom: 20px; }

/* 共通パーツ */
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; }
.bg-light { background: #f4f4f4; }
.btn { background: #ff8800; color: #fff; padding: 10px 25px; border-radius: 5px; text-decoration: none; display: inline-block; }

/* グリッドレイアウト */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-top: 5px solid #0044aa; }

/* テーブル */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 15px; border-bottom: 1px solid #ddd; text-align: left; }
.company-table th { width: 30%; color: #0044aa; }

/* コンタクト */
.contact-box { text-align: center; background: #fff; padding: 40px; border: 2px solid #0044aa; }
.tel { font-size: 2rem; font-weight: bold; color: #0044aa; margin: 20px 0; }

footer { text-align: center; padding: 20px; background: #333; color: #fff; }



h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
text-align: center;
}


/* --- レスポンシブ対応 (タブレット・スマホ) --- */

@media (max-width: 768px) {
    /* ヘッダーを縦並び、またはコンパクトに */
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        padding: 0;
    }
    
    nav li {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    /* ヒーローエリアの文字サイズ調整 */
    .hero h2 {
        font-size: 1.8rem;
    }

    /* 会社概要テーブルを縦長に（スマホで読みやすく） */
    .company-table th, 
    .company-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    
    .company-table th {
        padding-bottom: 5px;
        font-weight: bold;
    }
    
    .company-table td {
        padding-top: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* --- ハンバーガーメニューのスタイル --- */
@media (max-width: 768px) {
    /* 三本線ボタンのデザイン */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #0044aa;
        transition: all 0.3s ease-in-out;
    }

    /* メニューを隠して縦並びに */
    nav {
        position: absolute;
        top: 70px; /* ヘッダーの高さに合わせて調整 */
        left: -100%; /* 通常時は画面外に隠す */
        width: 100%;
        background-color: #fff;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    /* 「active」クラスがついたら画面内に表示 */
    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    nav li {
        margin: 15px 0;
    }

    /* ボタンが押された時の三本線の変化（X印にする） */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* PCではボタンを隠す */
@media (min-width: 769px) {
    .menu-toggle { display: none; }
}

/* フォーム全体のスタイル */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.contact-desc { text-align: center; margin-bottom: 30px; font-size: 0.9rem; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group label span {
    background: #ff4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

/* 入力欄のスタイル */
input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* 幅100%を維持 */
    font-size: 1rem;
}

/* 送信ボタン */
.submit-btn {
    display: block;
    width: 100%;
    background: #0044aa;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover { background: #003388; }