@charset "utf-8";

/* 基本リセット */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #ffffff;
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px; /* Google推奨サイズ */
}
a { text-decoration: none; color: #003f8e; }

/* ヘッダー */
header {
    background: #e9f1fa;
    padding: 10px;
    text-align: center;
}
header .catch { font-size: 12px; color: #666; }
header .logo_area img { width: 100%; max-width: 400px; }

/* ロゴエリアが潰れないようにする設定 */
.logo_area {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.logo_area img {
    height: auto !important;
    max-width: 100% !important;
}

/* ナビゲーション */
/* --- ナビゲーション（テキストボタン版） --- */
#globalNavi {
    margin: 10px 0 5px;
    padding: 0 5px; /* 画面端との隙間 */
}

.nav_table {
    width: 100%;
    border-collapse: separate; /* 枠線を離す */
    border-spacing: 5px;      /* ボタン同士の隙間 */
}

.nav_table td {
    width: 50%;
    background: #5a7fa5;      /* h2と同じ紺色 */
    text-align: center;
    border-radius: 5px;       /* 角を少し丸くする */
    border: none !important;
}

.nav_table td a {
    display: block;
    padding: 12px 5px;        /* タップしやすい高さ */
    color: #ffffff !important; /* 文字色を白に */
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1.0rem;
}

/* タップした時に反応を出す */
.nav_table td a:active {
    background: #224466;
    border-radius: 5px;
}

/* 見出し (h2) */
h2 {
    background: #336699;
    color: #fff;
    padding: 10px 15px;
    font-size: 1.1rem;
    margin: 10px 0 5px;
}

/* カテゴリーの見出し(h3) */
h3 {
    background: #5a7fa5;
    color: #fff;
    padding: 5px 15px; /* 8pxから5pxへ */
    font-size: 0.95rem; /* 1.0remから0.95remへ */
    margin: 8px 0 2px; /* 上下の余白を大幅に削減 */
}

/* 検索フォーム */
.search_area dl { padding: 10px; }
.search_area dt { font-weight: bold; margin-top: 10px; }
.search_area dd input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.search_btn {
    display: block;
    width: 90%;
    margin: 20px auto;
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
}

/* --- 検索ガイドのスタイル --- */
.search_guide {
    padding: 10px 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

/* 検索結果テーブル */
.t01 { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.t01 th { background: #eee; padding: 10px; border: 1px solid #ccc; font-size: 0.9rem; }
.t01 td { padding: 12px 10px; border: 1px solid #ccc; font-size: 0.9rem; }

/* 中古機械カテゴリー（リンク集） */
.link_list ul { 
    list-style: none; 
}

.link_list li { 
    border-bottom: 1px solid #eee; 
}

.link_list a {
    display: block;
    padding: 6px 20px;        /* 上下6pxの間隔（コンパクト設定） */
    font-size: 0.95rem;        /* 少し小さめの文字 */
    font-weight: bold;
    color: #003f8e;
    text-decoration: none !important; /* 【修正】アンダーバーを無効化 */
}

/* タップした時だけ背景に薄く色をつけて、反応がわかるようにする（推奨） */
.link_list a:active {
    background-color: #f0f0f0;
}

/* --- お問い合わせテーブル(t04) --- */
.contact_info {
    width: 100%;
    padding: 10px;      /* 左右に少し余白を作る */
    box-sizing: border-box;
}

.t04 {
    width: 100% !important; /* テーブルを画面幅いっぱいに */
    max-width: 100% !important;
    margin: 20px 0 !important;
    border: 2px solid #336699 !important;
    border-collapse: collapse !important;
    table-layout: fixed;   /* セルがはみ出すのを防ぐ */
}

.t04 th {
    background: #336699;
    color: #fff;
    padding: 10px;
    font-size: 1.0rem;
    text-align: center;
}

.t04 td {
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    word-break: break-all; /* 長い英単語などでテーブルが崩れるのを防ぐ */
}

.t04 img {
    width: 100% !important;  /* 親要素(td)の幅いっぱいに広げる */
    height: auto !important; /* アスペクト比を維持 */
    max-width: 100% !important; 
    display: block;
    margin: 0 auto;
}

/* 検索解除リンク */
/* 検索解除リンクの見た目調整 */
.clear_link {
    text-align: center;
    margin-top: -10px; /* ボタンに少し近づける（お好みで） */
    margin-bottom: 20px;
}
.clear_link a {
    color: #003f8e;
    text-decoration: underline;
    font-size: 1.0rem;
    display: inline-block;
    padding: 10px;
}

/* フッター */
footer {
    background: #f4f4f5;
    padding: 20px;
    text-align: center;
    font-size: 12px;
}
.copyright p { margin-bottom: 10px; }

/* トップへ戻るボタン */
#page-top {
    position: fixed; bottom: 20px; right: 20px;
    background: rgba(0,0,0,0.6); color: #fff;
    padding: 10px; border-radius: 50%; width: 50px; height: 50px;
    text-align: center; line-height: 30px; font-size: 12px;
}

/* --- サブページ共通スタイル --- */
.sub_inner {
    padding: 10px;
}

.sub_inner h1 {
    background: #336699;
    color: #fff;
    padding: 10px 15px;
    font-size: 1.2rem;
    margin: 10px 0 15px;
}

/* 会社概要のテーブル(t05_list) */
.t05_list {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border: 1px solid #ccc;
}
.t05_list th {
    width: 30%;
    background: #f4f4f5;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    vertical-align: top;
}
.t05_list td {
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    background: #fff;
}

/* 初めての方のテキスト(hajime_text) */
.hajime_text {
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    line-height: 1.8;
}
.hajime_text p {
    margin-bottom: 20px;
    font-size: 1.0rem;
}
.hajime_text .caution {
    color: #c00;
    font-weight: bold;
}
.hajime_text strong {
    color: #336699;
}