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

/* CSS Custom Properties */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --background-color: #F8F9FA;
    --gradient-start: #4A90E2;
    --gradient-end: #6BB6FF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Noto Sans JP', 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 16px;
    background: var(--secondary-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 0 0 100% 0;
    z-index: -1;
}

.profile-image {
    margin-bottom: 16px;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 4px solid var(--secondary-color);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.profile-tagline {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 400;
}

/* Main Service Section */
.main-service {
    margin-bottom: 24px;
}

.service-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.service-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-subtitle {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.service-cta {
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.service-icon {
    font-size: 48px;
    opacity: 0.9;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: rotate(-15deg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Social Links Section */
.social-links {
    margin-bottom: 24px;
}

.social-link .social-icon {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    object-fit: contain;
}

/* Link Sections */
.social-links,
.other-links {
    margin-bottom: 24px;
}

.social-link,
.other-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-size: 16px;
}

.social-link:hover,
.other-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.social-link i,
.other-link i {
    width: 24px;
    margin-right: 16px;
    font-size: 20px;
}

.social-link:nth-child(1) i { color: #FF0000; }
.social-link:nth-child(2) i { color: #000000; }
.social-link:nth-child(3) i { color: #00C300; }
.social-link:nth-child(4) i { color: #00A960; }
.other-link i { color: var(--primary-color); }

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 32px;
    position: relative;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: #FFD700;
    border-radius: 100% 0 0 0;
    z-index: -1;
}

.cta-button {
    display: inline-block;
    width: 90%;
    padding: 16px 24px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.cta-button:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 420px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .profile-tagline {
        font-size: 18px;
    }
    
    .service-title {
        font-size: 32px;
    }
    
    .service-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 12px;
    }
    
    body {
        padding: 16px;
    }
    
    .service-button {
        padding: 20px;
        min-height: 80px;
    }
    
    .service-title {
        font-size: 24px;
    }
}

/* Focus Indicators for Accessibility */
.service-button:focus,
.social-link:focus,
.other-link:focus,
.cta-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section,
.main-service,
.social-links,
.other-links,
.cta-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.main-service { animation-delay: 0.1s; }
.social-links { animation-delay: 0.2s; }
.other-links { animation-delay: 0.3s; }
.cta-section { animation-delay: 0.4s; }