/* ===========================================
   TOYBOX INC. — v2 Illustration Edition
   =========================================== */

:root {
    --c-bg: #F8F5F0;
    --c-bg-alt: #EFECE6;
    --c-text: #1A1A1A;
    --c-text-2: #6B6560;
    --c-text-3: #A8A098;
    --c-accent: #3D7A7A;
    --c-yellow: #E8B82B;
    --c-blue: #2BA4B5;
    --c-border: #DDD8D0;

    --f-display: 'Nunito', sans-serif;
    --f-body: 'Nunito', 'Zen Maru Gothic', sans-serif;
    --f-jp: 'Zen Maru Gothic', sans-serif;

    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --container-pad: clamp(20px, 5vw, 80px);
}


/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 16px; line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--c-accent); color: #fff; }


/* ===========================================
   Loader
   =========================================== */
.loader {
    position: fixed; inset: 0; z-index: 10001;
    background: var(--c-bg);
    display: flex; align-items: center; justify-content: center;
}
.loader__text {
    font-family: var(--f-display); font-weight: 900;
    font-size: 1.2rem;
}


/* --- Container --- */
.container {
    max-width: 1100px; margin: 0 auto;
    padding: 0 var(--container-pad);
}


/* ===========================================
   Navigation
   =========================================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px var(--container-pad);
    transition: transform 0.4s var(--ease-expo), background 0.3s;
}
.nav.is-scrolled {
    background: rgba(248, 245, 240, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--c-border);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__logo {
    font-family: var(--f-display); font-weight: 900;
    font-size: 1.15rem; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 6px;
    z-index: 101;
}
.nav__box { width: 44px; height: auto; flex-shrink: 0; }

.nav__toggle {
    z-index: 101; width: 28px; height: 16px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.nav__toggle span {
    display: block; height: 2px; background: var(--c-text);
    border-radius: 2px; transition: all 0.3s var(--ease-expo);
}
.nav__toggle span:first-child { width: 28px; }
.nav__toggle span:last-child { width: 18px; }
.nav__toggle.is-active span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:last-child { transform: translateY(-7px) rotate(-45deg); width: 28px; }


/* --- Nav Overlay --- */
.nav-overlay {
    position: fixed; inset: 0; z-index: 99;
    background: var(--c-bg);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.5s var(--ease-expo);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-overlay__list { text-align: center; }
.nav-overlay__list li { overflow: hidden; }
.nav-overlay__list a {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(2rem, 7vw, 4.5rem);
    display: block; padding: 0.15em 0;
    transform: translateY(110%);
    transition: transform 0.6s var(--ease-expo), color 0.3s;
}
.nav-overlay.is-open .nav-overlay__list a { transform: translateY(0); }
.nav-overlay__list li:nth-child(1) a { transition-delay: 0.05s; }
.nav-overlay__list li:nth-child(2) a { transition-delay: 0.1s; }
.nav-overlay__list li:nth-child(3) a { transition-delay: 0.15s; }
.nav-overlay__list li:nth-child(4) a { transition-delay: 0.2s; }
@media (hover: hover) { .nav-overlay__list a:hover { color: var(--c-accent); } }


/* ===========================================
   Hero — Box + letters burst
   =========================================== */
.hero {
    position: relative;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    padding: 0 var(--container-pad);
    overflow: hidden;
}

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

/* Box logo */
.hero__box-area {
    width: clamp(120px, 18vw, 200px);
    margin: 0 auto clamp(20px, 3vh, 36px);
}
.hero__box { width: 100%; height: auto; display: block; }

/* Colored letters */
.hero__letters {
    display: flex; justify-content: center;
    gap: clamp(2px, 0.5vw, 8px);
    margin-bottom: clamp(24px, 4vh, 40px);
}

.hero__letter {
    display: inline-block;
    font-family: var(--f-display); font-weight: 900;
    font-size: clamp(2.8rem, 9vw, 7rem);
    line-height: 1;
    color: var(--c);
    will-change: transform;
    cursor: default;
}

.hero__meta {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(10px, 2vw, 20px);
}
.hero__inc {
    font-family: var(--f-display); font-weight: 700;
    font-size: clamp(0.65rem, 1vw, 0.85rem);
    letter-spacing: 0.2em; color: var(--c-text-2);
}
.hero__dash { width: clamp(20px, 3vw, 40px); height: 1.5px; background: var(--c-border); }
.hero__tagline {
    font-family: var(--f-jp); font-weight: 500;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    color: var(--c-text-2); letter-spacing: 0.06em;
}

.hero__scroll {
    position: absolute; bottom: clamp(16px, 3vh, 36px);
    left: 50%; transform: translateX(-50%); color: var(--c-text-3);
}
.hero__scroll svg { animation: hintBounce 1.5s ease-in-out infinite; }
@keyframes hintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }


/* ===========================================
   Section Tag
   =========================================== */
