/* =========================================================
   選ばれる理由ページ
   共通ヘッダー・フッターは job-list.css を使用
   ========================================================= */

.reason-page {
    background: #fffdf9;
    color: #20242b;
}

.reason-page main {
    overflow: hidden;
}

.reason-page main h1,
.reason-page main h2,
.reason-page main p,
.reason-page main figure {
    margin-top: 0;
}

.reason-page main img {
    max-width: 100%;
}

.reason-pc-only {
    display: inline;
}

/* =========================================================
   Hero
   ========================================================= */

.reason-hero {
    position: relative;
    display: flex;
    min-height: 430px;
    align-items: center;
    overflow: hidden;
    background-color: #eef1ef;
    background-image:
        url("https://res.cloudinary.com/dg80bed2k/image/upload/v1776865498/reason-top.jpg");
    background-repeat: no-repeat;
    background-position: center 48%;
    background-size: cover;
}

.reason-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 23%,
            rgba(255, 255, 255, 0.69) 39%,
            rgba(255, 255, 255, 0.13) 63%,
            rgba(255, 255, 255, 0) 100%
        );
}

.reason-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.reason-hero__copy {
    width: min(510px, 48%);
    padding: 48px 0 38px;
}

.reason-hero h1 {
    margin-bottom: 18px;
    color: #16191e;
    font-size: clamp(33px, 3.65vw, 55px);
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1.34;
}

.reason-hero h1 span {
    color: #ef641b;
}

.reason-hero__lead {
    margin-bottom: 8px;
    color: #31363e;
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.8;
}

.reason-hero__script {
    position: relative;
    display: inline-block;
    margin: 5px 0 0 135px;
    color: #eaa06b;
    font-family: "Caveat", cursive;
    font-size: clamp(32px, 3vw, 45px);
    font-weight: 500;
    line-height: 1;
    transform: rotate(-5deg);
}

.reason-hero__script::after {
    position: absolute;
    right: -16px;
    bottom: -4px;
    left: -92px;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #f47a2c,
            rgba(244, 122, 44, 0)
        );
    content: "";
    transform: rotate(-3deg);
}

/* =========================================================
   Breadcrumb
   ========================================================= */

.reason-breadcrumb {
    border-bottom: 1px solid #eee5da;
    background: #fff;
}

.reason-breadcrumb ol {
    display: flex;
    width: min(1200px, calc(100% - 48px));
    min-height: 56px;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.reason-breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: #59616d;
    font-size: 13px;
    font-weight: 500;
}

.reason-breadcrumb li + li::before {
    margin-right: 18px;
    color: #a7a29b;
    content: ">";
}

.reason-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ed681f;
    font-weight: 700;
}

.reason-breadcrumb a:hover {
    text-decoration: underline;
}

/* =========================================================
   Intro
   ========================================================= */

.reason-intro {
    padding: 72px 24px 28px;
    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(255, 221, 190, 0.28),
            transparent 240px
        ),
        #fffdf9;
}

.reason-intro__inner {
    width: min(920px, 100%);
    margin: 0 auto;
    text-align: center;
}

.reason-section-label {
    margin-bottom: 5px;
    color: #ef6f24;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.reason-intro h2 {
    margin-bottom: 15px;
    color: #1c2027;
    font-size: clamp(29px, 3vw, 43px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.45;
}

.reason-intro h2 span {
    color: #ed641d;
}

.reason-intro__inner > p:last-child {
    margin-bottom: 0;
    color: #69707b;
    font-size: 15px;
    line-height: 1.9;
}

/* =========================================================
   Four reasons
   ========================================================= */

.reason-list {
    padding: 12px 24px 90px;
    background: #fffdf9;
}

.reason-card {
    position: relative;
    padding: 58px 0;
}

.reason-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    background: rgba(255, 250, 244, 0.55);
    content: "";
    opacity: 0;
    transform: translateX(-50%);
}

