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

/* --- デザイントークン --- */
:root {
    /* カラーパレット - サイバー・インフラストラクチャ */
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --accent-color: #00f2fe;
    /* サイバーブルー */
    --accent-glow: rgba(0, 242, 254, 0.5);

    /* 背景 & テキスト */
    --bg-primary: #020617;
    --bg-card: rgba(15, 23, 42, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    /* ボーダー & シャドウ */
    --border-glass: rgba(0, 242, 254, 0.2);
    --shadow-industrial: 0 0 30px rgba(0, 242, 254, 0.15);
    --shadow-header: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 242, 254, 0.3);

    /* レイアウト - よりシャープに */
    --radius-sm: 4px;
    --radius-md: 8px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* アニメーション */
    --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --font-family: 'Inter', '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-color: #020617;
    background-image:
        linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* --- コンポーネント: グラスカード --- */
.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);
}

/* --- レイアウト構造 --- */
.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: #0f172a;
    border: 1px solid var(--border-glass);
}

.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;
}

.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: row;
    /* 横並びに変更 */
    align-items: flex-start;
    gap: 16px;
    /* ボタン間の間隔 */
    z-index: 10;
}

.fab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    /* シャープな角 */
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: transform 0.2s, background 0.3s;
    overflow: hidden;
    position: relative;
}

.fab::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: fabShine 3s infinite;
}

@keyframes fabShine {
    0% {
        left: -100%;
        top: -100%;
    }

    20% {
        left: 100%;
        top: 100%;
    }

    100% {
        left: 100%;
        top: 100%;
    }
}

.fab svg {
    width: 28px;
    height: 28px;
    color: #000;
    position: relative;
    z-index: 1;
}

.fab.fab-line {
    background: #06C755;
    /* LINE Green */
    box-shadow: 0 0 20px rgba(6, 199, 85, 0.4);
}

.fab.fab-line svg {
    color: #fff;
}

.fab-label {
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* ラベルの視認性を向上 */
}

@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: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent-color);
    transform: translateX(8px);
}

.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(-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(15px);
    animation: fadeIn 0.6s ease forwards;
}

@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;
}