/* ===== Age Verification Page ===== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --av-primary:     #e694c2;
    --av-accent:      #f347bf;
    --av-dark:        #1a1a2e;
    --av-card-bg:     rgba(255, 255, 255, 0.06);
    --av-card-border: rgba(230, 148, 194, 0.25);
    --av-text:        #f0e6ef;
    --av-text-muted:  rgba(240, 230, 239, 0.65);
    --av-transition:  0.25s ease;
}

html, body {
    width: 100%;
    height: auto;
}

body.age-verify-page {
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: var(--av-dark);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(230, 148, 194, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 110%, rgba(243, 71, 191, 0.10) 0%, transparent 60%);
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--av-text);
}

/* ── ロゴバナー（フル幅、上部） ─── */
.av-logo {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.av-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ── カード（縦並び） ─── */
.av-card {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--av-card-bg);
    border-top: 1px solid var(--av-card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: av-card-in 0.45s cubic-bezier(.22,.61,.36,1) both;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
}

@keyframes av-card-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── 上段：3ボタン横並び ─── */
.av-card-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    max-width: 860px;
    align-items: stretch;
}

.av-action-item {
    flex: 1 1 0;
    display: flex;
}

.av-action-item a {
    display: block;
    width: 100%;
    transition: opacity var(--av-transition), transform var(--av-transition);
}

.av-action-item a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.av-action-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ── 下段：説明テキスト ─── */
.av-card-body {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* ── 年齢バッジ ─── */
.av-age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--av-primary);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--av-primary);
    margin-bottom: 12px;
    letter-spacing: 0;
}

/* ── テキスト ─── */
.av-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--av-text);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.av-description {
    font-size: 13px;
    color: var(--av-text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.av-note {
    font-size: 11px;
    color: var(--av-text-muted);
    line-height: 1.7;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border-left: 3px solid var(--av-primary);
}

/* ── 退出リンク ─── */
.av-exit {
    text-align: center;
}

.av-exit-link {
    font-size: 12px;
    color: var(--av-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--av-transition);
}

.av-exit-link:hover {
    color: var(--av-text);
}

/* ── フッター ─── */
.av-footer {
    padding: 1rem;
    text-align: center;
}

.av-footer-copy {
    font-size: 11px;
    color: var(--av-text-muted);
    opacity: 0.6;
}

/* ── リンクグループ ─────────────── */
.links-grouped-list {
    padding: 1.5rem 1rem 2rem;
}

.links-grouped-title {
    font-size: 0.85rem;
    color: var(--av-text-muted);
    margin-bottom: 0.75rem;
    text-align: center;
}

.link-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* フリー枠（最上段・最下段）*/
.link-group--free-top .link-item,
.link-group--free-bottom .link-item {
    max-width: 100%;
}

.link-group--free-top .link-item img,
.link-group--free-bottom .link-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 468px */
.link-group--468 .link-item {
    width: 468px;
    max-width: 100%;
}

.link-group--468 .link-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 200px */
.link-group--200 .link-item {
    width: 200px;
    max-width: 100%;
}

.link-group--200 .link-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 88px */
.link-group--88 .link-item {
    width: 88px;
    max-width: 100%;
}

.link-group--88 .link-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* テキスト */
.link-group--text {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.link-group--text .link-item a {
    color: var(--av-text-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link-group--text .link-item a:hover {
    color: var(--av-text);
}

/* ── スマホ ─────────────── */
@media (max-width: 640px) {
    .av-logo {
        height: 45vw;
        min-height: 160px;
        max-height: 240px;
        aspect-ratio: unset;
    }

    .av-card {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .av-card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .av-card-body {
        max-width: 100%;
    }

    /* 468px → 100% */
    .link-group--468 {
        gap: 0;
    }
    .link-group--468 .link-item {
        width: 100%;
    }

    /* 200px → 50%, gap 1rem */
    .link-group--200 {
        gap: 1rem;
    }
    .link-group--200 .link-item {
        width: calc(50% - 0.5rem);
    }

    /* 88px → 25%, gap 1rem */
    .link-group--88 {
        gap: 1rem;
    }
    .link-group--88 .link-item {
        width: calc(25% - 0.75rem);
    }
}
