/* ===== Google Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kawaii Pink Palette */
    --color-primary: #F06292;
    --color-primary-dark: #E91E63;
    --color-primary-light: #FCE4EC;
    --color-primary-lighter: #FFF0F5;
    --color-accent: #06C755;        /* LINE green */
    --color-accent-dark: #05A847;
    --color-bg: #FFFBFC;
    --color-bg-alt: #FFF5F7;
    --color-text: #4A3543;
    --color-text-light: #8A7080;
    --color-text-white: #FFFFFF;
    --color-border: #FFE0EB;
    --color-card-bg: #FFFFFF;
    --color-yellow: #FFE082;
    --color-lavender: #E8D5F5;

    /* Typography */
    --font-family: "Zen Maru Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    --font-size-hero: clamp(1.6rem, 5vw, 2.5rem);
    --font-size-h2: clamp(1.3rem, 4vw, 1.85rem);
    --font-size-h3: clamp(1.05rem, 3vw, 1.25rem);
    --font-size-body: clamp(0.88rem, 2.5vw, 1rem);
    --font-size-sm: 0.85rem;

    /* Spacing */
    --section-padding: clamp(2.5rem, 8vw, 4.5rem);
    --container-max: 960px;
    --container-padding: 1.25rem;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(240, 98, 146, 0.08);
    --shadow-md: 0 4px 20px rgba(240, 98, 146, 0.1);
    --shadow-lg: 0 8px 32px rgba(240, 98, 146, 0.15);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Kawaii Decorations ===== */
/* Floating sakura petals */
.sakura-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sakura {
    position: absolute;
    top: -20px;
    opacity: 0.6;
    animation: sakura-fall linear infinite;
}

.sakura::before {
    content: '🌸';
    font-size: 1rem;
}

.sakura:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; }
.sakura:nth-child(2) { left: 15%; animation-duration: 10s; animation-delay: 1s; font-size: 0.8rem; }
.sakura:nth-child(3) { left: 30%; animation-duration: 9s; animation-delay: 3s; }
.sakura:nth-child(4) { left: 50%; animation-duration: 11s; animation-delay: 2s; }
.sakura:nth-child(5) { left: 65%; animation-duration: 8.5s; animation-delay: 4s; }
.sakura:nth-child(6) { left: 80%; animation-duration: 10.5s; animation-delay: 1.5s; }
.sakura:nth-child(7) { left: 92%; animation-duration: 9.5s; animation-delay: 3.5s; }

@keyframes sakura-fall {
    0% { transform: translateY(-20px) rotate(0deg) translateX(0); opacity: 0.7; }
    25% { transform: translateY(25vh) rotate(90deg) translateX(20px); opacity: 0.6; }
    50% { transform: translateY(50vh) rotate(180deg) translateX(-15px); opacity: 0.5; }
    75% { transform: translateY(75vh) rotate(270deg) translateX(25px); opacity: 0.3; }
    100% { transform: translateY(105vh) rotate(360deg) translateX(-10px); opacity: 0; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-family);
    font-weight: 700;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    line-height: 1.4;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 16px rgba(240, 98, 146, 0.35);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--font-size-sm); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

.btn-line {
    background: var(--color-accent);
    color: var(--color-text-white);
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-line:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 16px rgba(6, 199, 85, 0.35);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
    padding: 0.75rem 0;
}

.navbar.scrolled {
    background: rgba(255, 251, 252, 0.95);
    box-shadow: 0 2px 12px rgba(240, 98, 146, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo { display: flex; align-items: center; gap: 0.5rem; }

.navbar-cta { border-radius: 100px; }

/* ===== Hero ===== */
.hero {
    padding: calc(4.5rem + 60px) 0 var(--section-padding);
    background: linear-gradient(170deg, #FFF0F5 0%, #FFFFFF 40%, #FFF5F7 70%, #F8F0FF 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Cute dots pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle, rgba(240,98,146,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-mascot {
    margin: 0 auto 1.25rem;
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 900;
    line-height: 1.35;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: var(--font-size-sm);
    font-weight: 700;
    border-radius: 100px;
    border: 1.5px solid rgba(240, 98, 146, 0.15);
}

.hero-cta {
    display: inline-flex;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(240, 98, 146, 0.35);
    animation: pulse-pink 2s infinite;
}

@keyframes pulse-pink {
    0%, 100% { box-shadow: 0 4px 20px rgba(240, 98, 146, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(240, 98, 146, 0.5); }
}

.hero-note {
    margin-top: 1rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ===== Wave Separator ===== */
.wave-separator {
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* ===== Sections ===== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-title {
    font-size: var(--font-size-h2);
    font-weight: 900;
    text-align: center;
    margin-bottom: 2.25rem;
    position: relative;
}

.section-title .title-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin: 0.6rem auto 0;
    border-radius: 4px;
}

.section-title-white { color: var(--color-text-white); }
.section-title-white::after { background: rgba(255,255,255,0.6); }

/* ===== Grid ===== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Cards (Highlights) ===== */
.card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1.5px solid rgba(240, 98, 146, 0.08);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary), var(--color-primary-light));
    border-radius: 4px 4px 0 0;
}

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

.card-icon {
    margin-bottom: 1rem;
    font-size: 3rem;
    line-height: 1;
}

.card-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.card-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===== Job Details ===== */
.job-list {
    max-width: 660px;
    margin: 0 auto;
}

.job-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem;
    background: var(--color-card-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
    border: 1.5px solid rgba(240, 98, 146, 0.06);
}

.job-item:hover { transform: translateX(4px); }

.job-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--color-primary-light);
    border-radius: 12px;
}

