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

/* --- デザイントークン --- */
:root {
    /* カラーパレット (モダン・新幹線) */
    --primary-blue: #005bac;
    /* 新幹線ブルー */
    --secondary-silver: #c0c0c0;
    --accent-gold: #d4af37;

    /* 背景 & テキスト */
    --bg-primary: #f0f4f8;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;

    /* ボーダー & シャドウ */
    --border-modern: 2px solid var(--primary-blue);
    --shadow-elegant: 0 10px 30px rgba(0, 91, 172, 0.1);

    /* レイアウト */
    --radius-sm: 8px;
    --radius-md: 16px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* アニメーション */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 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;
}

/* --- 背景装飾 --- */
.background-gradient {
    position: fixed;
    inset: 0;
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.background-gradient::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

/* --- コンポーネント: モダンカード --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 91, 172, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-elegant);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

/* --- ヘッダー領域 --- */
.profile-header {
    width: 100%;
    max-width: 480px;
    margin: var(--spacing-md) auto 0;
    z-index: 100;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elegant);
    background: var(--bg-card);
    overflow: hidden;
    border: 1px solid rgba(0, 91, 172, 0.1);
}

.cover-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.profile-info-card .name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

.profile-info-card .info-group {
    margin-top: 8px;
}

.profile-info-card .title {
    font-size: 1rem;
    color: var(--text-secondary);
}

.profile-info-card .company {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-bottom: 4px;
}

/* --- 浮遊ボタン (FAB) - 懐中時計風 --- */
.fab-container {
    position: absolute;
    right: 20px;
    top: calc(100% - 35px);
    /* カバー写真の少し下に配置 */
    z-index: 110;
}

.fab {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f0f0f0, #808080);
    border: 4px solid #4b3621;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    text-decoration: none;
}

.fab svg {
    width: 28px;
    height: 28px;
    color: #2c1e14;
}

.fab-label {
    position: absolute;
    bottom: -25px;
    width: 100px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-sepia);
}

/* --- セクション共通 --- */
.section-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
    border-left: 6px solid var(--primary-blue);
    padding-left: 10px;
}

/* --- 項目リスト --- */
.contact-list {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--text-muted);
    text-decoration: none;
    color: inherit;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
}

.arrow {
    align-self: center;
    margin-left: var(--spacing-sm);
    color: var(--text-muted);
}

/* --- 項目リスト --- */
.certification-list,
.hobby-list {
    list-style: none;
}

.certification-list li,
.hobby-item {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.certification-list li::before,
.hobby-item::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    color: var(--primary-blue);
}

/* --- 自己紹介 --- */
.bio-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--text-muted);
    margin-top: 2rem;
}

/* --- アニメーション --- */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1.0s;
}

.delay-6 {
    animation-delay: 1.2s;
}