:root {
    --sakura: #ec4899; /* Pink-500 */
    --sakura-deep: #be185d; /* Pink-700 */
    --sakura-light: #fdf2f8; /* Pink-50 */
    --sakura-mist: #fce7f3; /* Pink-100 */
    --cream: #fffbeb; /* Amber-50 */
    --warm: #fef3c7; /* Amber-100 */
    --bg: #fefce8; /* Yellow-50, warm paper feel */
    --bg-warm: #fdf4ff; /* Fuchsia-50 */
    --surface: #ffffff;
    --text: #4a4458; /* muted purple-gray */
    --text-muted: #9ca3af;
    --text-heading: #831843; /* Pink-900 */
    --border: #f3e8ff; /* Violet-100 */
    --radius: 16px;
    --heading-font: 'Noto Serif JP', serif;
    --body-font: 'Noto Sans JP', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(236,72,153,0.07);
    --shadow-lg: 0 12px 36px rgba(236,72,153,0.1);
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.8;
    padding-top: 68px;
    font-size: 15px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
}

a {
    color: var(--sakura);
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-sakura {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--sakura), #f472b6);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--sakura-deep);
    background: var(--sakura-light);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--text-heading);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 80px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--sakura-light) 0%, var(--bg) 100%);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-kana {
    font-family: var(--heading-font);
    font-size: 1rem;
    color: var(--sakura);
    letter-spacing: 6px;
    margin-bottom: 10px;
    font-weight: 400;
}

.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-heading), var(--sakura));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sakura-deep);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.hero-intro {
    font-size: 0.98rem;
    color: var(--text);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--body-font);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-sakura {
    background: linear-gradient(135deg, var(--sakura), #f472b6);
    color: white;
    box-shadow: 0 4px 16px rgba(236,72,153,0.25);
}

.btn-sakura:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(236,72,153,0.35);
    color: white;
}

.btn-soft {
    background: white;
    color: var(--sakura-deep);
    border: 1.5px solid var(--sakura-mist);
}

.btn-soft:hover {
    background: var(--sakura-light);
    border-color: var(--sakura);
    color: var(--sakura-deep);
}

.social-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-bar a:hover {
    background: var(--sakura);
    color: white;
    border-color: var(--sakura);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(236,72,153,0.2);
}

/* Petals */
.hero-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--sakura);
    border-radius: 50% 0 50% 50%;
    opacity: 0.12;
}

.petal-1 { top: 15%; left: 10%; width: 16px; height: 16px; animation: drift 9s ease-in-out infinite; }
.petal-2 { top: 25%; right: 15%; width: 10px; height: 10px; animation: drift 7s ease-in-out infinite reverse; }
.petal-3 { bottom: 20%; left: 20%; width: 14px; height: 14px; animation: drift 11s ease-in-out infinite; }
.petal-4 { top: 40%; right: 8%; width: 18px; height: 18px; animation: drift 8s ease-in-out infinite reverse; }

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(45deg); }
}

/* ============ SECTIONS ============ */
.section {
    padding: 90px 0;
}

.section-warm {
    background: var(--bg-warm);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}

.title-en {
    display: block;
    font-family: var(--body-font);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sakura);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ============ ABOUT ============ */
.about-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 44px;
    align-items: start;
}

.about-main p {
    margin-bottom: 18px;
    line-height: 2;
    color: var(--text);
}

.profile-details {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.detail-row {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.detail-row:last-child { border-bottom: none; }

.detail-key {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sakura);
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.detail-val {
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.95rem;
}

/* ============ EXPERIENCE ============ */
.exp-flow {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-item {
    display: flex;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px dashed var(--border);
    align-items: flex-start;
}

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

.exp-marker {
    flex-shrink: 0;
    width: 130px;
    text-align: right;
}

.exp-year {
    font-family: var(--heading-font);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sakura);
}

.exp-detail h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.exp-detail p {
    color: var(--text);
    line-height: 1.85;
    font-size: 0.95rem;
}

/* ============ EDUCATION ============ */
.edu-card-jp {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    max-width: 660px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.edu-card-jp:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.edu-deco {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sakura), var(--sakura-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.edu-content h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.edu-dept {
    color: var(--sakura);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.edu-uni {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.edu-period {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.edu-text {
    color: var(--text);
    line-height: 1.85;
}

/* ============ SKILLS RIBBON ============ */
.skills-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.ribbon-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    padding: 14px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-heading);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.ribbon-item:hover {
    border-color: var(--sakura);
    background: var(--sakura-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.ribbon-item i {
    color: var(--sakura);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============ STYLE BLOCK ============ */
.style-block {
    max-width: 660px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 44px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.style-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--sakura), var(--sakura-deep));
}

.style-block p {
    margin-bottom: 18px;
    line-height: 2;
    color: var(--text);
    padding-left: 20px;
}

.style-block p:last-child { margin-bottom: 0; }

/* ============ CONTACT ============ */
.contact-wrap {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-wrap p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.9;
}

/* ============ FOOTER ============ */
footer {
    text-align: center;
    padding: 36px 0;
    background: var(--text-heading);
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}

/* ============ SCROLL TOP ============ */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 99;
    border: none; outline: none;
    background: var(--sakura);
    color: white;
    cursor: pointer;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(236,72,153,0.25);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn[style*="display: flex"],
#scrollTopBtn[style*="display: block"] {
    display: flex !important;
}

#scrollTopBtn:hover {
    background: var(--sakura-deep);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(236,72,153,0.35);
}

/* ============ ANIMATIONS ============ */
.slide-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%; top: 60px;
        flex-direction: column;
        background: rgba(255,255,255,0.99);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        padding: 20px 0;
        gap: 4px;
    }

    .nav-menu.active { left: 0; }

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

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .exp-item {
        flex-direction: column;
        gap: 8px;
    }

    .exp-marker {
        text-align: left;
        width: auto;
    }

    .edu-card-jp {
        flex-direction: column;
        padding: 32px;
    }

    .style-block { padding: 32px; }
    .contact-wrap { padding: 32px; }
    .section { padding: 64px 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }

    .hero-buttons { flex-direction: column; align-items: center; }

    .btn { width: 100%; justify-content: center; text-align: center; }

    .skills-ribbon { flex-direction: column; align-items: stretch; }
}
