@charset "utf-8";

/*=============================
Main visual
=============================*/

.hero-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #fff url("../../images/main--pc.jpg") center center / cover no-repeat;
}

.hero-catch {
    width: 100%;
    padding: 23px 28px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.85px;
}

.hero-slogan {
    width: 100%;
    padding-right: 28px;
    margin: 0;
    position: absolute;
    top: 252px;
    z-index: 1;
    text-align: right;
    font-size: 17px;
    letter-spacing: 0.85px;
    opacity: 0;
    transform: translateX(-12px);
    animation: hero-copy-in-left 0.45s ease 1.35s forwards;
}

/* キャッチ前半 → 後半 → 英文の順に、ページ表示時に一度だけ再生する。 */
.hero-catch > span {
    display: inline-block;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-12px);
    animation: hero-copy-in-left 0.45s ease forwards;
}

.hero-catch > span:nth-child(2) {
    margin-left: 0.35em;
    animation-delay: 0.65s;
}

@keyframes hero-copy-in-left {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-copy {
    width: 100%;
    padding: 27px 28px;
    position: relative;
    z-index: 1;
    background: #fff;
    text-align: left;
    font-size: 15px;
    line-height: 1.58;
}

.hero-copy p {
    max-width: 1090px;
    margin: 0;
}

.hero-copy strong {
    font-weight: 700;
}

/* Main visual pc: このセクションのみ1140pxで切り替える。 */
@media screen and (min-width: 1140px) {
    .hero-image {
        height: 688px;
    }

    .hero-catch {
        width: min(1440px, 100%);
        padding: 70px 80px;
        font-size: 40px;
    }

    .hero-slogan {
        top: 575px;
        padding-right: 80px;
        font-size: 40px;
    }

    .hero-copy {
        padding: 67px 0;
        font-size: 20px;
    }

    .hero-copy p {
        margin: 0 auto;
    }

    .sp-br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-catch span,
    .hero-slogan {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/*=============================
Services
=============================*/

.services {
    padding: 20px 0 0;
    overflow: hidden;
    background: var(--color-pale);
}

.services > h1 {
    margin: 0 0 27px;
    text-align: center;
    font-size: 2.2rem;
}

.intro {
    max-width: 320px;
    margin: 0 auto 43px;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.6;
}

.service {
    min-height: 670px;
    position: relative;
}

.service-card {
    width: 80%;
    padding: 28px 18px 15px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.93);
    font-size: 1.5rem;
    line-height: 1.5;
}

.service-card h2 {
    margin: 0 0 9px;
    font-size: 1.8rem;
    line-height: 1.48;
}

.service-card h3 {
    margin: 0 0 14px 1em;
    font-size: 1.5rem;
    line-height: 1.55;
}

.service-card p {
    margin: 0 0 0 1em;
    font-size: 14px;
}

.service-card a {
    display: block;
    margin-top: 16px;
    text-align: right;
    font-size: 1.6rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.service-photo {
    width: 80%;
    height: 350px;
    position: absolute;
    top: 215px;
    left: 20%;
    background-position: center;
    background-size: cover;
}

.service-one {
    padding-bottom: 90px;
}

.service-one .service-photo {
    background-image: url("../../images/service--01.jpg");
}

.service-one .pill {
    bottom: 40px;
}

.service-two .service-card {
    margin-left: auto;
    margin-right: 0;
}

.service-two .service-photo {
    left: 0;
    background-image: url("../../images/service--02.jpg");
}

.service-three .service-card {
    margin-right: auto;
}

.service-three .service-photo {
    background-image: url("../../images/service--03.jpg");
    filter: grayscale(1);
}

/* Services tablet / pc */
@media screen and (min-width: 769px) {
    .services {
        padding-top: 48px;
    }

    .services > h1 {
        font-size: 2.8rem;
    }

    .intro {
        max-width: none;
        margin-bottom: 30px;
    }

    .service {
        width: 100%;
        min-height: clamp(420px, 42vw, 597px);
        margin: 0 auto 72px;
    }

    .service-card {
        width: 66%;
        min-height: clamp(280px, 27.8vw, 400px);
        padding: 30px 28px 17px;
        position: absolute;
        top: 30px;
        left: 0;
        font-size: 1.3rem;
    }

    .service-card h2 {
        font-size: 2.4rem;
    }

    .service-card h3 {
        font-size: 1.7rem;
    }

    .service-card a {
        position: static;
        right: 28px;
        bottom: 35px;
        z-index: 2;
        margin: 20px 0 0;
        font-size: 1.5rem;
    }

    .service-photo {
        width: 75%;
        height: clamp(400px, 41.5vw, 597px);
        top: 0;
        right: 0;
        left: auto;
    }

    .service-one {
        margin-bottom: 150px;
    }

    .service-one .pill {
        bottom: -80px;
    }

    .service-two .service-card {
        right: 0;
        left: auto;
    }

    .service-two .service-photo {
        right: auto;
        left: 0;
    }

    .service-three .service-card {
        margin-right: 0;
    }
}

@media screen and (min-width: 769px) and (max-width: 1139px) {
    .services {
        padding-bottom: 76px;
    }
}

@media screen and (min-width: 1140px) {
    .service {
        height: 597px;
        min-height: 597px;
        margin-bottom: 170px;
        padding-bottom: 0;
    }

    .service-card {
        width: 949px;
        height: 400px;
        min-height: 0;
        margin: 0;
        padding: 16px 28px 20px;
        top: 44px;
    }

    .service-card h2 {
        margin-bottom: 12px;
        font-size: 35px;
        line-height: 1.5;
    }

    .service-card h3 {
        font-size: 27px;
        line-height: 1.5;
    }

    .service-card p {
        font-size: 16px;
        line-height: 1.55;
    }

    .service-card a {
        position: absolute;
        margin: 0;
        font-size: 18px;
    }

    .service-card h2 br {
        display: none;
    }

    .service-photo {
        width: 1150px;
        height: 597px;
        right: -70px;
    }

    .service-two .service-photo {
        left: -70px;
        background-position: right 54%;
    }
}

/* 写真 → カード → キャッチコピー → h3 → 本文。JSは表示開始だけを制御する。 */
.service-photo {
    transition: opacity 0.6s ease;
}

.service-card {
    transition: opacity 0.6s ease 0.6s;
}

.service-card h2,
.service-card h3,
.service-card p {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.45s ease 1.2s, transform 0.45s ease 1.2s;
}

.service-card h3 {
    transition-delay: 1.65s;
}

.service-card p {
    transition-delay: 2.1s;
}

.service.is-service-pending > .service-photo,
.service.is-service-pending > .service-card {
    opacity: 0;
    transition: none;
}

.service.is-service-pending > .service-card h2,
.service.is-service-pending > .service-card h3,
.service.is-service-pending > .service-card p {
    opacity: 0;
    transform: translateX(-18px);
    transition: none;
}

/* キーボードでカード内へ移動した場合は、待たずに表示する。 */
.service:focus-within > .service-photo,
.service:focus-within > .service-card,
.service:focus-within > .service-card h2,
.service:focus-within > .service-card h3,
.service:focus-within > .service-card p {
    opacity: 1;
    transform: translateX(0);
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .service > .service-photo,
    .service > .service-card,
    .service .service-card h2,
    .service .service-card h3,
    .service .service-card p {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/*=============================
News
=============================*/

.news {
    padding: 52px 25px 56px;
    background: var(--color-blue);
    color: #fff;
}

.news h2 {
    margin: 0 0 29px;
    text-align: center;
    font-size: 2.2rem;
}

.news-list {
    padding: 28px 20px;
    background: #fff;
    color: var(--color-navy);
}

.news-list article {
    padding-bottom: 17px;
}

.news-list article + article {
    padding-bottom: 0;
}

.news-list time {
    display: inline-block;
    padding: 0;
    color: var(--color-navy);
    font-size: 1.5rem;
}

.news-list p {
    margin: 12px 0 0;
    font-size: 1.5rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: #9cabb7;
}

.news-link {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 27px 0 0 auto;
    padding: 0 0 3px;
    border-bottom: 1px solid currentColor;
    color: var(--color-navy);
    text-align: right;
    font-size: 1.3rem;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.news-link::before {
    content: '→';
    margin-right: 10px;
}

.news-link:hover,
.news-link.is-hover {
    background: var(--color-navy);
    color: #fff;
}

/* News pc */
@media screen and (min-width: 769px) {
    .news {
        padding: 46px 0 52px;
    }

    .news h2 {
        font-size: 2.8rem;
    }

    .news-list {
        width: calc(100% - 40px);
        margin: 0 auto;
        padding: 21px 24px;
    }

    .news-list article {
        display: flex;
        align-items: center;
        gap: 60px;
        padding: 0;
    }

    .news-list article + article {
        margin-top: 20px;
    }

    .news-list p {
        margin: 0;
    }

    .news-link {
        margin-top: 24px;
    }
}

@media screen and (min-width: 1140px) {
    .news {
        padding: 50px 0 78px;
    }

    .news h2 {
        margin-bottom: 40px;
        font-size: 32px;
    }

    .news-list {
        width: calc(100% - 160px);
        max-width: 1280px;
        padding: 52px 52px 30px 104px;
    }

    .news-list article {
        gap: 88px;
    }

    .news-list article + article {
        margin-top: 64px;
    }

    .news-list p {
        font-size: 16px;
    }

    .news-list time {
        width: 168px;
        flex: 0 0 168px;
        text-align: left;
        font-size: 16px;
    }

    .news-link {
        max-width: none;
        margin-top: 54px;
        padding: 0;
        font-size: 20px;
    }
}
