:root {
    --bg-color: #f0f6fc;
    /* 爽やかなディズニーブルーがかった白 */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #1d4ed8;
    /* ロイヤルブルー（ドナルドカラー） */
    --primary-light: #dbeafe;
    --secondary: #fbbf24;
    /* イエロー（くちばし・ゴールド） */
    --secondary-light: #fef3c7;
    --accent: #ef4444;
    /* レッド（リボン・蝶ネクタイ） */
    --accent-light: #fee2e2;
    --gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #fde047 100%);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px -2px rgba(29, 78, 216, 0.1), 0 4px 8px -2px rgba(29, 78, 216, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(29, 78, 216, 0.15), 0 10px 10px -5px rgba(29, 78, 216, 0.1);
    --radius-sm: 12px;
    /* 少し丸みを強調 */
    --radius-md: 24px;
    /* カードの丸みをより大きく、ディズニー風に */
    --radius-lg: 32px;
}

/* アバターのフローティングアニメーション */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }

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

/* 泡/星が浮かび上がるアニメーション */
@keyframes bubbleUp {
    0% {
        transform: translateY(120%) scale(0.5);
        opacity: 0;
    }

    30% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-20%) scale(1.2);
        opacity: 0;
    }
}

/* キラキラ輝くアニメーション */
@keyframes sparkle {

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

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* CSSの基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Fredoka', 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ヒーローセクション */
.hero {
    width: 100%;
    max-width: 900px;
    padding: 70px 24px;
    text-align: center;
    background: var(--gradient);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* マジカルな背景装飾 */
.hero-sparkle {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    pointer-events: none;
    animation: sparkle 3s infinite ease-in-out;
}

.sparkle-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 25%;
    right: 15%;
    animation-delay: 0.8s;
    font-size: 2rem;
}

.sparkle-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 1.5s;
    font-size: 1.2rem;
}

.sparkle-4 {
    bottom: 15%;
    right: 8%;
    animation-delay: 2.2s;
}

/* 泡のアニメーション */
.bubble {
    position: absolute;
    bottom: -20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
    animation: bubbleUp 8s infinite linear;
}

.bubble-1 {
    width: 40px;
    height: 40px;
    left: 15%;
    animation-duration: 9s;
    animation-delay: 0s;
}

.bubble-2 {
    width: 25px;
    height: 25px;
    left: 30%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble-3 {
    width: 50px;
    height: 50px;
    left: 60%;
    animation-duration: 11s;
    animation-delay: 1s;
}

.bubble-4 {
    width: 30px;
    height: 30px;
    left: 80%;
    animation-duration: 8s;
    animation-delay: 4.5s;
}

/* ふわっと現れるアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero>* {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* アバター */
.avatar-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: float 5s ease-in-out infinite;
    /* フローティングアニメーション */
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #fde047 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(29, 78, 216, 0.6);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #f8fafc;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(29, 78, 216, 0.5);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero .meta-info {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .badge {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a8a;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(191, 219, 254, 0.9);
    transition: transform 0.2s ease;
}

.hero .badge:hover {
    transform: scale(1.05);
}

/* メインコンテンツ */
.content-container {
    width: 100%;
    max-width: 850px;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* カード共通スタイル */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 2px dashed rgba(59, 130, 246, 0.15);
    /* ディズニーらしい可愛らしさを出すためにダッシュのボーダーに */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    /* 弾むような浮き上がり */
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.5);
    border-style: solid;
    /* ホバー時はソリッドな線にする */
}

.card h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid var(--primary-light);
    /* 太くして丸みを出す */
    border-radius: 3px;
    padding-bottom: 8px;
}

/* 自己紹介テキスト */
.about-text {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-details {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

/* スキル・興味 */
.grid-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.skill-tag {
    background-color: #f8fafc;
    color: #334155;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid #e2e8f0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.skill-tag:hover {
    transform: scale(1.08) rotate(1deg);
    /* 少し傾いて大きくなる */
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* プロジェクト */
.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.project-item {
    padding: 16px;
    border-left: 5px solid var(--secondary);
    /* 太いイエローライン */
    background-color: #fafaf9;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all 0.2s;
}

.project-item:hover {
    background-color: var(--secondary-light);
    transform: translateX(4px);
    /* 少し右にずれる楽しさ */
}

.project-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

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

/* コンタクト（ボタン） */
.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 40px;
    /* さらに丸く */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    /* 赤いリボン */
    color: white;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
    background-color: #dc2626;
    transform: translateY(-4px) scale(1.05);
    /* 大きく浮かぶ */
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.05);
}

/* フッター */
footer {
    margin-top: auto;
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100%;
    border-top: 1px solid #e2e8f0;
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
    .hero {
        padding: 50px 16px;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .content-container {
        padding: 16px;
    }

    .card {
        padding: 20px;
    }
}