/* ==========================================
   下層ページ 共通
========================================== */

.sub-hero {
    width: 100%;
    padding: 160px 20px 0;
    box-sizing: border-box;
}

.sub-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.sub-hero-header {
    margin-bottom: 24px;
}

.sub-hero-title {
    font-size: 3.6rem;
    font-weight: bold;
    color: #9D8C56;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    color: #636363;
}

.breadcrumb a {
    color: #636363;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb li:not(:last-child)::after {
    content: "▶";
    font-size: 1rem;
    margin-left: 8px;
    color: #636363;
}

.sub-hero-img-wrap {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: #EEEDE6;
}

.sub-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sub-hero-img-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #EEEDE6;
    pointer-events: none;
    z-index: 2;
    animation: baseTransition 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

.sub-hero-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #1D3D5E;
    background-image: 
        linear-gradient(rgba(29, 61, 94, 0.5), rgba(29, 61, 94, 0.5)), 
        url('../img/logo-footer.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover, auto 80px;
    pointer-events: none;
    z-index: 3;
    clip-path: inset(0 100% 0 0);
    animation: wipeSequence 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

@keyframes wipeSequence {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    30%, 35% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 100%);
    }
}

@keyframes baseTransition {
    0%, 29% {
        background-color: #EEEDE6;
    }
    30%, 100% {
        background-color: rgba(29, 61, 94, 0.5);
    }
}


