/* =========================
   共通
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    line-height: 1.8;

}

.container {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;
}

/* =========================
   共通：ページタイトル
========================= */

.page_title {
    padding: 80px 0;
    background-color: #d8e7f7;
    text-align: center;
}

.page_title p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.page_title h1 {
    position: relative;
    display: inline-block;
    margin: 5px 0 0;
    padding-bottom: 15px;
    font-size: 40px;
}

.page_title h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 320px;
    max-width: 80vw;
    height: 1px;
    background: #888;
}

@media screen and (max-width: 768px) {

    .page_title {
        padding: 60px 0;
    }

    .page_title h1 {
        font-size: 32px;
    }

}

/* =========================
   セクション見出し
========================= */

.section_title_block {
    text-align: center;
    margin: 100px 0;
}

.section_subtitle {
    display: block;
    font-size: 14px;
    color: #666;
}

.section_title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section_title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 320px;
    max-width: 80vw;
    height: 1px;
    background: #888;
}


/* =========================
   ヘッダー
========================= */

header {
    padding: 20px 0;
    background: #fff;
}

.container_header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 100px;
    height: 100px;
}

nav ul {
    display: flex;
    gap: 50px;
    list-style: none;
}

nav a {
    position: relative;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #333;
    transition: width .3s ease;
}

nav a:hover::after {
    width: 100%;
}


/* =========================
   トップ
========================= */

.section_top {
    position: relative;
    height: 600px;
    padding: 0;
}

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

.top_inner {
    position: absolute;
    top: 0;
    left: 0;

    width: 55%;
    height: 100%;

    background: rgba(0, 102, 204, .85);

    clip-path: polygon(0 0,
            100% 0,
            78% 100%,
            0 100%);

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 0 120px 0 80px;
}

.top_title {
    font-size: 64px;
    line-height: 1.4;
    color: #fff;
    max-width: 500px;
}

.top_lead {
    margin-top: 30px;
    color: #fff;
    max-width: 450px;
}


/* =========================
   About
========================= */

.section_about {
    text-align: center;
}

.about_title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 50px;
}

.about_lead {
    font-size: 14px;
}


/* =========================
   事業内容
========================= */

.business_cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.business_card {
    border: 1px solid #ddd;
    text-align: center;
    padding: 20px;
    transition: .3s ease;
}

.business_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.business_card_img {
    width: 100%;
}

.business_lead {
    text-align: center;
    margin-top: 30px;
}


/* =========================
   理念
========================= */

.philosophy_wrap {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.philosophy_item {
    width: 300px;
    height: 300px;

    background-color: #efefef;
    border-radius: 50%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 40px;

    transition: .3s ease;
}

.philosophy_item:hover {
    transform: scale(1.05);
}

.philosophy_item_title {
    font-size: 30px;
    margin-bottom: 10px;
}

.philosophy_item_lead {
    line-height: 1.8;
}


/* =========================
   共通ボタン
========================= */

.btn {
    position: relative;

    display: inline-block;

    padding: 14px 50px;

    border: 2px solid #0066cc;
    border-radius: 30px;

    color: #0066cc;
    text-decoration: none;

    overflow: hidden;
    z-index: 1;

    transition: color .3s ease;
}

.btn::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 100%;

    background: #0066cc;

    transition: width .4s ease;

    z-index: -1;
}

.btn:hover {
    color: #fff;
}

.btn:hover::before {
    width: 100%;
}


/* =========================
   会社概要ボタン
   → 右寄せ
========================= */

.business_btn {
    text-align: right;
    margin-top: 60px;
}

.business_btn .contact_btn {
    display: inline-flex;
}

/* =========================
   採用情報
========================= */

.recruit_list {
    width: 800px;
    max-width: 90%;

    margin: auto;

    border: 8px solid #d8e7f7;

    padding: 50px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

    background-color: #fff;
}

.recruit_item {
    text-align: center;
}

.recruit_item img {
    margin: 0 auto 10px;
}


/* 詳細はこちら → 中央 */

.recruit_btn {
    text-align: center;
    margin-top: 40px;
}

.recruit_btn .contact_btn {
    display: inline-flex;
}

/* =========================
   アクセス
========================= */

.access_content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 80px;
}

.access_info {
    padding-right: 0;
}

.access_map {
    margin-bottom: 0;
}

/* =========================
   お問い合わせ
========================= */

.section_contact {
    background-color: #dcecff;

    /* 上下を同じだけ広く */
    padding: 60px 0;
}

.contact_buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}


/* お問い合わせボタン */

.contact_btn {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 300px;

    padding: 15px 20px;

    border: 2px solid #0066cc;
    border-radius: 40px;

    color: #0066cc;
    text-decoration: none;

    transition: .3s ease;
}


/* ボタン文字 */

.contact_btn span:first-child {
    flex: 1;
    text-align: center;
}


/* 右側の丸い矢印 */

.contact_btn .arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border: 1px solid #0066cc;
    border-radius: 50%;

    font-size: 12px;

    transition: .3s ease;
}


/* お問い合わせホバー */

.contact_btn:hover {
    background-color: #0066cc;
    color: #fff;
}

.contact_btn:hover .arrow {
    border-color: #fff;
}


/* =========================
   フッター
========================= */

.footer {
    background-color: #fff;
    padding: 60px 0;
}

.footer_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer_inner img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}


/* =========================
   スマホ
========================= */

@media screen and (max-width: 768px) {

    /* ヘッダー */

    .container_header_inner {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }


    /* トップ */

    .section_top {
        height: 500px;
    }

    .top_inner {
        width: 100%;

        clip-path: none;

        padding-left: 30px;
        padding-right: 30px;
    }

    .top_title {
        font-size: 40px;
    }


    /* 見出し */

    .section_title_block {
        margin: 70px 0;
    }

    .section_title {
        font-size: 32px;
    }


    /* 事業内容 */
    /* 1. フォントをゴシック体（明朝体回避）にする設定 */
    body {
        font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    }

    /* 会社概要ボタンをスマホで中央に寄せる設定 */
    .business_btn {
        text-align: center;
        /* 右寄せから中央寄せに変更 */
        margin-top: 40px;
    }

    .business_btn .contact_btn {
        display: inline-flex;
    }

    /* 理念 */
    .philosophy_wrap {
        flex-direction: column;
        align-items: center;
    }

    .philosophy_item {
        width: 280px;
        height: 280px;
    }

    /* 採用 */
    .recruit_list {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    /* アクセス */
    .access_content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    /* マップを画面幅に収める設定 */
    .access_map iframe {
        max-width: 100%;
        /* 画面からはみ出さないようにする */
        width: 100%;
        /* 横幅いっぱいに広げる */
        height: auto;
        /* 縦横比を維持 */
    }

    /* お問い合わせ */
    .section_contact {
        padding: 50px 0;
    }

    .contact_buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact_btn {
        width: 300px;
    }

    /* フッター */
    .footer_inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .business_cards {
        grid-template-columns: 1fr !important;
        /* 強制的に1列（縦並び）にする */
    }

}

/* ← メディアクエリを閉じるカッコ */