/* ---------------------------------------------------------------------- */
/* CSS Design Awards 受賞レベルデザイン - yee9.com LP */
/* ---------------------------------------------------------------------- */

/* 基本設定 */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f0f0f5; 
    overflow-x: hidden;
    position: relative;
    font-size: 0.95rem;
    /* Tailwind CSSのグローバルスタイルをオーバーライドする場合はここに記述 */
}

/* 1. Grainy Gradient (ノイズの入ったグラデーション) - ライトモード */
/* bodyの代わりに、LPを囲むメインコンテナに適用することを想定 */
.yee9-lp-container {
    position: relative;
    min-height: 100vh;
    background-color: #f0f0f5; 
    z-index: 1; /* コンテンツが手前に来るように設定 */
}

.yee9-lp-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* 明るいグラデーション */
    background: radial-gradient(circle at top left, #e8e8ff 0%, #f0f0f5 60%); 
    /* ノイズ効果 */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj4KICAgIDZGNzcwNkMvPgo8L3N2Zz4=');
    background-size: 50% 50%;
    opacity: 0.15;
}

/* 2. Glassmorphism (グラスモーフィズム) */
.glass-card {
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem; /* rounded-xl */
    /* Tailwindでbg-white/70を設定することを推奨 */
    border: 1px solid rgba(0, 0, 0, 0.05); /* 非常に薄い境界線 */
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.05); /* 浮遊感のあるシャドウ */
    transition: all 0.3s ease-in-out;
}

/* 3. Fade-in Up アニメーション */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s cubic-bezier(0.19, 1, 0.22, 1), transform 1.0s cubic-bezier(0.19, 1, 0.22, 1); /* スムーズなイージング */
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Micro-interactions (ボタン/リンクのホバー効果) */
.micro-interaction {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.micro-interaction:hover {
    transform: translateY(-4px); /* 大きく浮き上がらせる */
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.2);
}

/* 成人向けボタンの特別装飾 */
.adult-cta {
    background: linear-gradient(45deg, #ff3366, #ff8c00);
    box-shadow: 0 5px 20px rgba(255, 51, 102, 0.5);
}
.adult-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.8);
}



/* Gallery preview */
.gallery-section {
    padding-top: 2rem;
}

.gallery-panel__header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.gallery-row {
    height: 95px;
    padding-bottom: 0.5rem;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.gallery-row.auto-scroll {
    display: flex;
}

.gallery-track {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    width: max-content;
    animation: gallery-scroll 35s linear infinite;
    animation-duration: 35s;
    will-change: transform;
}

@keyframes gallery-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (min-width: 768px) {
    .gallery-row {
        height: 110px;
    }
}

.gallery-thumb {
    height: 100%;
    width: auto;
    border-radius: 0.95rem;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.gallery-tip {
    text-align: center;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox img,
.image-lightbox video {
    max-width: min(90vw, 700px);
    max-height: 90vh;
    border-radius: 1rem;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.5);
    background: #020617;
}

.image-lightbox .is-hidden {
    display: none;
}

.image-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 999px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.image-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.3);
}

.image-lightbox__nav--prev {
    left: max(1rem, calc((100vw - 820px) / 2));
}

.image-lightbox__nav--next {
    right: max(1rem, calc((100vw - 820px) / 2));
}

.image-lightbox__nav[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .image-lightbox {
        padding: 1rem;
    }

    .image-lightbox img,
    .image-lightbox video {
        max-width: 100%;
        max-height: 82vh;
    }

    .image-lightbox__nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
    }

    .image-lightbox__nav--prev {
        left: 0.5rem;
    }

    .image-lightbox__nav--next {
        right: 0.5rem;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.hero-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hero-video-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 0.95rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.2);
    background: #111827;
}

.hero-video-card span {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 0.8rem;
    font-weight: 800;
}