.section-tag {
    font-family: var(--f-display); font-size: 0.72rem;
    font-weight: 700; letter-spacing: 0.12em;
    color: var(--c-accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: clamp(28px, 4vh, 48px);
}


/* ===========================================
   About
   =========================================== */
.about {
    padding: clamp(140px, 22vh, 280px) 0;
}

.about__heading {
    font-family: var(--f-jp); font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: 1.15;
    margin-bottom: clamp(40px, 6vh, 72px);
    letter-spacing: -0.02em;
}

.about__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
}

.about__col p {
    color: var(--c-text-2);
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    line-height: 2.1;
    margin-bottom: 1.5em;
}
.about__col p:last-child { margin-bottom: 0; }

/* Characters: shared */
.char { overflow: visible; }
.char--hero { width: 100%; }

@media (max-width: 768px) {
    .about__heading { font-size: clamp(1.8rem, 8vw, 2.8rem); }
    .about__body { grid-template-columns: 1fr; }
}


/* ===========================================
   Services
   =========================================== */
.services {
    padding: clamp(100px, 16vh, 200px) 0;
    background: var(--c-bg-alt);
    border-radius: 32px;
    margin: 0 12px;
}

/* Services: horizontal line layout (not cards) */
.services__list { }

.services__item {
    display: grid;
    grid-template-columns: clamp(48px, 7vw, 80px) 1fr;
    gap: clamp(16px, 3vw, 40px);
    padding: clamp(28px, 4vh, 48px) 0;
    border-top: 1.5px solid var(--c-border);
    align-items: start;
}
.services__item:last-child { border-bottom: 1.5px solid var(--c-border); }

.services__num {
    font-family: var(--f-display); font-weight: 900;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--c-border); line-height: 1;
    transition: color 0.4s;
}
@media (hover: hover) { .services__item:hover .services__num { color: var(--c-accent); } }

.services__body h3 {
    font-family: var(--f-jp); font-weight: 700;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    margin-bottom: 0.6em;
}
.services__body p {
    color: var(--c-text-2);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.9; max-width: 520px;
}

@media (max-width: 768px) {
    .services__item { grid-template-columns: 1fr; gap: 8px; }
    .services__num { font-size: 1.4rem; }
    .services { border-radius: 24px; margin: 0 8px; }
}


/* ===========================================
   Approach (NEW v3)
   =========================================== */
.approach {
    padding: clamp(100px, 16vh, 200px) 0;
    background: var(--c-bg-alt);
    border-radius: 32px;
    margin: 0 12px;
}

.approach__heading {
    font-family: var(--f-jp); font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: clamp(40px, 6vh, 72px);
}

.approach__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 32px);
}

.approach__step {
    position: relative;
    padding: clamp(24px, 3vw, 36px);
    background: var(--c-bg);
    border-radius: 16px;
    transition: transform 0.3s var(--ease-expo), box-shadow 0.3s;
}
@media (hover: hover) {
    .approach__step:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    }
}

.approach__num {
    font-family: var(--f-display); font-weight: 800;
    font-size: 2rem; color: var(--c-border);
    line-height: 1; display: block; margin-bottom: 12px;
}

.approach__step h3 {
    font-family: var(--f-jp); font-weight: 700;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    margin-bottom: 0.5em;
}

.approach__step p {
    color: var(--c-text-2);
    font-size: clamp(0.78rem, 0.9vw, 0.88rem);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .approach { border-radius: 24px; margin: 0 8px; }
    .approach__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .approach__steps { grid-template-columns: 1fr; }
}


/* ===========================================
   Vision
   =========================================== */
.vision {
    padding: clamp(160px, 25vh, 320px) 0;
    text-align: center;
}

.vision__text {
    font-family: var(--f-jp); font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3.2rem);
    line-height: 1.65;
    color: var(--c-accent);
    margin-bottom: clamp(48px, 7vh, 88px);
    letter-spacing: 0.02em;
}

.vision__members {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(12px, 3vw, 32px);
}
.char--member { width: auto; }
.char--m2 { height: clamp(72px, 11vw, 88px); transform: rotate(2deg); }
.char--m1 { height: clamp(70px, 11vw, 85px); transform: rotate(-3deg); }
.char--m3 { height: clamp(65px, 10vw, 80px); transform: rotate(-2deg); }


/* ===========================================
   Company
   =========================================== */
.company {
    padding: clamp(100px, 16vh, 200px) 0;
}

.company__list { max-width: 700px; }

.company__row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: clamp(16px, 2.5vh, 28px) 0;
    border-bottom: 1px solid var(--c-border);
}
.company__row:first-child { border-top: 1px solid var(--c-border); }

.company__row dt {
    font-family: var(--f-display); font-size: 0.75rem;
    font-weight: 700; letter-spacing: 0.08em; color: var(--c-text-3);
}
.company__row dd {
    font-family: var(--f-display); font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .company__row { flex-direction: column; gap: 4px; }
}


/* ===========================================
   Contact
   =========================================== */
.contact {
    padding: clamp(120px, 18vh, 240px) 0;
    background: var(--c-accent);
    color: #fff;
    border-radius: 32px;
    margin: 0 12px;
    margin-bottom: 40px;
}

.contact__layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

.contact__heading {
    font-family: var(--f-jp); font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.25; margin-bottom: 0.4em;
}

