/* components.css */

/* =========================
   FV CTA Component
   ========================= */

/* CTA ブロック */
.fv-cta {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 560px;
    text-decoration: none;
    color: var(--color-bg-white);
}

/* 左上の丸い LINE アイコン */
.fv-cta__line-icon {
    position: absolute;
    left: 0;
    top: var(--spacing-xs);
    transform: translate(-25%, -25%);
    width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-pill);
    background-color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-cta-icon);
    z-index: 2;
    transition: all 0.2s ease;
}

/* 吹き出しのしっぽ（右下の三角形） */
.fv-cta__line-icon::after {
    content: "";
    position: absolute;
    bottom: 15px;
    right: 1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 0 12px;
    border-color: transparent transparent transparent var(--color-bg-white);
}

.fv-cta__line-icon-image {
    width: 50%;
    height: 50%;
    object-fit: contain;
}

/* 緑のバナー */
.fv-cta__content {
    flex: 1 1 auto;
    padding: var(--spacing-xs) 44px var(--spacing-xs) 64px;
    border-radius: var(--radius-pill);
    background: var(--gradient-line);
    box-shadow: 0 4px 0 var(--color-line-green-dark);
    text-align: center;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.fv-cta:hover .fv-cta__content,
.fv-cta:focus-visible .fv-cta__content {
    opacity: 0.75;
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--color-line-green-dark);
}

.fv-cta:active .fv-cta__content {
    transform: translateY(3px);
    box-shadow: 0 0 0 var(--color-line-green-dark);
}

.fv-cta:hover .fv-cta__line-icon,
.fv-cta:focus-visible .fv-cta__line-icon {
    opacity: 0.75;
    transform: translate(-25%, calc(-25% + 2px));
}

.fv-cta:active .fv-cta__line-icon {
    transform: translate(-25%, calc(-25% + 3px));
}

.fv-cta__label {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-line-yellow);
    margin-bottom: -16px;
    text-align: center;
    position: relative;
    left: -156px;
}

.fv-cta__label::before,
.fv-cta__label::after {
    font-size: 11px;
    color: var(--color-line-yellow);
    font-weight: 400;
}

.fv-cta__label::before {
    content: "＼ ";
}

.fv-cta__label::after {
    content: " ／";
}

.fv-cta__main {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.fv-cta__main-em {
    font-size: 44px;
    color: var(--color-line-yellow);
    font-weight: 700;
}

/* 点線の区切り */
.fv-cta__divider {
    width: 100%;
    height: 0;
    border-top: 4px dotted rgba(255, 255, 255, 0.9);
    margin: 4px 0 6px;
}

.fv-cta__sub {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

.fv-cta__icon-and {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    color: var(--color-line-green);
    font-size: 14px;
    font-weight: 700;
    vertical-align: 1px;
}

/* 右端の矢印 */
.fv-cta__arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-pill);
    background-color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-cta-arrow);
    transition: all 0.2s ease;
}

.fv-cta__arrow-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.fv-cta:hover .fv-cta__arrow,
.fv-cta:focus-visible .fv-cta__arrow {
    opacity: 0.75;
    transform: translateY(calc(-50% + 2px));
}

.fv-cta:active .fv-cta__arrow {
    transform: translateY(calc(-50% + 3px));
}

/* CTAセクション用の大きいバージョン */
.fv-cta.fv-cta--large {
    width: 46%;
}

.fv-cta--large .fv-cta__divider {
    width: 100%;
}

/* =========================
   Anxiety Card Component
   ========================= */

/* カード本体 */
.section-anxiety-card {
    position: relative;
    flex: 1 1 0;
    max-width: 398px;
    border-radius: var(--radius-card);
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

/* お悩みバッジ（上に飛び出しているピル） */
.section-anxiety-card__badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px var(--spacing-lg);
    border-radius: var(--radius-pill);
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 18px;
    font-weight: 600;
}

.section-anxiety-card__badge-num {
    color: var(--color-accent-yellow);
    font-weight: 700;
    font-family: var(--font-english);
    line-height: 1;
}

.section-anxiety-card__badge-label {
    font-size: clamp(14px, calc(14px + 2px * ((100vw - 400px) / 367)), 16px);
    line-height: 1;
}

/* カード上部（タイトル＋背景イラスト） */
.section-anxiety-card__body {
    padding: 40px 24px 24px;
    min-height: 304px;
    background-repeat: no-repeat;
    background-position: center bottom;
    position: relative;
    border-radius: 24px 24px 0 0;
}

/* 各カードの背景画像 */
.section-anxiety-card__body--01 {
    background-image: url('../img/problems01.svg');
}

.section-anxiety-card__body--02 {
    background-image: url('../img/problems02.svg');
    background-size: 80%;
}

.section-anxiety-card__body--03 {
    background-image: url('../img/problems03.svg');
    background-size: 66%;
    background-position: center 84px;
}

