/* === BASE & RESET === */
:root {
    --bg-main: #FFF9F4;
    /* 柔らかいクリーム色 */
    --bg-alt: #FDF1E6;
    /* 少し濃いめのクリーム色 */
    --text-primary: #5C4d42;
    /* ソフトなダークブラウン（黒より威圧感がない） */
    --text-secondary: #8B7A6E;

    /* あたたかみのあるアクセントカラー */
    --accent-orange: #FF8B4D;
    --accent-yellow: #FFC947;
    --accent-pink: #FF85A1;
    --accent-blue: #4D96FF;
    --accent-green: #6BCB77;

    --font-en: 'Fredoka', sans-serif;
    --font-ja: 'M PLUS Rounded 1c', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-ja), var(--font-en);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    /* 単語の途中で不自然に改行されないようにする（スマホ対策） */
    word-break: auto-phrase;
    overflow-wrap: break-word;
}

/* === RESPONSIVE UTILITIES === */
.sp-br {
    display: none;
}

.pc-br {
    display: block;
}

wbr {
    display: inline-block;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3 {
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* === LAYOUT === */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

.center {
    margin: 0 auto;
    text-align: center;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(255, 249, 244, 0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(92, 77, 66, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-en);
    color: var(--accent-orange);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-en);
}

.nav-links a:hover {
    color: var(--accent-orange);
}

/* === HAMBURGER === */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--accent-orange);
    border-radius: 3px;
}

.btn-primary {
    background: var(--accent-orange);
    padding: 10px 24px;
    border-radius: 50px;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(255, 139, 77, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 139, 77, 0.4);
}

/* === UTILITIES === */
.highlight-idea {
    color: var(--accent-orange);
    position: relative;
    display: inline-block;
}

.highlight-idea::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(255, 201, 71, 0.4);
    z-index: -1;
    border-radius: 6px;
}

.highlight-cyan {
    background: linear-gradient(transparent 60%, rgba(77, 150, 255, 0.3) 0);
    font-weight: 700;
}

.highlight-quote {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    line-height: 1.4;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-orange);
    font-family: var(--font-en);
    display: inline-block;
    background: var(--bg-main);
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-alt);
    z-index: 0;
}

.section-header {
    position: relative;
    margin-bottom: 3rem;
}

/* === HERO SECTION === */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #FFF4E6, var(--bg-main));
}

.hero-content {
    text-align: center;
    padding: 0 15px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.6;
}

/* === MISSION SECTION === */
.mission-section {
    padding-top: 20px;
    padding-bottom: 80px;
}

.card-pop {
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(92, 77, 66, 0.08);
    position: relative;
    overflow: hidden;
}

.card-pop::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent-yellow);
    border-radius: 50%;
    opacity: 0.2;
}

.mission-text {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 2;
}

.mission-text:last-child {
    margin-bottom: 0;
}

/* === ABOUT SECTION === */
.about-section {
    background-color: var(--bg-alt);
    border-radius: 50px 50px 0 0;
}

.timeline {
    border-left: 4px dashed var(--accent-pink);
    margin: 0 auto;
    padding-left: 40px;
    max-width: 800px;
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(92, 77, 66, 0.05);
}

.timeline-item::before {
    content: '🐾';
    position: absolute;
    left: -63px;
    top: 20px;
    font-size: 1.8rem;
    background: var(--bg-alt);
    border-radius: 50%;
    padding: 5px;
}

.timeline-title {
    color: var(--accent-pink);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.timeline-desc {
    font-weight: 500;
    line-height: 1.8;
}

/* === SERVICES SECTION === */
.services-section {
    background-color: var(--bg-alt);
    padding-bottom: 120px;
}

.services-intro p {
    line-height: 1.8;
}

.service-cards {
    display: flex;
    gap: 30px;
    margin: 50px 0;
    justify-content: center;
}

.service-card {
    background: #fff;
    border-radius: 25px;
    padding: 40px 30px;
    flex: 1;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(92, 77, 66, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-15px) rotate(2deg);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.card-text {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.6;
}

.service-conclusion {
    background: rgba(255, 255, 255, 0.5);
    border: 3px dashed var(--accent-yellow);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.service-conclusion p {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.8;
}

.service-conclusion p:last-child {
    margin-bottom: 0;
}

/* === TECH SECTION === */
.tech-section {
    background-color: var(--bg-main);
    border-radius: 50px 50px 0 0;
    margin-top: -50px;
    padding-top: 100px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tech-card {
    background: #fff;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 10px 20px rgba(92, 77, 66, 0.04);
    border-bottom: 6px solid var(--accent-green);
    transition: transform 0.3s;
}

.tech-card:nth-child(2) {
    border-bottom-color: var(--accent-blue);
}

.tech-card:nth-child(3) {
    border-bottom-color: var(--accent-yellow);
}

.tech-card:nth-child(4) {
    border-bottom-color: var(--accent-pink);
}

.tech-card:hover {
    transform: translateY(-8px);
}

.tech-header {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.badge {
    background: var(--bg-alt);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 8px;
    display: inline-block;
    margin-top: 10px;
}

.tech-desc {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === CONTACT SECTION === */
.contact-section {
    background-color: #fff;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-yellow);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-main);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(92, 77, 66, 0.08);
    position: relative;
    z-index: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.required {
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 10px;
    margin-left: 10px;
    vertical-align: middle;
}

.form-hint {
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--accent-blue);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 18px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 15px;
    color: var(--text-primary);
    font-family: var(--font-ja);
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(92, 77, 66, 0.03);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(255, 139, 77, 0.1);
}

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

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    background: #fff;
    padding: 12px 20px;
    border-radius: 15px;
    transition: background 0.2s;
    line-height: 1.5;
}

.radio-label:hover {
    background: var(--bg-alt);
}

.radio-label input {
    margin-right: 15px;
    accent-color: var(--accent-orange);
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    background: var(--accent-orange);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 15px;
    font-family: var(--font-ja);
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 139, 77, 0.4);
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 40px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-weight: 700;
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sp-br {
        display: inline;
    }

    .pc-br {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: 100%;
        top: 0;
        flex-direction: column;
        background: rgba(255, 249, 244, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        justify-content: center;
        gap: 40px;
        z-index: 100;
    }

    .nav-links.active {
        left: 0;
    }

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

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

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

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

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .card-pop {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .mission-text {
        font-size: 1.05rem;
    }

    .about-section {
        border-radius: 30px 30px 0 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline {
        border-left: none;
        padding-left: 0;
    }

    .timeline-item {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .service-cards {
        flex-direction: column;
        gap: 20px;
        margin: 30px 0;
    }

    .service-card {
        padding: 30px 20px;
    }

    .highlight-quote {
        font-size: 1.3rem;
    }

    .service-conclusion {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .service-conclusion p {
        font-size: 1rem;
    }

    .tech-section {
        border-radius: 30px 30px 0 0;
        padding-top: 70px;
        margin-top: -30px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .contact-section {
        padding-bottom: 80px;
    }

    .form-wrapper {
        padding: 30px 20px;
        border-radius: 20px;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        padding: 15px;
    }

    .radio-label {
        padding: 10px 15px;
    }
}