/**
 * Front Page (LP) Styles
 */

/* ========================================
   ヒーローセクション
======================================== */

.hero-section {
    position: relative;
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/top.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.9) 0%, rgba(13, 71, 161, 0.85) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

/* ヒーロータイトルのフォント遊び */
.hero-title-line1 {
    display: inline-block;
    background: linear-gradient(135deg, #FFFFFF 0%, #E3F2FD 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleGlow 3s ease-in-out infinite;
}

.hero-title-line2 {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        text-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
    }
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: scale(1.02);
        text-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
    }
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-badges .badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* パートナー検索フォーム */
.hero-search-form {
    max-width: 800px;
    margin: 36px auto;
    padding: 32px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-form-content {
    position: relative;
    z-index: 1;
}

.search-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #0A3D62;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.3;
}

.partner-search-form {
    width: 100%;
}

.search-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.search-form-group {
    display: flex;
    flex-direction: column;
}

.search-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #0A3D62;
    margin-bottom: 8px;
}

.search-form-group select {
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    background-color: #FFFFFF;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-form-group select:focus {
    outline: none;
    border-color: #0A3D62;
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

.search-submit-group {
    display: flex;
    align-items: end;
}

.search-submit-group .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* 開発分野プルダウンの幅制限 */
#development_field {
    max-width: 200px;
    min-width: 150px;
}

/* 技術スタックプルダウンの幅制限 */
#tech_stack {
    max-width: 180px;
    min-width: 140px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

/* ========================================
   課題提起セクション
======================================== */

.problems-section {
    background-color: #FFFFFF;
}

.problems-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    background: #FFFFFF;
    border-left: 4px solid #D32F2F;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.problem-item:hover {
    border-left-color: #C62828;
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.15);
    transform: translateY(-4px);
}

.problem-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #D32F2F;
    margin-top: 2px;
}

.problem-icon svg {
    width: 100%;
    height: 100%;
}

.problem-content {
    flex: 1;
}

