:root {
    --pink: #ff2f92;
    --pink-2: #ff5aac;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    background: #12070d;
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

.landing {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 47, 146, .24), transparent 35%),
        #12070d;
}

/* ========================================
   HERO IMAGE SLIDER
======================================== */

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    background: #12070d;
}

.hero-slide {
    position: absolute;
    inset: -2%;
    width: 104%;
    height: 104%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    will-change: clip-path, opacity, transform, filter;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* なめらかなフェード切り替え */
.hero-slide {
    transition:
        opacity 1.8s ease-in-out,
        transform 6s ease-out;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1.015);
}

.hero-slide.is-liquid-in {
    z-index: 3;
    animation: none;
}

.shade {
    display: none;
}

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding:
        max(22px, env(safe-area-inset-top))
        max(22px, env(safe-area-inset-right))
        18px
        max(22px, env(safe-area-inset-left));
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: clamp(26px, 2.1vw, 34px);
    line-height: 1;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .32);
}

.hero {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(92px, calc(env(safe-area-inset-top) + 76px))
        max(24px, env(safe-area-inset-right))
        max(44px, calc(env(safe-area-inset-bottom) + 24px))
        max(24px, env(safe-area-inset-left));
}

.hero-copy {
    width: min(980px, 100%);
    text-align: center;
    text-shadow: 0 3px 30px rgba(0, 0, 0, .50);
}



.hero-copy p {
    margin: 22px auto 0;
    max-width: 760px;
    font-size: clamp(16px, 1.5vw, 22px);
    line-height: 1.7;
    font-weight: 700;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .95);
    text-wrap: balance;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .66);
    background: rgba(20, 5, 13, .28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, .92);
    background: rgba(20, 5, 13, .42);
}

.btn-primary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(135deg, var(--pink), var(--pink-2));
    box-shadow: 0 12px 30px rgba(255, 47, 146, .34);
}

.btn-primary:hover {
    box-shadow: 0 15px 36px rgba(255, 47, 146, .43);
}

@media (max-width: 640px) {
    .topbar {
        padding:
            max(16px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            14px
            max(16px, env(safe-area-inset-left));
    }

    .logo {
        min-height: 40px;
        font-size: 24px;
    }

    .hero {
        padding:
            max(76px, calc(env(safe-area-inset-top) + 62px))
            max(18px, env(safe-area-inset-right))
            max(30px, calc(env(safe-area-inset-bottom) + 18px))
            max(18px, env(safe-area-inset-left));
    }



    .hero-copy p {
        margin-top: 16px;
        max-width: 31em;
        font-size: 16px;
        line-height: 1.65;
    }

    .actions {
        gap: 9px;
        margin-top: 24px;
    }

    .btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: 176px;
        min-height: 46px;
        padding: 0 30px;
        font-size: 13px;
    }

    .hero-slide {
        inset: 0;
        width: 100%;
        height: 100%;
        background-position: center center;
    }
}

@media (max-width: 380px) {


    .actions {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }

    .btn {
        transition: none;
    }
}

