/* ========================================
   サービス詳細 共通スタイル
======================================== */

/* ヒーローセクション */
.sd-hero {
    padding: 80px 0;
    background: linear-gradient(160deg, #060b24 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.sd-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.sd-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.sd-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sd-hero__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
}

.sd-hero__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 20px;
}

.sd-hero__subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 32px;
}

.sd-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
}

.sd-hero__cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   課題セクション
======================================== */
.sd-challenges {
    padding: 100px 0;
}

.sd-challenges__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.sd-challenge-group__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.sd-challenge-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--accent-gray);
    line-height: 1.8;
}

.sd-challenge-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

/* 課題カード（No.1調査用） */
.sd-challenges__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
}

.sd-challenge-card {
    padding: 28px;
    background: var(--light-gray);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
    font-size: 14px;
    color: var(--accent-gray);
    line-height: 1.8;
    transition: all 0.3s;
}

.sd-challenge-card:hover {
    box-shadow: 0 8px 30px rgba(10, 18, 60, 0.08);
    transform: translateY(-2px);
}

/* ========================================
   特長セクション
======================================== */
.sd-features {
    padding: 100px 0;
    background: var(--light-gray);
}

.sd-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.sd-feature-card {
    padding: 40px 32px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(10, 18, 60, 0.04);
    transition: all 0.3s;
}

.sd-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(10, 18, 60, 0.1);
}

/* CSSアイコン */
.sd-feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ネットワークアイコン */
.sd-feature-card__icon--network::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.sd-feature-card__icon--network::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    top: 10px;
    right: 12px;
}

/* スピードアイコン */
.sd-feature-card__icon--speed::before {
    content: '';
    width: 18px;
    height: 18px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(45deg);
    margin-left: -4px;
}

/* 品質アイコン */
.sd-feature-card__icon--quality::before {
    content: '';
    width: 8px;
    height: 16px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
    margin-top: -4px;
}

/* 専門性アイコン */
.sd-feature-card__icon--expert::before {
    content: '★';
    color: #fff;
    font-size: 24px;
}

/* ターゲットアイコン */
.sd-feature-card__icon--target::before {
    content: '';
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.sd-feature-card__icon--target::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

/* グローバルアイコン */
.sd-feature-card__icon--global::before {
    content: '';
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.sd-feature-card__icon--global::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    top: 50%;
}

.sd-feature-card__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.sd-feature-card__text {
    font-size: 14px;
    color: var(--accent-gray);
    line-height: 1.8;
}

/* 特長ハイライト（大きめ表示） */
.sd-features__highlight {
    text-align: center;
    margin-top: 50px;
}

.sd-features__highlight-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.sd-features__highlight-unit {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.sd-features__highlight-text {
    font-size: 16px;
    color: var(--accent-gray);
    margin-top: 8px;
}

/* ========================================
   プロジェクトの流れ
======================================== */
.sd-flow {
    padding: 100px 0;
}

.sd-flow__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 50px;
    position: relative;
}

/* 縦線 */
.sd-flow__steps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
}

.sd-flow-step {
    display: flex;
    gap: 30px;
    padding: 32px 0;
    position: relative;
}

.sd-flow-step__number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.sd-flow-step__content {
    flex: 1;
    padding-top: 4px;
}

.sd-flow-step__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.sd-flow-step__period {
    display: inline-block;
    padding: 3px 12px;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.sd-flow-step__text {
    font-size: 14px;
    color: var(--accent-gray);
    line-height: 1.8;
}

.sd-flow-step__list {
    margin-top: 8px;
}

.sd-flow-step__list-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--accent-gray);
    line-height: 1.8;
}

.sd-flow-step__list-item::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   他社との比較テーブル
======================================== */
.sd-comparison {
    padding: 100px 0;
    background: var(--light-gray);
}

.sd-comparison__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 18, 60, 0.06);
}

.sd-comparison__table th,
.sd-comparison__table td {
    padding: 20px 24px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.sd-comparison__table thead th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.sd-comparison__table thead th:first-child {
    width: 200px;
}

.sd-comparison__table tbody td {
    background: #fff;
    color: var(--accent-gray);
    line-height: 1.6;
}

.sd-comparison__table tbody tr:last-child td {
    border-bottom: none;
}

/* ステラアソシエ行のハイライト */
.sd-comparison__table tbody tr.sd-comparison__highlight td {
    background: #f0f2ff;
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   FAQ セクション
======================================== */
.sd-faq {
    padding: 100px 0;
}

.sd-faq__list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(10, 18, 60, 0.04);
    overflow: hidden;
}

.sd-faq-item__q {
    padding: 24px 28px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.sd-faq-item__q:hover {
    background: var(--light-gray);
}

.sd-faq-item__q::before {
    content: 'Q';
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.sd-faq-item__a {
    padding: 0 28px 24px 74px;
    font-size: 14px;
    color: var(--accent-gray);
    line-height: 1.9;
}

/* ========================================
   コンサルタント紹介
======================================== */
.sd-consultant {
    padding: 100px 0;
    background: var(--light-gray);
}

.sd-consultant__card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(10, 18, 60, 0.05);
    margin-top: 50px;
}

.sd-consultant__photo {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.sd-consultant__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CSSの人物アイコン */
.sd-consultant__photo-icon {
    width: 60px;
    height: 60px;
    position: relative;
}

.sd-consultant__photo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.sd-consultant__photo-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 28px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px 24px 0 0;
}

.sd-consultant__role {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gray);
    margin-bottom: 6px;
}

.sd-consultant__name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.sd-consultant__bio {
    font-size: 14px;
    color: var(--accent-gray);
    line-height: 2;
}

/* ========================================
   開始までの流れ
======================================== */
.sd-start-flow {
    padding: 100px 0;
}

.sd-start-flow__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.sd-start-step {
    text-align: center;
    padding: 36px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(10, 18, 60, 0.04);
    position: relative;
    transition: all 0.3s;
}

.sd-start-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 18, 60, 0.1);
}

/* ステップ間の矢印 */
.sd-start-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: translateY(-50%) rotate(45deg);
    z-index: 2;
}

.sd-start-step__number {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(10, 18, 60, 0.3);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.sd-start-step__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sd-start-step__text {
    font-size: 13px;
    color: var(--accent-gray);
    line-height: 1.7;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 991px) {
    .sd-challenges__grid,
    .sd-challenges__list {
        grid-template-columns: 1fr;
    }

    .sd-features__grid {
        grid-template-columns: 1fr 1fr;
    }

    .sd-consultant__card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sd-consultant__photo {
        margin: 0 auto;
    }

    .sd-start-flow__steps {
        grid-template-columns: 1fr 1fr;
    }

    .sd-start-step:nth-child(2)::after {
        display: none;
    }

    .sd-comparison__table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 767px) {
    .sd-hero {
        padding: 60px 0;
    }

    .sd-challenges,
    .sd-features,
    .sd-flow,
    .sd-comparison,
    .sd-faq,
    .sd-consultant,
    .sd-start-flow {
        padding: 60px 0;
    }

    .sd-features__grid {
        grid-template-columns: 1fr;
    }

    .sd-start-flow__steps {
        grid-template-columns: 1fr;
    }

    .sd-start-step::after {
        display: none !important;
    }

    .sd-consultant__card {
        padding: 32px 24px;
    }

    .sd-flow__steps::before {
        left: 20px;
    }

    .sd-flow-step__number {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .sd-flow-step {
        gap: 20px;
    }
}