.reason-card:nth-child(even)::before {
    opacity: 1;
}

.reason-card__inner {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1120px, 100%);
    margin: 0 auto;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(55px, 7vw, 100px);
}

.reason-card--reverse .reason-card__copy {
    order: 2;
}

.reason-card--reverse .reason-card__visual {
    order: 1;
}

.reason-card__copy {
    position: relative;
    min-width: 0;
    padding-left: 68px;
}

.reason-card__number {
    position: absolute;
    top: 1px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ef641b;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.reason-card__number::after {
    display: block;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #ef641b,
            rgba(239, 100, 27, 0.15)
        );
    content: "";
}

.reason-card__eyebrow {
    margin-bottom: 8px;
    color: #2c3138;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.reason-card h2 {
    margin-bottom: 20px;
    color: #15191e;
    font-size: clamp(27px, 2.7vw, 39px);
    font-weight: 800;
    letter-spacing: 0.025em;
    line-height: 1.4;
}

.reason-card__text {
    margin-bottom: 0;
    color: #4c535d;
    font-size: 15px;
    line-height: 2;
}

.reason-card__visual {
    position: relative;
    min-width: 0;
    margin-bottom: 0;
}

.reason-card__visual::before {
    position: absolute;
    z-index: -1;
    top: 20px;
    right: -18px;
    bottom: -18px;
    left: 20px;
    border-radius: 3px;
    background: #fbe8d7;
    content: "";
}

.reason-card__visual img {
    display: block;
    width: 100%;
    height: 310px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow:
        0 14px 32px
        rgba(75, 57, 39, 0.12);
}

.reason-card__note {
    position: absolute;
    right: -18px;
    bottom: 26px;
    min-width: 178px;
    padding: 21px 24px 19px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 11px 30px
        rgba(69, 52, 37, 0.18);
    color: #262a30;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.75;
    text-align: center;
    transform: rotate(-5deg);
}

.reason-card__note::after {
    display: block;
    width: 72px;
    height: 2px;
    margin: 7px auto 0;
    border-radius: 999px;
    background: #f4752b;
    content: "";
    transform: rotate(-3deg);
}

.reason-card--reverse .reason-card__note {
    right: auto;
    left: -18px;
    transform: rotate(4deg);
}

.reason-card--reverse .reason-card__visual::before {
    right: 20px;
    left: -18px;
}

/* =========================================================
   FAQ
   ========================================================= */

.reason-faq {
    position: relative;
    overflow: hidden;
    padding: 80px 24px 100px;
    background:
        radial-gradient(
            circle at 88% 72%,
            rgba(255, 218, 179, 0.27),
            transparent 260px
        ),
        linear-gradient(
            135deg,
            #fff9f2 0%,
            #fffdf9 52%,
            #fff8ef 100%
        );
}

.reason-faq__inner {
    position: relative;
    z-index: 1;
    width: min(1000px, 100%);
    margin: 0 auto;
}

.reason-faq__heading {
    margin-bottom: 34px;
    text-align: center;
}

.reason-faq__heading .reason-section-label {
    margin-bottom: 5px;
    font-size: 18px;
    letter-spacing: 0.16em;
}

.reason-faq__heading h2 {
    margin-bottom: 8px;
    color: #1b1f24;
    font-size: clamp(29px, 3vw, 41px);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.reason-faq__heading > p:last-child {
    margin-bottom: 0;
    color: #747a83;
    font-size: 14px;
}

.reason-faq__list {
    display: grid;
    gap: 10px;
}

.reason-faq-item {
    overflow: hidden;
    border: 1px solid #eee5db;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 8px 24px
        rgba(78, 57, 37, 0.065);
}

.reason-faq-item summary {
    display: grid;
    min-height: 66px;
    padding: 15px 25px;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    color: #272c33;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    list-style: none;
}

.reason-faq-item summary::-webkit-details-marker {
    display: none;
}

.reason-faq-item summary:focus-visible {
    outline: 3px solid rgba(239, 103, 31, 0.28);
    outline-offset: -3px;
}

.reason-faq-item__icon {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            #ff8828,
            #ed5a0e
        );
    box-shadow:
        0 5px 12px
        rgba(228, 85, 12, 0.18);
}