.problem-title {
    color: #212529;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.problem-text {
    color: #616161;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   メリット比較セクション
======================================== */

.comparison-section {
    background: linear-gradient(135deg, #E3E8ED 0%, #D6DCE3 50%, #CFD6DE 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
}

.comparison-header {
    background-color: #0A3D62;
    color: #FFFFFF;
}

.comparison-row:nth-child(even) {
    background: linear-gradient(135deg, #F8F9FA 0%, #F3F4F6 100%);
}

.comparison-cell {
    padding: 20px;
    text-align: center;
}

.comparison-label {
    font-weight: 700;
    text-align: left;
    background-color: #F8F9FA;
}

.comparison-highlight {
    background-color: #E3F2FD;
}

.comparison-header .comparison-highlight {
    background-color: #0A3D62;
}

.check-mark {
    color: #0D47A1;
    font-size: 20px;
    margin-right: 8px;
}

.cross-mark {
    color: #D32F2F;
    font-size: 20px;
    margin-right: 8px;
}

/* ========================================
   ソリューションセクション
======================================== */

.solutions-section {
    background-color: #FFFFFF;
}

.solutions-wrapper {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.solutions-content {
    flex: 1;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.solution-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(10, 61, 98, 0.08);
    box-shadow: 0 2px 12px rgba(10, 61, 98, 0.06);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0A3D62, #2E86AB);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(10, 61, 98, 0.12);
    border-color: rgba(10, 61, 98, 0.15);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: block;
    color: #0A3D62;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-icon svg {
    width: 100%;
    height: 100%;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
    color: #2E86AB;
}

.solution-icon-target {
    color: #2E86AB;
}

.solution-icon-document {
    color: #0A3D62;
}

.solution-icon-globe {
    color: #1B6CA8;
}

.solution-icon-shield {
    color: #0D5C85;
}

.solution-title {
    color: #0A3D62;
    margin-bottom: 12px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.solution-text {
    color: #495057;
    font-size: 14px;
    line-height: 1.7;
}

.solutions-image {
    flex-shrink: 0;
    position: relative;
}

.solutions-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ========================================
   サポートの流れセクション
======================================== */

.flow-section {
    background: linear-gradient(135deg, #E3E8ED 0%, #D6DCE3 50%, #CFD6DE 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
    max-width: 1000px;
    margin: 0 auto;
    counter-reset: step-counter;
}

.flow-step {
    background: #FFFFFF;
    padding: 32px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(10, 61, 98, 0.1);
    text-align: left;
    border-left: 4px solid #0A3D62;
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(10, 61, 98, 0.15);
}

.step-number {
    display: inline-block;
    padding: 4px 12px;
    background-color: #0A3D62;
    color: #FFFFFF;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.step-title {
    color: #0A3D62;
    margin-bottom: 12px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.step-text {
    color: #6C757D;
    font-size: 14px;
    line-height: 1.7;
}

.flow-arrow {
    display: none;
}

/* タブレット用レイアウト */
@media (max-width: 900px) {
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
    
    .faq-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .problems-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   パートナー企業ランダムピックアップ
======================================== */

.partners-showcase {
    background-color: #F8F9FA;
    padding: 80px 0;
    overflow: hidden;
}

.partners-scroll-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 48px;
}

.partners-scroll {
    display: flex;
    gap: 24px;
    animation: scroll-infinite 30s linear infinite;
    width: max-content;
}

.partners-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-card-mini {
    flex: 0 0 auto;
    width: 280px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.partner-card-mini:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.partner-card-mini-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.partner-image-mini {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #F5F5F5;
}

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

.partner-info-mini {
    text-align: center;
    padding: 16px 20px 20px;
}

.partner-name-mini {
    font-size: 16px;
    font-weight: 700;
    color: #0A3D62;
    margin-bottom: 10px;
    line-height: 1.4;
}

.partner-flags-mini {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.partner-flag-mini {
    font-size: 28px;
    line-height: 1;
    display: inline-block;
}

@media (max-width: 768px) {
    .partners-showcase {
        padding: 60px 0;
    }
    
    .partners-scroll-wrapper {
        margin-top: 32px;
    }
    
    .partner-card-mini {
        width: 240px;
    }
    
    .partner-image-mini {
        height: 120px;
    }
    
    .partner-info-mini {
        padding: 12px 16px 16px;
    }
    
    .partner-name-mini {
        font-size: 15px;
    }
    
    .partner-flag-mini {
        font-size: 24px;
    }
}

/* ========================================
   FAQセクション
======================================== */

.faq-section {
    background-color: #FFFFFF;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    background-color: #F8F9FA;
    padding: 24px;
    border-radius: 8px;
    border-left: 3px solid #0A3D62;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(10, 61, 98, 0.1);
}

.faq-question {
    color: #0A3D62;
    margin-bottom: 12px;
    font-size: 18px;
}

.faq-answer {
    color: #212529;
}

/* ========================================
   クロージングセクション
======================================== */

.closing-section {
    background: linear-gradient(135deg, #0A3D62 0%, #0D47A1 100%);
    color: #FFFFFF;
    text-align: center;
}

.closing-section .section-title {
    color: #FFFFFF;
}

.closing-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.closing-cta {
    margin-top: 32px;
}

/* ========================================
   レスポンシブ対応
======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* パートナー検索フォーム - モバイル */
    .hero-search-form {
        margin: 28px 0;
        padding: 24px 20px;
    }
    
    .search-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .search-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .search-form-group select {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .search-submit-group .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .quick-search-section {
        padding: 48px 0;
    }
    
    .quick-search-group {
        margin-bottom: 40px;
    }
    
    .quick-search-label {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .quick-search-label .label-icon {
        font-size: 20px;
    }
    
    .quick-search-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .quick-search-item {
        padding: 16px 18px;
    }
    
    .quick-search-item .item-name {
        font-size: 14px;
    }
    
    .quick-search-item .item-count {
        font-size: 12px;
    }
    
    .btn-view-all {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .problems-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .problem-item {
        padding: 20px 24px;
        gap: 16px;
    }
    
    .problem-icon {
        width: 28px;
        height: 28px;
    }
    
    .problem-title {
        font-size: 17px;
    }
    
    .problem-text {
        font-size: 14px;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-cell {
        border-bottom: 1px solid #E0E0E0;
        text-align: left;
    }
    
    .comparison-label {
        background-color: #0A3D62;
        color: #FFFFFF;
    }
    
    .flow-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .flow-step {
        padding: 24px 20px;
    }
    
    .step-title {
        font-size: 17px;
    }
    
    .step-text {
        font-size: 13px;
    }
    
    .faq-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-question {
        font-size: 16px;
    }
    
    .faq-answer {
        font-size: 14px;
    }
    
    .solutions-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .solutions-image {
        order: -1;
    }
    
    .solutions-image img {
        max-width: 100%;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