.job-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--color-text);
}

.job-item p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ===== Benefits ===== */
.benefit-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--color-card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    transition: transform var(--transition);
    border: 1.5px solid rgba(240, 98, 146, 0.06);
}

.benefit-card:hover { transform: translateY(-2px); }

.benefit-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-lighter);
    border-radius: 10px;
}

/* ===== Apply Section ===== */
.section-apply {
    background: linear-gradient(135deg, #F06292 0%, #E91E63 50%, #AD1457 100%);
    padding: var(--section-padding) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-apply::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.apply-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.apply-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 360px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.apply-buttons-center { text-align: center; }

.apply-buttons .btn {
    border-radius: 100px;
    width: 100%;
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #06C755 0%, #04B34B 100%);
    box-shadow: 0 6px 24px rgba(6, 199, 85, 0.45);
    animation: bounce-cta 2s infinite;
}

/* ===== Code Popup Overlay ===== */
.code-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(74, 53, 67, 0.65);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.code-overlay.show { display: flex; }

.code-popup {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(240, 98, 146, 0.2);
    animation: popup-in 0.3s ease;
    border: 2px solid var(--color-primary-light);
    position: relative;
}

.code-popup::before {
    content: '🌸';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes popup-in {
    from { transform: scale(0.85) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.code-popup-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.code-popup-display {
    background: var(--color-primary-lighter);
    color: var(--color-primary-dark);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 6px;
    padding: 0.875rem 1.5rem;
    border-radius: 16px;
    display: inline-block;
    cursor: pointer;
    user-select: all;
    -webkit-user-select: all;
    border: 2px dashed var(--color-primary);
    transition: 0.2s;
}

.code-popup-display:active {
    transform: scale(0.97);
    background: var(--color-primary-light);
}

.code-popup-tap { font-size: 0.8rem; color: #aaa; margin-top: 0.5rem; }

.code-popup-copied {
    font-size: 0.9rem;
    color: #2E7D32;
    font-weight: 700;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.code-popup-copied.show { opacity: 1; }

.code-popup-hint {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.code-popup-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 100px;
}

/* ===== Footer ===== */
.footer {
    background: #2D1F2B;
    color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 0 6rem;
    text-align: center;
    font-size: var(--font-size-sm);
}

.footer-company {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-primary-light); }

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ===== Fixed Bottom CTA ===== */
.fixed-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: linear-gradient(0deg, rgba(255,251,252,1) 60%, rgba(255,251,252,0));
    padding: 1rem var(--container-padding) 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.btn-fixed {
    display: flex;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    border-radius: 100px;
    background: linear-gradient(135deg, #06C755 0%, #04B34B 100%);
    box-shadow: 0 6px 24px rgba(6, 199, 85, 0.45);
    animation: bounce-cta 2s infinite;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 199, 85, 0.55);
}

.btn-fixed:active { transform: translateY(0); }
.btn-fixed svg { width: 24px; height: 24px; }

@keyframes bounce-cta {
    0%, 100% { transform: translateY(0); }
    15% { transform: translateY(-5px); }
    30% { transform: translateY(0); }
    45% { transform: translateY(-3px); }
    60% { transform: translateY(0); }
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .hero { padding-top: calc(5.5rem + 60px); }
    .apply-buttons { max-width: 380px; }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: calc(6rem + 80px);
        padding-bottom: calc(var(--section-padding) + 1rem);
    }
    .card { padding: 2.5rem 2rem; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    .sakura { display: none; }
}
