:root {
    --black: #1A1A1A;
    --white: #FFFFFF;
    --bg-color: #F8F5F0;

    /* ポップなカラーパレット */
    --c-pink: #FF6B8B;
    --c-yellow: #FFD93D;
    --c-blue: #4D96FF;
    --c-green: #6BCB77;
    --c-purple: #9D4EDD;
    --c-orange: #FF884B;

    --font-jp: 'Zen Maru Gothic', sans-serif;
    --font-en: 'Outfit', sans-serif;

    /* ネオブルータリズムスタイルの定義 */
    --border: 3px solid var(--black);
    --shadow: 6px 6px 0px var(--black);
    --shadow-hover: 10px 10px 0px var(--black);
    --radius: 24px;
    --radius-sm: 12px;
    --radius-pill: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background-color: var(--bg-color);
    color: var(--black);
    font-family: var(--font-jp);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }

/* ================= NAV ================= */
.nav-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}
.nav {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 12px 8px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: var(--shadow);
    pointer-events: auto;
    transition: transform 0.3s ease;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.nav-logo svg { width: 32px; height: 32px; }

.nav-links { display: flex; gap: 24px; font-weight: 700; font-size: 0.95rem; }
.nav-links a {
    position: relative;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-links a:hover {
    background: var(--c-yellow);
    transform: rotate(-3deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 1rem;
    border: var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    cursor: pointer;
    background: var(--white);
}
.btn:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-hover);
}
.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--black);
}
.btn-yellow { background: var(--c-yellow); }
.btn-blue { background: var(--c-blue); color: var(--white); }
.btn-pink { background: var(--c-pink); color: var(--white); }

