/* ============================================
   COCORONIQ - Main Stylesheet
   柔らかく親しみやすい雰囲気のデザイン
   ============================================ */

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

:root {
    --color-primary: #ee7a4d;          /* やわらかいオレンジ */
    --color-primary-dark: #d96838;
    --color-accent: #f4a261;           /* 温かみのあるアクセント */
    --color-cta: #e85d3c;              /* CTAボタン用 */
    --color-cta-dark: #c94a2c;
    --color-text: #4a4a4a;
    --color-text-light: #767676;
    --color-heading: #ee7a4d;
    --color-bg: #ffffff;
    --color-bg-soft: #faf6f2;          /* 柔らかいクリーム色 */
    --color-bg-gray: #f5f5f5;
    --color-border: #e8e0d8;
    --color-footer: #8a8a8a;
    --color-link: #2196f3;
    --shadow-soft: 0 4px 20px rgba(238, 122, 77, 0.08);
    --shadow-card: 0 6px 30px rgba(0, 0, 0, 0.06);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'ヒラギノ角ゴシック', sans-serif;
    --font-en: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en), var(--font-jp);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand-logo {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.brand-logo:hover {
    opacity: 0.85;
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:hover {
    color: var(--color-primary);
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(238, 122, 77, 0.35), rgba(0, 0, 0, 0.45)),
        url('https://images.unsplash.com/photo-1545569341-9eb8b30979d9?w=1600&q=80') center/cover no-repeat;
    margin-top: 64px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
}

.hero-title {
    font-family: var(--font-en);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    margin-bottom: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-btn {
    font-size: 1.15rem;
    padding: 16px 48px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-en);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 1px;
    color: #fff;
}

.btn-primary {
    background: var(--color-primary);
    box-shadow: 0 4px 14px rgba(238, 122, 77, 0.4);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 122, 77, 0.5);
    opacity: 1;
    color: #fff;
}

.btn-website {
    background: var(--color-cta);
    padding: 12px 32px;
    margin-top: 8px;
}

.btn-website:hover {
    background: var(--color-cta-dark);
    transform: translateY(-2px);
    opacity: 1;
    color: #fff;
}

.btn-submit {
    background: #1976ff;
    padding: 10px 28px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #0d5dd8;
    opacity: 1;
    color: #fff;
}

/* ============================================
   Sections
   ============================================ */
.content-section {
    padding: 80px 0;
}

.section-soft {
    background: var(--color-bg-soft);
}

.section-title {
    font-family: var(--font-en);
    color: var(--color-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

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

.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--color-border), transparent);
    margin-bottom: 28px;
}

.section-divider.center {
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-image {
    margin: 36px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.section-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.section-image:hover img {
    transform: scale(1.02);
}

.signature {
    text-align: right;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 24px;
    font-size: 1rem;
}

/* ============================================
   Achievement Cards
   ============================================ */
.achievements-section {
    background: var(--color-bg-soft);
}

.star-divider {
    text-align: center;
    color: var(--color-primary);
    font-size: 2rem;
    margin: 30px 0;
}

.achievement-embed {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
}

.achievement-embed iframe {
    border: none;
    overflow: hidden;
    width: 310px;
    height: 390px;
    max-width: 100%;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.achievement-embed iframe:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.achievement-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin: 0 auto;
    max-width: 600px;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.achievement-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.success-ribbon {
    position: absolute;
    top: 18px;
    left: -32px;
    background: #ec4899;
    color: #fff;
    padding: 4px 36px;
    font-size: 0.85rem;
    font-weight: 700;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.achievement-body {
    padding: 20px;
}

.achievement-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    line-height: 1.6;
}

.achievement-company {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.company-name {
    color: var(--color-link);
    font-weight: 600;
    font-size: 0.95rem;
}

.company-tag {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.achievement-stats {
    font-size: 0.9rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-label {
    color: var(--color-text-light);
}

.stat-label strong {
    color: var(--color-text);
    margin-left: 4px;
    font-size: 1.05rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0 14px;
}

.progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #c2e859, #a8d847);
}

.status-badge {
    background: #ec4899;
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   Platform Section
   ============================================ */
.platform-section .platform-block {
    margin-bottom: 70px;
    text-align: left;
}

.platform-section .platform-block:last-child {
    margin-bottom: 0;
}

.platform-logo {
    margin-bottom: 24px;
    text-align: center;
}

.platform-logo-image {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    max-width: 360px;
    margin: 0 auto 24px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-logo-image img {
    max-width: 100%;
    width: auto;
    max-height: 140px;
    object-fit: contain;
    display: block;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--color-bg-soft);
}

.contact-image {
    margin: 30px 0 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.contact-image img {
    width: 100%;
    height: auto;
}

.contact-form {
    max-width: 100%;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.required {
    color: var(--color-cta);
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(238, 122, 77, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-message {
    margin-top: 16px;
    font-weight: 500;
    min-height: 24px;
}

.form-message.success {
    color: #2c7a52;
}

.form-message.error {
    color: #c94a2c;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--color-footer);
    color: #fff;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.footer-block {
    margin-bottom: 8px;
}

.footer-title {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.footer-block p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.95);
}

.footer-block a {
    color: #fff;
    text-decoration: underline;
}

.footer-block a:hover {
    color: #fff;
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 2fr;
    }

    .achievement-image {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 64px;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 16px 24px;
    }

    .main-nav li {
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 14px 0;
    }

    .content-section {
        padding: 60px 0;
    }

    .hero-section {
        min-height: 60vh;
    }

    .hero-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .achievement-image {
        height: 200px;
    }

    .stat-value {
        font-size: 1.1rem;
    }
}
