@charset "UTF-8";

/* =========================================
   全体設定
   ========================================= */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    background-image: url('photos/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #f4f4f4;
}

.wrapper {
    width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   ヘッダーレイアウト（1000px / 高さ110px）
   ========================================= */
.site-header {
    width: 1000px;
    height: 110px;            /* 80 + 30 = 110px（ラインを無くしたため2px縮小） */
    display: flex;
    background-color: #fff;
    margin: 0;
    padding: 0;
    border-bottom: none;      /* 青いラインを削除 */
    box-sizing: border-box;
    overflow: hidden;
}

/* 左側：マスコットエリア (140px固定) */
.header-mascot {
    width: 140px;
    height: 110px;
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-mascot img {
    height: 110px;
    width: auto;
    display: block;
}

/* 右側：メインエリア (860px固定) */
.header-main {
    width: 860px;
    height: 110px;
    flex: 0 0 860px;
    display: flex;
    flex-direction: column;
}

/* 右側上段：ロゴとナビゲーション (80px) */
.header-top-row {
    width: 860px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 0;
    box-sizing: border-box;
}

.header-left-box {
    display: flex;
    align-items: center;
    height: 80px;
}

.header-logo-link {
    display: block;
    height: 80px;
}

.header-logo {
    height: 80px;
    width: auto;
    display: block;
    border: none;
    text-indent: 0 !important;
}

/* SEO用のテキスト（H1）を完全に隠す設定 */
.sr-only, .hidden-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 右側下段：4連バナーエリア (30px) */
.banner-area {
    width: 860px;
    height: 30px;
    display: flex;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.banner-area a {
    display: block;
    width: 215px;
    height: 30px;
    flex: 0 0 215px;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.banner-area a:hover {
    opacity: 0.8;
    filter: brightness(1.1);
}

.banner-area img {
    width: 215px;
    height: 30px;
    display: block;
    border: none;
}

/* ナビゲーション */
.header-top-row nav {
    display: flex;
    white-space: nowrap;
}

.header-top-row nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 15px;
}

.large-text {
    font-size: 0.8em; /* 0.8倍の大きさ */
}

/* =========================================
   メインエリア（共通レイアウト設定）
   ========================================= */
.site-main { padding: 0; flex: 1; }

#custom-free-space {
    padding: 20px 30px;
}

.standard-page {
    padding-top: 20px;
    padding-bottom: 60px;
    padding-left: 5em;
    padding-right: 5em;
    box-sizing: border-box;
}

.standard-page h1, 
.standard-page h2 {
    margin-top: 0 !important;
}

/* =========================================
   マップエリアの余白除去
   ========================================= */
#top-map-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0;
}

#top-map-section + section,
#custom-free-space {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.map-container {
    margin-bottom: 0 !important;
    width: 1000px;
    height: 594px;
    position: relative;
    line-height: 0;
}

.map-container svg {
    width: 1000px;
    height: 594px;
    display: block;
}

.region-path {
    fill: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: 0.2s;
}
.region-path:hover { fill: rgba(0, 94, 184, 0.3); }

/* =========================================
   ポップアップ
   ========================================= */
.minatsu-popup {
    position: absolute;
    display: none;
    width: 220px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    z-index: 1000;
    transform: translate(-50%, -105%);
    pointer-events: auto;
    line-height: normal;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.minatsu-popup:hover {
    transform: translate(-50%, -108%) scale(1.02);
}

.minatsu-popup.is-bottom { transform: translate(-50%, 20px); }
.minatsu-popup img { width: 100%; border-radius: 15px 15px 0 0; display: block; height: 140px; object-fit: cover; }
.popup-label {
    position: absolute; bottom: 12px; right: 12px; background: rgba(255,255,255,0.95);
    padding: 5px 15px; border-radius: 6px; font-weight: bold; color: #333; font-size: 15px;
}

/* =========================================
   トップページ：ニュースエリア
   ========================================= */
.news-wrapper {
    margin: 40px 30px; /* 周囲に適度な余白 */
}

.news-title {
    font-size: 1.2rem;
    color: #005eb8;
    margin-bottom: 10px;
    font-weight: bold;
}

.news-content {
    border: 1px solid #ccc; /* 薄く細いグレーの枠 */
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    min-height: 100px; /* ニュースが空でも形を維持 */
}

/* =========================================
   法務・会社情報関連共通スタイル
   ========================================= */
.conditions-body { max-width: 940px; margin: 0 auto; line-height: 1.8; color: #333; font-size: 15px; }
.condition-item { margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.condition-item h3 { color: #005eb8; font-size: 1.25rem; margin-bottom: 15px; display: flex; align-items: center; }
.condition-item h3::before { content: ""; display: inline-block; width: 6px; height: 1.3em; background: #005eb8; margin-right: 12px; border-radius: 3px; }

/* =========================================
   フッター
   ========================================= */
.site-footer {
    padding: 40px 0;
    text-align: center;
    background-color: #fff;
    color: #333;
    border-top: 1px solid #eee;
    margin-top: auto;
}
.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
}
.footer-links a { color: #666; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #0073aa; text-decoration: underline; }
.site-footer p { margin: 0; font-size: 13px; color: #999; }