@charset "utf-8";

/* ==================================
   基本設定 (Base)
================================== */
body {
    /* 基本フォント設定 */
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;

    /* 背景のグラデーションとアニメーション */
    background: linear-gradient(45deg, #dce9ad,#eff9fe,#a2daf7,#7fc8b8);
    background-size: 200% 200%;
    animation: GradientBackground 15s ease infinite;
}

/* 背景グラデーションのアニメーション */
@keyframes GradientBackground {
    0% {
        background-position: 0% 100%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

/* ==================================
   ヘッダー (Header)
================================== */
header {
    /* スクロール時にヘッダーを画面上部に固定 */
    position: -webkit-sticky;
    /* Safari対応 */
    position: sticky;
    top: 0;
    z-index: 1000;
    /* 他の要素より手前に表示 */
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    height: 80px;
}

/* ヘッダーとフッターのロゴ画像を共通化 */
.head-img img,
.foot-img img {
    max-width: 250px;
    min-width: 150px;
    height: auto;
}

.head-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.head-nav a {
    position: relative;
    display: block;
    padding: 15px 12px;
    color: #154360;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

/* --- Navigation Styles --- */
.head-nav ul {
    position: relative;
    /* Base for the sliding element */
    display: flex;
    align-items: center;
    /* Vertically align items */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Sliding ellipse background */
.head-nav ul::before:not(.contact-limk) .contact-limk {
    content: '';
    position: absolute;
    top: 50%;
    /* Position and size are set by JavaScript via CSS variables */
    left: var(--slider-left, 0);
    width: var(--slider-width, 0);
    height: var(--slider-height, 0);
    background-color: rgba(135, 167, 204, 0.4);
    border-radius: 9999px;
    /* To make it an ellipse */
    transform: translateY(-50%);
    transition: left 0.3s ease-out, width 0.3s ease-out;
    z-index: 0;
}

.head-nav li {
    position: relative;
    /* To ensure text is above the background */
    z-index: 1;
}

.head-nav a {
    display: block;
    padding: 10px 20px;
    /* Adjust padding for ellipse size */
    color: #154360;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Text color for current and hovered items (excluding contact link) */
.head-nav li.current a {
    color: rgb(50, 50, 63);
    ;
}

/* --- Contact Link Styles --- */
.head-nav li.contact-link a {
    background-color: #ff8c00;
    /* Teal color for emphasis */
    color: #fff;
    border: 2px;
    border-radius: 5px;
    margin-left: 15px;
    /* Add some space */
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.head-nav li.contact-link a:hover {
    background-color: rgb(223, 130, 23);
    /* Darker teal on hover */
    transform: translateY(-2px);
    /* Slight lift effect */
    color: #fff;
    /* Ensure color stays white on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* --- ハンバーガーメニュー --- */
.nav-button {
    display: none;
    /* PCでは非表示 */
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-button-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 8px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-wrapper {
    display: block;
}


/* ==================================
   ヒーローセクション (Hero Section)
================================== */
.hero {
    text-align: center;
    background: url('img/dep_img_06.jpg') no-repeat center/cover;
    color: white;
    padding: 120px 20px;
    /* 画像の下部を滑らかに透過させる */
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    /* Safari対応 */
}

.hero h1 {
    font-size: 38px;
    text-shadow: 5px 4px 4px rgba(44, 44, 59, 0.8);
    /* background-color: rgba(135, 167, 204, 0.4);
    backdrop-filter: blur(3px); */
    border-radius: 10px;
    padding: 20px 30px;
    width: fit-content;
    margin: 0 auto;
}




/* ==================================
   お問い合わせ ()
================================== */

.contact-section {
    max-width: 800px;
    margin: 40px auto;
    background-color: #fff;
    padding: 20px;

}

/* タイトル */
.contact-intro-title,
.contact-recruit-title {
    font-weight: bold;
    margin-top: 30px;
    /* 上の余白 */
    margin-bottom: 20px;
    /* 線との間隔 */
    padding-bottom: 15px;
    /* タイトルと線の隙間 */
    border-bottom: 2px solid #007bff;
    /* 横いっぱいの線 */
    text-align: left;
    /* 左寄せに変更 */
    padding-left: 94px;
    /* PC版のパディングを適用 */
    letter-spacing: 4px;
    /* 大きめに広げる */
    font-size: 26px;
}

/* お問い合わせフォーム用タイトル */
.contact-form-title,
.contact-tel-title {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    /* 真ん中 */
    margin-top: 40px;
    /* 上の余白 */
    margin-bottom: 40px;
    /* 線との間隔 */
    color: #21435e;
    /* 紺色 */
    letter-spacing: 4px;
    /* 大きめに広げる */
}

.contact-text {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
    padding-left: 94px;
    font-weight: bold;
    font-size: 16px;
}

.contact-list li {
    margin-bottom: 15px;
    text-align: left;
    padding-left: 90px;
    font-weight: bold;
    font-size: 16px;
}




.contact-application-form label {

    display: block;
    margin-bottom: 15px;
}

.contact-application-form input {

    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-application-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    min-height: 100px;
    max-height: 300px;
    resize: none;
    overflow-y: hidden;
}

/* 送信結果ポップアップ */
.contact-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
}

.contact-popup.success {
    background-color: #28a745;
}

.contact-popup.error {
    background-color: #dc3545;
}

.contact-popup.show {
    opacity: 1;
    top: 50px;
}

.hidden {
    display: none;
}

.contact-application-form button[type="submit"] {
    padding: 10px 15px;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-application-form button[type="submit"]:hover {
    background: #005bb5;
}


.form-label {
    margin: 0 0 15px 0;
    /* 下に余白を追加 */
    font-size: 16px;
}

/* ラジオボタン横並び */
.radio-group {
    display: flex;
    gap: 20px;
}

/* デフォルトのラジオボタンを非表示 */
.radio-group input[type="radio"] {
    display: none;
}

/* ラベルをflexで揃える */
.radio-group label {

    margin-left: 10px;
    /* ◯と文字の間隔 */
    margin-right: 18px;
    /* 個人と法人の間隔 */
    display: flex;
    align-items: center;
    /* 縦中央揃え */
    position: relative;
    padding-left: 28px;
    /* ○の余白 */
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
    line-height: 1.5;
    /* 文字高さに合わせて自然に配置 */
    font-size: 16px;
}

/* 外側の○ */
.radio-group label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* ラベルの縦中央に */
    width: 18px;
    height: 18px;
    border: 2px solid #007bff;
    border-radius: 50%;
    background: #fff;
}

/* 中の●（◎の真ん中） */
.radio-group input[type="radio"]:checked+label::after {
    content: "";
    position: absolute;
    left: 9px;
    /* 外枠の中心に固定 */
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #007bff;
}

/* 選択時の文字色 */
.radio-group input[type="radio"]:checked+label {
    color: #007bff;
}

.contact-tel {
    text-align: center;
    /* 中央揃え */
    max-width: 800px;
    background-color: #fff;
    padding: 20px;

}

/* 電話案内用タイトル */
.contact-tel .tel-time {
    font-size: 14px;
    margin-bottom: 15px;
    /* 電話番号ボタンとの間隔 */
    letter-spacing: 3px;
    /* 大きめに広げる */
    padding-bottom: 18px;
}

.contact-tel .tel-btn {
    display: inline-block;
    padding: 15px 60px;
    /* ← 縦(15px) × 横(40px)を広めに */
    background-color: #21435e;
    /* 色はそのまま */
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    /* 角を少し丸める */
    font-weight: bold;
    font-size: 18px;
    /* 文字も少し大きめに */
    width: 400px;
    /* 横幅を固定して大きめに */
    text-align: center;
    /* 文字を中央に */
    letter-spacing: 5px;
    /* 大きめに広げる */
}



/* ホバー時のアニメーション設定 */
.contact-tel .tel-btn,
.contact-recruit .recruit-btn {
/* ここから追加するコード */
transition: transform 0.3s ease;
/* 動きを0.3秒かけて滑らかにする */
}

/* ホバー時のスタイル */
.contact-tel .tel-btn:hover,
.contact-recruit .recruit-btn:hover {
    transform: translateY(-5px);
    /* Y軸方向に-5px（上方向）に移動 */
}

/* リクルートセクション全体 */
.contact-recruit {
    text-align: center;
    /* 中央揃え */
    padding-top: 20px;
}


/* 文章 */
.recruit-text {
    margin-bottom: 15px;
    /* ボタンとの間隔 */
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

/* ボタン */
.recruit-btn {
    display: inline-block;
    padding: 15px 60px;
    /* ← 縦(15px) × 横(40px)を広めに */
    background-color: #ff8c00;
    /* 色はそのまま */
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    /* 角を少し丸める */
    font-weight: bold;
    font-size: 18px;
    /* 文字も少し大きめに */
    width: 400px;
    /* 横幅を固定して大きめに */
    text-align: center;
    /* 文字を中央に */
    letter-spacing: 5px;
    /* 大きめに広げる */
    margin-bottom: 50px;
    /* ← ボタン下の余白を広く */
}



/* ==================================
   フッター (Footer)
================================== */
footer {
    color: #666666;
    background: #fff;
    padding: 40px 0;
}

footer .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.footA {
    margin-bottom: 30px;
}

.footB p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.footC h3 {
    margin: 0 0 10px;
    border-bottom: solid 1px currentColor;
    font-size: 14px;
}

.footC ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footC a {
    display: block;
    padding: 5px;
    color: inherit;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.footC a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.copyright {
    font-size: 12px;
    text-align: center;
}


/* ==================================
   レスポンシブ設定 (Media Queries)
================================== */

/* PC・タブレット向け (768px以上) */
@media (min-width: 768px) {

    /* フッターのレイアウトを横並びに設定 */
    .footer-main {
        display: flex;
        align-items: stretch;
    }

    .footB {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .footC {
        flex: 2;
        display: flex;
    }

    .footC>div {
        flex: 1;
    }

    .footC>div:not(:first-child) {
        margin-left: 40px;
    }

    .copyright {
        margin-top: 30px;
    }
}

/* タブレット向け中間サイズ (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {

    /* ナビゲーションリンクの余白と文字サイズを調整 */
    .head-nav a {
        padding: 15px 10px;
        font-size: 15px;
    }
}

/* スマホ・タブレット向け (767px以下) */
@media (max-width: 767px) {

    /* ヘッダー：ハンバーガーメニューの設定 */
    header .container {
        height: 70px;
        padding: 0 15px;
    }

    .nav-button {
        display: block;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
    }

    .nav-button-bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
        margin: 8px 0;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav-open .nav-button-bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .nav-open .nav-button-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-open .nav-button-bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .nav-wrapper {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 100;
        padding-top: 80px;
    }

    .nav-open .nav-wrapper {
        display: block;
    }

    .head-nav {
        width: 100%;
        text-align: center;
    }

    .head-nav ul {
        flex-direction: column;
    }

    .head-nav a {
        padding: 20px;
        font-size: 18px;
    }

    .head-nav a::before {
        display: none;
        /* スマホでは下線アニメーションを非表示 */
    }

    /* ヒーローセクションのタイトル */
    .hero h1 {
        font-size: 24px;
    }

    /* お問い合わせセクション */
    .contact {
        width: 90%;
    }

    .contact .container {
        flex-direction: column;
        /* 縦並びにする */
        height: auto;
    }

    .con-object {
        padding: 10px 20px;
    }

    /* フッター：要素を縦並びに */
    .footer-main,
    .footC {
        flex-direction: column;
        text-align: center;
    }

    .footB {
        margin-bottom: 30px;
    }

    .footC>div {
        margin-bottom: 20px;
    }

    .footC>div:not(:first-child) {
        margin-left: 0;
    }
}

/* 特に幅の狭いスマホ向け (375px以下) */
@media (max-width: 375px) {
    .head-nav a {
        padding: 15px;
        font-size: 16px;
    }

    .head-img img,
    .foot-img img {
        width: 150px;
    }
}



/* ==================================
   タブレット向け (768px～1024px)
================================== */
@media (min-width: 768px) and (max-width: 1024px) {

    .contact-section,
    .contact-tel {
        width: 85%;
        max-width: 800px;
        margin: 30px auto;
        padding: 20px;
    }

    .contact-section .contact-title {
        font-size: 40px;
    }

    .contact-form-title,
    .contact-tel-title {
        font-size: 18px;
        margin-top: 30px;
        margin-bottom: 30px;
        letter-spacing: 3px;
    }

    .contact-text,
    .contact-list li {
        font-size: 14px;
        padding-left: 10px;
    }
}

/* ==================================
   スマホ向け (768px以下)
================================== */
@media (max-width: 767px) {

    .contact-intro-title,
    .contact-recruit-title {
        padding-left: 0;
        /* 左寄せのパディングをリセット */
        text-align: center;
        /* 中央寄せにする場合 */
        font-size: 20px;
        /* PCサイズより小さく */
        letter-spacing: 2px;
        /* 文字間隔を調整 */
    }


    .contact-section,
    .contact-tel {
        width: 90%;
        /* 画面幅の90% */
        max-width: 600px;
        /* 上限 */
        margin: 20px auto;
        /* 上下20px、左右自動で中央揃え */
        padding: 15px;
        /* 内側の余白 */

    }

    .contact-section .contact-title {
        font-size: 22px;
        padding-left: 0;
        letter-spacing: 2px;
    }

    .contact-form-title,
    .contact-tel-title {
        font-size: 18px;
        margin-top: 30px;
        margin-bottom: 30px;
        letter-spacing: 2px;
    }

    .contact-text,
    .contact-list li {
        padding-left: 0;
        font-size: 14px;
    }

    .contact-tel .tel-btn,
    .contact-recruit .recruit-btn {
        width: 250px;
        max-width: none;
        padding: 12px 0;
        font-size: 16px;
        letter-spacing: 2px;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
}

/* 特に幅の狭いスマホ向け (375px以下) */
@media (max-width: 375px) {

    .contact-section,
    .contact-tel {
        width: 95%;
        margin: 15px auto;
        padding: 10px;
    }

    .contact-section .contact-title {
        font-size: 20px;
    }

    .contact-form-title,
    .contact-tel-title {
        font-size: 16px;
    }
}

/* ==================================
   スマホ向け (768px以下)
================================== */
@media (max-width: 767px) {

    .contact-section {
        width: 90%;
        max-width: 600px;
        margin: 20px auto;
        padding: 15px;

        /* 角丸＋影 */
        border-radius: 5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }

    .contact-section .contact-title {
        font-size: 22px;
        padding-left: 0;
        letter-spacing: 2px;
    }

    .contact-text,
    .contact-list li {
        padding-left: 0;
        font-size: 14px;
    }

    /* ボタンは触らないので変更なし */
}

/* 特に幅の狭いスマホ向け (375px以下) */
@media (max-width: 375px) {

    .contact-section {
        width: 95%;
        margin: 15px auto;
        padding: 10px;

        /* 角丸＋影 */
        border-radius: 5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }

    .contact-section .contact-title {
        font-size: 20px;
    }

    .contact-form-title {
        font-size: 14px;
    }
}