@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --bg-color: #FFF8E1;
    /* Cream */
    --white: #ffffff;
    --main-color: #FE7A0F;
    /* Nene Orange */
    --accent-color: #FFB65D;
    /* Nene Yellow */
    --text-color: #333333;
    --gray-light: #f4f4f4;
    --font-primary: 'Zen Maru Gothic', sans-serif;
    --max-width: 1100px;
    --header-height: 80px;
    --primary-color: var(--main-color);
    /* Alias for consistency */
    --transition-speed: 0.4s;
}

/* Animation Utilities */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.is-visible {
    opacity: 1;
}

/* Page Transition Overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.83, 0, 0.17, 1);
}

.page-loader.loaded {
    transform: translateY(-100%);
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-20px);
    }
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    letter-spacing: 0.05em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Layout & Common
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: left;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--main-color);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--main-color);
    font-weight: 700;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(to right, var(--main-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 5px 15px rgba(254, 122, 15, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(254, 122, 15, 0.5);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 100%;
    max-width: 95%;
    /* Expanded to create space in center */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 40px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--main-color);
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--text-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background-color: var(--main-color);
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active State */
.nav.active {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.nav.active .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--white);
    overflow: hidden;
}

/* Cute Background Pattern */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--bg-color) 20%, transparent 20%),
        radial-gradient(var(--bg-color) 20%, transparent 20%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.6;
    z-index: 0;
    animation: bgMove 60s linear infinite;
}

@keyframes bgMove {
    0% {
        background-position: 0 0, 20px 20px;
    }

    100% {
        background-position: 1000px 1000px, 1020px 1020px;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-color);
    text-shadow: 2px 2px 0 var(--bg-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--main-color);
    font-weight: 700;
}

.scroll-down {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    color: var(--text-color);
}

.scroll-down::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background-color: var(--text-color);
    margin: 10px auto 0;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ==========================================================================
   Mission
   ========================================================================== */
.section-mission {
    background-color: var(--white);
}

.mission-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.mission-item {
    flex: 1;
    background-color: var(--bg-color);
    padding: 60px 40px;
    border-radius: 40px;
    /* Cute rounded corners */
    position: relative;
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 10px;
    height: 10px;
    background-color: var(--main-color);
    border-radius: 50%;
}

.mission-item h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.accent-text {
    color: var(--main-color);
}

/* ==========================================================================
   Services
   ========================================================================== */
.section-services {
    background-color: #fafafa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
    border-bottom: 5px solid var(--bg-color);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--main-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    /* English Title */
    margin-bottom: 5px;
    color: var(--text-color);
}

