/* ========================================
   OPTIONS HERO
======================================== */

/* 安心オプションページのみヘッダーをヒーロー上に重ねる */
body:has(.p-options) .l-headerStudio {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    z-index: 1000;
}


.p-optionsHero {
    position: relative;
    width: 100%;
    min-height: 620px;
    overflow: hidden;
    background: #fff;
}


/* 右側の実写真 */
.p-optionsHero__photo {
    position: absolute;
    inset: 0 0 0 39%;
    overflow: hidden;
}

.p-optionsHero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    object-position: center 40%;

    transform: translateX(5%);
}


/* 左側の黄色い円形パネル */
.p-optionsHero__panel {
    position: absolute;
    inset: 0 auto 0 0;

    width: 60%;

    display: flex;
    align-items: center;

    background:
        linear-gradient(135deg,
            #ffc928 0%,
            #ffe783 52%,
            #fff3bd 100%);

    border-radius: 0;
    clip-path: ellipse(82% 105% at 0% 50%);

    z-index: 2;
}


/* テキスト */
.p-optionsHero__content {
    width: 100%;
    max-width: 680px;

    padding: 150px 60px 70px max(6vw, 70px);
}


/* OPTION＋黄色ライン */
.p-optionsHero__eyebrow {
    display: flex;
    align-items: center;
    gap: 26px;
}

.p-optionsHero__en {
    color: #2aa7ad;

    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.p-optionsHero__line {
    display: block;
    width: 150px;
    height: 5px;

    border-radius: 999px;
    background: #fff;
}


/* 大見出し */
.p-optionsHero__title {
    margin: 30px 0 0;

    color: #111;

    font-size: clamp(54px, 5vw, 82px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.04em;
}


/* 説明文 */
.p-optionsHero__lead {
    margin: 38px 0 0;

    color: #222;

    font-size: clamp(18px, 1.6vw, 25px);
    line-height: 1.9;
    font-weight: 800;
}

/* ========================================
   OPTIONS PAGE
======================================== */

.p-options {
    background: #f5f5f5;
}


/* ========================================
   INTRO
======================================== */

.p-optionsIntro {
    padding: 64px 0 48px;
    background: #f5f5f5;
}

.p-optionsIntro .p-sectionHeading {
    text-align: center;
}

.p-optionsIntro .p-sectionHeading__en {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #1ba8b5;
}

.p-optionsIntro .p-sectionHeading__ja {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.45;
    color: #222;
}

.p-optionsIntro .p-sectionHeading__text {
    margin: 24px auto 0;
    max-width: 720px;
    font-size: 15px;
    line-height: 2;
    color: #555;
}


/* ========================================
   OPTION SECTIONS
======================================== */

.p-optionsSection {
    padding: 20px 0;
}

.p-optionsSection:first-of-type {
    padding-top: 64px;
}

.p-optionsSection .p-cardSection {
    padding: 40px;

    border: 1px solid #dedede;
    border-radius: 28px;

    background: #e9e9e9;

    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}


/* heading */

.p-optionsSection .p-cardSection__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.p-optionsSection .p-cardSection__icon {
    display: flex;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #21a9b5;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.p-optionsSection .p-cardSection__en {
    margin: 0 0 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #1ba8b5;
}

.p-optionsSection .p-cardSection__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.35;
    color: #222;
}


/* ========================================
   OPTION DETAIL
======================================== */

.p-optionDetail {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 46px;
    align-items: center;

    padding: 54px 64px;

    background: #fff;
    border-radius: 32px;
}

/* ========================================
   OPTION IMAGE
======================================== */

.p-optionDetail__icon {
    width: 100px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f7f7;
    border: 3px solid rgba(42, 167, 173, 0.22);
    border-radius: 50%;

    font-size: 42px;
    line-height: 1;
}

.p-optionDetail__body {
    min-width: 0;
}

.p-optionDetail__title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    color: #222;
}

.p-optionDetail__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}


/* points */

.p-optionDetail__points {
    display: flex;
    flex-wrap: wrap;
    column-gap: 28px;
    row-gap: 12px;
    margin-top: 22px;
}

.p-optionDetail__points span {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 0;
    padding: 0;

    color: #333;
    background: transparent;
    border-radius: 0;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

/* 項目の前の黄色い丸 */
.p-optionDetail__points span::before {
    content: "";

    width: 9px;
    height: 9px;
    flex: 0 0 9px;

    background: #ffd400;
    border-radius: 50%;
}


/* link */

.p-optionDetail__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #ffd000;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.p-optionDetail__link::after {
    content: "→";
    margin-left: 10px;
}

