/* ============================================
   デジタル名刺 - スタイルシート (MAXIMUM MEME EDITION)
   ※ このCSSを読んだあなたは、もうアヒルの仲間です
   ============================================ */

/* --- デザイントークン --- */
:root {
    /* カラーパレット - アヒル会長ゴールドエディション */
    --primary-gradient: linear-gradient(135deg, #ffd700 0%, #ff6b00 100%);
    --secondary-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --accent-gradient: linear-gradient(135deg, #ffd700 0%, #fff 100%);
    --quack-gold: #ffd700;
    --quack-orange: #ff6b00;

    /* 背景 & テキスト */
    --bg-primary: #0a0a0a;
    --bg-card: rgba(15, 15, 30, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #ffd700;
    --text-muted: #b8860b;

    /* ボーダー & シャドウ */
    --border-glass: rgba(255, 215, 0, 0.3);
    --border-glow: rgba(255, 215, 0, 0.6);
    --shadow-soft: 0 0 20px rgba(255, 215, 0, 0.15);
    --shadow-header: 0 0 40px rgba(255, 215, 0, 0.4);

    /* レイアウト */
    --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: 'Noto Sans JP', -apple-system, 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;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text y='28' font-size='28'>🦆</text></svg>") 16 16, auto;
}

/* --- 背景装飾 --- */
.background-gradient {
    position: fixed;
    inset: 0;
    background-color: #0a0a0a;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle, #222 1px, transparent 1px);
    background-size: 100%, 100%, 25px 25px;
    z-index: -1;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* --- コンポーネント: グラスカード --- */
.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: 0 0 15px var(--border-glow);
    border: 1px solid var(--border-glass);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent, rgba(255, 107, 0, 0.1), transparent);
    animation: cardSpin 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    box-shadow: 0 0 35px var(--border-glow);
    transform: translateY(-5px);
    border-color: var(--quack-gold);
}

@keyframes cardSpin {
    to {
        transform: rotate(360deg);
    }
}

/* --- レイアウト構造 --- */
.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: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.cover-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.profile-info-card {
    padding: var(--spacing-sm);
}

.profile-info-card .name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffd700, #ff6b00, #ffd700);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameShimmer 3s ease-in-out infinite;
}

@keyframes nameShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.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: 0.95rem;
    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: conic-gradient(from 0deg, #ffd700, #ff6b00, #ff0000, #ff6b00, #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: transform 0.2s;
    animation: fabHueRotate 5s linear infinite, fabPulse 2s ease-in-out infinite;
}

.fab svg {
    width: 32px;
    height: 32px;
    color: #000;
}

.fab-label {
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

@keyframes fabHueRotate {
    to {
        filter: hue-rotate(360deg);
    }
}

@keyframes fabPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* --- セクション共通 --- */
.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    color: var(--quack-gold);
    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, 215, 0, 0.05);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #ffd700;
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.contact-item:hover {
    background: rgba(255, 215, 0, 0.12);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.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;
}

.facebook {
    background: linear-gradient(135deg, #1877f222, #1877f211);
}

.facebook:hover {
    background: linear-gradient(135deg, #1877f244, #1877f233);
    border-color: #1877f2;
    transform: translateY(-4px) rotate(-5deg);
}

.instagram {
    background: linear-gradient(135deg, #E1306C22, #F7701E11);
}

.instagram:hover {
    background: linear-gradient(135deg, #E1306C44, #F7701E33);
    border-color: #E1306C;
    transform: translateY(-4px) rotate(5deg);
}

.linkedin {
    background: linear-gradient(135deg, #ffd70022, #ff6b0011);
}

.linkedin:hover {
    background: linear-gradient(135deg, #ffd70044, #ff6b0033);
    border-color: #ffd700;
    transform: translateY(-4px) scale(1.2);
}

/* --- リスト（実績・資格） --- */
.certification-list {
    list-style: none;
    padding-left: 0.5rem;
}

.certification-list li {
    position: relative;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--quack-gold);
    transition: var(--transition);
}

.certification-list li:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
    border-left-color: var(--quack-orange);
}

/* --- 自己紹介 --- */
.bio-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ccc;
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 2rem 0;
    opacity: 0.7;
    font-size: 0.8rem;
}

.powered-by {
    color: var(--quack-gold);
}

/* --- アニメーション --- */
.animate-fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
}

.delay-5 {
    animation-delay: 0.75s;
}

/* --- 🦆 ネタ系特殊アニメーション --- */

/* コナミコマンド発動時のレインボーモード */
.rainbow-mode {
    animation: rainbowBg 2s linear infinite !important;
}

.rainbow-mode .glass-card {
    animation: rainbowBorder 2s linear infinite !important;
}

.rainbow-mode .profile-header {
    animation: rainbowBorder 2s linear infinite !important;
}

@keyframes rainbowBg {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes rainbowBorder {
    0% {
        border-color: red;
    }

    16% {
        border-color: orange;
    }

    33% {
        border-color: yellow;
    }

    50% {
        border-color: green;
    }

    66% {
        border-color: blue;
    }

    83% {
        border-color: purple;
    }

    100% {
        border-color: red;
    }
}

/* 画面シェイク */
.shake {
    animation: screenShake 0.5s ease-in-out;
}

@keyframes screenShake {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(-10px, -5px) rotate(-2deg);
    }

    20% {
        transform: translate(10px, 5px) rotate(2deg);
    }

    30% {
        transform: translate(-10px, 5px) rotate(-1deg);
    }

    40% {
        transform: translate(10px, -5px) rotate(1deg);
    }

    50% {
        transform: translate(-5px, -10px) rotate(-2deg);
    }

    60% {
        transform: translate(5px, 10px) rotate(2deg);
    }

    70% {
        transform: translate(-5px, 3px) rotate(-1deg);
    }

    80% {
        transform: translate(5px, -3px) rotate(1deg);
    }

    90% {
        transform: translate(-3px, -5px) rotate(0deg);
    }
}

/* 浮遊するアヒル絵文字 */
.floating-duck {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 9999;
    animation: floatUp 4s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) rotate(720deg);
    }
}

/* アヒルダンス */
.duck-dance {
    display: inline-block;
    animation: duckWiggle 0.5s ease-in-out infinite;
}

@keyframes duckWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}