/* Button Container */
.btn-wrap {
    text-align: center;
    margin: 60px auto;
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100px;
    background-color: #1d3d5e;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #9D8C56;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary::after {
    content: "→";
    position: relative;
    right: 0;
    margin-left: 25px;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

.btn-primary:hover::after {
    transform: translateX(15px);
}

@media screen and (max-width: 820px) {
    .breadcrumb ol {
        flex-wrap: wrap;
        row-gap: 6px;
        column-gap: 4px;
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .breadcrumb li:not(:last-child)::after {
        font-size: 0.8rem;
        margin-left: 4px;
    }

    .sub-hero {
        padding: 100px 20px 0;
    }
}

@media screen and (max-width: 480px) {
    .sub-hero {
        width: 100%;
        padding: 80px 20px 0;
        box-sizing: border-box;
    }

    .sub-hero-title {
        font-size: 2.8rem;
    }

    .sub-hero-img-wrap {
        height: 200px;
    }

    .btn-wrap {
        margin: 30px auto;
    }

    .btn-primary {
        width: 80%;
        height: 80px;
        padding: 0 10px;
        font-size: 1.6rem;
    }

    .breadcrumb ol {
        font-size: 1.0rem;
    }

    /* 長いタイトルの見切れ・溢れ防止処理 */
    .breadcrumb li {
        max-width: 100%;
    }

    .breadcrumb li[aria-current="page"]:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

}
/* ==========================================
   事業内容ページ
========================================== */
.sub-hero-business img {
    object-position: bottom;
}

.about-factoring-wrapper {
    width: 100%;
    position: relative;
    min-height: 580px;
}

.about-factoring-bg-navy {
    position: absolute;
    top: 0;
    left: 0;
    width: 68%;
    height: 600px;
    background-color: #1D3D5E;
    border-radius: 0 30px 0 0;
    z-index: 1;
}

.about-factoring-media {
    position: absolute;
    top: 60px;
    right: 0;
    width: 900px;
    height: auto;
    z-index: 2;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

.about-factoring-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
}

.about-factoring-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(29, 61, 94, 0.3);
    pointer-events: none;
}

.about-factoring-bg-text-top {
    position: absolute;
    top: 20px;
    left: 1vw;
    font-size: 12.6rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
}

.about-factoring-bg-text-bottom {
    position: absolute;
    bottom: 20px;
    right: 0;
    font-size: 12.6rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    z-index: 3;
    pointer-events: none;
}

.about-factoring-card {
    position: absolute;
    top: 120px;
    left: 10vw;
    width: 650px;
    height: 600px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 60px;
    z-index: 4;
}

.about-factoring-title {
    font-size: 3.2rem;
    font-weight: bold;
    color: #333333;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}


.about-factoring-text {
    font-size: 1.6rem;
    line-height: 2.0;
}

.about-factoring-banner {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.about-factoring-banner-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.about-factoring-banner-link:hover {
    opacity: 0.8;
}

.about-factoring-banner-img {
    width: 100%;
    max-width: 350px; 
    height: auto;
    box-sizing: border-box;
}

.about-factoring-banner-text {
    margin-top: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #1D3D5E;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* About Factoring Features */
.about-factoring-features {
    margin-top: 260px;
    width: 100%;
}

.about-factoring-features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px 60px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-factoring-feature-item {
    max-width: 360px;
    box-sizing: border-box;
}

.about-factoring-feature-header {
    position: relative;
    background-color: #ffffff;
    min-height: 70px;
    border-radius: 5px;
    box-shadow: 8px 6px 0 rgb(184, 208, 237);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-factoring-feature-num {
    position: absolute;
    bottom: 0;
    left: 0;
    font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-style: italic;
    font-size: 8.8rem;
    font-weight: bold;
    color: #1d3d5e;
    line-height: 1;
}

.about-factoring-feature-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333333;
}

.about-factoring-feature-text {
    margin-top: 25px;
    font-size: 1.6rem;
    line-height: 1.8;
    position: relative;
}

.about-factoring-feature-text::before {
    content: "";
    position: absolute;
    inset: 5px 0 0;
    background-color: rgba(184, 208, 237, 0.3);
    border-radius: 2px;
    z-index: -1;
    transform: skewX(-40deg) rotate(-3deg);
    max-width: 340px;
    height: 60px;
}


/* Factoring Parties */
.factoring-parties-heading {
    position: relative;
    text-align: center;
    margin-bottom: 80px;
}

.factoring-parties-bg-text {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9.6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    z-index: 1;
}

.factoring-parties-title {
    position: relative;
    z-index: 2;
    font-size: 3.6rem;
    font-weight: bold;
    color: #1d3d5e;
    margin: 0;
    padding-bottom: 20px;
}

.factoring-parties-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #9d8c56;
}

.factoring-parties-content { 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.factoring-parties-figure {
    width: 50%;
    flex-shrink: 0;
}

.factoring-parties-img {
    width: 100%;
    height: auto;
    display: block;
}

.factoring-parties-info {
    width: 50%;
}

.factoring-parties-info-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
}

.factoring-parties-info-text {
    font-size: 1.6rem;
    margin-bottom: 60px;
}

.factoring-parties-merits {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.factoring-parties-merit-item {
    flex: 1;
    background-color: #B8D0ED;
    border-radius: 5px;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.factoring-parties-merit-icon-wrap {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.factoring-parties-merit-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.factoring-parties-merit-icon.icon-clock {
    width: 40px;
}

.factoring-parties-merit-icon.icon-handshake {
    width: 30px;
}

.factoring-parties-merit-icon.icon-approval {
    width: 40px;
}

.factoring-parties-merit-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1d3d5e;
    line-height: 1.4;
}

/* Others Business Section */
.others-business-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.others-business-card {
    background-color: #ffffff;
    padding: 50px 40px;
}

.others-business-title {
    position: relative;
    font-size: 2.8rem;
    font-weight: bold;
    color: #1d3d5e;
    margin-bottom: 30px;
    padding-bottom: 12px;
}

.others-business-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #9d8c56;
}

.others-business-text {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 60px;
}

.others-business-list {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.others-business-item {
    position: relative;
    flex: 1;
    height: 150px;
    background: linear-gradient(180deg, #B8D0ED 0%, #3E5F94 100%);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.15);
}

.others-business-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: right 10px bottom 10px;
    background-size: 40%;
    pointer-events: none;
}
.item-sales::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: right 10px bottom 0px;
    background-size: 60%;
    pointer-events: none;
}

.others-business-item-text {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

.others-business-item.item-sales::before { background-image: url('../img/bg-sales-growth.png'); }
.others-business-item.item-efficiency::before { background-image: url('../img/bg-efficiency.png'); }
.others-business-item.item-organization::before { background-image: url('../img/bg-organization.png'); }
.others-business-item.item-strategy::before { background-image: url('../img/bg-strategy.png'); }

.others-business-item.item-analysis::before { background-image: url('../img/bg-analysis.png'); }
.others-business-item.item-cashflow::before { background-image: url('../img/bg-cashflow.png'); }
.others-business-item.item-review::before { background-image: url('../img/bg-review.png'); }
.others-business-item.item-coordination::before { background-image: url('../img/bg-coordination.png'); }


/* 親セクションへの背景色・はみ出し防止の付与 */
@media screen and (max-width: 820px) {
    .about-factoring,
    section:has(.about-factoring-wrapper) {
        padding: 50px 0 60px;
        overflow: hidden;
    }

    .about-factoring-wrapper {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #1D3D5E;
        padding: 20px 0;
    }

    .about-factoring-bg-navy {
        display: none;
    }

    .about-factoring-bg-text-top {
        position: absolute;
        top: 0;
        left: 0;
        font-size: 6.4rem;
        color: #ffffff;
        margin-bottom: -30px;
        z-index: 10;
        width: 90%;
        text-align: left;
    }

    .about-factoring-media {
        position: relative;
        top: auto;
        right: auto;
        width: 90%;
        height: 280px;
        margin-bottom: -50px;
        z-index: 2;
    }

    .about-factoring-bg-text-bottom {
        font-size: 6.4rem;
        color: #ffffff;
        bottom: 50px;
        right: 15px;
    }

    .about-factoring-card {
        position: relative;
        top: auto;
        left: auto;
        width: 80%;
        height: auto;
        padding: 36px 28px;
        z-index: 3;
        border-radius: 0;
    }

    .about-factoring-title {
        font-size: 2.4rem;
        margin-bottom: 20px;
    }

    .about-factoring-text {
        margin-bottom: 24px;
    }

    .about-factoring-banner {
        margin-top: 30px;
    }

    .about-factoring-banner-img {
        max-width: 280px;
    }

    .about-factoring-features {
        margin-top: 80px;
    }

    .factoring-parties-heading {
        margin-bottom: 40px;
    }

    .factoring-parties-content {
        flex-direction: column;
    }

    .factoring-parties-figure {
        width: 60%;
    }

    .factoring-parties-info {
        width: 80%;
    }

    .others-business-list {
        flex-wrap: wrap;
    }

    .others-business-list {
        flex-wrap: wrap;
        gap: 20px;
    }

    .others-business-item {
        flex: none;
        width: calc((100% - 20px) / 2);
    }
    
}

@media screen and (max-width: 480px) {
    .about-factoring,
    section:has(.about-factoring-wrapper) {
        padding: 40px 0 50px;
    }

    .about-factoring-bg-text-top {
        font-size: 3.6rem;
        left: 10px;
        top: 10px;
    }

    .about-factoring-media {
        width: 92%;
        height: 200px;
        margin-bottom: -40px;
    }

    .about-factoring-bg-text-bottom {
        font-size: 3.6rem;
    }

    .about-factoring-card {
        width: 92%;
        padding: 24px 20px;
    }

    .about-factoring-title {
        font-size: 2.0rem;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }

    .about-factoring-text {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .about-factoring-banner {
        margin-top: 20px;
    }

    .about-factoring-banner-img {
        max-width: 220px;
    }

    .about-factoring-banner-text {
        font-size: 1.3rem;
    }

    .factoring-parties-bg-text {
        top: -60px;
        font-size: 8rem;
    }

    .factoring-parties-title {
        font-size: 2.8rem;
    }

    .factoring-parties-figure {
        width: 100%;
    }

    .factoring-parties-info {
        width: 100%;
    }

    .factoring-parties-content {
        gap: 20px;
    }

    .factoring-parties-info-title {
        font-size: 2.2rem;
    }

    .factoring-parties-info-text {
        margin-bottom: 30px;
    }

    .factoring-parties-merit-item {
        height: 140px;
    }

    .others-business-content {
        gap: 40px;
    }

    .others-business-card {
        padding: 30px 20px;
    }

    .others-business-title {
        font-size: 2.2rem;
    }

    .others-business-title::after {
        width: 60px;
    }

    .others-business-text {
        margin-bottom: 30px;
    }

    .others-business-list {
        gap: 15px;
    }

    .others-business-item {
        width: 100%;
        height: 120px;
    }

    .others-business-item-text {
        font-size: 1.8rem;
    }

    .others-business-item::before {
        background-size: 25%;
    }

    .item-sales::before {
        background-size: 40%;
    }
}

/* ==========================================
   事例紹介ページ
========================================== */
.case-filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.case-filter-btn {
    appearance: none;
    border: none;
    background-color: #dcdcd9;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.case-filter-btn:hover,
.case-filter-btn.is-active {
    background-color: #1d3d5e;
}

.cases-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 80px 30px;
}

.case-card.is-hidden {
    display: none;
}

.sub-hero-case .sub-hero-img-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

/* Case Detail Section */
.case-detail .inner {
    max-width: 1000px;
}

.case-detail-main-title {
    font-size: 3.2rem;
    font-weight: bold;
    color: #333333;
    text-align: center;
    margin-bottom: 60px;
}

.case-detail-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 50px 80px;
    margin: 150px auto;
}

.case-detail-box .section-heading {
    margin: -100px auto 60px;
}

/* Problem List */
.case-problem-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.case-problem-list li {
    font-size: 1.6rem;
    line-height: 1.8;
}

.case-problem-list li + li {
    margin-top: 10px;
}

/* Solution Text & Info */
.case-solution-text {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 50px;
}

.case-solution .case-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    margin: 0 auto;
}

/* Staff Comment Area */
.case-staff-comment {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    max-width: 700px;
    margin: 60px auto 0;
}

.case-staff-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.case-staff-avatar {
    width: 200px;
    height: 200px;
    overflow: hidden;
    margin-bottom: 10px;
}

.case-staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-staff-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333333;
}

.case-staff-bubble {
    position: relative;
    background-color: #b8d0ed;
    border-radius: 20px;
    padding: 25px 30px;
}

.case-staff-bubble::before {
    content: "";
    position: absolute;
    top: 30%;
    left: -14px;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent #b8d0ed transparent transparent;
}

.case-staff-bubble p {
    font-size: 1.6rem;
    color: #333333;
    margin: 0;
}

@media screen and (max-width: 480px) {
    .cases-list {
        gap: 40px;
    }

    .sub-hero-case .sub-hero-img-wrap {
        height: 300px;
    }

    .case-detail-main-title {
        font-size: 2.4rem;
        margin-bottom: 0px;
    }

    .case-detail-box .section-heading {
        margin: -50px auto 30px;
    }

    .case-detail-box {
        padding: 30px 20px;
        margin: 80px auto;
    }

    .case-staff-avatar {
        width: 120px;
        height: 120px;
    }

    .case-staff-name {
        font-size: 1.4rem;
    }

    .case-staff-bubble {
        padding: 25px 10px;
    }
}


/* ==========================================
   よくあるご質問ページ
========================================== */
.faq .inner {
    max-width: 1000px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0 auto;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #C6C6C6;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
    border-color: #1d3d5e;
    box-shadow: 0 2px 5px rgba(29, 61, 94, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: 2.8rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

.faq-icon-q {
    background-color: #b8d0ed;
    color: #1d3d5e;
}

.faq-icon-a {
    background-color: #1d3d5e;
    color: #ffffff;
}

.faq-question-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333333;
    flex-grow: 1;
}

/* Toggle Plus/Minus Button */
.faq-toggle-icon { 
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid #C6C6C6;
    border-radius: 5px;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: "";
    position: absolute;
    background-color: #636363;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 横線 */
.faq-toggle-icon::before {
    width: 15px;
    height: 1.5px;
}

/* 縦線 */
.faq-toggle-icon::after {
    width: 1.5px;
    height: 15px;
}

/* 開いた状態で「-」にする */
.faq-item[open] .faq-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Answer Body */
.faq-answer {
    display: flex;
    align-items: flex-start;
    padding: 20px 25px 25px; /* 上パディングを追加 */
    border-top: 1px solid #C6C6C6; /* QとAを区切る横線 */
    margin-top: 5px;
}

.faq-answer-text {
    font-size: 1.6rem;
    line-height: 1.8;
    margin: 3px 0 0;
}

@media screen and (max-width: 480px) {
    .faq-question {
        padding: 10px 15px;
    }

    .faq-question-text {
        font-size: 1.6rem;
    }

    .faq-toggle-icon {
        width: 20px;
        height: 20px;
        border-radius: 3px;
    }

    .faq-toggle-icon::before {
        width: 10px;
        height: 1px;
    }
    
    .faq-toggle-icon::after {
        width: 1px;
        height: 10px;
    }
    
    .faq-answer {
        padding: 10px 15px;
    }
}

/* ==========================================
   代表挨拶ページ
========================================== */
.sub-hero-message img {
    object-position: bottom;
}

.message-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 180px;
    max-width: 1000px;
    margin: 0 auto;
}

.message-catch {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.writing-vertical {
    writing-mode: vertical-rl;
    font-size: 4rem;
    font-weight: bold;
    color: #333333;
    letter-spacing: 0.15em;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.message-content.is-show .writing-vertical {
    opacity: 1;
    transform: translateY(0);
}

.message-content.is-show .writing-vertical:nth-child(1) {
    transition-delay: 0s;
}

.message-content.is-show .writing-vertical:nth-child(2) {
    transition-delay: 0.3s;
}

.message-content.is-show .writing-vertical:nth-child(3) {
    transition-delay: 0.6s;
}

.message-body {
    flex: 1;
    font-size: 1.6rem;
    margin-top: 30px;
}

.message-body p {
    margin-bottom: 1.5em;
}

.message-body p:last-of-type {
    margin-bottom: 0;
}

.message-signature {
    margin-top: 60px;
    text-align: right;
    font-size: 2rem;
    font-weight: bold;
    color: #333333;
    font-family: "Yuji Mai", serif;
    font-weight: 400;
    font-style: normal;
}

.message-signature .name {
    margin-left: 1em;
    font-size: 2.8rem;
}

@media screen and (max-width: 820px) {
    .message-content {
        gap: 60px;
    }
}

@media screen and (max-width: 480px) {
    .message-content {
       flex-direction: column;
       gap: 30px;
    }

    .message-catch {
        margin: auto;
        gap: 10px;
    }
}
/* ==========================================
   企業理念ページ
========================================== */
.philosophy-top {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.philosophy .inner {
    width: 100%;
    max-width: 100%;
}

.philosophy-copy {
    font-size: 4rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 30px;
}

.philosophy-lead {
    font-size: 1.8rem;
    line-height: 2.5;
    margin-bottom: 160px;
}

.philosophy-mvv {
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

.mvv-item {
    text-align: center;
    margin-bottom: 70px;
}

.mvv-title {
    font-size: 3.6rem;
    font-weight: bold;
    color: #1D3D5E;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 80px;
}

.mvv-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #9D8C56;
}

.mvv-text {
    font-size: 3.2rem;
    font-weight: bold;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 160px;
}

.value-list {
    margin-top: 10px;
    text-align: left;
}

.value-item {
    display: flex;
    align-items: center;
    padding: 20px 60px;
    border-bottom: 1px solid #1D3D5E;
}

.value-item dt {
    width: 300px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #1D3D5E;
    flex-shrink: 0;
}

.value-item dd {
    font-size: 1.6rem;
    color: #333333;
    margin: 0;
    line-height: 1.6;
}

.philosophy-bottom {
    position: relative;
    margin-top: 120px;
    padding: 60px 0 20px;
    text-align: center;
    overflow: hidden;
}

/* マーキー背景全体の配置設定 */
.philosophy-marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* アニメーション用トラック */
.philosophy-marquee-track {
    display: flex;
    width: max-content;
    animation: philosophy-marquee-scroll 25s linear infinite;
}

/* ループさせるテキストの装飾 */
.philosophy-marquee-text {
    font-size: 12.8rem;
    font-weight: bold;
    color: #FFFFFF;
    white-space: nowrap;
    padding-right: 60px;
    line-height: 1;
}

/* ループアニメーション */
@keyframes philosophy-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 前面メッセージのレイヤー設定 */
.philosophy-message {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    font-weight: bold;
    color: #1D3D5E;
    line-height: 1.6;
    margin-bottom: 40px;
}

.philosophy-sub-message {
    position: relative;
    z-index: 2;
    font-size: 2.0rem;
    font-weight: bold;
    color: #1D3D5E;
    line-height: 1.6;
}

.philosophy-message {
    position: relative;
    z-index: 2;
    font-size: 3.2rem;
    font-weight: bold;
    color: #1D3D5E;
    line-height: 1.8;
    margin-bottom: 40px;
}

@media screen and (max-width: 480px) {
    .philosophy-top {
        width: 90%;
        margin: auto;
    }
    .philosophy-copy {
        font-size: 2.4rem;
    }

    .philosophy-lead {
        font-size: 1.4rem;
        text-align: left;
        margin-bottom: 80px;
        line-height: 2;
    }

    .mvv-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .mvv-text {
        font-size: 2.2rem;
        margin-bottom: 80px;
    }

    .value-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .value-item dt {
        width: 100%;
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .value-item dd {
        font-size: 1.4rem;
        line-height: 1.5;
    }

    .philosophy-marquee-text {
        font-size: 8rem;
    }

    .philosophy-message {
        font-size: 2.2rem;
        width: 90%;
        margin: 0 auto 40px;
    }
}

/* ==========================================
   スタッフ紹介ページ
========================================== */
.sub-hero-staff img {
    object-position: center -320px;
}

.staff-lead {
    text-align: center;
    font-size: 1.8rem;
    color: #333333;
    font-weight: bold;
    margin-bottom: 80px;
}

.staff-group {
    margin-bottom: 80px;
}

.staff-group:last-child {
    margin-bottom: 0;
}

.staff-dept-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #1D3D5E;
    font-weight: bold;
    margin-bottom: 40px;
}

.staff-dept-title::before,
.staff-dept-title::after {
    content: "";
    width: 100px;
    height: 1px;
    background-color: #636363;
    margin: 0 20px;
}

.staff-list {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.staff-item {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.staff-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 12px;
}

.staff-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 8px;
}

.staff-comment {
    font-size: 1.4rem;
}

@media screen and (max-width: 1024px) {
    .sub-hero-staff img {
        object-position: bottom;
    }
}

@media screen and (max-width: 480px) {
    .staff-lead {
        font-size: 1.6rem;
    }

    .staff-dept-title {
        font-size: 2.2rem;
    }

    .staff-dept-title::before, .staff-dept-title::after {
        width: 80px;
    }

    .staff-list {
        gap: 40px 20px;
    }

    .staff-item {
        width: 150px;
    }
}

/* ==========================================
   会社概要ページ
========================================== */
.company-list {
    max-width: 1000px;
    margin: 60px auto 0;
}

.company-item {
    display: flex;
    align-items: center;
    padding: 24px 80px;
    border-bottom: 1px solid #636363;
}

.company-item dt {
    width: 300px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #333333;
    flex-shrink: 0;
}

.company-item dd {
    font-size: 1.6rem;
    color: #333333;
    margin: 0;
    line-height: 1.5;
}

.company-item dd a {
    color: #333333;
}

@media screen and (max-width: 1024px) {
    .company-list {
        margin: 40px auto 0;
    }

    .company-item {
        padding: 20px 40px;
    }

    .company-item dt {
        width: 220px;
    }
}

@media screen and (max-width: 820px) {
    .company-item {
        padding: 18px 20px;
    }

    .company-item dt {
        width: 180px;
        font-size: 1.5rem;
    }

    .company-item dd {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .company-list {
        margin-top: 30px;
    }

    .company-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 16px 10px;
    }

    .company-item dt {
        width: 100%;
        font-size: 1.4rem;
    }

    .company-item dd {
        font-size: 1.4rem;
    }
}

/* ==========================================
   プライバシーポリシーページ
========================================== */
.privacy-container {
    max-width: 900px;
    margin: 60px auto 0;
    color: #333333;
    font-size: 1.4rem;
    line-height: 1.8;
}

.privacy-lead {
    margin-bottom: 40px;
}

.privacy-block {
    margin-bottom: 40px;
}

.privacy-block:last-child {
    margin-bottom: 0;
}

.privacy-ttl {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1D3D5E;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #9D8C56;
}

.privacy-block p {
    margin-bottom: 12px;
}

.privacy-block p:last-child {
    margin-bottom: 0;
}

.privacy-list {
    margin: 12px 0 16px 20px;
    list-style-type: disc;
}

.privacy-list li {
    margin-bottom: 6px;
}

.privacy-sub-list {
    margin: 6px 0 6px 20px;
    list-style-type: circle;
}

.privacy-address {
    font-style: normal;
    margin-top: 8px;
    line-height: 1.6;
}

/* ==========================================
   採用情報ページ
========================================== */
.recruit-card {
    max-width: 1000px;
    margin: 60px auto 0;
    background-color: #ffffff;
    padding: 60px 80px;
}

.recruit-type-ttl {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #1D3D5E;
    margin-bottom: 50px;
}

.recruit-list {
    width: 100%;
}

.recruit-item {
    display: flex;
    align-items: center;
    padding: 20px 10px;
    border-bottom: 1px solid #C6C6C6;
}

.recruit-item dt {
    width: 200px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #333333;
    flex-shrink: 0;
}

.recruit-item dd {
    font-size: 1.6rem;
    color: #333333;
    margin: 0;
    line-height: 1.6;
}

.recruit-note {
    display: block;
    font-size: 1.4rem;
    color: #636363;
    margin-top: 4px;
}

@media screen and (max-width: 1024px) {
    .recruit-card {
        padding: 40px 30px;
        margin-top: 40px;
    }

    .recruit-type-ttl {
        margin-bottom: 30px;
    }

    .recruit-item dt {
        width: 160px;
    }
}

@media screen and (max-width: 480px) {
    .recruit-card {
        padding: 30px 20px;
    }

    .recruit-type-ttl {
        font-size: 2.0rem;
        margin-bottom: 24px;
    }

    .recruit-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .recruit-item dt {
        width: 100%;
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .recruit-item dd {
        font-size: 1.4rem;
        width: 100%;
    }

    .recruit-note {
        font-size: 1.2rem;
    }
}

/* ==========================================
   お知らせページ
========================================== */

.news-card {
    max-width: 960px;
    margin: 50px auto 0;
    background-color: #ffffff;
    padding: 40px 60px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    border-bottom: 1px solid #E5E5E5;
}

.news-link {
    display: flex;
    align-items: center;
    padding: 24px 10px;
    text-decoration: none;
    color: #333333;
    transition: opacity 0.3s ease;
}

.news-link:hover {
    opacity: 0.7;
}

.news-date {
    font-size: 1.5rem;
    color: #888888;
    width: 140px;
    flex-shrink: 0;
}

.news-title {
    font-size: 1.6rem;
    margin: 0;
    flex-grow: 1;
    padding-right: 20px;
    line-height: 1.5;
}

.news-arrow {
    width: 10px;
    height: 10px;
    border-top: 2px solid #9D8C56;
    border-right: 2px solid #9D8C56;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-left: auto;
}

@media screen and (max-width: 1024px) {
    .news-card {
        padding: 30px 40px;
        margin-top: 40px;
    }
}

@media screen and (max-width: 820px) {
    .news-card {
        padding: 20px 24px;
    }

    .news-link {
        padding: 20px 0;
    }

    .news-date {
        width: 120px;
        font-size: 1.4rem;
    }

    .news-title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .news-card {
        padding: 16px;
    }

    .news-link {
        flex-wrap: wrap;
        position: relative;
        padding: 16px 30px 16px 0;
    }

    .news-date {
        width: 100%;
        margin-bottom: 6px;
        font-size: 1.3rem;
    }

    .news-title {
        width: 100%;
        font-size: 1.4rem;
        padding-right: 0;
    }

    .news-arrow {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
}

/* ----------------------------------
   ニュース詳細（single.php）
---------------------------------- */
.news-single {
    padding: 80px 0;
}

.news-article {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
}

.news-article-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.news-article-header .news-date {
    display: inline-block;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.news-article-title {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 700;
    color: #333;
}

.news-article-thumbnail {
    margin-top: 24px;
}

.news-article-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 本文エリアのスタイリング */
.entry-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.6rem;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 1.4rem;
    border-left: 4px solid #111;
    padding-left: 12px;
    margin: 40px 0 20px;
}

.entry-content h3 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* ページナビゲーション */
.news-article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.news-nav-item {
    flex: 1;
}

.news-nav-prev {
    text-align: left;
}

.news-nav-archive {
    text-align: center;
}

.news-nav-next {
    text-align: right;
}

.btn-back {
    display: inline-block;
    padding: 8px 24px;
    background-color: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.4rem;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: #e0e0e0;
}

@media screen and (max-width: 768px) {
    .news-article {
        padding: 20px;
    }

    .news-article-nav {
        flex-direction: column;
        gap: 16px;
    }

    .news-nav-item {
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .news-single {
        padding: 40px 0;
    }
    .news-article-title {
        font-size: 1.8rem;
    }
}

/* ==========================================
   フォームページ
========================================== */
.contact-section {
    padding: 40px 0 0;
}
.contact-section .inner {
    max-width: 100%;
    width: 100%;
}

.contact-lead {
    text-align: center;
    font-size: 1.6rem;
    line-height: 1.8;
    width: 90%;
    margin: 0 auto 50px;
}

.contact-box {
    background-color: #1D3D5E;
    padding: 60px 40px;
}

.contact-tel-wrap {
    max-width: 400px;
    margin: 0 auto 50px;
    border: 2px solid #ffffff;
    text-align: center;
    padding: 20px;
}

.contact-tel-link {
    text-decoration: none;
    color: #ffffff;
    display: block;
}

.contact-tel-number {
    font-size: 3.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1.2;
}

.contact-tel-icon {
    width: 28px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-tel-time {
    display: block;
    font-size: 1.4rem;
    margin-top: 8px;
    letter-spacing: 0.05em;
}

.contact-form-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: #EEEDE6;
    padding: 50px 60px;
    border-radius: 10px;
}

.contact-form-item {
    margin-bottom: 30px;
}

.contact-label {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

.badge {
    font-size: 1.2rem;
    padding: 2px 8px;
    border-radius: 3px;
    color: #ffffff;
    font-weight: normal;
}

.badge.required {
    background-color: #D95D39;
}

.badge.optional {
    background-color: #636363;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-input-wrap select,
.contact-input-wrap input[type="text"],
.contact-input-wrap input[type="email"],
.contact-input-wrap input[type="tel"],
.contact-input-wrap textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CCCCCC;
    background-color: #ffffff;
    border-radius: 4px;
    font-size: 1.6rem;
    box-sizing: border-box;
}

.contact-input-wrap textarea {
    height: 160px;
    resize: vertical;
}

.contact-privacy-box {
    margin-top: 15px;
    font-size: 1.5rem;
    color: #333333;
    font-weight: bold;
}

.contact-privacy-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.privacy-note {
    font-size: 1.3rem;
    color: #666666;
    line-height: 1.6;
    margin-top: 12px;
}

.contact-submit-wrap {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    background-color: #D95D39;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 16px 80px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: inline-block;
    width: 300px;
}

.btn-submit:hover {
    opacity: 0.85;
}

.wpcf7-not-valid-tip {
    font-size: 1.4rem;
}

.wpcf7-list-item label {
    cursor: pointer;
}

.wpcf7-list-item input {
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    .contact-box {
        padding: 50px 30px;
    }

    .contact-form-card {
        padding: 40px 40px;
    }
}

@media screen and (max-width: 820px) {
    .contact-lead {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .contact-tel-number {
        font-size: 2.6rem;
    }

    .contact-tel-icon {
        width: 24px;
    }

    .contact-form-card {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    .contact-box {
        padding: 30px 15px;
    }

    .contact-tel-wrap {
        padding: 15px 10px;
        margin-bottom: 30px;
    }

    .contact-tel-number {
        font-size: 2.2rem;
    }

    .contact-tel-icon {
        width: 20px;
    }

    .contact-label {
        font-size: 1.5rem;
    }

    .btn-submit {
        width: 100%;
        padding: 14px 0;
        font-size: 1.6rem;
    }
}