.hero-video-thumb {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.hero-thumb {
    width: 100%;
    height: 120px;
    border-radius: 0.9rem;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

@media (min-width: 768px) {
    .hero-thumb {
        height: 150px;
    }

    .hero-video-card,
    .hero-video-thumb {
        min-height: 235px;
    }
}

.showcase-section {
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
}

.showcase-copy {
    display: grid;
    gap: 0.75rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.showcase-card {
    padding: 1rem;
}

.showcase-card__media {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 0.8rem;
    background: #111827;
}

.showcase-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manga-tap-cue {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 2;
}

.manga-tap-cue::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(236, 72, 153, 0.55);
    border-radius: 999px;
    animation: mangaTapRipple 1.9s ease-out infinite;
}

.manga-tap-cue__icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #db2777;
    font-size: 1.45rem;
    line-height: 1;
    box-shadow:
        inset 0 0 0 2px rgba(236, 72, 153, 0.18),
        0 12px 28px rgba(15, 23, 42, 0.28);
    animation: mangaTapIconGlow 1.9s ease-out infinite;
}

@keyframes mangaTapRipple {
    from {
        transform: scale(1);
        opacity: 0.55;
    }

    to {
        transform: scale(1.65);
        opacity: 0;
    }
}

@keyframes mangaTapIconGlow {
    0%,
    100% {
        background: rgba(255, 255, 255, 0.94);
        box-shadow:
            inset 0 0 0 2px rgba(236, 72, 153, 0.18),
            0 12px 28px rgba(15, 23, 42, 0.28);
    }

    45% {
        background: rgba(253, 242, 248, 0.98);
        box-shadow:
            inset 0 0 0 3px rgba(236, 72, 153, 0.3),
            0 14px 32px rgba(236, 72, 153, 0.24);
    }
}

@media (prefers-reduced-motion: reduce) {
    .manga-tap-cue::before {
        animation: none;
        opacity: 0.35;
    }

    .manga-tap-cue__icon {
        animation: none;
    }
}

.showcase-card__media--manga {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: transparent;
}

.showcase-card h4 {
    margin-top: 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
}

.showcase-card p {
    margin-top: 0.35rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.a1u1-code-section {
    display: grid;
    gap: 1rem;
    padding: 2rem 1.25rem;
    text-align: center;
    scroll-margin-top: 110px;
}

.a1u1-code-section__copy h3 {
    margin-top: 0.4rem;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    color: #111827;
}

.a1u1-code-section__sub {
    margin-top: 0.15rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.a1u1-code-section__action-title {
    margin-top: 0.25rem;
    font-size: clamp(1.8rem, 5.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: #be123c;
}

.a1u1-code-section__copy p,
.a1u1-code-section__instruction {
    color: #4b5563;
}

.a1u1-code-box {
    justify-self: center;
    width: min(100%, 520px);
    padding: 1rem 1.25rem;
    border-radius: 0.85rem;
    border: 2px solid #f2d28f;
    background: #fff7d6;
    color: #7a2e00;
    font-size: clamp(2.8rem, 14vw, 7rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.04em;
    box-shadow: 0 20px 55px rgba(122, 46, 0, 0.16);
}

.a1u1-code-section__steps {
    display: grid;
    gap: 0.5rem;
}

.a1u1-code-section__steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #111827;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.a1u1-code-section__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.a1u1-code-section__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #ec4899, #ef4444);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(239, 68, 68, 0.32);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, filter 0.2s ease-out;
}

.a1u1-code-section__links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.42);
    filter: saturate(1.08);
}

.a1u1-code-section__links a:nth-child(2) {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.a1u1-code-section__links a:nth-child(2):hover {
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.38);
}

.external-guide {
    display: grid;
    gap: 0.75rem;
    padding: 1.5rem;
}

.external-guide h3 {
    margin-top: 0.4rem;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 850;
    color: #111827;
}

.external-guide p {
    color: #4b5563;
    line-height: 1.7;
}

.external-guide__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.75rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.face-feature-intro {
    margin: -0.25rem 0 -0.5rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: center;
}

@media (min-width: 768px) {
    .showcase-section {
        grid-template-columns: 0.75fr 1.25fr;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .a1u1-code-section {
        padding: 3rem;
    }

    .a1u1-code-section__steps,
    .a1u1-code-section__links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .a1u1-code-section__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 220px));
    }

    .external-guide {
        grid-template-columns: 0.8fr 1.2fr auto;
        align-items: center;
        padding: 2rem;
    }
}

.thumb-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.thumb-row-image {
    height: 120px;
    width: auto;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

@media (min-width: 1024px) {
    .thumb-row-image {
        height: 150px;
    }
}

.thumb-row::-webkit-scrollbar,
.gallery-row::-webkit-scrollbar {
    height: 6px;
}

.thumb-row::-webkit-scrollbar-track,
.gallery-row::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
}

.thumb-row::-webkit-scrollbar-thumb,
.gallery-row::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.6);
    border-radius: 999px;
}

@media (max-width: 640px) {
    .gallery-row {
        height: 85px;
    }
    .gallery-track {
        animation-duration: 55s;
    }
}

@media (max-width: 640px) {
    header h3 {
        font-size: 0.5rem;
    }
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 0 1.5rem 1rem;
    gap: 0.5rem;
}

.mobile-nav a {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    color: #0f172a;
}

.mobile-nav a.mobile-free-trial {
    color: #dc2626;
}


.mobile-nav.is-open {
    display: flex;
}

/* Age gate */
.age-gate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1100;
}

.age-gate.is-hidden {
    display: none;
}

.age-gate__card {
    width: min(90vw, 520px);
    padding: 2.5rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
}

.age-gate__lang {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.age-gate__lang-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.age-gate__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #ec4899;
    font-weight: 700;
}

.age-gate__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin: 0.5rem 0 0.75rem;
}

.age-gate__text {
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.age-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.age-gate__btn--yes {
    background: linear-gradient(90deg, #ec4899, #ef4444);
    color: #fff;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.35);
}

.age-gate__btn--no {
    background: #fff;
    color: #b91c1c;
    border-color: #fecaca;
}

.age-gate__btn--no:hover {
    background: #fff1f2;
}

@media (min-width: 640px) {
    .age-gate__actions {
        flex-direction: row;
        justify-content: center;
    }
}

body.age-gate-lock {
    overflow: hidden;
}

body.age-gate-lock .yee9-lp-container {
    filter: blur(6px);
}






/* A1U1 popup */
.a1u1-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1200;
}

.a1u1-popup.is-open {
    display: flex;
}

.a1u1-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.a1u1-popup__card {
    position: relative;
    width: min(92vw, 560px);
    padding: 2.25rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.a1u1-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.a1u1-popup__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #ec4899;
    font-weight: 700;
}

.a1u1-popup__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin: 0.5rem 0 0.75rem;
}

.a1u1-popup__text {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.a1u1-popup__code {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #7a2e00;
    background: #fff7d6;
    border: 1px solid #f2d28f;
    padding: 0.6rem 0.9rem;
    border-radius: 0.75rem;
    text-align: center;
}

.a1u1-popup__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.a1u1-popup__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    text-decoration: none;
}

.a1u1-popup__links a:hover {
    background: #ffe4e6;
}

body.a1u1-popup-lock {
    overflow: hidden;
}

/* Language selector */
.lang-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
}

.mobile-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.mobile-lang span {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}