.p-optionDetail__link:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}


/* ========================================
   CONSULTATION
======================================== */

.p-optionsConsult {
    padding: 72px 0;
}

.p-optionsConsult__box {
    padding: 56px 40px;
    border-radius: 28px;
    background: #fff9df;
    text-align: center;
}

.p-optionsConsult__en {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #1ba8b5;
}

.p-optionsConsult__title {
    margin: 0;
    font-size: 32px;
    line-height: 1.5;
    color: #222;
}

.p-optionsConsult__text {
    max-width: 680px;
    margin: 20px auto 0;
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

.p-optionsConsult__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 15px 32px;
    border-radius: 999px;
    background: #ffd000;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.p-optionsConsult__link::after {
    content: "→";
    margin-left: 12px;
}

.p-optionsConsult__link:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}


/* ========================================
   PLAN
======================================== */

.p-optionsPlan {
    padding: 82px 0 96px;
    background: #f5f5f5;
}

.p-optionsPlan .p-sectionHeading {
    text-align: center;
}

.p-optionsPlan .p-sectionHeading__en {
    margin: 0 0 9px;
    color: #1ba8b5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
}

.p-optionsPlan .p-sectionHeading__ja {
    margin: 0;
    color: #222;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.p-optionsPlan .p-sectionHeading__text {
    margin: 16px 0 0;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}


/* 3カード */

.p-optionsPlan__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    margin-top: 44px;
}

.p-optionsPlanCard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 490px;
    padding: 0 26px 28px;
    overflow: hidden;

    color: #222;
    background: #fff;
    border: 1px solid rgba(20, 80, 85, 0.1);
    border-radius: 24px;
    box-shadow: 0 11px 30px rgba(22, 42, 47, 0.08);

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.p-optionsPlanCard:hover {
    color: #222;
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(22, 42, 47, 0.13);
}


/* カード別アクセント */

.p-optionsPlanCard--standard {
    border-top: 4px solid #20aaa9;
}

.p-optionsPlanCard--half {
    border-top: 4px solid #ffc800;
    border-right-color: rgba(255, 200, 0, 0.65);
    border-bottom-color: rgba(255, 200, 0, 0.65);
    border-left-color: rgba(255, 200, 0, 0.65);
}

.p-optionsPlanCard--easy {
    border-top: 4px solid #ff7777;
}


/* 番号 */

.p-optionsPlanCard__number {
    position: absolute;
    z-index: 5;
    top: -4px;
    left: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 52px;

    color: #fff;
    background: #20aaa9;
    border-radius: 0 0 18px 0;

    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.p-optionsPlanCard--half .p-optionsPlanCard__number {
    color: #222;
    background: #ffc800;
}

.p-optionsPlanCard--easy .p-optionsPlanCard__number {
    background: #ff7777;
}


/* おすすめ */

.p-optionsPlanCard__badge {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 0 15px;

    color: #222;
    background: #ffc800;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}


/* 英字 */

.p-optionsPlanCard__en {
    position: relative;
    z-index: 3;
    align-self: flex-start;

    margin: 68px 0 0;

    color: #169fa8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
}


/* イラスト */

.p-optionsPlanCard__visual {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    width: 100%;
    height: 205px;
    margin-top: 2px;
}

.p-optionsPlanCard__visual::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;

    width: 220px;
    height: 190px;

    transform: translateX(-50%);
    border-radius: 48% 52% 47% 53%;
}

.p-optionsPlanCard--standard .p-optionsPlanCard__visual::before {
    background: rgba(32, 170, 169, 0.1);
}

.p-optionsPlanCard--half .p-optionsPlanCard__visual::before {
    background: rgba(255, 200, 0, 0.13);
}

.p-optionsPlanCard--easy .p-optionsPlanCard__visual::before {
    background: rgba(255, 119, 119, 0.1);
}

.p-optionsPlanCard__image {
    position: relative;
    z-index: 2;

    display: block;
    width: 100%;
    max-width: 230px;
    height: 200px;

    object-fit: contain;
    object-position: center bottom;

    transition: transform 0.25s ease;
}

.p-optionsPlanCard:hover .p-optionsPlanCard__image {
    transform: translateY(-3px);
}


/* 内容 */

.p-optionsPlanCard__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 4px;
}

.p-optionsPlanCard__title {
    margin: 0 0 12px;
    color: #222;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.p-optionsPlanCard__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 31px;
    margin: 0 0 14px;
    padding: 3px 15px;

    color: #168d93;
    background: #fff;
    border: 2px solid #20aaa9;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.p-optionsPlanCard--half .p-optionsPlanCard__type {
    color: #8a6b00;
    border-color: #ffc800;
}