.service-name {
    font-size: 1rem;
    /* Japanese Title */
    color: var(--main-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.service-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* ==========================================================================
   Company
   ========================================================================== */
.section-company {
    background-color: var(--white);
}

.company-info {
    max-width: 900px;
    margin: 0 auto;
    border-top: 2px solid var(--bg-color);
}

.company-row {
    display: flex;
    border-bottom: 2px solid var(--bg-color);
    padding: 30px 0;
}

.company-row dt {
    width: 25%;
    font-weight: 700;
    color: var(--main-color);
}

.company-row dd {
    width: 75%;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.section-contact {
    background-color: var(--bg-color);
    text-align: center;
    padding: 120px 0;
}

.contact-title {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-bottom: 20px;
}

.contact-text {
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.btn-large {
    padding: 20px 60px;
    font-size: 1.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 80px 0 30px;
    text-align: center;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.9rem;
    color: #aaa;
}

.footer-nav a:hover {
    color: var(--white);
    font-weight: bold;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .header-container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 1000;
        opacity: 0;
        /* Add opacity transition fix */
        visibility: hidden;
    }

    .nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-list a {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .mission-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .company-row {
        flex-direction: column;
    }

    .company-row dt {
        width: 100%;
        margin-bottom: 10px;
    }

    .company-row dd {
        width: 100%;
    }
}

/* ==========================================================================
   Message
   ========================================================================== */
.section-message {
    background-color: var(--white);
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.message-heading {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 40px;
    line-height: 1.5;
}

.message-text {
    font-size: 1.05rem;
    margin-bottom: 30px;
    text-align: left;
    display: inline-block;
    text-align: left;
}

/* On mobile, full width */
@media (max-width: 768px) {
    .message-text {
        display: block;
    }
}

.message-signature {
    margin-top: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
    color: var(--text-color);
}

/* =========================================
   Target Menu Styles
   ========================================= */
.section-target-menu {
    padding: 0;
    margin-top: -50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.target-menu-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.target-menu-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-gray);
}

.target-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(230, 100, 100, 0.15);
    border-color: var(--primary-color);
}

.target-en {
    display: block;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.target-jp {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.target-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

/* =========================================
   Sub-Page Styles
   ========================================= */
.page-header {
    height: 40vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden;
    padding-top: 80px;
}

.recruit-header .hero-bg {
    background: radial-gradient(circle at top right, #fff0f5 0%, #ffffff 100%);
}

.corporate-header .hero-bg {
    background: radial-gradient(circle at top left, #f0f8ff 0%, #ffffff 100%);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    z-index: 1;
}

.section-title-sub {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.section-lead {
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 4rem;
}

.service-detail {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.service-points h4,
.service-description h4,
.recruit-requirements h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.mt-50 {
    margin-top: 50px;
}

.cta-area {
    text-align: center;
    background: #fff0f5;
    padding: 60px 20px;
    border-radius: 30px;
}

.cta-area p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Service List Grid for Corporate */
.service-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.service-card-large {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--light-gray);
}

.service-card-large h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.recruit-requirements .company-row {
    border-bottom: 1px solid var(--light-gray);
    padding: 20px 0;
}

.recruit-requirements .company-row:last-child {
    border-bottom: none;
}

/* New Mobile Responsive Styles for added elements */
@media (max-width: 768px) {
    .target-menu-list {
        flex-direction: column;
        align-items: center;
    }

    .target-menu-item {
        width: 100%;
        max-width: none;
    }

    .service-list-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .section-title-sub {
        font-size: 1.5rem;
    }

    .section-lead {
        font-size: 1rem;
        text-align: left;
    }
}

/* =========================================
   Animations
   ========================================= */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Floating "Breathing" Effect */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

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

/* Bounce for Buttons */
@keyframes jelly {

    0%,
    100% {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(0.95, 1.05);
    }

    50% {
        transform: scale(1.05, 0.95);
    }

    75% {
        transform: scale(0.98, 1.02);
    }
}

/* Utility Classes */
.animate-on-scroll {
    opacity: 0;
    /* Hidden by default */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Element Specific Animations */
.hero-title {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.service-card:hover,
.target-menu-item:hover,
.service-card-large:hover {
    transition: transform 0.3s ease;
    transform: translateY(-10px);
}

.btn:hover {
    animation: jelly 0.5s;
}

/* Floating background elements (if any) */
.hero-bg {
    animation: float 6s ease-in-out infinite;
}

/* =========================================
   Entry Form Styles
   ========================================= */
.entry-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-lead {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.required-note {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: 700;
}

.form-section {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    border: 1px solid var(--gray-light);
}

.form-section-title {
    font-size: 1.4rem;
    color: var(--main-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-group.half {
    width: 50%;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.form-label.required::after {
    content: '必須';
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--bg-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s;
    background-color: #fafafa;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
}

.radio-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    margin-right: 8px;
    accent-color: var(--main-color);
    width: 18px;
    height: 18px;
}

.form-textarea {
    resize: vertical;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

/* Privacy Box */
.privacy-box {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.privacy-box h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.agreement-check {
    text-align: center;
    margin-top: 20px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--main-color);
}

.form-actions {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-section {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   Advanced Animations
   ========================================================================== */

/* Mouse Stalker */
.mouse-stalker {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: rgba(254, 122, 15, 0.5);
    /* Main color with opacity */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: multiply;
}

.mouse-stalker.is-hover {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 182, 93, 0.3);
    /* Accent color lighter */
}

@media (max-width: 768px) {
    .mouse-stalker {
        display: none !important;
    }
}

/* Parallax Utilities */
.parallax-wrapper {
    overflow: hidden;
}

/* Number Counter */
.counter-box {
    text-align: center;
    margin: 20px 0;
}

.counter-num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--main-color);
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* ==========================================================================
   Phase 7: New Animations
   ========================================================================== */

/* 1. Page Transitions */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.fade-in {
    opacity: 1;
}

/* 2. Blob Background */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(40px);
    opacity: 0.4;
    animation: blob-float 20s infinite alternate;
}

.blob:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #ffcdb2;
    animation-delay: 0s;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #ffb4a2;
    animation-delay: -5s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.blob:nth-child(3) {
    top: 50%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: #e5989b;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, 40px) rotate(20deg);
    }
}

/* 3. Magnetic Button */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 4. Typing Effect Cursor */
/* Language Switcher */
.lang-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.lang-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    border: 2px solid var(--main-color);
}

.lang-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: #fff5e6;
}

.lang-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 2px solid #eee;
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    color: var(--text-color);
}

.lang-option:hover {
    background: #fff0f5;
    color: var(--main-color);
}

.lang-flag {
    margin-right: 10px;
    font-size: 1.2rem;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Phase 11: Playful Features */

/* Day Signboard (CSS Illustration) */
.day-sign-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    animation: float-sign 4s infinite ease-in-out;
    transform-origin: top center;
    margin-top: 20px;
}

.day-sign {
    position: relative;
    width: 160px;
    height: 100px;
    background: #eebb4d;
    /* Wood base color */
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0px, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 10px),
        linear-gradient(to bottom, #f4c86b, #eebb4d);
    border-radius: 15px;
    box-shadow:
        inset 0 0 0 5px rgba(139, 69, 19, 0.1),
        /* Inner rim */
        0 5px 0 #8b4513,
        /* 3D depth */
        0 10px 10px rgba(0, 0, 0, 0.1);
    /* Shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #8b4513;
}

/* Wood grain detail (knots) - Optional simplicity */
.day-sign::before,
.day-sign::after {
    content: '';
    position: absolute;
    top: -20px;
    width: 6px;
    height: 25px;
    background: #d2a679;
    border: 2px solid #8b4513;
    border-radius: 4px;
    z-index: -1;
}

.day-sign::before {
    left: 40px;
    transform: rotate(-5deg);
}

.day-sign::after {
    right: 40px;
    transform: rotate(5deg);
}

/* Ropes */
.day-sign-wrapper::before,
.day-sign-wrapper::after {
    content: '';
    position: absolute;
    top: -40px;
    /* Attach to top of screen */
    width: 4px;
    height: 60px;
    /* Enough to go off-screen */
    background: repeating-linear-gradient(45deg, #cc9966, #cc9966 5px, #996633 5px, #996633 10px);
    z-index: -2;
}

.day-sign-wrapper::before {
    left: 45px;
}

.day-sign-wrapper::after {
    right: 45px;
}


.day-sign-label {
    font-size: 0.8rem;
    color: #8b4513;
    font-weight: 800;
    letter-spacing: 0.2em;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 5px;
}

.day-sign-text {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-family: 'Zen Maru Gothic', sans-serif;
    text-shadow: 2px 2px 0 #8b4513;
    -webkit-text-stroke: 1px #8b4513;
}

/* Hover effect */
.day-sign:hover {
    transform: translateY(-2px);
}

/* Pointing Character */
.day-sign-char {
    font-size: 2.5rem;
    margin-top: 20px;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.1));
    z-index: 1;
    transform: rotate(15deg);
}

@media (max-width: 1024px) {
    .day-sign-wrapper {
        left: 50%;
        /* Center on tablet */
        transform: translateX(-50%);
        top: 80px;
        /* Move below header on mobile/tablet */
    }

    .header-container {
        position: static !important;
        /* Allow absolute positioning relative to window or adjust */
    }
}

@media (max-width: 768px) {
    .day-sign-wrapper {
        display: none !important;
        /* Hide on mobile to save space */
        margin: 0;
    }
}

@keyframes float-sign {
    0% {
        transform: translateY(0) rotate(0deg);
    }

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

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

/* Peeping Character */
.peeping-character {
    position: fixed;
    bottom: -10px;
    left: 5%;
    width: 100px;
    height: 100px;
    font-size: 80px;
    text-align: center;
    line-height: 100px;
    z-index: 9990;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.peeping-character.is-peeping {
    transform: translateY(10%);
}

.peeping-character:hover {
    transform: translateY(-20%);
}

.peeping-character .bubble {
    position: absolute;
    top: -40px;
    left: 80px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border: 1px solid var(--main-color);
}

.peeping-character:hover .bubble {
    opacity: 1;
}

@media (max-width: 1024px) {
    .day-sign {
        width: 120px;
        /* Slightly smaller on intermediate */
        height: 80px;
    }
}

@media (max-width: 768px) {
    .day-sign {
        width: 90px;
        height: 70px;
        font-size: 0.8rem;
    }

    .day-sign-icon {
        font-size: 1.5rem;
    }

    .peeping-character {
        left: 0;
        font-size: 60px;
    }
}