.sparkles {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}
.sparkles {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.sparkles::before,
.sparkles::after {
    content: "";
    position: absolute;
    inset: -15%;
}

/* 小さなキラキラを大量に配置 */
.sparkles::before {
    background:
        radial-gradient(circle at 4% 12%, #fff 0 1.5px, transparent 3px),
        radial-gradient(circle at 8% 48%, #ffd8ec 0 1px, transparent 3px),
        radial-gradient(circle at 12% 82%, #fff 0 2px, transparent 4px),
        radial-gradient(circle at 17% 24%, #fff 0 1px, transparent 3px),
        radial-gradient(circle at 21% 65%, #ffc4e2 0 1.5px, transparent 4px),
        radial-gradient(circle at 26% 38%, #fff 0 2px, transparent 5px),
        radial-gradient(circle at 31% 90%, #fff 0 1px, transparent 3px),
        radial-gradient(circle at 35% 15%, #ffd4e9 0 1.5px, transparent 4px),
        radial-gradient(circle at 40% 55%, #fff 0 2px, transparent 5px),
        radial-gradient(circle at 45% 78%, #fff 0 1px, transparent 3px),
        radial-gradient(circle at 50% 28%, #ffc7e3 0 1.5px, transparent 4px),
        radial-gradient(circle at 55% 92%, #fff 0 2px, transparent 5px),
        radial-gradient(circle at 60% 48%, #fff 0 1px, transparent 3px),
        radial-gradient(circle at 65% 16%, #ffd3e9 0 2px, transparent 5px),
        radial-gradient(circle at 70% 72%, #fff 0 1.5px, transparent 4px),
        radial-gradient(circle at 75% 34%, #fff 0 2px, transparent 5px),
        radial-gradient(circle at 80% 88%, #ffc9e4 0 1px, transparent 3px),
        radial-gradient(circle at 85% 54%, #fff 0 1.5px, transparent 4px),
        radial-gradient(circle at 90% 18%, #ffd5e9 0 2px, transparent 5px),
        radial-gradient(circle at 94% 68%, #fff 0 1px, transparent 3px),
        radial-gradient(circle at 98% 42%, #fff 0 1.5px, transparent 4px);

    filter:
        drop-shadow(0 0 5px rgba(255,255,255,1))
        drop-shadow(0 0 10px rgba(255,200,230,.95))
        drop-shadow(0 0 18px rgba(255,80,170,.8));

    animation:
        sparkleMove 12s linear infinite,
        sparkleBlink 1.1s ease-in-out infinite;
}

/* 十字型の大きなフラッシュ */
.sparkles::after {
    background:
        linear-gradient(
            90deg,
            transparent 46%,
            rgba(255,255,255,.1) 48%,
            #fff 50%,
            rgba(255,255,255,.1) 52%,
            transparent 54%
        ),
        linear-gradient(
            0deg,
            transparent 46%,
            rgba(255,255,255,.1) 48%,
            #fff 50%,
            rgba(255,255,255,.1) 52%,
            transparent 54%
        );

    background-size:
        140px 140px,
        140px 140px;

    mask-image:
        radial-gradient(circle at 8% 18%, #000 0 8px, transparent 13px),
        radial-gradient(circle at 18% 72%, #000 0 6px, transparent 11px),
        radial-gradient(circle at 30% 35%, #000 0 9px, transparent 14px),
        radial-gradient(circle at 42% 82%, #000 0 7px, transparent 12px),
        radial-gradient(circle at 55% 22%, #000 0 8px, transparent 13px),
        radial-gradient(circle at 67% 58%, #000 0 10px, transparent 15px),
        radial-gradient(circle at 78% 84%, #000 0 7px, transparent 12px),
        radial-gradient(circle at 90% 32%, #000 0 9px, transparent 14px);

    -webkit-mask-image:
        radial-gradient(circle at 8% 18%, #000 0 8px, transparent 13px),
        radial-gradient(circle at 18% 72%, #000 0 6px, transparent 11px),
        radial-gradient(circle at 30% 35%, #000 0 9px, transparent 14px),
        radial-gradient(circle at 42% 82%, #000 0 7px, transparent 12px),
        radial-gradient(circle at 55% 22%, #000 0 8px, transparent 13px),
        radial-gradient(circle at 67% 58%, #000 0 10px, transparent 15px),
        radial-gradient(circle at 78% 84%, #000 0 7px, transparent 12px),
        radial-gradient(circle at 90% 32%, #000 0 9px, transparent 14px);

    opacity: 0;

    filter:
        drop-shadow(0 0 5px #fff)
        drop-shadow(0 0 12px #fff)
        drop-shadow(0 0 22px rgba(255,170,215,1))
        drop-shadow(0 0 35px rgba(255,50,150,.9));

    animation: sparkleFlash 1.15s ease-in-out infinite;
}


/* HTMLで入れている大きな星 */
.sparkles span {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;

    box-shadow:
        0 0 6px #fff,
        0 0 12px #fff,
        0 0 22px rgba(255,210,235,1),
        0 0 35px rgba(255,100,180,.95),
        0 0 55px rgba(255,40,140,.65);

    animation: starBlink 1.3s ease-in-out infinite;
}

/* 十字の光を追加 */
.sparkles span::before,
.sparkles span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgba(255,255,255,.95);
    transform: translate(-50%, -50%);
    border-radius: 100%;
}

.sparkles span::before {
    width: 32px;
    height: 1.5px;
    box-shadow: 0 0 7px #fff;
}

.sparkles span::after {
    width: 1.5px;
    height: 32px;
    box-shadow: 0 0 7px #fff;
}


.sparkles span:nth-child(1) {
    top: 16%;
    left: 20%;
    animation-delay: 0s;
}

.sparkles span:nth-child(2) {
    top: 64%;
    left: 70%;
    animation-delay: .3s;
}

.sparkles span:nth-child(3) {
    top: 38%;
    left: 88%;
    animation-delay: .65s;
}


/* ゆっくり漂わせる */
@keyframes sparkleMove {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(15px, -25px, 0) rotate(1deg);
    }

    100% {
        transform: translate3d(-10px, -50px, 0) rotate(0deg);
    }
}


/* 小さい粒がチカチカ */
@keyframes sparkleBlink {
    0%,
    100% {
        opacity: .3;
    }

    25% {
        opacity: .8;
    }

    50% {
        opacity: 1;
    }

    75% {
        opacity: .55;
    }
}


/* 大きな光が一瞬強く光る */
@keyframes sparkleFlash {
    0%,
    100% {
        opacity: 0;
        transform: scale(.65);
    }

    20% {
        opacity: .15;
    }

    38% {
        opacity: .95;
    }

    48% {
        opacity: 1;
        transform: scale(1.35);
    }

    58% {
        opacity: .45;
    }

    75% {
        opacity: 0;
        transform: scale(1.6);
    }
}


/* 大きな星 */
@keyframes starBlink {
    0%,
    100% {
        opacity: .08;
        transform: scale(.3) rotate(0deg);
    }

    35% {
        opacity: .4;
    }

    48% {
        opacity: 1;
        transform: scale(2.1) rotate(45deg);
    }

    58% {
        opacity: .8;
        transform: scale(1.5) rotate(70deg);
    }

    75% {
        opacity: .15;
        transform: scale(.6) rotate(90deg);
    }
}

.topbar,
.hero {
    position: relative;
    z-index: 10;
}



.hero {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.hero-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.hero-title {
    margin: 0;
}

.hero-title img {
    display: block;
    width: 90%;
    max-width: 780px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}


@media screen and (min-width: 768px) {
  /* 768px以上の画面（PCなど） */
  .pc-only {
    display: block;
  }
  .sp-only {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  /* 767px以下の画面（スマートフォンなど） */
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
}




/* ========================================
   HERO STATIC IMAGE
======================================== */

.hero-static {
    position: absolute;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    background: #12070d;
}

.hero-static picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-static img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}


@media (max-width: 767px) {
    .hero-static img {
        object-position: center center;
    }
}

/* ========================================
   NEW AIPHOTO KEY VISUAL
======================================== */

body {
    background: #f3ced6;
}

.landing {
    background: #f3ced6;
}


/* 新しいデザインを背景レイヤーとして配置 */
.new-kv {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #f3ced6;
}


/* 1980 × 1080デザイン基準 */
.new-kv-stage {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}


/* メイン写真 */
.new-kv-photo {
    position: absolute;
    left: 6.52%;
    top: 10%;
    width: 87.02%;
    height: 80%;
    object-fit: cover;
    display: block;
}


/* デザイン用AIPHOTOロゴ */
.new-kv-design-logo {
    position: absolute;
    left: 6.3%;
    top: 3%;
    width: 53%;
    height: auto;
    z-index: 2;
}


/* 右側の縦コピー */
.new-kv-copy {
    position: absolute;
    right: 8.5%;
    top: 16%;
    width: 8%;
    height: 55%;
    object-fit: contain;
    z-index: 2;
}


/* 左下キャンペーン */
.new-kv-campaign {
    position: absolute;
    left: 4.1%;
    bottom: 3.5%;
    width: 14.5%;
    height: auto;
    z-index: 3;
}


/* 現在のコンテンツは前面 */
.topbar {
    z-index: 10;
}

.hero {
    z-index: 10;
}

.sparkles {
    z-index: 5;
}


/* ↓これは絶対に入れない */
/*
.topbar,
.hero {
    display: none !important;
}
*/

@media screen and (min-width: 768px) {

    .actions {
        position: absolute;
        top: 28px;

        /* メイン画像の右端と揃える */
        right: 6.46%;

        width: auto;
        margin: 0;

        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;

        z-index: 30;
    }

}
@media screen and (max-width: 767px) {

    html,
    body,
    .landing {
        background: #f3ced6;
    }

    .landing {
        width: 100%;
        height: 100svh;
        min-height: 100svh;
        overflow: hidden;
    }


    /* =========================
       メインビジュアル
    ========================= */

    .new-kv {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

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

        background: #f3ced6;
        overflow: hidden;
    }


    /* 少し上に配置 */
    .new-kv-stage {
        position: relative;

        width: 82vw;
        height: auto;
        aspect-ratio: 1080 / 1980;

        flex: none;

        /* 上のピンク余白 */
        margin-top: 5svh;
    }


    /* 女の子画像 */
    .new-kv-photo-wrap {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 97%;

        display: block;
        overflow: hidden;
    }

    .new-kv-photo {
        position: static;

        width: 100%;
        height: 100%;

        display: block;

        object-fit: cover;
        object-position: center;
    }


    /* =========================
       AIPHOTOロゴ
    ========================= */

    .new-kv-design-logo {
        position: absolute;

        top: -5.5%;
        left: 2%;

        width: 88%;
        height: auto;

        z-index: 5;
    }


    /* =========================
       右側コピー
    ========================= */

    .new-kv-copy {
        position: absolute;

        top: 15%;
        right: 3%;

        width: 14%;
        height: auto;

        object-fit: contain;

        z-index: 4;

          filter:
            drop-shadow(0 2px 6px rgba(0, 0, 0, .35))
            drop-shadow(0 0 9px rgba(0, 0, 0, .18));


    }


    /* =========================
       キャンペーン
    ========================= */

    .new-kv-campaign {
        position: absolute;

        left: -6%;
        bottom: -2%;

        width: 31%;
        height: auto;

        z-index: 6;
    }


    /* =========================
       既存の中央コンテンツ非表示
    ========================= */

    .topbar,
    .hero-title,
    .hero-copy > p {
        display: none;
    }


    /* hero自体はボタン配置用に残す */
    .hero {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        padding: 0;

        display: block;

        z-index: 20;

        pointer-events: none;
    }

    .hero-copy {
        width: 100%;
        height: 100%;

        display: block;

        pointer-events: none;
    }


    /* =========================
       下部ボタン
    ========================= */

    .actions {
        position: absolute;

        /* 画像の左右端とほぼ合わせる */
        left: 9vw;
        right: 9vw;

        bottom: max(
            22px,
            calc(env(safe-area-inset-bottom) + 12px)
        );

        width: auto;

        margin: 0;

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

        gap: 10px;

        pointer-events: auto;

        z-index: 30;
    }


    .actions .btn {
        flex: 1 1 0;

        width: 50%;
        max-width: none;
        min-width: 0;

        min-height: 48px;

        padding: 0 12px;

        font-size: 14px;
        font-weight: 800;

        border-radius: 999px;
    }


    /* 左ボタン */
    .actions .btn-ghost {
        background: rgba(135, 101, 108, .48);
        border: 1px solid rgba(255, 255, 255, .75);
        color: #fff;
    }


    /* 右ボタン */
    .actions .btn-primary {
        background: #ff2f92;
        color: #fff;
    }
}