/*
Theme Name: Meishi (名刺リンクテーマ)
Author: Japan Simple Marketing Planning
Description: 名刺のQRコード等から遷移する専用のリンクまとめ・自己紹介テーマです。
Version: 1.2.1
*/

/* ==========================================================
   CSS Variables & Reset
========================================================== */
:root {
    /* カラーパレット：背景黒の高コントラスト・パキッとしたデザイン */
    --bg-color-1: #000000; /* Pure Black */
    --bg-color-2: #111111; /* Very dark gray */
    --text-main: #ffffff; /* White */
    --text-muted: #a1a1aa; /* Zinc 400 */
    
    --btn-bg: rgba(255, 255, 255, 0.08); /* 半透明グレー */
    --btn-border: rgba(255, 255, 255, 0.2);
    --btn-hover-bg: rgba(255, 255, 255, 0.15);
    --btn-hover-border: rgba(255, 255, 255, 0.8); /* ホバー時に白枠でパキッと */
    
    --primary-color: #38bdf8; /* Light Blue 400 (ネオン風) */
    --primary-hover: #0ea5e9; /* Light Blue 500 */
    
    /* Instagram グラデーション */
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    
    /* Facebook ブランドカラー */
    --fb-color: #1877f2;
    
    --glass-blur: 10px;
    --transition-speed: 0.3s;
    
    /* フォント */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    /* 本格的で深みのあるリッチなグラデーション背景 */
    background: radial-gradient(circle at top right, #1e1b4b 0%, #050505 50%, #000000 100%),
                radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.2) 0%, transparent 50%);
    background-color: #050505;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* ==========================================================
   共通レイアウト
========================================================== */
.container {
    width: 100%;
    max-width: 480px; /* スマホや名刺から飛んだ時の最適幅 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.container-wide {
    max-width: 600px;
}

/* ==========================================================
   リンク一覧・プロフィール・共通ヘッダー
========================================================== */
.profile-section, .profile-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
    from { box-shadow: 0 0 15px rgba(56, 189, 248, 0.3); }
    to { box-shadow: 0 0 35px rgba(129, 140, 248, 0.6); }
}

.profile-img-large {
    width: 120px;
    height: 120px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.profile-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.profile-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
}

/* ==========================================================
   リンクボタン (Linktreeスタイル)
========================================================== */
.links-section {
    width: 100%;
}

.link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item {
    width: 100%;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* ホバー・タップ効果 */
.link-btn:hover, .link-btn:active {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 12px 40px rgba(56, 189, 248, 0.2);
}

/* アイコン用の配置 */
.link-btn .icon {
    position: absolute;
    left: 1.5rem;
    font-size: 1.25rem;
}

/* ==========================================================
   各ボタンの個別アクセントカラー (nth-childで指定)
========================================================== */
/* 1: 自己紹介ページ */
.link-list li:nth-child(1) .link-btn {
    background: rgba(56, 189, 248, 0.05); 
    border-color: rgba(56, 189, 248, 0.2);
}
.link-list li:nth-child(1) .link-btn:hover {
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25); 
    border-color: #38bdf8;
}
.link-list li:nth-child(1) .icon { color: #38bdf8; }

/* 2: 会社紹介ページ */
.link-list li:nth-child(2) .link-btn {
    background: rgba(16, 185, 129, 0.05); 
    border-color: rgba(16, 185, 129, 0.2);
}
.link-list li:nth-child(2) .link-btn:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25); 
    border-color: #10b981;
}
.link-list li:nth-child(2) .icon { color: #10b981; }

/* 3: Tenowa工房 */
.link-list li:nth-child(3) .link-btn {
    background: rgba(245, 158, 11, 0.05); 
    border-color: rgba(245, 158, 11, 0.2);
}
.link-list li:nth-child(3) .link-btn:hover {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25); 
    border-color: #f59e0b;
}
.link-list li:nth-child(3) .icon { color: #f59e0b; }

/* 4: Instagram */
.link-list li:nth-child(4) .link-btn {
    background: rgba(225, 48, 108, 0.05); 
    border-color: rgba(225, 48, 108, 0.2);
}
.link-list li:nth-child(4) .link-btn:hover {
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.25); 
    border-color: #e1306c;
}
.link-list li:nth-child(4) .icon {
    background: var(--ig-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 5: Facebook */
.link-list li:nth-child(5) .link-btn {
    background: rgba(24, 119, 242, 0.05); 
    border-color: rgba(24, 119, 242, 0.2);
}
.link-list li:nth-child(5) .link-btn:hover {
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.25); 
    border-color: #1877f2;
}
.link-list li:nth-child(5) .icon { color: #1877f2; }

/* ==========================================================
   自己紹介ページ用 コンテンツ
========================================================== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color calc(var(--transition-speed)*0.5) ease;
    align-self: flex-start;
}

.back-btn:hover {
    color: var(--text-main);
}

.profile-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--btn-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--btn-border);
    padding-bottom: 0.5rem;
}

.content-section h2 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.content-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* タイムライン */
.timeline {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--btn-border);
}

.timeline li {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -1.82rem;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color-2);
    border: 2px solid var(--primary-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* スキルタグ */
.skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--btn-border);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==========================================================
   フッター
========================================================== */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2rem;
}
