/* ============================================
   最強ギャル名刺 - 平成バイブス仕様
   ============================================ */

/* --- デザイントークン --- */
:root {
    /* 上品なピンク & ラメ */
    --primary-pink: #ff85a1;
    --soft-pink: #f9eff2;
    --glitter-pink: linear-gradient(135deg, #ff85a1 0%, #ffb3c1 50%, #ff85a1 100%);

    /* 背景 & テキスト */
    --bg-primary: #f9eff2;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #4a4a4a;
    --text-secondary: #ff85a1;
    --text-muted: #888;

    /* ボーダー & シャドウ */
    --border-soft: 1px solid rgba(255, 133, 161, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-elegant: 0 4px 15px rgba(255, 133, 161, 0.2);

    /* レイアウト */
    --radius-sm: 8px;
    --radius-md: 16px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* アニメーション */
    --transition: 0.3s ease;
    --font-family: 'Playfair Display', 'Sawarabi Mincho', serif;
}

/* --- ベースリセット --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    background-image: var(--glitter-pink);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* 虹の絵文字が流れるコンテナ */
.rainbow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.rainbow-emoji {
    position: absolute;
    font-size: 2rem;
    user-select: none;
    will-change: transform;
    animation: rainFall var(--duration) linear forwards;
}

@keyframes rainFall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* 虹色の背景の流れ */
.background-gradient {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 0, 0, 0.05),
            rgba(255, 165, 0, 0.05),
            rgba(255, 255, 0, 0.05),
            rgba(0, 255, 0, 0.05),
            rgba(0, 0, 255, 0.05),
            rgba(75, 0, 130, 0.05),
            rgba(238, 130, 238, 0.05));
    background-size: 400% 400%;
    z-index: -2;
    animation: rainbowFlow 20s linear infinite;
}

@keyframes rainbowFlow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 400% 400%;
    }
}

/* --- コンポーネント: プレミアムカード --- */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: var(--border-soft);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elegant);
}

/* --- レイアウト構造 --- */
.container {
    width: 100%;
    max-width: 480px;
    padding: var(--spacing-md);
    padding-top: 350px;
    /* ヘッダーの高さ分 */
    padding-bottom: 4rem;
}

/* --- ヘッダー領域 --- */
.profile-header {
    position: fixed;
    top: var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--spacing-sm) * 2);
    max-width: 440px;
    z-index: 100;
    border: var(--border-soft);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    background: white;
    border-radius: var(--radius-md);
}

.cover-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.profile-info-card {
    padding: var(--spacing-md);
    background: white;
    text-align: center;
}

.profile-info-card .name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.profile-info-card .info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-info-card .title {
    font-size: 0.9rem;
    color: var(--primary-pink);
    font-weight: 600;
    background: rgba(255, 133, 161, 0.1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

.profile-info-card .company {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- 浮遊ボタン (FAB) --- */
.fab-container {
    position: absolute;
    right: 15px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 110;
}

.fab {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-pink);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-elegant);
    transition: transform 0.2s, background-color 0.2s;
}

.fab:hover {
    transform: scale(1.1);
    background-color: #ff6b8e;
}

.fab svg {
    width: 30px;
    height: 30px;
    color: white;
}

.fab-label {
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-pink);
    background: rgba(255, 133, 161, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* --- セクション共通 --- */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    border-left: 4px solid var(--primary-pink);
    padding-left: 12px;
    display: block;
}

/* --- 相互リンク項目 --- */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: var(--border-soft);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--soft-pink);
    border-color: var(--primary-pink);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 500;
}

/* --- SNSリンク --- */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border-soft);
    background: #fff;
    border-radius: 50%;
    transition: all var(--transition);
    box-shadow: var(--shadow-soft);
    color: var(--primary-pink);
}

.social-link:hover {
    transform: translateY(-3px);
    background-color: var(--primary-pink);
    color: white;
    box-shadow: var(--shadow-elegant);
}

.social-link svg {
    width: 35px;
    height: 35px;
}

/* --- リスト項目 (資格など) --- */
.certification-list {
    list-style: none;
}

.certification-list li {
    position: relative;
    padding: 12px 16px;
    margin-bottom: 0.8rem;
    background: #fff;
    border-radius: var(--radius-sm);
    border: var(--border-soft);
    font-weight: 500;
    color: var(--text-primary);
}

/* --- 自己紹介 --- */
.bio-content {
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 700;
    color: var(--gal-black);
    white-space: pre-wrap;
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

.footer p {
    font-size: 0.85rem;
    font-weight: 400;
}

.powered-by {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--primary-pink) !important;
}

/* --- アニメーション --- */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}