.reason-faq-item__icon::before,
.reason-faq-item__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.reason-faq-item__icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.reason-faq-item[open]
.reason-faq-item__icon::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}

.reason-faq-item__answer {
    padding: 0 25px 22px 69px;
    color: #5b626d;
    font-size: 14px;
    line-height: 1.9;
}

.reason-faq-item__answer::before {
    display: block;
    height: 1px;
    margin: 0 0 17px;
    background: #eee6dd;
    content: "";
}

.reason-faq-item__answer p {
    margin-bottom: 0;
}

.reason-faq__decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 205, 155, 0.18);
}

.reason-faq__decoration--left {
    top: 85px;
    left: -80px;
    width: 185px;
    height: 185px;
}

.reason-faq__decoration--right {
    right: -52px;
    bottom: -42px;
    width: 160px;
    height: 160px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    .reason-hero {
        min-height: 390px;
        background-position: 58% center;
    }

    .reason-hero__copy {
        width: 52%;
    }

    .reason-card__inner {
        grid-template-columns:
            minmax(0, 0.92fr)
            minmax(380px, 1.08fr);
        gap: 52px;
    }

    .reason-card__copy {
        padding-left: 56px;
    }

    .reason-card__number {
        font-size: 20px;
    }

    .reason-card__number::after {
        width: 30px;
    }

    .reason-card__visual img {
        height: 285px;
    }
}

@media (max-width: 900px) {
    .reason-hero {
        min-height: 365px;
        background-position: 65% center;
    }

    .reason-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.93) 35%,
                rgba(255, 255, 255, 0.58) 58%,
                rgba(255, 255, 255, 0.08) 100%
            );
    }

    .reason-hero__copy {
        width: 60%;
    }

    .reason-card {
        padding: 48px 0;
    }

    .reason-card__inner {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(335px, 1fr);
        gap: 38px;
    }

    .reason-card__copy {
        padding-left: 0;
        padding-top: 44px;
    }

    .reason-card__number {
        top: 0;
    }

    .reason-card__visual img {
        height: 260px;
    }

    .reason-card__note {
        right: -8px;
        min-width: 150px;
        padding: 16px 18px;
        font-size: 14px;
    }

    .reason-card--reverse .reason-card__note {
        left: -8px;
    }
}

