/* ==========================================================================
   1. 基本リセット & 共通スタイル
   ========================================================================== */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    line-height: 1.8;
    background-color: #ffffff;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 0;
}
.bg-light {
    background-color: #f8fafc;
}
.bg-dark {
    background-color: #0f2a4a;
    color: #ffffff;
}
.text-center {
    text-align: center;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 30px;
    color: #0f2a4a;
    margin-top: 0;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    font-weight: bold;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #c2410c; 
}
.section-sub {
    text-align: center;
    color: #64748b;
    margin-bottom: 45px;
    font-size: 16px;
}

/* ==========================================================================
   2. ヘッダー (白背景・紺文字)
   ========================================================================== */
header {
    background-color: #ffffff; 
    color: #0f2a4a;            
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    border-bottom: 1px solid #e2e8f0;        
}
.header-flex {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 22px;
    margin: 0;
    font-weight: bold;
    color: #0f2a4a; 
}
header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}
header nav ul li {
    margin-left: 25px;
}
header nav ul li a {
    color: #0f2a4a; 
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: color 0.3s;
}
header nav ul li a:hover {
    color: #c2410c; 
}
.nav-cta {
    background-color: #c2410c;
    color: #ffffff !important; 
    padding: 8px 16px;
    border-radius: 4px;
}
.nav-cta:hover {
    background-color: #ea580c !important;
}

/* ==========================================================================
   3. メインビジュアル (Hero)
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(0, 255, 150, 0.15), rgba(0, 255, 150, 0.15)), url('https://unai-office.com/images/field.jpg') no-repeat center center/cover;
    background-color: #0f2a4a;
    color: #ffffff;
    text-align: center;
    padding: 120px 20px;
}
.hero h2 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.4;
}
.hero p {
    font-size: 18px;
    margin-bottom: 35px;
    color: #e2e8f0;
}
.btn-main {
    display: inline-block;
    background-color: #c2410c;
    color: #ffffff;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: background-color 0.3s, transform 0.2s;
}
.btn-main:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. ★代表挨拶セクション (PC・スマホ両対応の上揃え設定)
   ========================================================================== */
.profile-flex {
    display: flex;
    flex-direction: column; /* スマホでは縦並び */
    gap: 30px;
    align-items: center;    /* スマホでは中央寄せ */
    padding-top: 10px;
}
.profile-img {
    width: 100%;
    max-width: 320px; 
    text-align: center;
}
.profile-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.profile-text {
    width: 100%;
}
.profile-text h3 {
    font-size: 24px;
    color: #0f2a4a;
    margin-top: 0;
    margin-bottom: 5px;
}
.lead {
    font-weight: bold;
    color: #c2410c;
    margin-bottom: 20px;
}

/* ★パソコン画面（横幅769px以上）のときの設定（上揃えを強制） */
@media (min-width: 769px) {
    .profile-flex {
        flex-direction: row !important;      /* 横並び */
        align-items: flex-start !important;  /* 縦の位置を「絶対に一番上」で揃える */
        gap: 50px;
    }
    .profile-img {
        flex: 1;
    }
    .profile-text {
        flex: 2;
    }
}

/* ==========================================================================
   5. 業務内容 (3つのカード、リンク対応)
   ========================================================================== */
.services-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.service-card {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid #0f2a4a;
    transition: transform 0.3s;
    text-decoration: none; 
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.service-card h3 {
    font-size: 20px;
    color: #0f2a4a;
    margin-top: 0;
    margin-bottom: 15px;
}
.service-card p {
    font-size: 15px;
    color: #475569;
    margin: 0;
    text-align: justify;
}

/* ==========================================================================
   6. 事務所概要 & 地図 (巨大・密着マップ設定)
   ========================================================================== */
.office-flex {
    display: flex;
    flex-direction: column; 
    gap: 30px;
}
.office-table {
    width: 100%; 
}
.office-table table {
    width: 100%;
    border-collapse: collapse;
}
.office-table th, .office-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.office-table th {
    width: 25%;
    background-color: #f1f5f9;
    color: #0f2a4a;
    font-weight: bold;
    text-align: left;
}
.office-table td {
    text-align: left;
}

/* 地図外枠 */
.office-map {
    width: 100%; 
    height: 550px;       
    margin-top: 10px;
    position: relative;  
    overflow: hidden;    
    border: none;
    padding: 0 !important;
}
/* 地図本体（iframe） */
.office-map iframe {
    position: absolute;  
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
}
.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* ==========================================================================
   7. お問い合わせエリア (CTA) & フッター
   ========================================================================== */
#contact h2 {
    font-size: 28px;
    margin-top: 0;
}
#contact p {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 35px;
}
.contact-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.btn-tel, .btn-mail {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.btn-tel {
    background-color: #ffffff;
    color: #0f2a4a;
}
.btn-mail {
    background-color: #c2410c;
    color: #ffffff;
}
.btn-tel:hover { background-color: #f1f5f9; }
.btn-mail:hover { background-color: #ea580c; }
.or-text {
    margin: 0 !important;
    color: #94a3b8 !important;
}

footer {
    background-color: #0b1e35;
    color: #94a3b8;
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
}

/* ==========================================================================
   8. レスポンシブ用（スマホ表示での表示微調整）
   ========================================================================== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        margin-bottom: 15px;
    }
    header nav ul li {
        margin: 0 10px;
    }
    .hero h2 {
        font-size: 26px;
    }
    .container {
        padding: 50px 0;
    }
}

/* ヘッダーの事務所名リンクの見た目を整える */
.logo-link {
    color: #0f2a4a;         /* 紺色に固定 */
    text-decoration: none; /* 下線を消す */
}
.logo-link:hover {
    color: #c2410c;         /* マウスを当てたときだけアクセントのオレンジ色に変化 */
}