/* ================= HERO ================= */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.pill-badge {
    display: inline-block;
    padding: 6px 16px;
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--c-pink);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0px var(--black);
    transform: rotate(-2deg);
}
.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero h1 .highlight {
    display: inline-block;
    position: relative;
    z-index: 1;
}
.hero h1 .highlight::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: -5px;
    right: -5px;
    height: 20px;
    background: var(--c-yellow);
    z-index: -1;
    border-radius: 10px;
    transform: rotate(-1deg);
}
.hero p.lede {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 2;
    max-width: 600px;
    margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* 装飾図形 */
.deco { position: absolute; z-index: 1; pointer-events: none; }
.deco-1 { top: 15%; right: 10%; width: 120px; animation: float 6s ease-in-out infinite; }
.deco-2 { bottom: 10%; right: 25%; width: 80px; animation: float 5s ease-in-out infinite 1s; }
.deco-3 { top: 30%; left: -5%; width: 100px; animation: float 7s ease-in-out infinite 2s; }
.deco-4 { bottom: 20%; right: 5%; width: 150px; animation: spin 15s linear infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ================= MARQUEE ================= */
.marquee {
    background: var(--c-yellow);
    border-top: var(--border);
    border-bottom: var(--border);
    padding: 16px 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
}
.marquee-track {
    display: flex;
    gap: 40px;
    animation: scrollMarquee 20s linear infinite;
}
.marquee-track span {
    display: flex;
    align-items: center;
    gap: 40px;
}
.marquee-track svg { width: 30px; height: 30px; }
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================= STATS ================= */
.stats { padding: 80px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.stat-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-8px); }
.stat-card:nth-child(1) { background: #E0F2FE; }
.stat-card:nth-child(2) { background: #FEF08A; }
.stat-card:nth-child(3) { background: #BBF7D0; }
.stat-card:nth-child(4) { background: #FECDD3; }

.stat-num {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-lbl { font-weight: 700; font-size: 0.9rem; }

/* ================= SECTION HEAD ================= */
.section-head { margin-bottom: 64px; text-align: center; }
.section-head .en-title {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--c-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.section-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
}

/* ================= SERVICES ================= */
.services { padding: 120px 0; background: var(--white); border-top: var(--border); border-bottom: var(--border); }
.svc-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}
.svc-card {
    position: relative;
    background: var(--bg-color);
    border: var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--black);
}
.svc-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: var(--shadow-hover);
}

.svc-big { grid-column: span 8; background: #FFF3CD; }
.svc-half1 { grid-column: span 4; background: #D1E7DD; }
.svc-small1 { grid-column: span 4; background: #F8D7DA; }
.svc-small2 { grid-column: span 4; background: #CFF4FC; }
.svc-small3 { grid-column: span 4; background: #E2D9F3; }

.svc-icon {
    width: 80px; height: 80px;
    background: var(--white);
    border: var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0px var(--black);
}
.svc-icon svg { width: 40px; height: 40px; }
.svc-num {
    position: absolute;
    top: 24px; right: 24px;
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.5rem;
    opacity: 0.3;
}
.svc-title { font-family: var(--font-en); font-weight: 900; font-size: 2rem; line-height: 1.1; margin-bottom: 8px; }
.svc-jp { font-weight: 700; font-size: 1rem; margin-bottom: 16px; opacity: 0.8; }
.svc-desc { font-weight: 500; font-size: 0.95rem; line-height: 1.8; margin-top: auto; }

.svc-tags { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.svc-tag {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ================= PHILOSOPHY ================= */
.philosophy {
    padding: 160px 0;
    background: var(--c-blue);
    color: var(--white);
    text-align: center;
    border-bottom: var(--border);
    position: relative;
    overflow: hidden;
}
.philosophy * { border-color: var(--white); }
.philosophy h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}
.philosophy .en-sub {
    display: block;
    font-family: var(--font-en);
    font-size: 1.2rem;
    margin-top: 24px;
    opacity: 0.8;
}
.philo-deco {
    position: absolute;
    opacity: 0.2;
    z-index: 1;
}

/* ================= COMPANY ================= */
.company { padding: 120px 0; }
.co-wrap {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    padding: 60px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
}
.co-left h3 { font-size: 2.5rem; font-weight: 900; margin-bottom: 16px; }
.co-left p { font-weight: 500; line-height: 1.8; margin-bottom: 32px; }

.co-list { border-top: 2px solid var(--black); }
.co-list-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 2px solid var(--black);
}
.co-list-item dt { width: 140px; font-weight: 900; flex-shrink: 0; }
.co-list-item dd { font-weight: 500; }

/* ================= CONTACT ================= */
.contact {
    padding: 120px 0;
    background: var(--c-pink);
    border-top: var(--border);
}
.ctc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ctc-left { color: var(--white); }
.ctc-left h2 { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.ctc-left p { font-weight: 700; font-size: 1.1rem; line-height: 1.8; }

.ctc-form {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow);
}
.fld { margin-bottom: 24px; }
.fld label { display: block; font-weight: 900; margin-bottom: 8px; }
.fld label span { color: var(--c-pink); }
.fld input, .fld select, .fld textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    font-family: var(--font-jp);
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-color);
    transition: all 0.2s;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
    outline: none;
    background: var(--white);
    box-shadow: 4px 4px 0px var(--c-pink);
    transform: translate(-2px, -2px);
}
.fld textarea { resize: vertical; min-height: 120px; }
.ctc-form .btn { width: 100%; justify-content: center; font-size: 1.2rem; padding: 16px; }

/* ================= FOOTER ================= */
footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}
.ft-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}
.ft-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 24px;
}
.ft-logo svg { width: 48px; height: 48px; }
.ft-col h4 { font-family: var(--font-en); font-weight: 900; font-size: 1.2rem; margin-bottom: 20px; color: var(--c-yellow); }
.ft-col ul { display: flex; flex-direction: column; gap: 12px; }
.ft-col a { font-weight: 500; transition: color 0.2s; }
.ft-col a:hover { color: var(--c-pink); }
.ft-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ================= ANIMATIONS & UTILS ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* アクセシビリティ: アニメーション抑制 */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .marquee-track, .deco-1, .deco-2, .deco-3, .deco-4 { animation: none !important; }
    html, body { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーム成功表示 */
.ctc-form.is-submitted .btn { background: var(--c-blue); color: var(--white); }

@media (max-width: 992px) {
    .nav { gap: 16px; padding: 8px 12px 8px 16px; }
    .nav-links { display: none; }
    .svc-grid { display: flex; flex-direction: column; }
    .co-wrap, .ctc-grid, .ft-grid { grid-template-columns: 1fr; gap: 40px; }
    .co-wrap { padding: 32px; }
    .ctc-form { padding: 32px; }
    .ctc-left h2 { font-size: 2.5rem; }
    footer { padding: 60px 0 32px; }
    .ft-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 640px) {
    .hero { padding: 140px 0 80px; min-height: auto; }
    .deco-1, .deco-4 { width: 80px; }
    .deco-2, .deco-3 { width: 60px; }
    .marquee { font-size: 1.1rem; }
}
