/**
 * セクション改善用CSS
 * 各セクションのデザイン統一と改善
 */

/* ===========================
   ヒーローセクション改善
   =========================== */
#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home .hero-content {
    z-index: 10;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

#home .hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

#home .hero-title span {
    display: inline-block;
    background: linear-gradient(to right, #22d3ee, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ヒーローボタン改善 */
.hero-buttons {
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===========================
   セクション共通スタイル
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 1rem;
    opacity: 0.1;
}

.section-header h2 {
    color: var(--color-gray-900);
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.75;
}

/* ===========================
   Mission & Vision改善
   =========================== */
.mission-vision-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mission-vision-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mission-vision-cards .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mission-vision-cards .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mission-vision-cards blockquote {
    flex: 1;
    margin-bottom: 2rem;
}

.mission-vision-cards .list-items {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

/* ===========================
   サービスセクション改善
   =========================== */
.feelflow-services-grid {
    display: grid;
    gap: 2rem;
}

@media (max-width: 767px) {
    .feelflow-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feelflow-services-grid .service-card h3 {
        font-size: 1.125rem;
    }
    
    .feelflow-services-grid .service-card p {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .feelflow-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feelflow-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   チームセクション改善
   =========================== */
.team-grid {
    display: grid;
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.team-card {
    transition: all 0.3s ease;
    cursor: pointer;
}


/* ===========================
   ブログセクション改善
   =========================== */
.blog-grid {
    display: grid;
    gap: 2rem;
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .blog-card .blog-title {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .blog-card .blog-excerpt {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   お問い合わせセクション改善
   =========================== */
#contact {
    position: relative;
    overflow: hidden;
}

#contact .contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    #contact .contact-form {
        padding: 1.5rem;
    }
}

/* フォームフィールド改善 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===========================
   フッター改善
   =========================== */
#footer-section {
    position: relative;
    color: #ffffff !important;
    margin-top: 6rem !important;
}

#footer-section .container {
    padding-top: 6rem !important;
    padding-bottom: 4rem !important;
}

@media (max-width: 768px) {
    #footer-section {
        margin-top: 4rem !important;
    }
    
    #footer-section .container {
        padding-top: 4rem !important;
        padding-bottom: 3rem !important;
    }
}

#footer-section h3 {
    color: #ffffff !important;
}

#footer-section p,
#footer-section span {
    color: #d1d5db !important; /* gray-300 */
}

#footer-section a {
    color: #9ca3af !important; /* gray-400 */
}

#footer-section a:hover {
    color: #fcd34d !important; /* amber-300 */
}

/* 特定の要素の色を確実に設定 */
#footer-section .text-white {
    color: #ffffff !important;
}

#footer-section .text-gray-300 {
    color: #d1d5db !important;
}

#footer-section .text-gray-400 {
    color: #9ca3af !important;
}

#footer-section .text-amber-400 {
    color: #fbbf24 !important;
}

#footer-section .text-amber-200 {
    color: #fde68a !important;
}

#footer-section .text-gray-500 {
    color: #6b7280 !important;
}

/* フッターリンクホバー改善 */
#footer-section a {
    position: relative;
    transition: all 0.3s ease;
}

#footer-section a:hover {
    color: var(--color-amber-300) !important;
}

/* ===========================
   レスポンシブ調整
   =========================== */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===========================
   アクセシビリティ改善
   =========================== */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.skip-link:focus {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
}

/* ===========================
   アニメーション改善
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}