.section-anxiety-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* カード下部（青背景の説明文） */
.section-anxiety-card__footer {
    padding: 18px var(--spacing-md) 22px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    border-radius: 0 0 var(--spacing-md) var(--spacing-md);
    flex-grow: 1;
}

/* =========================
   Support Card Component
   ========================= */

/* カード本体 */
.support-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 0;
    max-width: 32%;
    border-radius: var(--radius-card);
    background-color: var(--color-bg-white);
    padding: 20px var(--spacing-md) 32px;
    text-align: left;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 上部バッジ */
.support-card__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 24px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-english);
    border-radius: var(--radius-card) var(--radius-card) 0px var(--radius-card);
}


/* アイコン */
.support-card__icon {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 64px;
    aspect-ratio: 1 / 1;
    background-color: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.support-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* タイトル・本文 */
.support-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.support-card__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-main);
    font-weight: 500;
}

/* 強調ハイライト */
.support-card__highlight {
    background-color: var(--color-highlight-pale);
    padding: 2px 4px;
    border-radius: var(--radius-tiny);
    font-weight: 700;
}

/* =========================
   Guarantee Banner Component
   ========================= */

.guarantee-banner {
    position: relative;
    margin-top: -60px;
    margin-bottom: 0;
    z-index: 2;
}

.guarantee-banner__content {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 1028 / 300;

    background-image: url("../img/guarantee_img_pc.png");
    background-size: 100% 100%;
    background-position: center;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 32px;
}

.guarantee-banner__header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-banner__title-wrapper {
    text-align: center;
    padding-bottom: 24px;
}

.guarantee-banner__title-top {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(to bottom, #E9DA7D 0%, #E8C25F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guarantee-banner__title-main {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(to bottom, #E9DA7D 0%, #E8C25F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guarantee-banner__text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 1px;
    color: var(--color-bg-white);
    text-align: center;
    margin: 0;
}

/* =========================
   Pricing Card Component
   ========================= */

/* 料金カード */
.pricing-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1028 / 382;
    background-image: url('../img/pricing_img_pc.png');
    background-size: cover;
    background-position: center;
    padding-top: 40px;
}

/* 上部リボン */
.pricing-card__ribbon-top {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card__ribbon-text {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-bg-white);
}

/* コンテンツエリア */
.pricing-card__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 80px 48px 32px;
    z-index: 0;
}

/* 左側リボン */
.pricing-card__ribbon-left {
    position: absolute;
    top: 44%;
    left: clamp(3.438rem, 1.875rem + 2.08vw, 3.75rem);
    width: 80px;
    height: 120px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pricing-card__ribbon-left-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-bg-white);
    position: relative;
    z-index: 2;
}

/* 価格ボックス */
.pricing-card__price-box {
    position: absolute;
    left: 180px;
    top: 56%;
    transform: translateY(-50%);
}

.pricing-card__price {
    margin: 0;
    font-weight: 700;
    color: #11355A;
    line-height: 1.2;
    display: inline-block;
    position: relative;
}

.pricing-card__price::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -4px;
    right: -4px;
    height: 20px;
    background-color: #F6E7B0;
    transform: skewX(-10deg);
    z-index: -1;
}

.pricing-card__price-amount {
    font-size: 64px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.pricing-card__price-unit {
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.pricing-card__price-tax {
    font-size: 24px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 説明文エリア */
.pricing-card__description {
    position: static;
    margin-left: auto;
    max-width: 480px;
}

.pricing-card__text {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0;
    padding-right: 56px;
}

.pricing-card__text--emphasis {
    color: #B8935A;
    font-weight: 700;
    font-size: 24px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* =========================
   Gold Label Component
   ========================= */

/* 上部バッジ「受給金額」 */
.gold-label {
    position: relative;
    width: 110px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: var(--radius-small) 80px 80px 0;
    margin-left: -42px;
    z-index: 1;
    flex-shrink: 0;
}

.gold-label__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-white);
    font-size: 16px;
    font-weight: 700;
}

.gold-label__fold {
    position: absolute;
    left: 12px;
    top: 100%;
    width: 12px;
    height: 12px;
    background: var(--color-gold-dark);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform: scaleX(-1);
    transform-origin: 0 0;
}

/* =========================
   Voices Card Component
   ========================= */

/* カード本体 */
.voices-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-card);
    border: 2px solid var(--color-primary);
    overflow: visible;
    max-width: 484px;
}

/* 上段メイン部分 */
.voices-card__main {
    padding: 16px 28px 24px;
    position: relative;
}

.voices-card__main::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 18px;
    height: 10px;
    background: var(--color-bg-white);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* 金額行＋点線 */
.voices-card__amount-row {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 8px;
    align-items: center;
}

.voices-card__amount-row .gold-label {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: start;
}

.voices-card__amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gold-text);
    line-height: 1;
    grid-column: 2 / 3;
    justify-self: center;
}