@media (max-width: 768px) {
    .reason-pc-only {
        display: none;
    }

    .reason-hero {
        min-height: 470px;
        align-items: flex-end;
        background-position: 66% center;
    }

    .reason-hero::after {
        position: absolute;
        inset: 42% 0 0;
        background:
            linear-gradient(
                0deg,
                rgba(255, 255, 255, 0.98),
                rgba(255, 255, 255, 0)
            );
        content: "";
    }

    .reason-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.82) 0%,
                rgba(255, 255, 255, 0.28) 48%,
                rgba(255, 255, 255, 0.04) 100%
            );
    }

    .reason-hero__inner {
        z-index: 2;
        width: min(100% - 34px, 650px);
    }

    .reason-hero__copy {
        width: 100%;
        padding: 190px 0 28px;
    }

    .reason-hero h1 {
        margin-bottom: 11px;
        font-size: clamp(28px, 8.2vw, 39px);
        line-height: 1.35;
        text-shadow:
            0 1px 0
            rgba(255, 255, 255, 0.6);
    }

    .reason-hero__lead {
        margin-bottom: 5px;
        font-size: 13px;
        line-height: 1.7;
    }

    .reason-hero__script {
        margin-left: 112px;
        font-size: 31px;
    }

    .reason-breadcrumb ol {
        width: min(100% - 34px, 650px);
        min-height: 50px;
        gap: 11px;
    }

    .reason-breadcrumb li {
        font-size: 12px;
    }

    .reason-breadcrumb li + li::before {
        margin-right: 11px;
    }

    .reason-intro {
        padding: 54px 20px 14px;
    }

    .reason-intro h2 {
        margin-bottom: 12px;
        font-size: clamp(26px, 7.5vw, 34px);
    }

    .reason-intro__inner > p:last-child {
        font-size: 14px;
        line-height: 1.8;
    }

    .reason-list {
        padding: 6px 20px 65px;
    }

    .reason-card {
        padding: 42px 0 50px;
    }

    .reason-card__inner,
    .reason-card--reverse .reason-card__inner {
        display: flex;
        width: min(100%, 650px);
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }

    .reason-card__copy,
    .reason-card--reverse .reason-card__copy {
        order: 1;
        padding-top: 45px;
    }

    .reason-card__visual,
    .reason-card--reverse .reason-card__visual {
        order: 2;
    }

    .reason-card__number {
        font-size: 19px;
    }

    .reason-card__number::after {
        width: 45px;
    }

    .reason-card__eyebrow {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .reason-card h2 {
        margin-bottom: 14px;
        font-size: clamp(25px, 6.8vw, 32px);
    }

    .reason-card__text {
        font-size: 14px;
        line-height: 1.9;
    }

    .reason-card__visual::before,
    .reason-card--reverse
    .reason-card__visual::before {
        top: 12px;
        right: -8px;
        bottom: -10px;
        left: 12px;
    }

    .reason-card__visual img {
        height: auto;
        min-height: 230px;
        max-height: 360px;
        object-fit: cover;
    }

    .reason-card__note,
    .reason-card--reverse .reason-card__note {
        right: 8px;
        bottom: 13px;
        left: auto;
        min-width: 138px;
        padding: 13px 15px 12px;
        font-size: 12px;
        line-height: 1.65;
        transform: rotate(-4deg);
    }

    .reason-card__note::after {
        width: 58px;
        margin-top: 5px;
    }

    .reason-faq {
        padding: 64px 20px 76px;
    }

    .reason-faq__heading {
        margin-bottom: 27px;
    }

    .reason-faq-item summary {
        min-height: 62px;
        padding: 14px 16px;
        grid-template-columns:
            27px
            minmax(0, 1fr);
        gap: 11px;
        font-size: 14px;
    }

    .reason-faq-item__icon {
        width: 25px;
        height: 25px;
    }

    .reason-faq-item__answer {
        padding: 0 17px 19px 54px;
        font-size: 13px;
        line-height: 1.85;
    }
}

@media (max-width: 430px) {
    .reason-hero {
        min-height: 440px;
        background-position: 64% 34%;
    }

    .reason-hero__copy {
        padding-top: 180px;
    }

    .reason-hero h1 {
        font-size: 29px;
        letter-spacing: 0.015em;
    }

    .reason-hero__script {
        margin-left: 88px;
        font-size: 29px;
    }

    .reason-intro {
        padding-right: 17px;
        padding-left: 17px;
    }

    .reason-intro h2 span {
        display: block;
    }

    .reason-list {
        padding-right: 17px;
        padding-left: 17px;
    }

    .reason-card__visual img {
        min-height: 205px;
    }

    .reason-card__note,
    .reason-card--reverse .reason-card__note {
        right: 5px;
        bottom: 10px;
        min-width: 123px;
        padding: 11px 12px;
        font-size: 11px;
    }

    .reason-faq {
        padding-right: 15px;
        padding-left: 15px;
    }

    .reason-faq-item summary {
        font-size: 13px;
    }

    .reason-faq-item__answer {
        padding-left: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reason-page *,
    .reason-page *::before,
    .reason-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}