@charset "UTF-8";

/*
Theme Name: Soluzione recruit site
Description: A WordPress theme for your sites.
Version: 1.0
 */

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

body {
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 1.5rem !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    background: linear-gradient(to bottom, #eef2f3, #8e9eab) !important;
    background: -webkit-linear-gradient(to bottom, #eef2f3, #8e9eab) !important;
}

.logo-recruit {
    letter-spacing: -2px;
    color: #b00006;
    font-size: 2rem;
    padding-bottom: 0.3rem;
}

header .container-fluid {
    padding: 1rem 1rem;
    display: flex;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
}

header .navbar {
    padding-top: 0;
}

.logo-recruit-footer {
    letter-spacing: -2px;
    color: #b00006;
}

.copyright {
    font-size: 0.8rem;
}

.section1 {
    background: linear-gradient(45deg, #991b1b, #dc2626) !important;
    background: -webkit-linear-gradient(45deg, #991b1b, #dc2626) !important;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    padding: 2rem 0;
}

.scroll {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
}

.scroll-border {
    position: relative;
    top: 10px;
    width: 40px;
    height: 100px;
    overflow: hidden;
}
.scroll-border::before {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    height: 40px;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    animation: scrollbar 2s ease-in-out infinite;
    margin: auto;
}
@keyframes scrollbar {
    0% {
        height: 0;
        top: 0;
    }
    30% {
        height: 100%;
    }
    100% {
        top: 100%;
    }
}

.scroll-text {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 300;
    align-self: flex-end;
    margin: 0;
}

.triangle {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 180px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    animation: rotateAnimation 10s linear infinite;
}

.square {
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    z-index: 1;
    animation: rotateAnimation-reverse 10s linear infinite;
}

.image-placeholder {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    width: 250px;
    height: 250px;
    background-image: url("img/sol_logo_transparent.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    animation: rotateAnimation-reverse 10s linear infinite;
}

@keyframes rotateAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateAnimation-reverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.title {
    font-size: 3rem;
}

.sub-title {
    font-size: 1.5rem;
}

.company-name {
    color: #b00006;
}

.section5 {
    background: linear-gradient(45deg, #991b1b, #dc2626) !important;
    background: -webkit-linear-gradient(45deg, #991b1b, #dc2626) !important;
    color: #fff;
    padding-bottom: 10rem;
}

.section5 .container {
    width: 60%;
    padding-left: 4rem;
    padding-right: 4rem;
}

.section5-line {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    margin: 5rem 0;
    padding: 5rem 0;
}

.section5-title {
    margin-bottom: 5rem;
}

.section5-caption {
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    padding: 5rem;
}

/* Contact Form 7のスタイリング */
.contact-form .wpcf7 {
    width: 100%;
}

.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-form .wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
}

.contact-form .wpcf7-form label {
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0.8rem;
    align-items: center;
    width: 100%;
    height: 2.5rem;
    position: relative;
}

/* Contact Form 7のwrapperクラス */
.contact-form .wpcf7-form .wpcf7-form-control-wrap {
    width: 100%;
    align-self: center;
    display: flex;
    justify-content: flex-start;
}

/* ファイル選択以外の通常のwrapper */
.contact-form .wpcf7-form .wpcf7-form-control-wrap:not(.file-wrapper) {
    display: flex;
    justify-content: flex-start;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.contact-form .wpcf7-form input[type="text"]:focus,
.contact-form .wpcf7-form input[type="email"]:focus,
.contact-form .wpcf7-form input[type="tel"]:focus {
    border-color: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 1);
}

.contact-form .wpcf7-form input[type="submit"] {
    background-color: #b00007;
    color: #fff;
    border: 2px solid #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60%;
    margin: 1.5rem auto 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-form .wpcf7-form input[type="submit"]:hover {
    background-color: #dc2626;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-form .wpcf7-validation-errors,
.contact-form .wpcf7-mail-sent-ng,
.contact-form .wpcf7-mail-sent-ok {
    border: none;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.contact-form .wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
}

.contact-form .wpcf7-mail-sent-ng {
    background: #f8d7da;
    color: #721c24;
}

.contact-form .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
}

.contact-form .wpcf7-not-valid-tip {
    color: #fff;
    font-size: 0.8rem;
    position: absolute;
    top: 100%;
    margin-top: 0.25rem;
    z-index: 10;
    padding: 0.25rem 0.5rem;
}

/* チェックボックス関連のバリデーションエラーメッセージ */
.contact-form .wpcf7-form .wpcf7-checkbox .wpcf7-not-valid-tip,
.contact-form .wpcf7-form .wpcf7-acceptance .wpcf7-not-valid-tip {
    position: static !important;
    margin-left: 220px !important; /* TextFieldと同じ位置から表示 */
}

.contact-form .wpcf7-form-control.wpcf7-not-valid {
    border-color: #fff;
}

/* Contact Form 7の追加要素 */
.contact-form .wpcf7-spinner {
    margin-left: 10px;
    vertical-align: middle;
}

.contact-form .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    accent-color: #b00007;
    cursor: pointer;
    transform: scale(1.2);
    margin-right: 1rem;
}

.contact-form .wpcf7-form .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: normal;
    line-height: 1.5;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ラジオボタンのスタイリング */
.contact-form .wpcf7-form .wpcf7-radio {
    display: flex;
    gap: 1rem;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.contact-form .wpcf7-form .wpcf7-radio .wpcf7-list-item {
    margin: 0;
    flex: 0 0 auto;
}

.contact-form .wpcf7-form .wpcf7-radio .wpcf7-list-item label {
    display: inline-block;
    background: #b00007;
    border-radius: 5px;
    padding: 0.4rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    min-width: 80px;
    text-align: center;
}

.contact-form .wpcf7-form .wpcf7-radio input[type="radio"] {
    display: none;
}

/* チェックボックス全般のスタイリング */
.contact-form .wpcf7-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #fff;
    cursor: pointer;
    transform: scale(1.2);
    margin-right: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #fff;
    border-radius: 4px;
    background: transparent;
    position: relative;
}

.contact-form .wpcf7-form input[type="checkbox"]:checked {
    background: #fff;
}

.contact-form .wpcf7-form input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    top: -2px;
    left: 3px;
    color: #b00007;
    font-size: 14px;
    font-weight: bold;
}

/* チェックボックスのラベル */
.contact-form .wpcf7-form .wpcf7-list-item {
    margin: 0.3rem 0;
}

.contact-form .wpcf7-form .wpcf7-list-item label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 500 !important;
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    color: #fff !important;
    pointer-events: none !important;
    /* 通常のフォームラベルのグリッドレイアウトを無効化 */
    grid-template-columns: none !important;
    height: auto !important;
    flex-direction: row !important; /* チェックボックスを左側に */
    justify-content: flex-start !important;
}

/* PC版：チェックボックス左配置の強化設定 */
.contact-form .wpcf7-form .wpcf7-checkbox .wpcf7-list-item label,
.contact-form .wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
}

/* PC版：チェックボックス本体を確実に左側に配置 */
.contact-form .wpcf7-form .wpcf7-list-item label input[type="checkbox"] {
    order: -1 !important;
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
    cursor: pointer;
    pointer-events: auto;
}

.contact-form .wpcf7-form .wpcf7-list-item label span {
    cursor: pointer;
    pointer-events: auto;
}

/* チェックボックスエリア全体 - デフォルトでTextFieldと同じ位置に配置 */
.contact-form .wpcf7-form .wpcf7-checkbox,
.contact-form .wpcf7-form .wpcf7-acceptance {
    /* ラベル幅200px + gap 1rem(16px) = TextFieldと同じ位置 */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

/* labelがある場合のチェックボックスは通常のグリッドレイアウトに従う */
.contact-form .wpcf7-form label .wpcf7-checkbox,
.contact-form .wpcf7-form label .wpcf7-acceptance {
    margin-left: 0;
    width: 100%;
    padding-left: 0;
    justify-content: flex-start;
    align-items: flex-start;
}

/* チェックボックス・同意項目用のlabelにはカスタムクラスを追加推奨 */
.contact-form .wpcf7-form label.checkbox-label,
.contact-form .wpcf7-form label.acceptance-label {
    display: grid !important;
    grid-template-columns: 200px 1fr !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    height: auto !important;
}

/* チェックボックス・同意項目の親ラベルを他の項目と同じ高さに調整 */
.contact-form .wpcf7-form p label {
    align-items: flex-start;
    height: auto;
    min-height: 3rem;
}

/* Contact Form 7 セクション区分 */
.contact-form .wpcf7-form .form-section {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .wpcf7-form .form-section:last-child {
    border-bottom: none;
}

/* Contact Form 7 区分ラベル */
.contact-form .contact-label {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
}

.contact-form .wpcf7-form .wpcf7-quiz-label,
.contact-form .wpcf7-form .wpcf7-captcha-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .wpcf7-form .wpcf7-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

/* カスタムファイル選択ボタン */
.contact-form .wpcf7-form .wpcf7-form-control-wrap.file-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.contact-form .wpcf7-form .wpcf7-form-control-wrap.file-wrapper::before {
    content: "upload";
    font-family: "Material Symbols Outlined";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
}

.contact-form .wpcf7-form .wpcf7-form-control-wrap.file-wrapper:hover::before {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.contact-form .wpcf7-form .wpcf7-form-control-wrap.file-wrapper::after {
    content: "ファイルをアップロードしてください";
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    align-self: center;
}

/* ファイル選択後の表示 */
.contact-form .wpcf7-form .wpcf7-form-control-wrap.file-wrapper[data-selected]::after {
    content: attr(data-selected);
    color: #fff;
    font-weight: 600;
}

/* フォーム送信中の状態 */
.contact-form .wpcf7-form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form .wpcf7-form.submitting input[type="submit"] {
    background: #ccc;
    cursor: not-allowed;
}

footer {
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem 0 1rem;
}

footer .navbar {
    padding: 0;
}

footer .container {
    padding: 0 1rem;
}

/* ========== カスタムナビゲーションのデフォルト設定 ========== */
/* デフォルトではデスクトップメニューを表示 */
.custom-desktop-menu {
    display: flex !important;
}

/* デフォルトではハンバーガーボタンを非表示 */
.custom-mobile-menu {
    display: none !important;
}

.privacy-policy-data {
    padding: 2rem 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
}

.privacy-policy-data h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* プライバシーポリシーのテキストエリア */
.privacy-policy-textarea {
    width: 100%;
    height: 300px;
    padding: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    resize: vertical;
    overflow-y: auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.privacy-policy-textarea:focus {
    outline: none;
    border-color: #b00007;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(176, 0, 7, 0.1);
}

/* スクロールバーのカスタマイズ */
.privacy-policy-textarea::-webkit-scrollbar {
    width: 12px;
}

.privacy-policy-textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.privacy-policy-textarea::-webkit-scrollbar-thumb {
    background: #b00007;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.privacy-policy-textarea::-webkit-scrollbar-thumb:hover {
    background: #8a0005;
}

.pp-caption {
	font-size: 0.8rem;
}

.pp-link {
	color: #f8d7da;
}

.grecaptcha-badge { visibility: hidden; }

/* ========== 1326px以下でハンバーガーメニュー表示 ========== */
@media (max-width: 1326px) {
    /* デスクトップメニューを隠す */
    .navbar .custom-desktop-menu,
    .navbar #navbarNav.custom-desktop-menu {
        display: none !important;
    }

    /* ハンバーガーボタンを表示 */
    .navbar .navbar-toggler.custom-mobile-menu,
    .navbar .custom-mobile-menu {
        display: block !important;
        visibility: visible !important;
    }

    .entry-btn {
        margin-top: 1rem !important;
    }

    .header_logo {
        height: 23px !important;
    }

    .logo-recruit {
        font-size: 1.2rem !important;
    }
}

@media (min-width: 1327px) {
    /* デスクトップメニューを表示 */
    .navbar .custom-desktop-menu,
    .navbar #navbarNav.custom-desktop-menu {
        display: flex !important;
        visibility: visible !important;
    }

    /* ハンバーガーボタンを隠す */
    .navbar .navbar-toggler.custom-mobile-menu,
    .navbar .custom-mobile-menu {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ========== PC版のスタイル ========== */
@media (min-width: 992px) {
    .entry-btn a {
        color: #b00006 !important;
        letter-spacing: -5px;
        font-size: 4rem;
        margin: -2rem 0;
    }

    .entry-btn a:hover {
        animation: text-blur 1s;
    }

    @keyframes text-blur {
        0% {
            filter: blur(0);
        }
        50% {
            filter: blur(4px);
        }
        100% {
            filter: blur(0);
        }
    }

    .item-main {
        margin: 0.5rem 1rem;
    }

    .item-main a {
        font-size: 1rem;

        overflow: hidden;
        color: transparent;

        text-shadow: 0 -2em 0 #b00006, 0 0 0 #b00006;
        background: linear-gradient(to bottom, #b00006 50%, transparent 50%) 0 100%;
        background-size: 100% 200%;
        transition: text-shadow 0.3s ease-out, background-position 0.3s;
    }

    .item-main a:hover {
        color: #fff !important;
        text-shadow: 0 0 0 #b00006, 0 2em 0 #fff;

        background-position: 0 0;
    }

    .item-main-footer {
        margin: 0 0.3rem;
    }

    .item-main-footer a {
        font-size: 1rem;
    }

    .catch {
        font-size: 6rem;
    }

    .sub-catch {
        font-size: 3rem;
        margin-top: 1rem;
    }

    .section2 {
        padding-top: 10rem;
    }

    .section2-image {
        position: absolute;
        left: calc(-50vw + 50%);
        width: 50vw;
        height: 600px;
        max-width: none;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        object-fit: cover;
        z-index: 1;
        margin-top: -32rem !important;
    }

    .section2-text {
        margin-top: 10rem !important;
        padding-left: 3rem !important;
    }

    .section3 {
        margin-top: 15rem !important;
    }

    .section3-image {
        width: 100%;
        height: 540px;
        max-width: none;
        border-radius: 10px;
        object-fit: cover;
        z-index: 1;
        margin-top: 5rem !important;
        margin-bottom: 3rem !important;
    }

    .section3-title {
        font-size: 2rem;
        margin-top: 3rem;
    }

    .section3-text {
        margin: 3rem 0;
    }

    .section4 {
        margin-top: 8rem !important;
        padding-bottom: 5rem;
    }

    .section4-text {
        text-align: center;
    }

    /* ========== スライダー ========== */
    .slider {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        margin: 3rem 0;
        position: relative;
        padding: 3rem 0; /* 拡大時のスペースを確保 */
    }

    .slider-track {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: calc(300px * 14 + 32px * 13); /* アイテム幅 * 個数（7個を2セット=14個） + gap */
        transition: none;
        gap: 0; /* gapは margin-right で制御 */
    }

    .slider-item {
        flex-shrink: 0;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        padding: 1.5rem;
        margin-right: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .slider-item:hover {
        transform: scale(1.1);
        z-index: 10;
        position: relative;
    }

    .slider-image {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .slider-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .slider-text {
        font-size: 0.9rem;
        color: #333;
        line-height: 1.6;
        flex-grow: 1;
        text-align: left;
    }

    .section5 {
        padding-top: 12rem !important;
    }

    .section5-line-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
    }

    .section5-text {
        margin-top: 3rem;
    }

    /* フッター PC対応 */
    footer .navbar-brand img {
        height: 40px;
    }

    footer .logo-recruit-footer {
        font-size: 1.5rem;
    }

    footer .item-main-footer {
        margin: 0 0.5rem;
    }

    footer .item-main-footer a {
        font-size: 0.9rem;
        color: #b00006;
        transition: color 0.3s ease;
    }

    footer .item-main-footer a:hover {
        color: #dc2626;
    }

    footer .copyright {
        font-size: 0.75rem;
    }

    .sp-br {
        display: none !important;
    }
}

/* ========== SP版のスタイル ========== */
@media (max-width: 991.98px) {
    /* ヘッダーロゴのSP対応 */
    .logo-recruit {
        font-size: 1rem !important;
        letter-spacing: -1px;
        margin-left: -0.5rem;
        margin-top: 0.1rem;
    }

    /* ロゴ画像のSP対応 */
    .navbar-brand img {
        height: 23px !important;
    }

    /* ヘッダーのパディング調整 */
    header .container-fluid {
        padding: 0.5rem 1rem;
    }

    /* ナビゲーションボタンの調整 */
    .navbar-toggler {
        border: none !important;
        box-shadow: none !important;
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler-icon {
        width: 18px;
        height: 18px;
        background-size: 20px 20px;
    }

    /* メインコンテンツのSP対応 */
    body {
        font-size: 1.2rem !important;
    }

    /* 全体的な余白の調整 */
    .container,
    .container-fluid {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* セクション1（メインビジュアル）のSP対応 */
    .section1 {
        padding: 1rem 0 2rem 0;
        min-height: 80vh;
    }

    .catch {
        font-size: 2.5rem !important;
        text-align: center;
        padding: 0 1rem;
    }

    .sub-catch {
        font-size: 1.5rem !important;
        margin-top: 0.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .section1-content {
        margin: 0 1.3rem;
        text-align: left;
    }

    .title {
        font-size: 2rem !important;
    }

    .sub-title {
        font-size: 1.2rem !important;
    }

    /* 装飾要素のSP調整 */
    .triangle {
        left: 10%;
        top: 10%;
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 90px solid rgba(255, 255, 255, 0.1);
    }

    .square {
        left: 5%;
        bottom: 10%;
        width: 100px;
        height: 100px;
    }

    .image-placeholder {
        right: 10%;
        width: 150px;
        height: 150px;
    }

    /* セクションのSP対応 */
    .section2 {
        padding-top: 3rem !important;
        margin-top: 0 !important;
    }

    .section2-image {
        position: relative !important;
        width: 90% !important;
        height: 200px !important;
        margin: 0 auto 1rem !important;
        border-radius: 5px;
        object-fit: cover !important;
        display: block !important;
    }

    .section2-text {
        margin-top: 1rem !important;
        padding: 0 1rem;
        text-align: left;
    }

    .section3 {
        margin-top: 3rem !important;
        padding-top: 1rem !important;
    }

    .section3-image {
        width: 100% !important;
        height: 200px !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 5px;
        object-fit: cover;
    }

    .section3-title {
        font-size: 1.5rem !important;
        margin-top: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .section3-text {
        margin: 1rem 0;
        text-align: left;
    }

    .section4 {
        margin-top: 3rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .section4 .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .section4-title {
        margin: 2rem 0 !important;
        font-size: 1.3rem;
    }

    .section4-text {
        font-size: 1.1rem;
    }

    .section5 {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }

    .section5 .container {
        width: 90% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .section5-line {
        margin: 1rem;
        padding: 3rem 1rem;
    }

    .section5-line-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
        margin-top: 2rem;
    }

    .section5-title {
        margin-bottom: 1rem;
        font-size: 1.8rem;
        text-align: center;
    }

    .section5-text {
        margin-top: 1rem;
        text-align: left;
    }

    .contact-form {
        padding-top: 3rem;
    }

    /* エントリーボタンのSP対応 */
    .entry-btn a {
        color: #b00006 !important;
        font-size: 2rem !important;
        letter-spacing: -2px;
        margin: -1rem 0;
    }

    /* ナビメニューのSP対応 */
    .item-main a {
        font-size: 1.2rem !important;
    }

    /* コンタクトフォームをモバイルで縦並びに */
    .contact-form .wpcf7-form p {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        margin-bottom: 0.5rem;
        padding-bottom: 0;
    }

    .contact-form .wpcf7-form label {
        display: block !important;
        height: auto !important;
        gap: 0.5rem;
        grid-template-columns: none !important;
        position: relative;
        font-size: 1.1rem !important;
    }

    .contact-form .wpcf7-form .wpcf7-form-control-wrap {
        width: 100% !important;
        margin-top: 0.5rem;
        position: relative;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
    }

    .contact-form .wpcf7-not-valid-tip {
        position: static !important;
        left: auto !important;
        top: auto !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
        white-space: normal;
        display: block !important;
        width: 100% !important;
        clear: both;
        order: 10; /* 必ずフォームフィールドの後に表示 */
    }

    /* SP版：フォーム入力フィールドの順序 */
    .contact-form .wpcf7-form input,
    .contact-form .wpcf7-form textarea,
    .contact-form .wpcf7-form select {
        order: 1; /* フィールドを最初に表示 */
    }

    /* モバイルではチェックボックスのマージンを削除 */
    .contact-form .wpcf7-form .wpcf7-checkbox,
    .contact-form .wpcf7-form .wpcf7-acceptance {
        margin-left: 0;
    }

    /* モバイルではチェックボックスのバリデーションエラーマージンも削除 */
    .contact-form .wpcf7-form .wpcf7-checkbox .wpcf7-not-valid-tip,
    .contact-form .wpcf7-form .wpcf7-acceptance .wpcf7-not-valid-tip {
        margin-left: 0 !important;
        position: static !important;
        display: block !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }

    /* SP版でもチェックボックス左配置 */
    .contact-form .wpcf7-form .wpcf7-list-item label {
        flex-direction: row !important;
        justify-content: flex-start !important;
        font-size: 1.1rem !important;
    }

    /* SP版：チェックボックス左配置の強制設定 */
    .contact-form .wpcf7-form .wpcf7-checkbox .wpcf7-list-item label,
    .contact-form .wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: left !important;
    }

    /* SP版：チェックボックス本体を確実に左側に配置 */
    .contact-form .wpcf7-form .wpcf7-list-item label input[type="checkbox"] {
        order: -1 !important;
        margin-right: 0.5rem !important;
        margin-left: 0 !important;
    }

    .contact-form .wpcf7-form input[type="submit"] {
        margin: 0 auto 0;
    }
    /* SP版：すべてのバリデーションエラーを統一 */
    .contact-form .wpcf7-form .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
        position: static !important;
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        display: block !important;
        width: 100% !important;
        order: 2; /* フォームフィールドの後に表示 */
    }
    .slider {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        padding: 1rem 0; /* SP版では少し小さめのパディング */
        margin: 1rem 0;
    }

    .slider-item {
        width: 200px;
        height: 200px;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        margin-right: 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .slider-item:hover {
        transform: scale(1.05);
        z-index: 10;
        position: relative;
    }

    .slider-track {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: calc(200px * 14 + 20px * 13);
        transition: none;
        gap: 0; /* gapは margin-right で制御 */
    }

    .slider-title {
        font-size: 1rem;
        margin: 1rem 0;
    }

    .slider-text {
        font-size: 0.8rem;
        text-align: left;
    }

    .slider-image {
        width: 60px;
        height: 60px;
    }

    .pc-br {
        display: none !important;
    }

    .privacy-policy-data {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .privacy-policy-data h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .privacy-policy-textarea {
        height: 250px;
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* フッター SP対応 */
    footer .navbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    footer .navbar-brand {
        margin-bottom: 1rem;
        align-self: center;
    }

    footer .navbar-brand img {
        height: 30px !important;
    }

    footer .logo-recruit-footer {
        font-size: 1.2rem;
    }

    /* SP版：navbarのcollapse機能を無効化 */
    footer .navbar-collapse {
        display: block !important;
        width: 100%;
    }

    footer .navbar-nav {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.8rem;
        margin: 0 !important;
        width: 100%;
    }

    footer .item-main-footer {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    footer .item-main-footer a {
        font-size: 1.1rem !important;
        color: #b00006 !important;
        display: block;
    }

    footer .copyright {
        font-size: 0.7rem;
        text-align: center !important;
        margin-top: 1.5rem;
        display: block;
    }

    /* SP版：footerのコンテナ調整 */
    footer .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    footer .container .text-end {
        text-align: center !important;
    }
}
