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

@charset "UTF-8";

/* ========== 共通 ========== */
body {
    background-color: #fff4ed !important;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* トップページのみ背景画像を適用 */
body.home,
body.front-page {
    background-image: url("images/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: transparent;
}

header {
    animation: fadeInDown 1s;
    padding-bottom: 120px;
}

.navbar {
    display: flex;
    align-items: center;
    background-color: transparent !important;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ========== front-page_section1 ========== */
.section1 {
    height: 80vh;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.circle-mask {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.circle-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-mask .carousel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.circle-mask .carousel-item {
    width: 100%;
    height: 100%;
}

.circle-mask .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animation-start {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.animation-content {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.animation-end {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease 1s, transform 1s ease 1s;
}

.animation-delay {
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.animation-start.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animation-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animation-end.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.breadcrumb-item {
    color: #b00007 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.breadcrumb-link {
    color: #000 !important;
    font-weight: 500;
    text-decoration: none !important;
}

.card-title-company {
    font-weight: 700;
}

.card-hr {
    border: none !important;
    height: 2px !important;
    margin: 1rem 0 !important;
    opacity: 1 !important;
    background: linear-gradient(to right, #b00007 5%, #cccccc 5%) !important;
    background: -webkit-linear-gradient(to right, #b00007 5%, #cccccc 5%) !important;
}

.card-text-bold {
    font-weight: 700;
}

.card-margin {
    margin-top: 1rem;
}

.table-custom {
    background-color: transparent !important;
}

.cta-body {
    margin: 2rem 0;
}

.cta-contact {
    border-radius: 30px !important;
    background-color: #b00007 !important;
    color: #fff !important;
}

.cta-recruit {
    border-radius: 30px !important;
    color: #b00007 !important;
}

.cta-link {
    text-decoration: none;
}

.btn-category {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-category .category-btn {
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #b00007 !important;
    padding: 0.3rem 0.5rem;
    color: #b00007 !important;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

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

.ceo-image {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 10px;
}

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

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

.contact-form .wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form .wpcf7-form label {
    font-weight: 600;
    font-size: 1.5rem;
}

.contact-form .wpcf7-form .required {
    background-color: #b00007;
    border-radius: 5px;
    padding: 0.3rem 1rem;
    color: #fff !important;
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem !important;
    margin-left: 1rem !important;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form textarea,
.contact-form .wpcf7-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.5rem;
    transition: border-color 0.3s ease;
}

.contact-form .wpcf7-form input[type="text"]:focus,
.contact-form .wpcf7-form input[type="email"]:focus,
.contact-form .wpcf7-form input[type="tel"]:focus,
.contact-form .wpcf7-form textarea:focus,
.contact-form .wpcf7-form select:focus {
    border-color: #b00007;
    outline: none;
    box-shadow: 0 0 0 2px rgba(176, 0, 7, 0.1);
}

.contact-form .wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .wpcf7-form input[type="submit"] {
    background: #b00007;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 60%;
    margin: 0 auto;
    border-radius: 999px;
    margin-top: 2rem;
}

.contact-form .wpcf7-form input[type="submit"]:hover {
    background: #8a0005;
}

.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: #b00007;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

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

/* 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 input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #b00007;
    cursor: pointer;
    transform: scale(1.2);
    margin-right: 1rem;
}

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

.contact-form .wpcf7-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1.4;
}

/* チェックボックスエリア全体 */
.contact-form .wpcf7-form .wpcf7-checkbox,
.contact-form .wpcf7-form .wpcf7-acceptance {
    margin: 1rem 0;
}

/* より古いブラウザ対応のためのカスタムチェックボックス */
@supports not (accent-color: #b00007) {
    .contact-form .wpcf7-form input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #b00007;
        border-radius: 3px;
        background: white;
        cursor: pointer;
        position: relative;
        margin-right: 1rem;
        transform: scale(1.2);
    }

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

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

.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 {
    padding: 0.5rem;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.contact-form .wpcf7-form .wpcf7-file:hover {
    border-color: #b00007;
}

/* 必須マークのスタイル */
.contact-form .wpcf7-form .required {
    color: #b00007;
    margin-left: 2px;
}

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

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

.contact-label {
    font-size: 1.5rem;
}

/* ========== PC版のスタイル ========== */
@media (min-width: 992px) {
    img.header_logo {
        height: 60px;
        cursor: pointer;
    }

    .navbar .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
    .navbar-nav .nav-link {
        color: #000 !important;
        font-weight: 500;
    }
    .navbar-nav .nav-link:hover {
        color: #333 !important;
        animation: pulse 1s;
    }
    .navbar-nav .nav-link.active {
        color: #b00007 !important;
        font-weight: 700;
    }

    .section1 .catchcopy {
        font-size: 4rem;
        font-weight: 700;
    }
    .section1 .sub-catchcopy {
        font-size: 2rem;
        font-weight: 700;
    }

    .section2and3 {
        background-image: url("images/section2and3-background.webp");
        background-size: cover;
        background-position: center;
        min-height: 100vh;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding-bottom: 15rem;
        margin-top: 15rem;
    }

    .cp-section {
        max-width: 1400px;
        margin: 0 auto;
        padding: 15rem 1rem;
    }

    .section4 {
        background-image: url("images/section4-background.jpg");
        background-size: cover;
        background-position: center;
        min-height: 100vh;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section4-content {
        width: 100%;
        max-width: 1400px;
        padding: 0 1rem;
    }

    .col-right {
        padding-left: 10rem !important;
    }

    .page-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
        margin-top: 4rem;
    }

    .title {
        text-align: center;
        font-size: 4rem;
        font-weight: 700;
    }

    .title-company {
        font-size: 4rem;
        font-weight: 700;
    }

    .subtitle {
        text-align: center;
        font-size: 2rem;
        font-weight: 700;
    }

    .subtitle-company {
        font-size: 2rem;
        font-weight: 700;
    }

    .catch-company {
        font-size: 4rem;
    }

    .content-company {
        padding-top: 1rem;
        font-size: 1.5rem;
    }

    .start {
        padding-top: 240px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 4rem;
        font-size: 1.5rem;
    }

    .transbtn {
        display: flex;
        justify-content: center;
        margin-top: 4rem;
    }

    .btn-company {
        background-color: #b00007;
        color: #fff;
        padding: 1rem 2.5rem;
        border-radius: 999px;
        font-size: 2rem;
        border: none;
        transition: all 0.3s ease;
    }

    .btn-company:hover {
        transform: scale(1.1);
    }

    .card {
        border: none !important;
    }

    .right-card {
        text-align: right;
    }

    .frontpage-card {
        background-color: #f36a6f;
        border-radius: 5px 5px 0 0;
    }

    .card-subtitle {
        font-size: 2rem;
        padding-bottom: 1rem;
    }

    .card-title {
        font-size: 3rem;
        font-weight: 700;
        padding-bottom: 2rem;
    }

    .card-text {
        font-size: 1.5rem;
    }

    /* 会社概要ページのスタイル */
    .company-section1 {
        display: flex;
        align-items: center;
        padding-top: 1rem;
    }

    .portion-logo {
        max-width: 100%;
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    /* お知らせリストのスタイル */
    .news-list {
        padding: 2rem;
    }

    .news-items {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .news-item {
        border-bottom: 1px solid #ddd;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .news-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .news-link {
        text-decoration: none;
        color: inherit;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .news-link:hover {
        color: #b00007;
        text-decoration: none;
        transform: translateX(10px);
    }

    .news-content {
        flex: 1;
    }

    .news-icon {
        margin-left: 1rem;
        font-size: 1.5rem;
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }

    .news-link:hover .news-icon {
        opacity: 1;
    }

    .news-date {
        font-size: 1.2rem;
        color: #666;
        margin-bottom: 0.5rem;
    }

    .news-title {
        font-size: 1.8rem;
        font-weight: 500;
        line-height: 1.4;
    }

    .no-news {
        text-align: center;
        color: #666;
        font-size: 1.5rem;
        padding: 2rem;
    }

    .table-custom th {
        background: transparent !important;
        font-size: 1.5rem;
        font-weight: 500;
        border-bottom: none !important;
        position: relative;
        padding: 1.5rem 0.75rem !important;
    }

    .table-custom th::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, #b00007 10%, #cccccc 10%);
    }

    .table-custom td {
        background: transparent !important;
        font-size: 1.5rem;
        border-bottom: none !important;
        position: relative;
        padding: 1.5rem 0.75rem !important;
    }

    .table-custom td::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: #cccccc;
    }

    .post-header {
        margin-bottom: 4rem !important;
    }

    .post-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 1rem 0;
    }

    /* ========== CTA ========== */
    .cta {
        margin: 5rem 0;
    }

    .cta-recruit {
        border: 5px solid #b00007 !important;
        margin-bottom: 5rem;
    }

    .cta-subtitle {
        font-size: 2rem;
        margin-bottom: -0.5rem;
    }

    .cta-title {
        font-size: 4rem;
        font-weight: 700;
        margin-top: -0.5rem;
    }

    .cta-content {
        font-size: 1.5rem;
        text-align: left;
    }

    .cta-icon-circle-recruit {
        width: 60px;
        height: 60px;
        background-color: #b00007;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        transition: all 0.3s ease;
    }

    .cta-icon-circle-recruit i {
        font-size: 2.5rem;
        color: white;
    }

    .cta-recruit:hover .cta-icon-circle-recruit {
        transform: scale(1.1);
    }

    .cta-icon-circle-contact {
        width: 60px;
        height: 60px;
        background-color: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        transition: all 0.3s ease;
    }

    .cta-icon-circle-contact i {
        font-size: 2.5rem;
        color: #b00007;
    }

    .cta-contact:hover .cta-icon-circle-contact {
        transform: scale(1.1);
    }

    /* ========== フッタースタイル ========== */
    .site-footer {
        width: 100%;
        height: 472px;
        background-color: #333;
        margin-top: auto;
        position: relative;
        overflow: hidden;
    }

    .footer-content {
        width: 100%;
        padding-top: 2rem;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 2rem;
        height: 256px;
        overflow: hidden;
        position: relative;
    }

    img.footer_logo {
        width: 950px;
        height: 100%;
    }

    img.footer_symbol {
        width: 512px;
        height: 512px;
        object-fit: cover;
        object-position: top;
        position: absolute;
        top: 110px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .footer-grid {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 1rem;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        align-items: start;
        position: relative;
        z-index: 2;
    }

    .footer-column {
        color: #fff;
    }

    .footer-left {
        text-align: left;
        margin-top: 4.5rem;
    }

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

    .footer-right {
        text-align: right;
        margin-top: 2rem;
    }

    .footer-right .nav-link {
        display: inline;
        color: #fff !important;
        text-decoration: none;
        font-weight: 700;
        line-height: 1;
        margin-bottom: 8px;
    }

    .footer-right .nav-link:hover {
        color: #ccc !important;
        text-decoration: none;
        animation: pulse 1s;
    }

    .footer-right div {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 16px;
    }

    .catchcopy {
        text-align: center;
    }

    .footer-return {
        display: inline;
        color: #fff !important;
        text-decoration: none;
        line-height: 1;
        margin-bottom: 8px;
        margin-top: 1.5rem;
    }

    .footer-return:hover {
        text-decoration: none;
        animation: fadeOutUp 0.5s;
    }

    .copyright {
        font-size: 12px;
        color: #fff;
        text-align: right;
    }

    .copyright-mobile {
        display: none;
    }

    .cta-box.glow {
        opacity: 1;
        overflow: hidden;
        position: relative;
        cursor: pointer;
    }

    .cta-box.glow::before {
        background-color: #fff;
        content: "";
        display: block;
        position: absolute;
        top: -100px;
        left: 0;
        width: 30px;
        height: 100%;
        opacity: 0;
        transition: cubic-bezier(0.32, 0, 0.8, 0);
    }

    .cta-box.glow:hover::before {
        animation: glow 0.5s linear;
    }

    @keyframes glow {
        0% {
            transform: scale(2) rotate(45deg);
            opacity: 0;
        }
        20% {
            transform: scale(20) rotate(45deg);
            opacity: 0.6;
        }
        40% {
            transform: scale(30) rotate(45deg);
            opacity: 0.4;
        }
        80% {
            transform: scale(45) rotate(45deg);
            opacity: 0.2;
        }
        100% {
            transform: scale(50) rotate(45deg);
            opacity: 0;
        }
    }
}

/* SP版のスタイル */
@media (max-width: 991.98px) {
    .navbar .container-fluid {
        margin: 0 16px;
    }

    img.header_logo {
        height: 35px;
    }

    .navbar-toggler {
        border: none !important;
        box-shadow: none !important;
        padding: 4px 8px;
    }

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

    .section1 {
        height: 90vh;
    }

    .circle-mask {
        width: 100%;
        aspect-ratio: 1 / 1;
        margin: 0 auto 10px auto;
    }

    .circle-mask img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .section1 .catchcopy {
        font-size: 2rem;
        font-weight: 900;
        margin-bottom: 0.5rem;
    }

    .section1 .sub-catchcopy {
        font-size: 1.5rem;
        font-weight: 700;
        margin-top: 0.5rem;
    }

    .start {
        padding-top: 80px;
    }

    /* SP版 section2のスタイル */
    .title {
        text-align: center;
        font-size: 2.3rem;
        font-weight: 700;
        margin: 0 1rem;
    }

    .subtitle {
        text-align: center;
        font-weight: 700;
        font-size: 1.5rem;
    }

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: left;
        padding-top: 2rem;
        font-size: 1.2rem;
    }

    .transbtn {
        display: flex;
        justify-content: center;
        margin: 2rem 0;
    }

    .btn-company {
        background-color: #b00007;
        color: #fff;
        padding: 0.8rem 2rem;
        border-radius: 999px;
        font-size: 1.3rem;
        border: none;
        transition: all 0.3s ease;
        text-align: center;
    }

    /* SP版 section3 cardのスタイル */
    .card {
        border: none !important;
        margin-bottom: 2rem;
    }

    .frontpage-card {
        background-color: #f36a6f;
        border-radius: 5px 5px 0 0;
    }

    .right-card {
        text-align: right;
    }

    .card-subtitle {
        font-size: 1.3rem;
        padding-bottom: 0.8rem;
    }

    .card-title {
        font-size: 2rem;
        font-weight: 700;
        padding-bottom: 1.5rem;
    }

    .card-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* SP版 お知らせリストのスタイル */
    .news-list {
        padding: 1rem;
    }

    .news-items {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .news-item {
        border-bottom: 1px solid #ddd;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .news-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .news-link {
        text-decoration: none;
        color: inherit;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .news-content {
        flex: 1;
    }

    .news-icon {
        margin-left: 0.5rem;
        font-size: 1.2rem;
        opacity: 0.5;
    }

    .news-date {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 0.3rem;
    }

    .news-title {
        font-size: 1.4rem;
        font-weight: 500;
        line-height: 1.4;
    }

    .no-news {
        text-align: center;
        color: #666;
        font-size: 1rem;
        padding: 1rem;
    }

    /* SP版 section4のスタイル */
    .section4 {
        background-image: url("images/section4-background.jpg");
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        min-height: 100vh;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 80px;
    }

    .section4-content {
        width: 100%;
        padding: 0 1rem;
    }

    /* SP版 section4のレイアウト調整 */
    .section4-content .row {
        display: flex;
        flex-direction: column;
    }

    /* 最初のカラム内をflexboxで配置 */
    .section4-content .col-md-6:first-child {
        display: flex;
        flex-direction: column;
        order: 1;
    }

    /* タイトル部分をそのまま表示 */
    .section4-content .col-md-6:first-child .subtitle {
        order: 1;
    }

    .section4-content .col-md-6:first-child .title {
        order: 2;
    }

    /* スマホ版でのボタンスタイル調整 */
    .mobile-button-moved {
        margin-top: 2rem !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* ニュースリストの親要素 */
    .section4-content .col-md-6:last-child {
        order: 2;
    }

    /* SP版 section2and3のスタイル */
    .section2and3 {
        background-image: url("images/section2and3-background.webp");
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        min-height: 100vh;
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    .section2 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* SP版 cp-sectionのスタイル */
    .cp-section {
        max-width: 100%;
        margin: 0 auto;
        padding: 8rem 1rem;
    }

    /* SP版 会社概要ページのスタイル */
    .company-section1 {
        padding: 1rem 0;
        min-height: auto;
    }

    .subtitle-company {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .title-company {
        font-size: 3rem;
        font-weight: 700;
        line-height: 1;
    }

    .catch-company {
        font-size: 2rem;
        font-weight: 700;
        text-align: center;
    }

    .content-company {
        font-size: 1.2rem;
    }

    .content-br {
        display: none;
    }

    .col-right {
        display: none;
    }

    .page-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .table-custom th {
        background: transparent !important;
        font-weight: 700;
        border-bottom: none !important;
        position: relative;
        padding: 1rem 0 !important;
    }

    .table-custom th::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, #b00007 30%, #cccccc 10%);
    }

    .table-custom td {
        background: transparent !important;
        border-bottom: none !important;
        position: relative;
        padding: 1rem 0 !important;
        padding-left: 1rem !important;
    }

    .table-custom td::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: #cccccc;
    }

    .post-header {
        margin-bottom: 3rem !important;
    }

    .btn-category {
        margin: 1rem 0;
    }

    .post-date {
        margin: 0 0.5rem;
    }

    .breadcrumb-container {
        margin-top: 1rem;
    }

    /* ========== フッタースタイル ========== */
    .site-footer {
        width: 100%;
        background-color: #333;
        margin-top: auto;
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    .footer-content {
        width: 100%;
        margin: 0 1rem;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    /* 並び順: text-center */
    .text-center {
        order: 1;
        text-align: center;
        margin-bottom: 1rem;
    }

    img.footer_logo {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    /* 並び順: footer-right */
    .footer-right {
        order: 2;
        color: #fff;
        text-align: center;
    }

    .footer-right .nav-link {
        display: block;
        color: #fff !important;
        text-decoration: none;
        font-weight: 700;
        line-height: 1.5;
    }

    .footer-right .nav-link:hover {
        color: #ccc !important;
        text-decoration: none;
    }

    .footer-right div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-return {
        display: inline-block;
        color: #fff !important;
        text-decoration: none;
        line-height: 1.5;
        margin: 16px 0;
        padding: 8px 0;
    }

    .footer-return:hover {
        text-decoration: none;
        color: #ccc !important;
    }

    /* 並び順: footer-left */
    .footer-left {
        order: 3;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .catchcopy {
        text-align: center;
        margin-bottom: 2rem;
    }

    .catchcopy .h2 {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .footer-left p {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    /* 並び順: copyright */
    .copyright {
        display: none !important;
    }

    .copyright-mobile {
        order: 4;
        font-size: 12px;
        color: #fff;
        text-align: center;
        margin-top: 1rem;
    }

    /* 並び順: footer-center */
    .footer-center {
        display: none;
    }

    img.footer_symbol {
        width: 200px;
        height: 200px;
        object-fit: cover;
        opacity: 0.3;
    }

    .contact-form {
        margin: 1rem 0;
        padding: 0rem;
        border-radius: 6px;
    }

    .contact-form .wpcf7-form {
        gap: 1rem;
    }

    .contact-form .wpcf7-form input[type="text"],
    .contact-form .wpcf7-form input[type="email"],
    .contact-form .wpcf7-form input[type="tel"],
    .contact-form .wpcf7-form textarea,
    .contact-form .wpcf7-form select {
        padding: 0.625rem;
        font-size: 0.95rem;
    }

    .contact-form .wpcf7-form input[type="submit"] {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        align-self: stretch;
    }

    .contact-label {
        font-size: 1.25rem;
    }

    /* SP版 CTAのスタイル */
    .cta {
        margin: 3rem 0;
    }

    .cta-recruit {
        margin-top: 2rem !important;
        margin-bottom: 3rem !important;
    }

    .cta-subtitle {
        font-size: 1.8rem !important;
        margin-bottom: -0.3rem;
    }

    .cta-title {
        font-size: 3rem !important;
        font-weight: 700;
        margin-top: -0.3rem;
    }

    .cta-content {
        font-size: 1.1rem !important;
        text-align: left !important;
    }

    /* アイコンサークルをPC版と同様に戻す */
    .cta-icon-circle-recruit,
    .cta-icon-circle-contact {
        display: none;
    }
}

/* プライバシーポリシーセクション */
.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;
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
    .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;
    }
}
