/* ========================================
   JOLLYGOOD+ Function Page Styles
   /about/function/ — サービスの機能・特徴
   Uses design tokens from /common.css
======================================== */

/* ============================================
   0. Section — 共通セクション余白
============================================ */
.section {
    padding: 80px 0;
}

.section--gray {
    background: var(--jg-bg-gray, #F5F5F7);
}


/* ============================================
   1. Hero — FV（機能・特徴）
============================================ */
.fun-hero {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    padding: 64px 24px 80px;
    padding-top: calc(var(--nav-height) + 64px);
}

.fun-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.fun-hero__bg picture,
.fun-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fun-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg,
            rgba(13, 20, 32, 0.55) 0%,
            rgba(13, 20, 32, 0.7) 100%);
}

.fun-hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.fun-hero__label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-small, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
}

.fun-hero__title {
    font-size: clamp(2.1rem, 4.5vw, var(--fs-h1, 3.6rem));
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.fun-hero__title em {
    font-style: normal;
    display: block;
}


/* ============================================
   2. 基本機能（Point 1/2/3）
============================================ */
.fun-basic__heading {
    font-size: var(--fs-h2, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--jg-text);
}

.fun-basic__list {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.fun-basic__item {
    display: flex;
    align-items: center;
    gap: 48px;
    background: var(--jg-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border-dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fun-basic__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.fun-basic__item:nth-child(even) {
    flex-direction: row-reverse;
}

.fun-basic__img {
    flex: 0 0 48%;
    overflow: hidden;
}

.fun-basic__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.fun-basic__body {
    flex: 1;
    padding: 40px 40px 40px 0;
}

.fun-basic__item:nth-child(even) .fun-basic__body {
    padding: 40px 0 40px 40px;
}

.fun-basic__point {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-small, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.fun-basic__point--blue {
    background: rgba(0, 162, 250, 0.1);
    color: var(--jg-primary);
}

.fun-basic__point--purple {
    background: rgba(95, 43, 154, 0.1);
    color: #5F2B9A;
}

.fun-basic__point--pink {
    background: rgba(233, 58, 131, 0.1);
    color: var(--jg-accent);
}

.fun-basic__subttl {
    font-size: var(--fs-h3, 2.0rem);
    font-weight: 800;
    line-height: 1.6;
    color: var(--jg-text);
    margin-bottom: 14px;
}

.fun-basic__subttl em {
    font-style: normal;
}

.fun-basic__txt {
    font-size: var(--fs-body, 1.6rem);
    line-height: 1.9;
    color: var(--jg-text-sub);
}


/* ============================================
   3. コントローラーレス
============================================ */
.fun-ctrl__heading {
    font-size: var(--fs-h2, 2.4rem);
    font-weight: 800;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 32px;
    color: var(--jg-text);
}

.fun-ctrl__heading span {
    display: block;
    font-size: var(--fs-small, 1.3rem);
    font-weight: 600;
    color: var(--jg-primary);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.fun-ctrl__wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.fun-ctrl__body {
    flex: 1;
}

.fun-ctrl__subttl {
    font-size: var(--fs-h3, 2.0rem);
    font-weight: 800;
    line-height: 1.6;
    color: var(--jg-text);
    margin-bottom: 16px;
}

.fun-ctrl__txt {
    font-size: var(--fs-body, 1.6rem);
    line-height: 1.9;
    color: var(--jg-text-sub);
}

.fun-ctrl__img {
    flex: 0 0 45%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.fun-ctrl__img img {
    width: 100%;
    display: block;
}


/* ============================================
   4. 便利な付加機能（4カードグリッド）
============================================ */
.fun-extra__heading {
    font-size: var(--fs-h2, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--jg-text);
}

.fun-extra__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fun-extra__card {
    background: var(--jg-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border-dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fun-extra__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.fun-extra__card-title {
    font-size: var(--fs-h4, 1.4rem);
    font-weight: 700;
    padding: 14px 12px 0;
    color: var(--jg-text);
}

.fun-extra__card-title span {
    display: block;
}

.fun-extra__card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.fun-extra__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fun-extra__card-txt {
    font-size: var(--fs-small, 1.3rem);
    line-height: 1.7;
    color: var(--jg-text-sub);
    padding: 10px 14px 18px;
}

.fun-extra__card-txt span {
    font-weight: 600;
    color: var(--jg-primary);
}


/* ============================================
   5. CTA — こんなご質問はありませんか？
============================================ */
.fun-cta {
    background: linear-gradient(135deg, var(--jg-bg-gray), #eef2f7);
    border-radius: 24px;
    padding: 56px 48px;
    display: flex;
    gap: 48px;
    align-items: center;
}

.fun-cta__left {
    flex: 0 0 auto;
}

.fun-cta__title {
    font-size: var(--fs-h2, 2.4rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--jg-text);
    margin-bottom: 18px;
}

.fun-cta__questions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fun-cta__questions li {
    position: relative;
    padding-left: 20px;
    font-size: var(--fs-body, 1.6rem);
    font-weight: 500;
    color: var(--jg-text);
}

.fun-cta__questions li::before {
    content: '?';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--jg-accent);
}

.fun-cta__right {
    flex: 1;
}

.fun-cta__txt {
    font-size: var(--fs-body, 1.6rem);
    line-height: 1.9;
    color: var(--jg-text-sub);
    margin-bottom: 24px;
}

.fun-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--about-accent, #E8833A), var(--about-accent-light, #F5A623));
    color: #fff;
    font-size: var(--fs-btn, 1.5rem);
    font-weight: 700;
    border-radius: 60px;
    box-shadow: 0 4px 16px rgba(232, 131, 58, 0.25);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    text-decoration: none;
}

.fun-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 131, 58, 0.35);
}


/* ============================================
   Responsive: Tablet
============================================ */
@media (max-width: 1024px) {
    .fun-extra__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Responsive: SP (768px)
============================================ */
@media (max-width: 768px) {
    .fun-hero {
        min-height: 40vh;
        padding: 48px 16px 56px;
        padding-top: calc(var(--nav-height-sp) + 48px);
    }

    .fun-hero__title {
        font-size: var(--fs-h2, 2.4rem);
    }

    .fun-basic__heading,
    .fun-ctrl__heading,
    .fun-extra__heading {
        font-size: var(--fs-h3, 2.0rem);
    }

    .fun-basic__item,
    .fun-basic__item:nth-child(even) {
        flex-direction: column;
    }

    .fun-basic__img {
        flex: none;
        width: 100%;
    }

    .fun-basic__body,
    .fun-basic__item:nth-child(even) .fun-basic__body {
        padding: 28px 24px;
    }

    .fun-basic__subttl {
        font-size: var(--fs-h2, 2.4rem);
    }

    .fun-ctrl__wrap {
        flex-direction: column;
    }

    .fun-ctrl__img {
        flex: none;
        width: 100%;
    }

    .fun-ctrl__subttl {
        font-size: var(--fs-h2, 2.4rem);
    }

    .fun-extra__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .fun-cta {
        flex-direction: column;
        padding: 40px 24px;
        gap: 32px;
    }

    .fun-cta__title {
        font-size: var(--fs-h3, 2.0rem);
    }

    .section {
        padding: var(--section-pad-sp, 72px) 20px;
    }
}
