@charset "UTF-8";

/* ==========================================================================
   0. 変数定義・ルート設定 (New)
   ========================================================================== */
:root {
    --primary: #004098;  
    --primary-light: #e6f0fa;
    --region-bg: #2c3e50;
    --accent-alert: #c0392b;
    --text-main: #333;
    --border: #dcebf7;
    --white: #ffffff;
    
    /* 路線ラインカラー定義 */
    --line-jr: #2ecc71;      /* JR系 */
    --line-tokyu: #e74c3c;   /* 東急系 */
    --line-keikyu: #3498db;  /* 京急系 */
    --line-odakyu: #0067c0;  /* 小田急系 */
    --line-sotetsu: #2c3e50; /* 相鉄系 */
    --line-subway: #f39c12;  /* 地下鉄系 */
    --line-enoden: #27ae60;  /* 江ノ電 */
    --line-keio: #d35400;    /* 京王 */
}

/* ==========================================================================
   1. 基本設定・ベース (Priority: Highest)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* コピー防止・操作制限 (New) */
    -webkit-user-select: none;
    user-select: none;
}

/* 画像ドラッグ防止  */
img {
    -webkit-user-drag: none;
    pointer-events: none;
}

/* 入力エリアは選択可能にする  */
input, textarea {
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* ==========================================================================
   2. レイアウト・タイポグラフィ
   ========================================================================== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

section {
    margin-bottom: 80px;
}

h1 {
    width: 100%;
    max-width: 1100px;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.4;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

h1 span.company-name {
    display: block;
    font-size: 1.5rem;
    margin-top: 10px;
}

h2 {
    border-left: 8px solid #004098;
    padding-left: 15px;
    color: #004098;
    font-size: 1.8rem;
    margin-bottom: 30px;
    line-height: 1.4;
    scroll-margin-top: 80px;
}

h3 {
    scroll-margin-top: 80px;
}

/* ターゲット位置調整（スクロールマージン） */
#intro { scroll-margin-top: 5vh !important; }
#qa, #plans, #contact { scroll-margin-top: 10vh !important; }

/* ==========================================================================
   3. 共通コンポーネント・ユーティリティ
   ========================================================================== */
.strength-box {
    background: #fff9f0;
    border: 2px solid #ffcc00;
    padding: 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
}

.info-board p {
    margin: 0 3%;
}

.keyword-tag {
    background: #004098;
    color: #fff;
    padding: 2px 10px;
    font-size: 0.9rem;
    border-radius: 3px;
    margin-right: 5px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}

/* 解決策タグ (New) */
.solution-container {
    background: #f9f9f9; /* 旧スタイル互換 */
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex; /* Flexに変更（HTML側のCSS優先） */
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.sol-tag {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 4px 10px;
    text-align: center;
    font-size: 0.75rem;
    border-radius: 4px;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sol-tag.active {
    background: #e6f0fa;
    border-color: #b3d7ff; /* HTML側のスタイル優先 */
    color: var(--primary);
    font-weight: bold;
}

/* ==========================================================================
   4. ナビゲーション・ヘッダー・フッター
   ========================================================================== */
/* PCナビゲーション */
.index-nav {
    background: #004098;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid #ff6600;
}

.index-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.index-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.index-nav ul li {
    flex: 1;
    text-align: center;
}

.index-nav ul li a {
    display: block;
    padding: 15px 5px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}

.index-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-header, #menu-toggle {
    display: none;
}

footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 30px 30px 60px;
    font-size: 0.85rem;
}

/* ==========================================================================
   5. セクション別スタイル (Modules)
   ========================================================================== */

/* 5-1. メインビジュアルスライダー */
/* スライダー全体のコンテナ（位置基準） */
.slider-container {
    position: relative;
    overflow: hidden;
}

/* 網目状のマスクレイヤー */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* 画像より上に配置 */
    pointer-events: none; /* マスク越しにクリックやスクロールを可能にする */
    
    /* 透過量の多い微細な網目（ドットメッシュ） */
    background-image: radial-gradient(rgba(0, 0, 0, 0.20) 1px, transparent 1px);
    background-size: 3px 3px; /* 網目の細かさ */
    
    /* オプション：全体を少し暗くして文字の視認性を上げる場合 */
    background-color: rgba(0, 0, 0, 0.3); 
}

/* スライドを横一列に並べるトラック */
.slider-track {
    display: flex;
    width: max-content; /* 内容に合わせて幅を自動決定 */
}

/* 各スライドのサイズ設定 */
.slide {
    flex-shrink: 0;
    width: 500px; /* PC時の基本サイズ */
    height: 350px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 比率を維持してトリミング */
    display: block;
}

/* 無限ループアニメーション */
@keyframes infinite-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* 半分（クローン分）まで進んだら戻る */
}

