/* ============================================
   デジタル名刺 - スタイルシート
   モダン・プレミアムなデザイン
   ============================================ */

/* CSS変数 - デザイントークン（ライトテーマ） */
:root {
    /* プライマリカラーパレット */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* ベースカラー（ライトテーマ） */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);

    /* テキストカラー（ライトテーマ） */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* ボーダー */
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(102, 126, 234, 0.4);

    /* シャドウ（ライトテーマ） */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 8px 30px rgba(102, 126, 234, 0.15);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.1);

    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* ボーダーラジウス */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;

    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* フォント */
    --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* リセット */
*,
*::before,
*::after {
    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;
    overflow-x: hidden;
}

/* 背景グラデーション（白ベース） */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -2;
}

.background-gradient::before {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.2) 30%, transparent 60%);
    animation: blackGlow2 7.2s ease-in-out infinite;
    pointer-events: none;
}

/* 動く黒い光エフェクト - メイン */
.background-gradient::after {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, rgba(59, 130, 246, 0.25) 35%, transparent 65%);
    animation: blackGlow1 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes blackGlow1 {

    0%,
    100% {
        transform: scale(0.4) translate(0, 0);
        opacity: 0.2;
    }

    15% {
        transform: scale(1.8) translate(30%, 20%);
        opacity: 0.9;
    }

    35% {
        transform: scale(0.6) translate(-20%, 30%);
        opacity: 0.4;
    }

    55% {
        transform: scale(2.0) translate(20%, -15%);
        opacity: 1;
    }

    75% {
        transform: scale(0.8) translate(-10%, -20%);
        opacity: 0.5;
    }
}

@keyframes blackGlow2 {

    0%,
    100% {
        transform: scale(0.5) translate(0, 0);
        opacity: 0.3;
    }

    20% {
        transform: scale(1.6) translate(-25%, -20%);
        opacity: 0.85;
    }

    45% {
        transform: scale(0.7) translate(20%, -25%);
        opacity: 0.45;
    }

    70% {
        transform: scale(1.9) translate(-15%, 20%);
        opacity: 0.95;
    }
}

@keyframes lightMove {

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

    25% {
        transform: translate(5%, 10%) scale(1.1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-5%, 5%) scale(1.05);
        opacity: 0.6;
    }

    75% {
        transform: translate(3%, -5%) scale(1.15);
        opacity: 0.8;
    }
}

@keyframes backgroundPulse {

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

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* フローティングシェイプ */
.floating-shapes {
    display: none;
}

.shape {
    display: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-gradient);
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-gradient);
    bottom: 20%;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-gradient);
    top: 60%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(5deg);
    }

    66% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* グラスカード（Fluent Design すりガラス効果） */
.glass-card {
    background: rgba(255, 255, 255, 0.35);
    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 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* カード内の光沢エフェクト */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    transition: left 0.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}


/* カバーヘッダー（固定） */
.cover-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    z-index: 100;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cover-overlay {
    display: none;
}

/* コンテナ（ヘッダー分のマージン追加） */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--spacing-md);
    padding-top: 110px;
    /* ヘッダーの高さ - オーバーラップ */
    padding-bottom: var(--spacing-xl);
}

/* プロフィール情報カード */
.profile-info-card {
    text-align: center;
    position: relative;
    padding: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.profile-info-card::before {
    display: none;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    background: black;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.title {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.company {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* セクションタイトル */
.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 500;
    margin-top: -8px;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.section-title .icon {
    font-size: 1.2rem;
}

/* 連絡先セクション */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.email-icon {
    background: linear-gradient(135deg, #667eea22, #764ba222);
}

.phone-icon {
    background: linear-gradient(135deg, #4facfe22, #00f2fe22);
}

.address-icon {
    background: linear-gradient(135deg, #f093fb22, #f5576c22);
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

#contact-address .contact-value {
    font-size: 0.95rem;
}

.arrow {
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact-item:hover .arrow {
    transform: translateX(4px);
    color: #667eea;
}

/* ソーシャルリンク */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-start;
}

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

.social-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon 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);
    position: relative;
}

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

/* SNSアイコンバッジ（会社/個人の区別） */
.social-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 1.5px solid white;
}

.social-badge svg {
    width: 10px;
    height: 10px;
}

.badge-company {
    background: #333333;
}

.badge-personal {
    background: #555555;
}

/* コミュニティセクション */
.community-list {
    list-style: disc;
    padding-left: var(--spacing-md);
    margin: 0;
}

.community-list li {
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.community-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* 実績セクション */
.achievements-container {
    margin: 0;
}

.achievement-category {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-sm) 0 var(--spacing-xs) 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.achievement-category:first-child {
    margin-top: 0;
}

.achievement-items {
    list-style: disc;
    padding-left: var(--spacing-md);
    margin: 0 0 var(--spacing-sm) 0;
}

.achievement-items li {
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* アクションセクション */
.action-section {
    display: flex;
    justify-content: center;
    padding: var(--spacing-sm) 0;
}

.save-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(18, 128, 192, 0.6);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.save-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.save-contact-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.3rem;
}

/* フッター */
.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.powered-by {
    margin-top: var(--spacing-xs);
    font-size: 0.75rem;
    opacity: 0.6;
}

/* アニメーション */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 400px) {
    .container {
        padding: var(--spacing-sm);
    }

    .glass-card {
        padding: var(--spacing-xs);
    }

    .name {
        font-size: 1.5rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        grid-template-columns: 1fr;
    }
}

/* ダークモード対応（すでにダーク基調だが、ライトモード追加可能） */
@media (prefers-color-scheme: light) {
    /* オプション: ライトモードが必要な場合はここに追加 */
}