@charset "Shift_JIS";

/* ============================================================
   1. 共通設定（PC・スマホ共通）
   ============================================================ */
body {
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    color: #555;
    line-height: 1.6;
    background-color: #fff;
}

/* リンク色（詳細ページに合わせる） */
a { color: #8eb7b8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 検索グループのサブメニュー重なり防止 */
div[id^="gr_menu"] {
    background-color: #ffffff !important;
    border: 1px solid #8eb7b8 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    padding: 10px !important;
    z-index: 9999 !important;
}
.submenu01 {
    background-color: #ffffff !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid #f0f4f4 !important;
    color: #555 !important;
    display: block !important;
    font-size: 14px;
}
.submenu01:hover {
    background-color: #f0f7f7 !important;
    color: #8eb7b8 !important;
}

/* ============================================================
   2. パソコン用デザイン (画面幅 769px 以上)
   ============================================================ */
@media screen and (min-width: 769px) {
    #wrapper { width: 950px; margin: 0 auto; }

    /* 駅名テーブル */
    .area-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
    .area-table td { border-bottom: 1px solid #f0f4f4; padding: 15px !important; }
    
    .ichititle { 
        background: #fcfaf8; 
        font-weight: bold; 
        color: #8eb7b8; 
        width: 25%;
        border-left: 4px solid #8eb7b8 !important;
    }

    /* 各種物件・検索条件のリスト装飾 */
    .toku-table td a, 
    .sgr1 a, 
    #gr_menu7 a {
        display: inline-block;
        padding: 5px 10px;
        margin: 2px;
        background: #f8fbfb;
        border-radius: 4px;
        border: 1px solid #e0eeee;
        font-size: 13px;
        color: #666;
    }
    .toku-table td a:hover { background: #8eb7b8; color: #fff; text-decoration: none; }

    /* ページトップ */
    .area-block-footer a {
        font-size: 12px;
        color: #a59d95;
        background: #f0f4f4;
        padding: 5px 15px;
        border-radius: 20px;
    }
}

/* ============================================================
   3. スマホ用デザイン (画面幅 768px 以下)
   ============================================================ */
@media screen and (max-width: 768px) {
    /* テーブルの解除 */
    .area-table, .area-table tbody, .area-table tr, .area-table td,
    .area-navi-table, .area-navi-table tbody, .area-navi-table tr, .area-navi-table td,
    .toku-table, .toku-table tbody, .toku-table tr, .toku-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 見出し（各種物件・検索条件） */
    h2 {
        background: #8eb7b8;
        color: #fff !important;
        padding: 10px 15px;
        font-size: 18px;
        border-radius: 5px;
        margin: 20px 0 10px;
    }

    /* カードデザイン */
    .area-table tr {
        margin-bottom: 20px;
        border: 1px solid #f0f4f4;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(142,183,184,0.15);
        overflow: hidden;
    }

    .ichititle {
        background: #f0f7f7 !important;
        color: #8eb7b8 !important;
        font-weight: bold;
        padding: 12px !important;
        border-bottom: 2px solid #8eb7b8 !important;
    }

    /* リンクのボタン化 */
    .kodate, .tochi, .toku-table td, .sgr1 {
        padding: 0 !important;
    }

    .kodate a, .tochi a, .toku-table td a, .sgr1 a, .submenu01 {
        display: block !important;
        padding: 15px !important;
        border-bottom: 1px solid #f0f4f4;
        color: #555 !important;
        text-decoration: none !important;
        position: relative;
        background: #fff;
    }

    /* 右側に > アイコンを表示 */
    .kodate a::after, .tochi a::after, .toku-table td a::after, .sgr1 a::after {
        content: '>';
        position: absolute;
        right: 15px;
        color: #8eb7b8;
    }

    /* ページトップボタンを中央に */
    .area-block-footer {
        text-align: center;
        padding: 20px 0;
    }
    .area-block-footer a {
        display: inline-block;
        background: #f0f4f4;
        color: #8eb7b8;
        padding: 10px 30px;
        border-radius: 30px;
        font-weight: bold;
    }

    /* ナビゲーション（上部駅移動など） */
    .area-navi-table td a {
        display: block;
        margin: 5px;
        padding: 10px;
        background: #fcfaf8;
        border: 1px solid #8eb7b8;
        color: #8eb7b8;
        text-align: center;
        border-radius: 5px;
    }
}

/* フッター（詳細ページと同様のスタイル） */
#footer_s {
    background:#fcfaf8; 
    padding:30px 15px; 
    text-align:center; 
    font-size:12px; 
    color:#a59d95; 
    border-top:1px solid #f0f4f4;
}
#company_imfomation {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#company_imfomation ul { padding: 0; list-style: none; }
.position_float_right li.title {
    font-weight:bold; 
    color:#8b7e74; 
    font-size:15px; 
    margin-bottom:10px;
}

/* --- 1. メッセージ文（左揃え＆やさしい装飾） --- */
/* メッセージが書かれている親要素にクラスを当てるか、特定して装飾します */
.top-message-box {
    text-align: left !important;
    background-color: #fcfaf8; /* 詳細ページ風の薄いベージュ */
    border-left: 5px solid #8eb7b8; /* オオタニ様カラーのアクセント */
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #555;
    line-height: 1.8;
}

/* --- 2. PC画面：沿線・駅名リンクの装飾 --- */
@media screen and (min-width: 769px) {
    /* リンクが並んでいるテーブルやエリア */
    .area-navi-table {
        margin: 20px 0;
        border-collapse: separate;
        border-spacing: 5px;
    }

    .area-navi-table td a {
        display: inline-block;
        padding: 8px 15px;
        background: #fff;
        border: 1px solid #8eb7b8;
        color: #8eb7b8;
        text-decoration: none;
        border-radius: 4px;
        font-weight: bold;
        font-size: 13px;
        transition: all 0.3s;
    }

    .area-navi-table td a:hover {
        background: #8eb7b8;
        color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-decoration: none;
    }

    /* 「各種物件」だけ色を変えて目立たせる場合 */
    .area-navi-table td a[href*="toku"], 
    .area-navi-table td:last-child a {
        background: #f0f7f7;
        border-color: #8eb7b8;
    }
}