/* スマホ対応の調整 */
@media (max-width: 768px) {
    .slide {
        width: 80vw;
        height: 50vw;
    }
}

.header-text-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #fff;
    padding: 0 20px;
    box-sizing: border-box;
}

/* =========================================================
   Intelligence Section Styles （PC表示）
========================================================= */

/* ① 全体・横ブレ防止のベース */
.intelligence-section {
    width: 100%;
    /* はみ出しを親要素で強制的にカット（全体横ブレの最終防波堤） */
    overflow: hidden; 
    /* PC・タブレット向けの余白設定 */
    padding: 60px 20px; 
    background-color: #fcfcfd; /* ほんのり背景色をつけてセクションを区切る */
    box-sizing: border-box;
}

/* ② コンテンツ幅の制御 */
.intelligence-inner {
    max-width: 1000px; /* サイトのメイン幅に合わせて調整してください */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ③ ラベル・見出し・テキストの装飾 */
.intelligence-section .section-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.intelligence-section .section-title {
    font-size: 1.75rem;
    color: #333;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: bold;
}

.intelligence-section .section-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 32px;
    text-align: left;
}

/* ④ 外部ファイル読み込み枠（★横ブレ対策の最重要ポイント） */
.intelligence-frame {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px; /* 角丸でモダンな印象に */
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* 軽いシャドウで浮かせる */
    width: 100%;
    box-sizing: border-box;
    
    /* PHPから読み込まれたテーブルや画像がはみ出た場合、この枠内だけで横スクロールさせる */
    overflow-x: auto; 
    /* 長いURLや英単語が来ても強制的に折り返す */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 準備中メッセージのスタイル */
.intelligence-frame .news-empty {
    color: #888;
    text-align: center;
    margin: 0;
    padding: 20px 0;
}

/* =========================================================
   Intelligence Section Styles　スマホ向けレスポンシブ (768px)
========================================================= */
@media screen and (max-width: 768px) {
    .intelligence-section {
        /* スマホでは画面端ギリギリにならないようpaddingで余白を確保 */
        padding: 40px 15px; 
    }

    .intelligence-section .section-title {
        font-size: 1.3rem; /* スマホでも2〜3行で綺麗に収まるサイズ */
    }

    .intelligence-section .section-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .intelligence-frame {
        padding: 20px 15px; /* スマホでは枠内の余白を少し詰めて表示領域を広げる */
    }
}

/* 5-2. 実績セクション */
.achievement-case {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e1e8f0;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.achievement-case:hover {
    transform: translateY(-5px);
}

.achievement-case:nth-child(even) {
    flex-direction: row-reverse;
}

.case-img {
    flex: 1;
    min-height: 300px;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-body {
    flex: 1.2;
    padding: 40px;
}

.case-header {
    font-weight: bold;
    color: #d35400;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 12px;
    border-bottom: 2px solid #d35400;
    padding-bottom: 5px;
}

/* 5-3. Q&Aセクション */
.qa-section {
    background: #f9f7f6;
    color: #4a4a4a;
    padding: 60px 40px;
    border-radius: 15px;
    border: 1px solid #e2ddd9;
    margin-bottom: 80px;
}

.qa-header-flex {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    gap: 40px;
}

.qa-logo-area {
    flex: 0 0 30%;
    text-align: center;
}

.qa-logo-area img {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.qa-text-area {
    flex: 0 0 70%;
}

.qa-text-area h2 {
    color: #333;
    border-left: 6px solid #8e7c68;
    font-size: 2.1rem;
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.qa-description {
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0 3%;
}

.qa-list {
    margin-top: 30px;
}

/* 旧QAアイテムスタイル（互換性維持） */
.qa-item {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 25px;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: 0.3s ease-in-out;
}
.qa-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #8e7c68;
}
.qa-q {
    font-weight: bold;
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}
.qa-q::before {
    content: "Q.";
    margin-right: 15px;
    font-size: 1.6rem;
    color: #8e7c68;
    line-height: 1;
}
.qa-a {
    color: #555;
    line-height: 1.9;
    display: flex;
    align-items: flex-start;
}
.qa-a::before {
    content: "A.";
    margin-right: 15px;
    font-size: 1.6rem;
    color: #004098;
    line-height: 1;
    font-weight: bold;
}
.qa-info {
    font-size: 0.85rem;
    color: #8e7c68;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 0.05em;
    font-weight: bold;
}

/* 新QAアコーディオン・カードスタイル */
.qa-item-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.qa-list details {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.qa-list details[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(0,64,152,0.1);
}

.qa-summary-new {
    padding: 15px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #fcfcfc;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.qa-summary-new:hover {
    background-color: #f0f7ff;
}
.qa-summary-new::-webkit-details-marker { display: none; }

.qa-badge {
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 15px;
    margin-right: 15px;
    flex-shrink: 0;
}

.qa-question-text {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
    flex-grow: 1;
    padding-right: 25px; /* 矢印分の余白 */
    line-height: 1.5;
}

.qa-question-text::before {
    content: "Q.";
    color: var(--primary);
    font-weight: 900;
    margin-right: 5px;
    font-size: 1.1rem;
}

.qa-toggle-icon {
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.3s;
    position: absolute;
    right: 20px;
}

details[open] .qa-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* アコーディオンの中身 (Answer) */
.qa-answer-area {
    padding: 20px;
    border-top: 1px dashed #e1e8ed;
    background-color: #fff;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 旧スタイルと共通のクラス名だが、新HTML構造用の指定 */
.qa-q-text {
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: block;
    border-left: 4px solid #004098;
    padding-left: 10px;
}

.qa-a-text {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.qa-a-text::before {
    content: "A.";
    position: absolute;
    left: 0;
    top: 0;
    color: #e74c3c;
    font-weight: 900;
    font-size: 1.1rem;
}

/* 5-4. 料金プランセクション */
.plan-header-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.plan-header-image {
    flex: 0 0 25%;
    text-align: center;
}

.plan-header-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

.plan-header-content {
    flex: 0 0 70%;
}

.plan-header-content h2 {
    margin-bottom: 15px;
}

.plan-description {
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.plan-box {
    background: #fff;
    border: 2px solid #004098;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 64, 152, 0.1);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.plan-box-care {
    background: #fff;
    border: 2px solid #9748A7;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 64, 152, 0.1);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.plan-box-ec {
    background: #fff;
    border: 2px solid #1D2140;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 64, 152, 0.1);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.plan-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 64, 152, 0.15);
}

.plan-box h3 {
    background: #004098;
    color: #fff;
    margin: 0;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.4;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-box-care h3 {
    background: #9748A7;
    color: #fff;
    margin: 0;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.4;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-box-ec h3 {
    background: #1D2140;
    color: #fff;
    margin: 0;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.4;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-box-body {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 10px;
    display: block;
}

.plan-price span {
    font-size: 0.9rem;
    color: #333;
    font-weight: normal;
}

.plan-detail {
    text-align: left;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.plan-outro {
    background: #eef4ff;
    border: 2px dashed #004098;
    padding: 25px;
    border-radius: 12px;
    font-size: 0.95rem;
}

/* 5-5. サービス内容 */
.service-list {
    background: #f4f7fa;
    padding: 40px;
    border-radius: 12px;
}

.service-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

.service-list li {
    background: #fff;
    padding: 20px;
    border-left: 5px solid #004098;
}

.service-list li strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #004098;
}

.service-list strong.area-heading {
    color: #2c3e50;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    font-weight: normal;
}

/* 5-6. EC支援 プレミアムデザイン */
.ec-premium-section {
    background: linear-gradient(135deg, #fffcf5 0%, #f0f7ff 100%);
    border: 2px solid #e0c28d;
    padding: 40px 20px;
    border-radius: 24px;
    margin: 40px 10px;
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.1);
    position: relative;
    text-align: center;
    /* 新規調整: 既存よりパディング下を広めに */
    padding-bottom: 60px;
}

.ec-premium-section h2 {
    color: #a0781a;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px; /* 既存より詰める調整 */
    display: inline-block;
    border-bottom: none;
}

.ec-premium-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #a0781a;
    margin: 10px auto;
    border-radius: 2px;
}

.ec-lead-text {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 25px; /* 既存より詰める調整 */
    line-height: 1.6;
}

.ec-lead-text strong {
    color: #d4a017;
    background: linear-gradient(transparent 70%, #fff3b0 70%);
}

.ec-infographic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.ec-infographic-grid.compact-mode {
    gap: 15px; /* 既存より狭い */
    margin-bottom: 40px;
}

.ec-step-card-premium {
    background: #ffffff;
    border-radius: 18px;
    padding: 15px; /* 内余白調整 */
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ec-step-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ec-step-card-premium h4 {
    font-size: 1rem;
    color: #333;
    margin: 10px 0;
    font-weight: bold;
}

.ec-step-card-premium p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.soft-icon-bg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.bg-step1 { background-color: #fff0f0; }
.bg-step2 { background-color: #f0f9ff; }
.bg-step3 { background-color: #f3fff0; }
.bg-step4 { background-color: #fff6e5; }
.bg-step5 { background-color: #f6f0ff; }
.bg-step6 { background-color: #e5fdfd; }

.step-label {
    font-size: 0.7rem;
    font-weight: bold;
    color: #a0781a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* 追加SEOテキストエリア (New) */
.seo-long-text-area {
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
    padding: 30px;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
}
.seo-long-text-area h3 {
    color: var(--primary);
    font-size: 1.4rem;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.seo-long-text-area h3:first-of-type { margin-top: 0; }
.seo-long-text-area h4 {
    font-size: 1.15rem;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.seo-long-text-area h4::before {
    content: '■';
    margin-right: 8px;
    font-size: 1rem;
}
.seo-long-text-area p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}
.seo-long-text-area strong {
    background: linear-gradient(transparent 70%, #fffacd 70%);
    color: #333;
}

/* 5-7. エリアリスト・相談事例 */
.area-list-section {
    background-color: #ffffff;
    padding: 50px 20px;
    color: #333;
}

.area-list-section h2 {
    color: #2c3e50;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 10px;
    font-size: 1.6rem;
    text-align: left;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.area-item {
    background: #f9f9f9;
    padding: 8px;
    border: 1px solid #ecf0f1;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    border-radius: 4px;
}

.area-description {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   6. お問い合わせセクション
   ========================================================================== */
.contact-box {
    background: #eef4ff;
    padding: 45px;
    border: 2px solid #004098;
    border-radius: 12px;
    text-align: center;
}

.contact-flex-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
    margin-bottom: 20px;
}

.contact-left-char {
    flex: 0 0 30%;
    text-align: center;
}

.contact-left-char img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.contact-right-info {
    flex: 0 0 70%;
}

.contact-right-info h2 {
    margin-top: 0;
    margin-bottom: 20px;
    border-left: 8px solid #004098;
    padding-left: 15px;
}

.contact-btn {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin: 25px 0;
    font-size: 1.1rem;
    text-align: center;
}

.freedial-display {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.freedial-logo-img {
    width: 80px;
    height: auto;
    vertical-align: middle;
}

.freedial-num {
    font-size: 2.2rem;
    font-weight: bold;
    color: #004098;
    line-height: 1.2;
}

.freedial-num ruby rt {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #333;
    font-weight: normal;
}

/* ==========================================================================
   7. 固定・フローティングUI (Floating/Fixed Elements)
   ========================================================================== */
/* フローティングTOPボタン */
.floating-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    background: rgba(0, 64, 152, 0.8);
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    text-align: center;
    line-height: 1.2;
}

.floating-top-btn:hover {
    background: #1C19A4;
    transform: translateY(-5px);
}

.floating-top-btn.is-shifted {
    bottom: calc(130px + env(safe-area-inset-bottom)) !important;
}

.floating-top-btn {
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* モバイル固定バー */
.mobile-bottom-fixed-nav {
    display: none !important;
    position: fixed !important;
    bottom: 0px !important;
    margin: 0 2% 20px;
    width: 96%;
    height: 7vh;
    z-index: 1000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* アニメーション用初期設定 */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
    padding: 10px 10px 20px 10px calc(15px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    gap: 12px;
    justify-content: center;
    pointer-events: none;
    background: transparent;
}

.mobile-bottom-fixed-nav.is-visible {
    transform: translateY(-8px);
    opacity: 1;
}

.mobile-fixed-contact-btn,
.mobile-fixed-phone-btn {
    width: 50%;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-bottom-fixed-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    font-size: 0.95rem;
}

.mobile-fixed-contact-btn {
    background-color: #FF9700 !important;
}

.mobile-fixed-phone-btn {
    background-color: #0848F6 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* ==========================================================================
   9. エリアデータベース・地域情報 (New)
   ========================================================================== */
.db-container {
    width: 100%;
    margin: 20px auto;
    text-align: left;
}
.update-badge {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}
.region-header {
    background: var(--region-bg);
    color: white;
    padding: 10px 20px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.region-header::before {
    content: '■';
    margin-right: 10px;
    color: #f1c40f;
}
.city-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.city-summary {
    background: var(--primary-light);
    padding: 15px 25px;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background 0.3s;
    border-left: 6px solid var(--primary);
}
.city-summary:hover { background-color: #dbeafe; }
.city-summary::after { content: '▼'; font-size: 0.9rem; transition: 0.3s; }
details[open] .city-summary::after { transform: rotate(180deg); }
.city-summary::-webkit-details-marker { display: none; }
.city-content { padding: 20px; }
.area-block {
    border: 2px solid #eef2f5;
    border-radius: 8px;
    margin-bottom: 30px;
    background: #fff;
}
.area-header {
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 2px solid #eef2f5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.area-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}
.area-note {
    font-size: 0.8rem;
    color: #666;
    margin-left: auto;
}
.badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
}
.bg-ward { background-color: #7f8c8d; }
.bg-train { background-color: var(--primary); }
.bg-bus { background-color: #16a085; }
.section-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.data-table th, .data-table td {
    border: 1px solid #dcebf7;
    padding: 10px 15px;
    vertical-align: top;
}
.data-table th {
    background-color: #f1f8ff;
    color: var(--primary);
    width: 180px; /* 少し幅広に */
    font-weight: bold;
    text-align: left;
}
.facility-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.facility-list li {
    margin-bottom: 12px; /* 少し広げる */
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}
.facility-name { font-weight: bold; display: block; color: #333; margin-bottom: 2px;}
.facility-addr { font-size: 0.8rem; color: #666; display: block; margin-left: 0px; }

/* リンク装飾 */
.db-link {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.85rem;
    margin-right: 12px;
    display: inline-block;
    margin-top: 2px;
}
.db-link:hover { text-decoration: underline; opacity: 0.8; }
.icon-map::before { content: '\1f4cc'; margin-right: 3px; } /* ピンのアイコン */
.icon-web::before { content: '\1f310'; margin-right: 3px; } /* 地球儀のアイコン */
.icon-tel::before { content: '\1f4de'; margin-right: 3px; } /* 受話器のアイコン */

.shelter-row th { background-color: #fff5f5; color: var(--accent-alert); border-color: #ffcccc; }
.shelter-row td { background-color: #fffafa; border-color: #ffcccc; }
.disclaimer {
    margin-top: 40px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 20px;
    font-size: 0.8rem;
    color: #666;
    text-align: left;
}

/* 路線図・駅名リスト用スタイル（SEO強化） */
.station-map-container {
    margin-top: 20px;
    background-color: #fcfcfc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
}
.station-map-header {
    font-size: 1rem;
    color: #555;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}
.station-map-header::before {
    content: '\1f689'; /* 駅のアイコン */
    margin-right: 8px;
}
.railway-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
    line-height: 1.6;
}
.line-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 12px;
    min-width: 110px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.station-list-text {
    font-size: 0.85rem;
    color: #333;
}
.station-name {
    display: inline-block;
    margin-right: 5px;
}
.station-name::after {
    content: '/';
    color: #ccc;
    margin-left: 5px;
}
.station-name:last-child::after { content: ''; }

/* ラインカラー適用クラス */
.lc-jr { background-color: var(--line-jr); }
.lc-tokyu { background-color: var(--line-tokyu); }
.lc-keikyu { background-color: var(--line-keikyu); }
.lc-odakyu { background-color: var(--line-odakyu); }
.lc-sotetsu { background-color: var(--line-sotetsu); }
.lc-subway { background-color: var(--line-subway); }
.lc-keio { background-color: var(--line-keio); }
.lc-enoden { background-color: var(--line-enoden); }

/* ==========================================================================
   8. レスポンシブ設定 (Media Queries)
   ========================================================================== */

/* 中画面 (タブレット等 max-width 850px) */
@media (max-width: 850px) {
    .ec-infographic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PCのみのスタイル */
@media (min-width: 769px) {
    .mobile-bottom-fixed-nav {
        display: none;
    }

/* スマホ表示のみ改行させるためのスタイル */
    .pc-only {
        display: none; 
    }
}

/* スマホ基本 (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
        padding-bottom: 0vh;
    }

    h1 {
        text-align: left;
        font-size: 1.3rem;
    }

    h1 span.company-name {
        display: inline;
        margin-top: 0;
        padding-left: 0.5em;
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.5rem;
        scroll-margin-top: 70px;
    }

    h3 {
        scroll-margin-top: 70px;
    }

    footer {
    height: auto;
    padding: 30px 30px 80px;
    }
    
    /* モバイルナビ */
    .index-nav {
        position: fixed;
        width: 100%;
        top: 0;
        border-bottom: 3px solid #ff6600;
    }

    .index-nav-inner {
        display: none;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 15px;
        background: #004098;
        color: #fff;
        height: 50px;
        z-index: 101;
        cursor: pointer;
    }

    .mobile-header-logo-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 100%;
    }

    .mobile-header-cat {
        height: 40px;
        width: auto;
    }

    .mobile-nav-text {
        font-size: 1.1rem;
        font-weight: bold;
    }

    .menu-icon {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        margin-left: auto;
    }

    .menu-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background: #fff;
        border-radius: 3px;
        position: absolute;
        transition: 0.3s;
    }

    .menu-icon span:nth-child(1) { top: 0; }
    .menu-icon span:nth-child(2) { top: 8px; }
    .menu-icon span:nth-child(3) { top: 16px; }

    #menu-toggle:checked ~ .index-nav-inner {
        display: block;
        background: #004098;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        position: absolute;
        top: 50px;
        left: 0;
    }

    #menu-toggle:checked ~ .index-nav-inner ul {
        display: flex;
        flex-direction: column;
    }

    #menu-toggle:checked ~ .index-nav-inner ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #menu-toggle:checked ~ .index-nav-inner ul li a {
        text-align: left;
        padding: 15px 20px;
    }

    #menu-toggle:checked + .mobile-nav-header .menu-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #menu-toggle:checked + .mobile-nav-header .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked + .mobile-nav-header .menu-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 各セクション調整 */
    .achievement-case,
    .achievement-case:nth-child(even) {
        flex-direction: column;
    }

    .case-img {
        width: 100%;
        min-height: 200px;
        height: 200px;
    }

    .case-body {
        padding: 25px;
    }

    .qa-section {
        padding: 40px 20px;
    }

    .qa-header-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .qa-text-area h2 {
        border-left: none;
        border-bottom: 4px solid #8e7c68;
        padding: 0 0 10px 0;
        font-size: 1.7rem;
    }

    .plan-header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .plan-header-image,
    .plan-header-content {
        flex: 0 0 100%;
    }

    .plan-header-content h2 {
        border-left: none;
        border-bottom: 8px solid #004098;
        padding-left: 0;
        padding-bottom: 10px;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .service-list ul {
        grid-template-columns: 1fr;
    }

    .contact-flex-wrapper {
        flex-direction: column;
        text-align: center;
        display: flex;
    }

    .contact-right-info {
        order: 1;
        flex: 0 0 100%;
        width: 100%;
    }

    .contact-right-info h2 {
        border-left: none;
        border-bottom: 4px solid #004098;
        padding: 0 0 10px 0;
        display: inline-block;
        width: auto;
        margin-bottom: 20px;
    }

    .freedial-display {
        order: 2;
        justify-content: center;
        width: 100%;
        margin: 10px 0 20px 0;
    }

    .contact-left-char {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-btn {
        order: 4;
    }

    .freedial-num {
        font-size: 1.6rem;
    }

    .floating-top-btn {
        bottom: calc(7vh + 15px);
        width: 50px;
        height: 50px;
    }

    .mobile-bottom-fixed-nav {
        display: flex !important;
    }

    /* エリアデータベース・新要素のスマホ対応 (New) */
    .data-table th, .data-table td { display: block; width: 100%; box-sizing: border-box; }
    .area-header { flex-direction: column; align-items: flex-start; }
    .area-note { margin-left: 0; margin-top: 5px; }
    
    /* スマホ時のQA調整 */
    .qa-question-text { font-size: 0.95rem; }
    .qa-badge { margin-right: 10px; }
    .seo-long-text-area { padding: 15px; }
    
    /* スマホでのボタンの押しやすさ改善 */
    .db-link {
        padding: 5px 0;
        display: inline-block;
    }
    .railway-row { flex-direction: column; align-items: flex-start; border-bottom:1px dashed #eee; padding-bottom:5px;}
    .line-tag { margin-bottom: 5px; }

    /* 業務一覧・対応エリアの最大幅化 & 文字サイズ縮小 */
    .service-list, .area-list-section {
        padding-left: 5px; /* 左右余白を極小に */
        padding-right: 5px;
    }
    .service-list h2, .area-list-section h2 {
        font-size: 1.1rem; /* 見出しサイズ調整 */
        margin-left: 5px;
        margin-right: 5px;
    }
    
    /* 業務一覧リスト */
    .service-list ul li {
        padding: 10px; /* 内余白を詰める */
        font-size: 0.85rem; /* 文字サイズ縮小 */
    }
    .service-desc {
        font-size: 0.8rem; /* 説明文さらに小さい */
        line-height: 1.5;
        margin-top: 5px;
    }

    /* 対応エリア（データベース） */
    .area-description {
        font-size: 0.8rem;
        padding: 0 5px;
        text-align: left;
    }
    .db-container {
        width: 100%;
        margin: 10px 0;
    }
    .city-section {
        border-radius: 4px; /* 角丸を少し控えめに */
        margin-bottom: 10px;
        border-left: none; 
        border-right: none; /* 左右ボーダーを消して広さを確保 */
        border-radius: 0;
    }
    .city-summary {
        padding: 10px 15px; /* タップエリア確保しつつ余白調整 */
        font-size: 0.95rem;
    }
    .city-content {
        padding: 10px; /* 中身の余白を減らす */
    }
    .area-block {
        margin-bottom: 20px;
        border-width: 1px; /* ボーダーを細くして圧迫感を減らす */
    }
    .area-header {
        padding: 8px 10px;
    }
    .area-name {
        font-size: 1rem;
    }
    .data-table th, .data-table td {
        font-size: 0.8rem; /* テーブル文字サイズ縮小 */
        padding: 8px;
    }
    .station-map-container {
        padding: 10px;
    }
    .line-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
        min-width: auto; /* 幅固定を解除して文字数に合わせる */
        margin-right: 8px;
    }
    .station-list-text {
        font-size: 0.75rem; /* 駅名リスト文字サイズ縮小 */
    }
    .facility-name { font-size: 0.85rem; }
    .facility-addr { font-size: 0.75rem; }
}

/* 小画面スマホ (max-width: 500px) */
@media (max-width: 500px) {
    .ec-infographic-grid {
        grid-template-columns: 1fr;
    }

    .ec-premium-section h2 {
        font-size: 1.3rem;
    }
}

/* 極小画面 (max-width: 378px) */
@media (max-width: 378px) {
    main {
        padding: 40px 5px;
    }

    .mobile-nav-text {
        font-size: 0.95rem;
    }

    .freedial-num {
        font-size: 1.4rem;
    }
}