@charset "utf-8";

/* =========================================================
   メイン領域の配置設定（固定ヘッダーとの余白調整）
========================================================= */
#about #main {
    width: 100vw;
    position: relative;
    top: 5vw;
    box-sizing: border-box;
    padding-bottom: 8vw;
}

@media (max-width: 900px) {
    #about #main {
        top: 40px;
        padding-bottom: 60px;
    }
}

/* =========================================================
   見出しエリアの補正（style.cssの共通クラスを拡張）
========================================================= */
#about .headline {
    color: #222;
}

#about .headline_ja {
    color: #666;
    margin-bottom: 3vw;
}

@media (max-width: 900px) {
    #about .headline_ja {
        margin-bottom: 30px;
    }
}

/* =========================================================
   PC版テーブルレイアウト（.PC: 901px以上）
========================================================= */
.PC {
    display: block;
    width: 70vw;
    max-width: 960px;
    margin: 0 auto;
}
.SP {
    display: none;
}

.PC table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 4vw;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.PC table td {
    padding: 1.5vw 2vw;
    vertical-align: top;
    font-size: 1vw;
    line-height: 1.9;
    border-bottom: 1px solid #e0e0e0;
}

/* セクションタイトル（会社概要・沿革） */
.PC table td.gaiyou {
    font-family: 'Roboto Slab', "游ゴシック", "Yu Gothic", sans-serif;
    font-size: 1.2vw;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #222;
    background-color: #fafafa;
    border-left: 4px solid #1aa170;
    border-bottom: 1px solid #ccc;
    padding: 1vw 1.8vw;
}

/* 会社概要（table1）の項目見出し */
.PC .table1 tr td:first-child:not([colspan]) {
    width: 25%;
    font-weight: bold;
    color: #444;
    background-color: #f7f7f7;
    white-space: nowrap;
}

/* 沿革（table2）の年号 */
.PC .table2 .year {
    width: 15%;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 1.1vw;
    color: #1aa170;
    white-space: nowrap;
}

.PC .table2 .text p {
    margin-bottom: 0.8vw;
}
.PC .table2 .text p:last-child {
    margin-bottom: 0;
}

/* お問い合わせボタン */
.button_td {
    text-align: center;
    background-color: #fff;
    padding: 3vw 1vw !important;
}

.button a {
    display: inline-block;
    padding: 0.8vw 3vw;
    background-color: #1aa170;
    color: #fff !important;
    font-size: 1vw;
    font-weight: bold;
    letter-spacing: 0.1em;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(26, 161, 112, 0.25);
    transition: all 0.3s ease;
}

.button a:hover {
    background-color: #158058;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(26, 161, 112, 0.35);
}

/* =========================================================
   スマホ版テーブルレイアウト（.SP: 900px以下）
========================================================= */
@media (max-width: 900px) {
    .PC {
        display: none;
    }
    .SP {
        display: block;
        width: 90vw;
        margin: 0 auto;
    }

    .SP table {
        width: 100%;
        border-collapse: collapse;
        background: #fff;
        margin-bottom: 35px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .SP table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        font-size: 13px;
        line-height: 1.8;
    }

    /* セクションタイトル */
    .SP table td.gaiyou {
        font-family: 'Roboto Slab', "游ゴシック", "Yu Gothic", sans-serif;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.1em;
        background-color: #fafafa;
        border-left: 4px solid #1aa170;
        border-bottom: 1px solid #ccc;
        padding: 12px 14px;
    }

    /* 会社概要（table3）の項目名 */
    .SP .table3 .th1,
    .SP .table3 .th2 {
        background-color: #f7f7f7;
        font-weight: bold;
        color: #555;
        font-size: 12px;
        padding-top: 10px;
        padding-bottom: 6px;
        border-bottom: none;
    }

    .SP .table3 .td {
        border-bottom: 1px solid #eee;
        padding-bottom: 14px;
    }

    .SP .table3 .td a {
        color: #1aa170;
        text-decoration: underline;
    }

    /* 沿革（table4）の年号 */
    .SP .table4 .year1 {
        background-color: #f7f7f7;
        font-family: 'Roboto Slab', serif;
        font-size: 14px;
        font-weight: 700;
        color: #1aa170;
        padding-top: 10px;
        padding-bottom: 4px;
        border-bottom: none;
    }

    .SP .table4 .text {
        font-size: 12px;
        line-height: 1.8;
        border-bottom: 1px solid #eee;
        padding-bottom: 16px;
    }

    /* スマホ用ボタン */
    .SP .button_td {
        padding: 25px 16px !important;
        border-bottom: none !important;
    }

    .SP .button a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 0;
        font-size: 14px;
    }
}