/* 共通設定 */
:root {
    --main-color: #003366;
    --accent-color: #f39c12;
    --text-color: #333;
    --bg-light: #f9f9f9;
}

html {
    scroll-behavior: smooth; /* スムーズスクロールを有効化 */
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden; /* スマホでの横揺れ防止 */
}

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

.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--main-color);
}

.bg-light { background-color: var(--bg-light); }

/* ヘッダー */
.header {
    height: 90px;
    display: flex;
    align-items: center;
    background: #fff;
    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;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav ul {
    display: flex;
    gap: 20px;
}

.header-nav a {
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.header-nav a:hover { color: var(--main-color); }

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.head-tel {
    display: flex;
    flex-direction: column;
    text-align: right;
    color: var(--main-color);
    text-decoration: none;
}

.head-tel-label { font-size: 0.7rem; font-weight: bold; }
.head-tel-num { font-size: 1.2rem; font-weight: 800; line-height: 1; }

.head-btn {
    background-color: var(--main-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s;
}

.head-btn:hover { background-color: var(--accent-color); }

.logo img { height: 40px; vertical-align: middle; }

/* メインビジュアル */
.main-visual {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/main-visual.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.mv-content h2 { font-size: 2.5rem; margin-bottom: 15px; }

/* 事業紹介グリッド */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border: 1px solid #ddd;
    padding-bottom: 25px;
    text-align: center;
    display: flex; /* 高さを揃えるための設定 */
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 200px; /* 画像の高さを一定にすると綺麗です */
    object-fit: cover; /* 枠に合わせてトリミング */
    margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 10px; color: var(--main-color); padding: 0 15px; }
.service-card p { padding: 0 15px; font-size: 0.9rem; flex-grow: 1; }

/* 拠点情報 */
.base-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.base-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.base-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.base-info h3 {
    font-size: 1.3rem;
    color: var(--main-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color);
    display: inline-block;
}

.base-info p { font-size: 0.95rem; margin-bottom: 5px; }

.btn-map {
    display: inline-block;
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    background: #fff;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-map:hover { background: var(--main-color); color: #fff; }

/* 会社情報テーブル */
.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th, .company-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.company-table th { width: 30%; text-align: left; background: #eee; }

/* コンバージョン領域 */
.cta-section { background-color: var(--bg-light); padding-bottom: 100px; }
.cta-box {
    background: #fff;
    border: 4px solid var(--main-color);
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
}
.cta-title { font-size: 2rem; color: var(--main-color); margin-bottom: 20px; }
.cta-description { margin-bottom: 40px; font-weight: bold; line-height: 1.8; }
.cta-flex { display: flex; justify-content: center; gap: 30px; }

.cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 340px;
    padding: 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-sub { font-size: 0.8rem; margin-bottom: 5px; }
.btn-main { font-size: 1.5rem; font-weight: bold; }
.btn-note { font-size: 0.75rem; margin-top: 5px; opacity: 0.8; }

.tel-btn { background-color: var(--accent-color); color: #fff; }
.mail-btn { background-color: var(--main-color); color: #fff; }

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* フッター */
.footer {
    background: var(--main-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
}

/* レスポンシブ（スマホ用） 最後にまとめて記述 */
@media (max-width: 768px) {
    .pc-only { display: none !important; }
    
    .header { height: 70px; }
    .header-right { gap: 10px; }
    .head-tel-label { display: none; }
    .head-tel-num { font-size: 1rem; }
    .head-btn { padding: 8px 12px; font-size: 0.75rem; }
    .logo img { height: 30px; }

    .mv-content h2 { font-size: 1.8rem; }
    
    .company-table th, .company-table td {
        display: block;
        width: 100%;
    }
    .company-table th { background: transparent; font-weight: bold; padding-bottom: 5px; }

    .cta-flex {
        flex-direction: column;
        align-items: center;
    }
    .cta-btn { width: 100%; max-width: 400px; }
    .cta-box { padding: 40px 20px; }
}