/* --- グローバルなフェードインアニメーション --- */
.fade-in-dep {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

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

/* --- ページタイトル --- */
.page-title-section {
    padding: 120px 20px 60px;
    text-align: center;
    background-color: #f7f7f7;
}

.page-title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* --- セクションタイトル --- */
.section__title {
    font-size: 36px;
    padding-top: 100px; /* 修正：ヘッダーとの余白を確保 */
    margin-bottom: 40px; /* 修正：全体のバランスを考慮し、下の余白を少し調整 */
    padding-bottom: 20px;
    text-align: center;
    color: #333;
    position: relative;
    font-weight: 700;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #333;
    margin: 10px auto 0;
    border-radius: 2px;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #495057;
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

/* --- 提供サービスセクション（新デザイン） --- */
.service-details-section {
    background-color: #f7f7f7;
    padding: 50px 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card__image {
    height: 200px;
    background-color: #f0f0f0;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #f8f9fa; 
    padding: 10px; 
    box-sizing: border-box; 
}

.service-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.service-card__text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 110px; 
}

.service-card__subtitle {
    font-size: 1rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 15px; 
    border-left: 3px solid #333;
    padding-left: 8px;
}

.service-card__list {
    list-style: none;
    padding-left: 0;
}

.service-card__list li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-card__list li::before {
    content: '✔';
    color: #333;
    position: absolute;
    left: 0;
    top: 2px;
}


/* --- 開発・制作プロセスセクション --- */
.process-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 20px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    flex: 1 1 calc(20% - 16px);
    min-width: 180px;
    max-width: 220px;
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-item h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}

/* --- Why Us Section --- */
.why-us-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.why-us-section .reason-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.why-us-section .reason-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    width: calc(50% - 15px);
    min-width: 300px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.why-us-section .reason-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.reason-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.reason-title img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.why-us-section .reason-item h3 {
    font-size: 1.3em;
    color: #333;
}

.why-us-section .reason-item p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
}

/* --- 技術スタックセクション（新設） --- */
.tech-stack-section {
    padding: 60px 20px;
    background-color: #ffffff;
}
.tech-stack-container {
    max-width: 1000px;
    margin: 0 auto;
}
.tech-category {
    margin-bottom: 40px;
}
.tech-category__title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #444;
}
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ★★★ 変更点: アイコンを中央揃えにする ★★★ */
    gap: 30px 20px;
}
.tech-item {
    text-align: center;
    transition: transform 0.3s ease;
    flex-basis: 100px; /* ★★★ 変更点: アイコンの基本幅を指定 ★★★ */
}
.tech-item:hover {
    transform: scale(1.1);
}
.tech-item img {
    height: 50px;
    margin: 0 auto 10px;
    object-fit: contain;
}
.tech-item span {
    font-size: 0.9rem;
    color: #666;
}


/* --- CTAセクション --- */
.call-to-action-section {
    padding: 60px 20px;
    margin: 40px auto;
    max-width: 1200px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.call-to-action-section .section__title {
    font-size: 2.2em;
    margin-bottom: 25px;
}

.call-to-action-section p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #333;
    color: #ffffff;
}

.contact-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* --- FAQセクション --- */
.faq-section {
    padding: 60px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.faq-item h3 {
    color: #888;
    font-size: 1.15em;
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-item p {
    color: #444;
    font-size: 0.95em;
    line-height: 1.7;
}

/* --- レスポンシブデザイン --- */

@media (max-width: 1200px) {
    .process-steps {
        gap: 30px 15px;
    }
    .step-item {
        flex: 1 1 calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .service-card__text {
        min-height: 125px; 
    }
    .step-item {
        flex: 1 1 calc(33.333% - 20px);
    }
    .why-us-section .reason-item {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .page-title-section h1 {
        font-size: 2rem;
    }
    .section__title {
        font-size: 28px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .intro-section p {
        font-size: 1rem;
        margin: 40px auto;
    }
    .service-card__text {
        min-height: auto; 
    }
    .process-section, .why-us-section, .tech-stack-section {
        padding: 40px 15px;
    }
    .step-item {
        flex: 1 1 calc(50% - 12.5px);
    }
    .why-us-section .reason-item {
        width: 100%;
        max-width: 450px;
    }
    .call-to-action-section {
        padding: 40px 15px;
    }
    .call-to-action-section .section__title {
        font-size: 1.8em;
    }
    .call-to-action-section p {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .section__title {
        font-size: 24px;
    }
    .step-item {
        flex: 1 1 100%;
    }
    .why-us-section .reason-item {
        padding: 25px;
    }
    .call-to-action-section .section__title {
        font-size: 1.6em;
    }
    .call-to-action-section p {
        font-size: 0.95em;
    }
    .contact-button {
        width: 90%;
        padding: 15px;
    }
}