.p-optionsPlanCard--easy .p-optionsPlanCard__type {
    color: #dc5555;
    border-color: #ff7777;
}

.p-optionsPlanCard__text {
    margin: 0 0 22px;
    color: #555;
    font-size: 14px;
    line-height: 1.75;
}

.p-optionsPlanCard__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;

    color: #159fa5;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;

    transition:
        gap 0.25s ease,
        color 0.25s ease;
}

.p-optionsPlanCard:hover .p-optionsPlanCard__link {
    gap: 13px;
    color: #117d82;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

    .p-optionsIntro {
        padding: 64px 0 48px;
    }

    .p-optionsIntro .p-sectionHeading__ja {
        font-size: 32px;
    }

    .p-optionsSection .p-cardSection {
        padding: 32px;
    }

    .p-optionDetail {
        grid-template-columns: 100px 1fr;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .p-optionsIntro {
        padding: 48px 0 32px;
    }

    .p-optionsIntro .p-sectionHeading__ja {
        font-size: 26px;
    }

    .p-optionsIntro .p-sectionHeading__text {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }


    /* section */

    .p-optionsSection {
        padding: 10px 0;
    }

    .p-optionsSection:first-of-type {
        padding-top: 40px;
    }

    .p-optionsSection .p-cardSection {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .p-optionsSection .p-cardSection__head {
        gap: 12px;
        margin-bottom: 20px;
    }

    .p-optionsSection .p-cardSection__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 12px;
    }

    .p-optionsSection .p-cardSection__title {
        font-size: 22px;
    }


    /* detail */

    .p-optionDetail {
        display: block;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .p-optionDetail__title {
        font-size: 18px;
    }

    .p-optionDetail__text {
        font-size: 14px;
        line-height: 1.8;
    }

    .p-optionDetail__points {
        margin-top: 16px;
    }

    .p-optionDetail__points span {
        font-size: 12px;
    }

    .p-optionDetail__link {
        width: 100%;
        box-sizing: border-box;
    }


    /* consultation */

    .p-optionsConsult {
        padding: 48px 0;
    }

    .p-optionsConsult__box {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .p-optionsConsult__title {
        font-size: 25px;
    }

    .p-optionsConsult__text {
        font-size: 14px;
        text-align: left;
    }

    .p-optionsConsult__link {
        width: 100%;
        box-sizing: border-box;
    }


    /* plan */

    .p-optionsPlan {
        padding: 52px 0 68px;
    }

    .p-optionsPlan .p-sectionHeading__ja {
        font-size: 27px;
    }

    .p-optionsPlan .p-sectionHeading__text {
        font-size: 14px;
    }

    .p-optionsPlan__grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 32px;
    }

    .p-optionsPlanCard {
        width: 100%;
        max-width: 460px;
        min-height: 0;
        margin-inline: auto;
        padding: 0 20px 24px;
        border-radius: 20px;
    }

    .p-optionsPlanCard__number {
        width: 56px;
        height: 46px;
        font-size: 15px;
    }

    .p-optionsPlanCard__badge {
        top: 14px;
        right: 14px;
    }

    .p-optionsPlanCard__en {
        margin-top: 60px;
    }

    .p-optionsPlanCard__visual {
        height: 220px;
    }

    .p-optionsPlanCard__visual::before {
        width: 230px;
        height: 205px;
    }

    .p-optionsPlanCard__image {
        max-width: 250px;
        height: 215px;
    }

    .p-optionsPlanCard__title {
        font-size: 24px;
    }

    .p-optionsPlanCard__text {
        font-size: 13px;
    }

}

/* ========================================
   OPTIONS HERO - TABLET
======================================== */

@media (max-width: 1100px) {

    body:has(.p-options) .l-headerStudio {
        top: 20px;
    }

    .p-optionsHero {
        min-height: 680px;
    }

    .p-optionsHero__photo {
        left: 38%;
    }

    .p-optionsHero__panel {
        width: 58%;
    }

    .p-optionsHero__content {
        max-width: 570px;
        padding:
            160px 40px 60px max(5vw, 40px);
    }

    .p-optionsHero__line {
        width: 110px;
    }

    .p-optionDetail {
        grid-template-columns: 210px 1fr;
        gap: 32px;
        padding: 32px;
    }

    .p-optionDetail__visual {
        min-height: 180px;
    }

    .p-optionDetail__image {
        max-width: 200px;
        height: 180px;
    }

}


/* ========================================
   OPTIONS HERO - MOBILE
======================================== */

@media (max-width: 767px) {

    body:has(.p-options) .l-headerStudio {
        position: absolute;
        top: 12px;
    }

    .p-optionsHero {
        min-height: 680px;

        display: flex;
        flex-direction: column;

        padding-top: 90px;
        background: #fff;
    }


    /* スマホでは写真を上側に配置 */
    .p-optionsHero__photo {
        position: relative;
        inset: auto;

        order: 1;

        width: 100%;
        height: 300px;
    }

    .p-optionsHero__photo img {
        object-position: center center;
    }


    /* 白い円形パネル */
    .p-optionsHero__panel {
        position: relative;
        inset: auto;

        order: 2;

        width: 115%;
        min-height: 330px;

        margin-top: -42px;
        margin-left: -15%;

        align-items: flex-start;

        border-radius: 50% 50% 0 0;
    }

    .p-optionsHero__content {
        max-width: none;

        padding:
            78px 24px 52px calc(15% + 24px);
    }

    .p-optionsHero__eyebrow {
        gap: 16px;
    }

    .p-optionsHero__en {
        font-size: 13px;
        letter-spacing: 0.16em;
    }

    .p-optionsHero__line {
        width: 78px;
        height: 3px;
    }

    .p-optionsHero__title {
        margin-top: 18px;
        font-size: 38px;
        line-height: 1.25;
    }

    .p-optionsHero__lead {
        margin-top: 22px;
        font-size: 15px;
        line-height: 1.8;
    }


    /* オプション画像 */
    .p-optionDetail {
        display: block;
        padding: 22px 18px;
    }

    .p-optionDetail__visual {
        width: 100%;
        min-height: 190px;

        margin-bottom: 24px;
        padding: 10px;

        box-sizing: border-box;
    }

    .p-optionDetail__image {
        width: 100%;
        max-width: 230px;
        height: 190px;

        margin: 0 auto;
    }

}

/* ========================================
   OPTIONS HERO - TABLET / MOBILE FIX
======================================== */

@media (max-width: 900px) {

    .p-optionsHero {
        min-height: 0;
        padding-top: 90px;

        display: flex;
        flex-direction: column;

        overflow: hidden;
        background: #fff;
    }


    /* 黄色いタイトルパネル */
    .p-optionsHero__panel {
        position: relative;
        inset: auto;

        order: 1;

        width: 100%;
        min-height: 0;
        margin: 0;

        display: block;

        background:
            linear-gradient(135deg,
                #ffc928 0%,
                #ffe783 52%,
                #fff3bd 100%);

        clip-path: none;
        border-radius: 0;
    }

    .p-optionsHero__content {
        width: 100%;
        max-width: none;
        padding: 34px 24px 38px;
        box-sizing: border-box;
    }


    /* 写真をタイトルの下に配置 */
    .p-optionsHero__photo {
        position: relative;
        inset: auto;

        order: 2;

        width: 100%;
        height: clamp(240px, 48vw, 360px);

        overflow: hidden;
    }

    .p-optionsHero__photo img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center 42%;

        transform: none;
    }

    .p-optionsHero__eyebrow {
        gap: 16px;
    }

    .p-optionsHero__en {
        font-size: 13px;
        letter-spacing: 0.16em;
    }

    .p-optionsHero__line {
        width: 78px;
        height: 3px;
        background: #fff;
    }

    .p-optionsHero__title {
        margin-top: 18px;
        font-size: clamp(32px, 7vw, 44px);
        line-height: 1.25;
    }

    .p-optionsHero__lead {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.8;
    }
}

/* 安心オプション：スマホのヘッダーと上余白を修正 */
@media (max-width: 900px) {
  body:has(.p-options) .l-headerStudio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 0;
    background: #f3f3f3;
    z-index: 1000;
  }

  body.admin-bar:has(.p-options) .l-headerStudio {
    top: 46px;
  }

  .p-options {
    margin-top: 0;
    padding-top: 0;
  }

  .p-optionsHero {
    margin-top: 0;
    padding-top: 0;
    min-height: 0;
  }
}

/* スマホ：黄色をヘッダーの後ろまで伸ばす */
@media (max-width: 900px) {
  body:has(.p-options) {
    padding-top: 0;
  }

  .p-options {
    margin-top: 0;
    padding-top: 0;
  }

  .p-optionsHero {
    margin-top: 0;
    padding-top: 0;
    min-height: 0;
  }

  .p-optionsHero__content {
    padding-top: 122px;
  }
}