/* ============================================
   デジタル名刺 - スタイルシート (Refactored)
   ============================================ */

/* --- デザイントークン --- */
:root {
    /* 温かみのあるパステルカラーパレット */
    --primary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --secondary-gradient: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --accent-gradient: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    --warm-cream: #fffaf0;
    --flower-pink: #ffb7c5;
    --leaf-green: #98fb98;

    /* 背景 & テキスト */
    --bg-primary: #fffef2;
    --bg-card: rgba(255, 255, 255, 0.6);
    --text-primary: #5d4037;
    /* 柔らかい茶色 */
    --text-secondary: #8d6e63;
    --text-muted: #bcaaa4;

    /* ボーダー & シャドウ */
    --border-glass: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 32px rgba(255, 182, 193, 0.2);
    --shadow-header: 0 4px 30px rgba(93, 64, 55, 0.15);

    /* レイアウト - より丸く */
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;

    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* アニメーション */
    --transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font-family: 'Noto Sans JP', sans-serif;
}

/* --- ベースリセット --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* --- 背景装飾 (動く花びら) --- */
.background-gradient {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 183, 197, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(152, 251, 152, 0.1) 0%, transparent 40%);
    overflow: hidden;
    z-index: -1;
}

.petal {
    position: absolute;
    background: #ffdbed;
    border-radius: 150% 0 150% 0;
    opacity: 0.3;
    pointer-events: none;
    animation: petal-fall linear infinite;
}

@keyframes petal-fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* --- コンポーネント: グラスカード --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-glass);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.2),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover::before {
    opacity: 1;
}


.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(255, 182, 193, 0.4);
    background: rgba(255, 255, 255, 0.8);
}


/* --- レイアウト構造 --- */
.container {
    width: 100%;
    max-width: 480px;
    padding: var(--spacing-md);
    padding-bottom: 4rem;
}

/* --- ヘッダー領域 --- */
.profile-header {
    position: fixed;
    top: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--spacing-md) * 2);
    max-width: calc(480px - var(--spacing-md) * 2);
    z-index: 100;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-header);
    overflow: hidden;
    background: white;
}

.cover-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    transition: transform 10s ease-in-out;
}

.profile-header:hover .cover-photo {
    transform: scale(1.1);
}


.profile-info-card {
    padding: var(--spacing-sm);
}

.profile-info-card .name {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-info-card .title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-left: 6px;
    font-weight: 400;
}

.profile-info-card .company {
    display: block;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* --- 浮遊ボタン (FAB) --- */
.fab-container {
    position: absolute;
    right: 24px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb7c5, #ff9a9e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
    transition: transform 0.2s;
    animation: fabBounce 3s ease-in-out infinite;
}

@keyframes fabBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.fab svg {
    width: 32px;
    height: 32px;
    color: #333;
}

.fab-label {
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.fab-container:hover .fab {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.6);
}

.fab-container:hover .fab-label {
    color: var(--text-primary);
    transform: translateY(2px);
}


@keyframes fabHueRotate {
    to {
        filter: hue-rotate(360deg);
    }
}

@keyframes fabPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* --- セクション共通 --- */
.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- 相互リンク項目 --- */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 500;
}

/* --- SNSリンク --- */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-primary);
}

.social-link svg {
    width: 28px;
    height: 28px;
}

.line {
    background: #06C755;
    color: white;
}

.line:hover {
    background: #05a647;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.note {
    background: linear-gradient(135deg, #24896a22, #24896a11);
}

.note:hover {
    background: linear-gradient(135deg, #24896a44, #24896a33);
    border-color: #24896a;
    transform: translateY(-2px);
}

.instagram {
    background: linear-gradient(135deg, #E1306C22, #F7701E11);
}

.instagram:hover {
    background: linear-gradient(135deg, #E1306C44, #F7701E33);
    border-color: #E1306C;
    transform: translateY(-2px);
}

/* --- リスト項目 (資格など) --- */
.certification-list {
    list-style: none;
    padding-left: 0.5rem;
}

.certification-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.certification-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.certification-list a {
    text-decoration: none;
    color: inherit;
}

.certification-list a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* --- 自己紹介 --- */
.bio-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 2rem 0;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* --- アニメーション --- */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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


@keyframes fadeIn {
    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;
}