@charset "UTF-8";

/* 全ページ共通のスタイル
   （以前は各ページのCSSに同じ内容が重複していたため、ここに集約）
================================= */

/* reset（外部の ress.css の代わりに最小限を自前で用意） */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
ul,
ol {
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    opacity: 0.7;
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* 色 */
:root {
    --gray: #616161;
    --gray-light: #b4b4b4;
    --accent: #1d4f73;
    --header-h: 80px;
}

/* common */
.wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}
.section-title {
    text-align: center;
    font-size: 1.725rem;
    margin-top: 20px;
    margin-bottom: 30px;
}
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 6px;
    text-align: center;
}
.btn:hover {
    opacity: 0.85;
}
.btn-outline {
    display: inline-block;
    border: var(--gray) solid 1px;
    padding: 16px 40px;
    border-radius: 6px;
}

/* 社長確認が必要な仮の文言（公開前にすべて確定させてから、このクラスを外す） */
.needs-check {
    background: #fff3a8;
    outline: 2px dashed #e0a800;
}

/* header
================================= */
#header {
    background-color: #fff;
    width: 100%;
    height: var(--header-h);
    color: var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
#header .site-title a {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.25rem;
}
#header .site-title img {
    width: 40px;
    height: 40px;
}
#navi ul {
    display: flex;
    gap: 24px;
}
.toggle-btn {
    display: none;
}

main {
    margin-top: var(--header-h);
}
/* ページ内リンクで移動したとき、見出しが固定ヘッダーに隠れないように */
section[id] {
    scroll-margin-top: calc(var(--header-h) + 10px);
}

/* footer
============================== */
#footer {
    background: var(--gray);
    color: #fff;
    width: 100%;
    padding: 40px 0 24px;
}
#footer .footer-nav ul {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 0 10%;
}
#footer .footer-info {
    text-align: center;
    margin-top: 28px;
    font-size: 0.875rem;
    line-height: 1.9;
}
#footer .copyright {
    text-align: center;
    margin-top: 16px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* スマホ下部の固定ボタン（電話する・お問い合わせ／応募する） */
.cta-bar {
    display: none;
}

/* media
============================== */
@media screen and (max-width: 800px) {
    :root {
        --header-h: 60px;
    }
    #header .site-title a {
        font-size: 1rem;
        gap: 10px;
    }
    #header .site-title img {
        width: 32px;
        height: 32px;
    }
    #navi {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-30px);
        transition: opacity 0.4s, transform 0.4s, visibility 0.4s;
        z-index: 20;
    }
    #navi ul {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }
    #navi a {
        color: #fff;
        font-size: 1.25rem;
    }
    .open #navi {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .toggle-btn {
        display: block;
        width: 44px;
        height: 44px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 30;
    }
    .toggle-btn span {
        display: block;
        position: absolute;
        left: 7px;
        width: 30px;
        height: 2px;
        background-color: #333;
        border-radius: 4px;
        transition: transform 0.4s, background-color 0.4s;
    }
    .toggle-btn span:nth-child(1) {
        top: 17px;
    }
    .toggle-btn span:nth-child(2) {
        bottom: 17px;
    }
    .open .toggle-btn span {
        background-color: #fff;
    }
    .open .toggle-btn span:nth-child(1) {
        transform: translateY(4px) rotate(-45deg);
    }
    .open .toggle-btn span:nth-child(2) {
        transform: translateY(-4px) rotate(45deg);
    }

    #footer {
        padding-bottom: 90px; /* 固定ボタンに隠れないように */
    }
    #footer .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
        padding: 0 3%;
    }

    .cta-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9;
        background: #fff;
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.12);
        padding: 8px;
        gap: 8px;
    }
    .cta-bar a {
        flex: 1;
        text-align: center;
        padding: 12px 4px;
        border-radius: 6px;
        font-weight: bold;
        border: 1px solid var(--accent);
        color: var(--accent);
    }
    .cta-bar a.primary {
        background: var(--accent);
        color: #fff;
    }
}