.voices-card__amount-number {
    font-size: 56px;
    margin-right: 4px;
    color: var(--color-gold-bright);
    font-family: var(--font-english);
}

.voices-card__amount-unit {
    font-size: 20px;
}

.voices-card__amount-divider {
    grid-column: 1 / -1;
    margin-top: 0;
    border-top: 2px dotted var(--color-divider-dots);
}

/* 本文 */
.voices-card__body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
    text-align: left;
    font-weight: 500;
}

/* 青＋下線の強調リンク風テキスト */
.voices-card__link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
}

/* 下段：青い帯エリア */
.voices-card__bottom {
    margin-top: auto;
    padding: 10px 60px 10px 40px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 0 0 var(--radius-card-sm) var(--radius-card-sm);
}

/* プロフィール側 */
.voices-card__profile {
    display: flex;
    align-items: center;
}

.voices-card__avatar {
    width: 48px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: var(--color-avatar-bg);
    overflow: visible;
    position: relative;
    left: -10px;
}

.voices-card__avatar img {
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.15);
    z-index: 1;
}

.voices-card__profile-text {
    font-size: 14px;
    color: var(--color-voice-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ポイント側（2行） */
.voices-card__points {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
    text-align: left;
}

.voices-card__point {
    display: flex;
    align-items: center;
    gap: 6px;
}

.voices-card__point-bullet {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url('../img/checkmark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.voices-card__point-text {
    line-height: 1.6;
}

/* =========================
   Flow Step Card Component
   ========================= */

/* 各ステップカード */
.flow-step__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-card);
    background-color: var(--color-bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* STEPバッジ（カード左上に"半分食い込む"） */
.flow-step__badge {
    position: absolute;
    left: -16px;
    top: -16px;
    width: 112px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-white);
    font-weight: 700;
}

.flow-step__badge::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 8px 0 8px;
    border-color: var(--color-primary) transparent transparent transparent;
    transform: rotate(66deg);
}

.flow-step__badge-label {
    font-size: 16px;
    letter-spacing: 0.1em;
    line-height: 1;
    color: #FFFFFF;
    font-weight: 400;
    margin-bottom: 4px;
}

.flow-step__badge-num {
    font-size: 40px;
    color: #FFD94A;
    line-height: 0.8;
    font-family: var(--font-english);
}

/* カード中身（テキスト＋画像） */
.flow-step__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 56px;
    width: 100%;
    padding-left: 88px;
}

.flow-step__texts {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* タイトル＋下線 */
.flow-step__heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-step__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

.flow-step__underline {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    margin-left: auto;
}

/* 説明文 */
.flow-step__description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-main);
    padding-right: 94px;
    padding-top: 8px;
}

/* STEP05のみ */
.flow-step:nth-child(5) .flow-step__description {
    padding-right: 56px;
}

/* 右側画像 */
.flow-step__visual {
    flex: 0 0 300px;
    max-width: 300px;
}

.flow-step__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================
   FAQ Item Component
   ========================= */

/* 各FAQアイテム */
.faq-item {
    width: 100%;
}

/* 各アイテムの外枠 */
.faq-item__box {
    width: 100%;
    border-radius: var(--radius-card);
    background-color: var(--color-bg-white);
    text-align: left;
    overflow: hidden;
}

/* 行共通 */
.faq-item__row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px var(--spacing-lg);
}

/* 質問行 */
.faq-item__row--question {
    padding-right: var(--spacing-md);
}

/* 回答行 */
.faq-item__row--answer {
    display: flex;
    border-top: 0px solid transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease-in, opacity 0.4s ease-in, transform 0.4s ease-in, padding 0.4s ease-in, border-top-color 0.4s ease-in, border-top-width 0.4s ease-in;
}

/* 開いている状態の回答 */
.faq-item--active .faq-item__row--answer {
    border-top: 1px solid var(--color-border-faq);
    padding: 18px var(--spacing-lg);
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, transform 0.4s ease-out, padding 0.4s ease-out, border-top-color 0.4s ease-out, border-top-width 0.4s ease-out;
}

/* Q/A バッジ共通 */
.faq-item__badge {
    flex: 0 0 40px;
    width: 40px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #3989BC;
}

/* Q バッジ */
.faq-item__badge--q {
    background-color: var(--color-primary);
    font-size: 24px;
}

.faq-item__badge-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* A バッジ */
.faq-item__badge--a {
    background-color: #F3F4F6;
}

/* 質問テキスト */
.faq-item__question {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #3489C2;
}

/* 回答テキスト */
.faq-item__answer {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-main);
}

/* 右端のトグルボタン（SVG矢印） */
.faq-item__toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    aspect-ratio: 1 / 1;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.faq-item__icon {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform 0.4s ease-out;
}

/* 開いている状態の矢印（180度回転） */
.faq-item--active .faq-item__icon {
    transform: rotate(180deg);
}
