/* 自己分析マスター by キャリポベース - メインスタイルシート */

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --success-color: #95E1D3;
    --text-color: #2C3E50;
    --text-light: #7F8C8D;
    --card-bg: #FFFFFF;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'M PLUS Rounded 1c', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== ヘッダー ========== */
.header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255,107,157,0.3);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,107,157,0.4);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    box-shadow: 0 4px 15px rgba(255,230,109,0.4);
}

/* ========== メインコンテンツ ========== */
.main-content {
    padding: 2rem 0;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ヒーローセクション ========== */
.hero-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-character {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.mugi-character {
    width: 200px;
    height: auto;
    max-width: 100%;
    animation: bounce 2s infinite ease-in-out;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* ========== ボタン ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,157,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,107,157,0.4);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

/* ========== LINE案内 ========== */
.line-promotion {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #00B900, #00C300);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0,185,0,0.3);
    position: relative;
    z-index: 1;
}

/* 結果画面のLINE案内 */
.line-promotion-results {
    background: linear-gradient(135deg, #00B900, #00C300);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,185,0,0.3);
}

.line-promo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.line-promo-header i {
    font-size: 2.5rem;
    color: white;
}

.line-promo-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.line-promo-text {
    font-size: 1rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.btn-line-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: #00B900;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-line-large:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-line-large i {
    font-size: 1.5rem;
}

.line-icon {
    font-size: 3rem;
    color: white;
}

.line-content {
    flex: 1;
    color: white;
}

.line-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.line-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.btn-line {
    background: white;
    color: #00B900;
    padding: 0.75rem 1.5rem;
}

.btn-line:hover {
    background: #f0f0f0;
}

/* ========== フィーチャーグリッド ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== セクションヘッダー ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.mugi-small {
    width: 100px;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto 1rem;
    animation: gentleBounce 3s infinite ease-in-out;
}

@keyframes gentleBounce {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* ========== フォーム ========== */
.analysis-form-container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.form-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.form-section-title {
    font-size: 1.8rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,157,0.1);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-item:hover {
    border-color: var(--primary-color);
    background: #fff5f8;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    flex: 1;
    font-size: 0.95rem;
}

.selection-count {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: var(--text-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #e0e0e0;
}

/* ========== 企業カード ========== */
.company-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.company-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.company-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(255,230,109,0.4);
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.company-industry {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-color);
}

/* ========== フッター ========== */
.footer {
    background: rgba(255,255,255,0.95);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.footer p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* ========== 通知 ========== */
.notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    padding: 1rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 2000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        justify-content: center;
        width: 100%;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-card {
        padding: 2rem 1rem;
    }
    
    .mugi-character {
        width: 150px;
    }
    
    .mugi-small {
        width: 80px;
    }
    
    .line-promotion {
        flex-direction: column;
        text-align: center;
    }
    
    .line-promotion-results {
        padding: 2rem 1rem;
    }
    
    .line-promo-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .line-promo-header h4 {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-form-container {
        padding: 2rem 1rem;
    }
    
    .form-section {
        padding: 1.5rem 1rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .company-cards {
        grid-template-columns: 1fr;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
