/* ============================================
   デジタル名刺 - カフェテーマ (Redesigned)
   ============================================ */

/* --- デザイントークン --- */
:root {
    /* コーヒー・カフェ カラーパレット */
    --coffee-deep: #3D2B1F;      /* 深煎りコーヒー */
    --coffee-medium: #5D4037;    /* 中煎りコーヒー */
    --coffee-light: #8D6E63;     /* カフェラテ色 */
    --warm-beige: #FDF9F3;       /* 背景用ウォームベージュ */
    --paper-white: #FFFEFD;      /* カード用生成り色 */
    --accent-gold: #C5A059;      /* アクセントの真鍮色 */
    --accent-green: #4E6E5D;     /* 落ち着いたボタニカルグリーン */

    /* テキストカラー */
    --text-primary: #2C1E16;
    --text-secondary: #5D4D44;
    --text-muted: #A69083;

    /* ボーダー & シャドウ */
    --border-paper: #E6E0D5;
    --shadow-soft: 0 4px 15px rgba(61, 43, 31, 0.08);
    --shadow-header: 0 6px 25px rgba(0, 0, 0, 0.15);

    /* レイアウト */
    --radius-cafe: 4px; /* 少し角ばったクラシックな印象 */
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* フォント */
    --font-serif: 'Noto Sans JP', sans-serif; /* 全てゴシック系に統一 */
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--warm-beige);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* 紙のような質感のテクスチャを追加 */
    background-image: url("https://www.transparenttextures.com/patterns/sandpaper.png");
}

/* --- 背景装飾 --- */
.background-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(61, 43, 31, 0.03), transparent);
    z-index: -1;
}

/* --- コンポーネント: カフェカード --- */
.glass-card {
    background: var(--paper-white);
    border-radius: var(--radius-cafe);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-paper);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gold);
    opacity: 0;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(61, 43, 31, 0.12);
    /* マウス追従の柔らかな光 */
    background: radial-gradient(
        circle 200px at var(--mouse-x) var(--mouse-y),
        rgba(197, 160, 89, 0.08),
        transparent
    ), var(--paper-white);
}

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

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

/* --- ヘッダー領域 --- */
.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-cafe);
    box-shadow: var(--shadow-header);
    overflow: hidden;
    background: white;
    border: 1px solid var(--accent-gold);
}

.cover-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    filter: sepia(10%) contrast(105%);
}

.profile-info-card {
    padding: var(--spacing-md);
    text-align: center;
    border-top: 2px double var(--border-paper);
}

.profile-info-card .name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--coffee-deep);
    margin-bottom: 0.2rem;
}

.profile-info-card .title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.4rem;
    border-top: 1px solid var(--border-paper);
    padding-top: 0.4rem;
}

.profile-info-card .company {
    font-family: var(--font-serif);
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- シーリングスタンプ風FAB --- */
.fab-container {
    position: absolute;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.fab {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #8B0000; /* 深い赤（シーリングワックス風） */
    background: radial-gradient(circle at 30% 30%, #a52a2a, #800000);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4), inset -2px -2px 5px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(.47,1.64,.41,.8);
}

.fab:hover {
    transform: scale(1.1) rotate(5deg);
}

.fab::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.4);
}

.fab svg {
    width: 28px;
    height: 28px;
    color: #ffd700; /* 金色のアイコン */
    z-index: 1;
}

.fab-label {
    display: none; /* ラベルは非表示でよりミニマルに */
}

/* --- セクションタイトル --- */
.section-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--coffee-medium);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent-gold), transparent);
}

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

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

.contact-item:hover {
    color: var(--accent-gold);
    padding-left: 8px;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-serif);
}

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

.arrow {
    font-family: serif;
    color: var(--accent-gold);
}

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

.social-link {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--warm-beige);
    border: 1px solid var(--border-paper);
    color: var(--coffee-medium);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--coffee-deep);
    color: white;
    border-color: var(--coffee-deep);
    transform: translateY(-3px) rotate(10deg);
}

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

.certification-list li {
    font-family: var(--font-serif);
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.certification-list li::before {
    content: '☕';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* --- 自己紹介 --- */
.bio-content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    padding: 0.5rem;
    background: rgba(197, 160, 89, 0.03);
    border-radius: 4px;
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 3rem 0;
    opacity: 0.8;
    color: var(--text-muted);
    font-family: var(--font-serif);
}

.powered-by {
    font-size: 0.7rem;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* --- アニメーション --- */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 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; }