.contact__sub {
    font-size: clamp(0.8rem, 1vw, 0.92rem);
    opacity: 0.8; line-height: 1.7;
    margin-bottom: clamp(24px, 3vh, 40px);
}

/* Contact form */
.contact__form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__form input,
.contact__form textarea {
    width: 100%; padding: 14px 18px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 10px; color: #fff;
    font-family: var(--f-body); font-size: 0.9rem;
    outline: none; transition: border-color 0.3s;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact__form input:focus,
.contact__form textarea:focus { border-color: rgba(255,255,255,0.6); }
.contact__form textarea { resize: vertical; min-height: 100px; }
.form__submit {
    align-self: flex-start;
    padding: 14px 36px;
    background: #fff; color: var(--c-accent);
    font-family: var(--f-display); font-weight: 800;
    font-size: 0.95rem; border: none; border-radius: 100px;
    cursor: pointer; transition: opacity 0.3s, transform 0.3s;
}
@media (hover: hover) { .form__submit:hover { opacity: 0.9; transform: translateY(-1px); } }
.contact__alt {
    font-size: 0.78rem; opacity: 0.6;
}
.contact__alt a { text-decoration: underline; }

.contact__email {
    font-family: var(--f-display); font-weight: 700;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    transition: background 0.3s, gap 0.3s;
}
@media (hover: hover) {
    .contact__email:hover { background: rgba(255,255,255,0.25); gap: 16px; }
}

.contact__dogs {
    display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 20px);
    justify-content: center;
}
.contact__dog { width: clamp(100px, 16vw, 160px); }

/* Tail wag animation */
.dog-tail {
    transform-origin: 20px 36px;
    animation: tailWag 0.4s ease-in-out infinite alternate;
}
@keyframes tailWag {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

@media (max-width: 768px) {
    .contact__layout { grid-template-columns: 1fr; text-align: center; }
    .contact { border-radius: 24px; margin: 0 8px 24px; }
    .contact__email { justify-content: center; }
}


/* ===========================================
   Footer
   =========================================== */
.footer { padding: 24px 0 32px; }
.footer__inner {
    display: flex; justify-content: space-between; align-items: center;
}
.footer__logo {
    font-family: var(--f-display); font-weight: 800;
    font-size: 0.8rem;
}
.footer__dogs {
    display: flex; align-items: center; gap: 6px;
}
.footer__dog { width: 50px; opacity: 0.35; }
.footer__dog--flip { transform: scaleX(-1); }
.footer__links {
    display: flex; align-items: center; gap: 16px;
}
.footer__link {
    font-size: 0.68rem; color: var(--c-text-3);
    transition: color 0.3s;
}
.footer__link:hover { color: var(--c-text-2); }
.footer__copy { font-size: 0.68rem; color: var(--c-text-3); }


/* ===========================================
   Member Speech Bubble
   =========================================== */
.member-bubble {
    position: absolute;
    top: -40px;
    transform: translateX(-50%);
    font-family: var(--f-jp); font-weight: 700;
    font-size: 0.78rem;
    color: var(--c-text);
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}
.member-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
}


/* ===========================================
   Easter Egg Toast
   =========================================== */
.easter-toast {
    position: fixed;
    bottom: clamp(24px, 4vh, 48px);
    left: 50%; transform: translateX(-50%);
    font-family: var(--f-jp); font-weight: 700;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    letter-spacing: 0.08em;
    color: var(--c-text);
    background: var(--c-bg);
    border: 2px solid var(--c-accent);
    padding: 14px 32px;
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    z-index: 10000;
    white-space: nowrap;
    pointer-events: none;
}


/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
    .nav { padding: 14px 16px; }
    .nav__box { width: 36px; height: auto; }

    /* Hero */
    .hero__box-area { width: clamp(100px, 25vw, 140px); }
    .hero__letter { font-size: clamp(2.2rem, 11vw, 3.5rem); }
    .hero__meta { flex-direction: column; gap: 4px; align-items: center; }
    .hero__dash { display: none; }

    /* About */
    /* About already handled above */

    /* Services */
    .services__item { grid-template-columns: 1fr; gap: 8px; }
    .services__num { font-size: 1.4rem; }

    /* Vision */
    .vision__text { font-size: clamp(1.15rem, 5vw, 1.6rem); }
    .char--m2 { height: 68px; }
    .char--m1 { height: 65px; }
    .char--m3 { height: 60px; }

    /* Contact */
    .contact__heading { font-size: clamp(1.6rem, 7vw, 2.4rem); }
    .contact__email { justify-content: center; font-size: 0.85rem; }
    .contact__dog { width: clamp(70px, 20vw, 100px); }
    .contact__dogs { margin-top: 24px; }
    .form__row { grid-template-columns: 1fr; }
    .form__submit { align-self: stretch; }
    .contact__alt { text-align: center; }

    /* Footer */
    .footer__dog { width: 32px; }
}
@media (max-width: 360px) {
    :root { --container-pad: 16px; }
    .hero__letter { font-size: 2rem; }
}
