/* ===== Variables ===== */
:root {
    --color-text: #2b2b35;
    --color-text-soft: #5b5b66;
    --color-bg: #ffffff;
    --color-bg-soft: #faf7f2;
    --color-bg-cream: #fbf3ea;
    --color-primary: #5b2d8e;   /* brave toys purple */
    --color-primary-dark: #47206f;
    --color-red: #e63b3b;
    --color-yellow: #f0a500;
    --color-blue: #3b7de6;
    --color-purple: #8a5cd1;
    --color-pink: #ec6fa6;
    --color-navy: #1f2a44;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 14px rgba(31, 42, 68, 0.07);
    --shadow-md: 0 12px 34px rgba(31, 42, 68, 0.12);
    --max-width: 1200px;
    --font-head: 'Quicksand', 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', 'Quicksand', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Layout helpers ===== */
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-eyebrow {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .22em;
    font-size: .8rem;
    color: var(--color-primary);
    margin-bottom: .6rem;
}
.section-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    color: var(--color-navy);
    margin-bottom: 1.1rem;
    line-height: 1.3;
}
.section-desc { color: var(--color-text-soft); font-size: 1.02rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 1.8rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(91, 45, 142, .28);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    transition: box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: .9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo img { height: 62px; width: auto; }
.header-nav ul { display: flex; align-items: center; gap: 2rem; }
.header-nav a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-navy);
    transition: color .2s ease;
}
.header-nav a:hover { color: var(--color-primary); }
.header-nav .nav-cta {
    background: var(--color-primary);
    color: #fff;
    padding: .55rem 1.3rem;
    border-radius: 999px;
}
.header-nav .nav-cta:hover { background: var(--color-primary-dark); color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 3px;
    background: var(--color-navy);
    border-radius: 3px;
    transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #fbf3ea 0%, #f3f8f1 100%);
    padding: 7rem 1.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
}
.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 30%;
    opacity: .35;
    filter: blur(2px);
}
.shape-1 { width: 130px; height: 130px; background: var(--color-yellow); top: 12%; left: 4%; transform: rotate(20deg); }
.shape-2 { width: 90px; height: 90px; background: var(--color-blue); bottom: 14%; left: 42%; transform: rotate(-15deg); }
.shape-3 { width: 70px; height: 70px; background: var(--color-red); top: 18%; right: 46%; }
.shape-4 { width: 150px; height: 150px; background: var(--color-primary); bottom: 8%; right: 6%; transform: rotate(12deg); opacity:.25; }

.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.25;
    color: var(--color-navy);
    margin-bottom: 1.3rem;
}
.hero-lead {
    font-size: 1.08rem;
    color: var(--color-text-soft);
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero-lead strong { color: var(--color-primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.hero-brand span {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .85rem;
    color: var(--color-text-soft);
}
.hero-brand img { height: 90px; width: auto; }

.hero-image {
    position: relative;
    z-index: 2;
    transform: translateY(-160px);
}
.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ===== Products ===== */
.products { padding: 6rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.feature-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: var(--c, var(--color-primary));
}
.feature-card h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-navy);
    margin-bottom: .6rem;
}
.feature-card p { font-size: .92rem; color: var(--color-text-soft); }

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-wide { grid-column: span 2; }

/* ===== About ===== */
.about {
    background: var(--color-bg-cream);
    padding: 6rem 1.5rem;
}
.about-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3.5rem;
    align-items: center;
}
.about-text .section-eyebrow,
.about-text .section-title { text-align: left; }
.about-text .section-title { margin-bottom: 1.2rem; }
.about-lead { color: var(--color-text-soft); margin-bottom: 2rem; }

.company-info {
    background: #fff;
    border-radius: var(--radius);
    padding: .5rem 1.6rem;
    box-shadow: var(--shadow-sm);
}
.info-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #eee5d8;
}
.info-row:last-child { border-bottom: none; }
.info-row dt {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--color-primary);
}
.info-row dd { color: var(--color-text); }

.about-media { position: relative; }
.about-media > img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.about-badge {
    position: absolute;
    left: -16px;
    bottom: -82px;
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.about-badge img { height: 47px; width: auto; margin: 0 auto .35rem; }
.about-badge span {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .75rem;
    color: var(--color-text-soft);
}

/* ===== Contact ===== */
.contact { padding: 6rem 1.5rem; }
.contact-inner { max-width: 840px; margin: 0 auto; }
.contact-form {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field-full { grid-column: span 2; }
.form-field label {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
    color: var(--color-navy);
    margin-bottom: .45rem;
}
.req {
    display: inline-block;
    background: var(--color-red);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .1rem .5rem;
    border-radius: 999px;
    margin-left: .4rem;
    vertical-align: middle;
}
.form-field input,
.form-field select,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: .8rem 1rem;
    border: 2px solid #e6e0d6;
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91,45,142,.15);
}
.form-field textarea { resize: vertical; }
.form-note { font-size: .85rem; color: var(--color-text-soft); margin: 1.3rem 0 1.5rem; }
.form-actions { text-align: center; }
.form-feedback {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    font-family: var(--font-head);
    color: var(--color-primary);
    min-height: 1.4em;
}
.form-feedback.error { color: var(--color-red); }

/* ===== Footer ===== */
.site-footer { background: var(--color-navy); color: #d7dbe6; }
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 2.5rem;
}
.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1rem;
    /* 紫文字のロゴを白抜き（白文字）に変換 */
    filter: brightness(0) invert(1);
}
.footer-company { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: .6rem; }
.footer-address { font-size: .9rem; line-height: 1.7; }
.footer-nav h4,
.footer-partners h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a { font-size: .92rem; transition: color .2s ease; }
.footer-nav a:hover { color: #fff; }

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.partner-logos a {
    display: inline-flex;
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.partner-logos a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.partner-logos img {
    height: 56px;
    width: auto;
    background: #fff;
    padding: 8px 12px;
    border-radius: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 1.5rem;
    text-align: center;
    font-size: .82rem;
    color: #9aa1b3;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7.5rem;
    }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-brand { justify-content: center; }
    .hero-brand { align-items: center; }
    .hero-image { order: -1; max-width: 480px; margin: 0 auto; transform: none; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .about-inner { grid-template-columns: 1fr; gap: 3rem; }
    .about-media { max-width: 520px; margin: 0 auto; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    html { scroll-padding-top: 72px; }
    .nav-toggle { display: flex; }
    .header-nav {
        position: fixed;
        top: 60px;
        right: 0;
        width: 75%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: #fff;
        box-shadow: -10px 0 30px rgba(0,0,0,.1);
        transform: translateX(100%);
        transition: transform .3s ease;
        padding: 2rem 1.5rem;
    }
    .header-nav.open { transform: translateX(0); }
    .header-nav ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .header-nav .nav-cta { width: 100%; text-align: center; }

    .features { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-wide { grid-column: span 1; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field-full { grid-column: span 1; }
    .contact-form { padding: 1.6rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .info-row { grid-template-columns: 100px 1fr; gap: .6rem; }
    .about-badge { left: 50%; transform: translateX(-50%); }
}
