@charset "UTF-8";

/* --- 1. 基本レイアウト（共通） --- */
body {
    margin: 0;
    font-family: "ms pゴシック", "ヒラギノ角ゴ ProN", sans-serif;
    background: linear-gradient(#f7f7f7, #fff);
    color: #333;
    overflow-x: hidden; /* 横揺れ防止 */
}

.contents {
    max-width: 1024px;
    width: 95%;
    margin: 0 auto;
    padding-top: 110px; /* 固定ヘッダーの高さ分 */
    text-align: left;
    box-sizing: border-box;
}

/* --- 2. 見出し（h1, h2, h3） --- */
h1 {
    font-size: 1.2em;
    background-color: #d3d3d3;
    margin: 20px 0;
    padding: 10px;
    font-weight: 600;
    text-align: center;
    border-radius: 2px;
}

h2 {
    font-size: 1.1em;
    padding: 8px 12px;
    font-weight: 600;
    background-color: #d3d3d3;
    margin: 30px 0 15px 0;
    border-left: 5px solid #444;
}

h3 {
    font-size: 1.1em;
    padding: 10px 0;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
}

/* --- 3. ヘッダー部分（固定設定） --- */
.kotei {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: white;
}

.header_line {
    height: 4px;
    border: none;
    background: linear-gradient(90deg, #00bcd4 0%, #283593 50%, #00bcd4 100%);
}

/* ヘッダーの中身の並び（PC基準） */
.head_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ロゴのサイズ設定 */
.header-logo {
    display: block;
    width: 260px; /* PCでのロゴサイズ */
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
}

/* ボタンを囲むナビゲーション */
nav {
    margin-left: auto;
}

.head_tab {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px; /* ボタン間の隙間 */
}

/* ボタン共通のデザイン */
li.headlist {
    background-color: #444;
    color: white !important;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
}

.headlist a { color: white; text-decoration: none; }
.headlist:hover { background-color: #666; }

/* 電話番号の強調 */
.tel { font-weight: bold; color: #e67e22; margin-left: 3px; }

/* 表示の出し分けクラス */
.pc { display: block !important; }
.sp { display: none !important; }

/* --- 4. レスポンシブ（スマホ対応：600px以下） --- */
@media screen and (max-width: 600px) {
    .pc { display: none !important; }
    .sp { display: block !important; }

    .contents { padding-top: 85px; }

    .head_container {
        padding: 5px 8px;
    }

    /* スマホでロゴが潰れない最小サイズ */
    .header-logo {
        width: 140px; 
    }

    /* ボタンを横に並べる（入り切らない場合は自動で折り返す） */
    .head_tab {
        flex-wrap: wrap; 
        justify-content: flex-end;
        gap: 4px;
    }

    li.headlist {
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
        margin: 0 !important;
    }
}

/* --- 5. フッター部分 --- */
footer {
    background-color: #d3d3d3;
    padding: 30px 0;
    margin-top: 60px;
    font-size: 0.85rem;
}

.footer_wrap {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.foot_1, .foot_2 {
    flex: 1;
    min-width: 300px;
    padding: 15px;
}

.foot_2 ul { list-style: disc; padding-left: 20px; }
.foot_2 a { text-decoration: none; color: #333; }
.foot_2 a:hover { color: red; text-decoration: underline; }

@media screen and (max-width: 600px) {
    .footer_wrap { flex-direction: column; }
}