/* header */
.site-main-inner {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;

    @media (width<=768px) {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
}

.global-nav {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
}

/* front-page kv */

.home-kv {
    width: 100%;
    height: 720px;

    @media (width<=768px) {
        height: 400px;
    }
}

.home-kv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* news */
.home-news {
    max-width: 960px;
    margin: 90px auto;
    padding: 40px 16px;
}

.news-inner {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    border-radius: 12px;
}

.news__title-link-wrapper {
    padding-bottom: 20px;
    border-bottom: 1px solid #000;
}

.news-title__jp {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.news-title__en {
    font-size: 48px;
    font-weight: 700;
    margin-top: 14px;
}

.news__title-link-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.news-list {
    margin-top: 32px;

}

.news-list__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.news-item__date {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-right: 8px;
}

.news-item__tag {
    font-weight: 700;
    font-size: 12px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 3px 10px;
    display: inline-block;
    text-align: center;
    min-width: 125px;
}

.news-item__title {
    padding-top: 12px;
    padding-bottom: 24px;
    font-weight: 500;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: 0.3px;
}

/* home service */
.home-service {
    background: #fff;
}

.home-service__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 16px;
}

.home-service__title-jp {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.home-service__title-en {
    font-size: 48px;
    font-weight: 700;
    margin-top: 14px;
}

.home-service__text-wrapper {
    width: 47%;
    max-width: 720px;

    @media (width<=768px) {
        width: 100%;
    }
}

.home-service__image-wrapper {
    width: 47%;
    max-width: 720px;
}

.home-service__image-wrapper-sp {
    display: none;

    @media (width<=768px) {
        display: block;
        width: 100%;
        margin-top: 32px;
    }
}

.home-service__description {
    font-weight: 400;
    font-size: 16px;
    line-height: 200%;
    letter-spacing: 0.3px;
    margin-top: 14px;
}

.home-service__content {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;

    @media (width<=768px) {
        flex-direction: column;
        align-items: center;
    }
}

.home-service__card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.home-service__card:hover {
    transform: translateY(-8px);

}

.home-service__cards-wrapper {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;

    @media (width<=768px) {
        grid-template-columns: 1fr;
    }
}

.home-service__card-img img {
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
}


.home-service__title-wrapper {
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

/* .home-service__title-wrapper::after{
    content: ">";
    display: block;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 20px;
    border-radius: 50px;
    color: #fff;
} */

.home-service__card-arrow {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50px;
}

.home-service__card-arrow::after {
    content: "›";
    line-height: 1;
    font-size: 20px;
    color: #fff;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.home-service__card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: #02183b;
}

/* home company */

.home-company {
    background-image: url("../img/top-company-bg.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
}

.home-company::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.company-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 80px 16px;
    position: relative;
    z-index: 1;

}

.company-text__wrapper {
    text-align: center;
}

.company-title__jp {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.company-title__en {
    font-size: 48px;
    font-weight: 700;
    margin-top: 14px;
}

.company-content__wrapper {
    margin-top: 32px;
    display: flex;
    align-items: center;

    @media (width<=768px) {
        flex-direction: column;
    }
}

.company-content__img {
    flex-shrink: 0;
    margin-right: 32px;

    @media (width<=768px) {
        margin-right: 0;
        margin-bottom: 24px;
    }
}

.company-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 200%;
    letter-spacing: 0.3px;
}

.company-btn__wrapper {
    margin-top: 20px;
}

/* home contact-recruit */

.contact-recruit__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 360px;

    @media (width<=768px) {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
}

.contact-recruit__content {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    @media (width<=768px) {
        padding: 40px 24px;
        text-align: center;
    }
}

.contact-recruit--contact {
    background: #fff;
}

.contact-recruit-title__wrapper {
    display: flex;
}

.contact-recruit__title-jp {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.contact-recruit__title-en {
    font-size: 36px;
    font-weight: 700;
    margin-left: 8px;
}

.contact-recruit__description {
    font-weight: 400;
    font-size: 16px;
    line-height: 200%;
    letter-spacing: 0.3px;
    margin-top: 16px;
}

.contact-recruit--recruit {
    /* 背景色のOpacityのみ変更 */
    /* background: var(--secondary-color);
    opacity: 0.5; */
    background: rgba(59, 130, 246, 0.1);
}

/* Service Page */

.page-service__content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-description__wrapper {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
}

.service-description__wrapper::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    background: #fff;
    padding: 4px 8px;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    height: 100%;
    z-index: -1;
}

.service-description {
    line-height: 200%;
    letter-spacing: 0.3px;
    font-size: 16px;
    font-weight: 400;
    z-index: 1;
}


.service-detail__title {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    margin-top: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.service-detail__title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 100px;
    width: calc(100% - 100px);
    height: 2px;
    background: #fff;
}

.service-detail__card {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.service-detail__card:hover {
    transform: translateY(-8px);
}

.service-detail__cards-wrapper {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;

    @media (width<=425px) {
        grid-template-columns: 1fr;
    }
}

.service-detail__wrapper {
    padding: 24px;
}

.service-detail__title-wrapper {
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.service-detail__card-img img {
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
}

.service-detail__card-arrow {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50px;
}

.service-detail__card-arrow::after {
    content: "›";
    line-height: 1;
    font-size: 20px;
    color: #fff;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-detail__card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: #02183b;
}

.service-detail__card-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 200%;
    letter-spacing: 0.3px;
    margin-top: 14px;
}

/* Company Page */
.page-company__content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.company-info {
    margin-top: 40px;
    background: #fff;
    width: 100%;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 32px;
    padding-bottom: 22px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.company-info__title-en {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.company-info__title-jp {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.company-info__table {
    margin-top: 22px;
    text-align-last: left;
    font-size: 14px;
}

.company-info__row {
    display: flex;
}

.company-info__item {
    padding-left: 18px;
    padding-top: 15px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    line-height: 1.25;
}

.company-info__item:first-child {
    background: #f4f4f4;
    font-weight: 600;
    width: 220px;
    @media( width<=425px) {
        width: 110px;
        flex-shrink: 0;
    }
}

.company-info__row:not(:first-child) {
    border-top: 1px solid #c9c9c9;

}

/* News Page */

.page-news__content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.lower-news-category {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
    gap: 20px;
}

.lower-news-category__item {
    min-width: 87px;
    background: #fff;
    text-align: center;
    border-radius: 5px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 8px;
    padding-left: 8px;
    line-height: 1;
    cursor: pointer;
}

.lower-news-category__item-active {
    background: var(--primary-color);
    color: #fff;
}

.news-article__list {
    margin-top: 50px;
    cursor: pointer;
    display: grid;
    grid-template-columns: repeat(3, auto);
    column-gap: 30px;
    row-gap: 42px;
    justify-self: start;
    align-items: start;

}

.news-article {
    width: 315px;
}

.news-article__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.news-article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.news-article__time {
    font-size: 12px;
    font-family: "Hinogira Kaku Gothic ProN", sans-serif;
    font-weight: 600;
    margin-top: 10px;
}

.news-article__title {
    font-family: "Hinogira Kaku Gothic ProN", sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

/* home care support page */
.page-home-care-support__content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-care-support-description__wrapper {
    margin-top: 40px;
}

.home-care-support-concept {
    line-height: 150%;
    font-weight: 800;
    font-size: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.home-care-support-concept::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 80px;
    width: calc(100% - 80px);
    height: 2px;
    background: #fff;
}

.home-care-support-description {
    margin-top: 20px;
    line-height: 200%;
    letter-spacing: 0.3px;
    font-size: 16px;
    font-weight: 400;
}

.home-care-support-offices__cards-wrapper {
    margin-top: 60px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.home-care-support-offices__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
}

.home-care-support-offices__title::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
}

.home-care-support-offices__card {
    padding: 24px;
    margin-top: 48px;
    display: flex;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    justify-content: space-between;

    @media (width<=425px) {
        display: block;
    }
}

.home-care-support-offices__wrapper {
    margin-top: 40px;
    margin-left: 40px;
    flex-shrink: 0;

    @media (width<=425px) {
        margin-left: 0;
        margin-top: 20px;
    }
}

.home-care-support-offices__card-tag {
    font-weight: 700;
    font-size: 12px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 4px 12px;
    display: inline-block;
    text-align: center;
}

.home-care-support-offices__card-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
    line-height: 1.5;
}

.home-care-support-offices__card-img {
    width: 45%;
    height: auto;
    object-fit: cover;

    @media (width<=425px) {
        width: 100%;
        margin-top: 12px;
    }
}

.home-care-support-offices__card-img img {
    width: 100%;
    border-radius: 12px;
}

.home-care-support-offices__card-address {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 20px;
}

.home-care-support-offices__card-tel {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 8px;
}

/* Lower CTA */

.lower-cta {
    width: 100vw;
    margin: 0 calc(49% - 50vw);
    margin-top: 60px;
    background-image: url("../img/lower-cta-bg.jpg");
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    padding: 4px calc(50vw - 49% + 8px);
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
}

.lower-cta::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 0;
}

.lower-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.lower-cta__title {
    font-size: 28px;
    font-weight: 700;
}

.lower-cta__text {
    margin-top: 24px;
}

.lower-cta__btns {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.lower-cta__button {
    margin-top: 32px;
    min-width: 170px;
    padding: 16px 32px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    text-align: center;
}



/* Lower KV */

.lower-kv {
    width: 100%;
    height: 240px;
    background-image: url("../img/lower-kv.jpg");
    background-size: cover;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    padding: 0 180px;
    padding-top: 100px;

    @media (width<=768px) {
        padding: 0 24px;
        height: 300px;
        padding-top: 120px;
    }
}

.lower-kv::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 0;
}

.lower-kv__titles {
    z-index: 1;
    position: relative;
}

.lower-kv__title {
    font-size: 48px;
    font-weight: 600;
    color: #02183b;
}

.lower-kv__subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-top: 8px;
}

.group-news__btn {
    min-width: 170px;
    margin-top: 16px;
}

.link-btn__blue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 2.875rem;
    border-radius: 0.25rem;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff !important;
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);

    @media (width<=768px) {
        margin: 0 auto;
    }
}

.link-btn__blue::after {
    content: "›";
    font-size: 20px;
    margin-left: 8px;
}

.link-btn__blue:hover {
    background-color: #fff;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}


.white-btn-right {
    margin-top: 32px;
    border: 1px solid #000;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 14px 24px;
    width: 260px;
    transition: all 0.3s;
    position: relative;
}

.white-btn-right:after {
    content: "›";
    font-size: 20px;
}

.lower-contact-recruit {
    margin-top: 60px;
}

.pc-only {
    display: block;

    @media (width<=768px) {
        display: none;
    }
}

.bold-text {
    font-weight: 700;
}

/* contact */

/* お問い合わせページ基本レイアウト */
.contact-page {
    font-size: 14px;
}

.contact-header .page-title {
    font-weight: 600;
}

.contact-header .page-description {
    color: #666;
}

.contact-note {
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.contact-required {
    color: #d00;
    font-weight: bold;
    margin-left: 4px;
    font-size: 12px;
}

/* フォーム全体 */
.contact-form-wrap {
    margin-bottom: 40px;
}

.contact-form {
    width: 100%;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.contact-table th,
.contact-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
}

.contact-table th {
    width: 26%;
    background: #fafafa;
    font-weight: 600;
    font-size: 13px;
}

.contact-table td {
    width: 74%;
}

/* 入力パーツの共通スタイル */
.contact-input,
.contact-select,
.contact-textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.contact-textarea,
.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* プライバシー・同意・送信ボタン */
.contact-privacy {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.contact-privacy a {
    text-decoration: underline;
}

.contact-acceptance {
    font-size: 13px;
    margin-bottom: 20px;
}

.contact-acceptance input[type="checkbox"] {
    margin-right: 6px;
}

.contact-submit {
    text-align: center;
    margin-top: 16px;
}

.contact-submit-button,
.contact-form input[type="submit"] {
    display: inline-block;
    min-width: 200px;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: #0073aa;
    color: #fff;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.contact-submit-button:hover,
.contact-form input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* エラー表示（CF7標準クラス） */
.wpcf7 form.invalid .wpcf7-not-valid-tip {
    color: #d00;
    font-size: 12px;
    margin-top: 4px;
}

.wpcf7-response-output {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
}

/* お問い合わせ情報ブロック */
.contact-info {
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
    font-size: 13px;
    color: #444;
}

.contact-info-title {
    font-size: 16px;
    margin: 0 0 8px;
    font-weight: 600;
}

.contact-info-body {
    margin: 0;
}