/* Service Page Specific Styles */

.service-container {
    max-width: 1000px;
    margin: 120px auto 60px;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-header {
    text-align: center;
    margin-bottom: 60px;
}

.service-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-header p {
    font-size: 1.125rem;
    color: #7f8c8d;
}

/* メインビジュアル */
.main-visual {
    position: relative;
    padding: 40px 0;
    margin-bottom: 60px;
}

.companies-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.company-card {
    width: 200px;
    background: white;
    border: 3px solid var(--accent-main);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    transition: transform 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.company-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.company-card h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.company-card p {
    font-size: 0.875rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* 矢印 */
.arrow-horizontal {
    flex: 1;
    height: 3px;
    background: var(--accent-main);
    position: relative;
    margin: 0 30px;
}

.arrow-horizontal::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 15px solid var(--accent-main);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.arrow-horizontal::before {
    content: attr(data-label);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-main);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    white-space: nowrap;
    font-weight: 600;
}

.arrow-horizontal-reverse {
    transform: scaleX(-1);
}

.arrow-horizontal-reverse::before {
    transform: translateX(-50%) scaleX(-1);
}

.arrow-down {
    width: 3px;
    height: 60px;
    background: var(--accent-main);
    margin: 0 auto;
    position: relative;
}

.arrow-down::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -6px;
    width: 0;
    height: 0;
    border-top: 15px solid var(--accent-main);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.arrow-label {
    text-align: center;
    margin: 15px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-main);
}

/* 契約ボックス */
.contract-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    border: 3px solid #4caf50;
}

.contract-section h3 {
    font-size: 1.375rem;
    color: #2e7d32;
    margin-bottom: 15px;
    font-weight: 700;
}

.contract-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.contract-party {
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    color: #2e7d32;
    font-size: 1.125rem;
}

.contract-arrow {
    font-size: 1.5rem;
    color: #4caf50;
}

.contract-note {
    font-size: 0.875rem;
    color: #1b5e20;
    margin-top: 15px;
}

/* 料金ボックス */
.pricing-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    border: 3px dashed var(--accent-secondary);
}

.pricing-section h3 {
    font-size: 1.5rem;
    color: #e65100;
    margin-bottom: 20px;
    font-weight: 700;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #d84315;
    margin: 20px 0;
    letter-spacing: -2px;
}

.price-unit {
    font-size: 1.125rem;
    color: #bf360c;
    font-weight: 600;
}

.price-note {
    font-size: 0.875rem;
    color: #e65100;
    margin-top: 15px;
    line-height: 1.6;
}

/* サービス内容 */
.section-title-center {
    text-align: center;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background: var(--gray-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-main);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-item .service-icon {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.service-item ul {
    list-style: none;
    padding: 0;
}

.service-item li {
    font-size: 0.875rem;
    color: #555;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.service-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-main);
    font-weight: bold;
}

/* 特徴セクション */
.features-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--gray-border);
}

.features-section h3 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 700;
}

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

.feature-card {
    background: white;
    border: 2px solid var(--accent-main);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.feature-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--accent-main);
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.8;
}

/* 戻るボタン */
.back-button-container {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-border);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
}

.btn-outline-dark:hover {
    background-color: var(--dark-bg);
    color: #fff;
}

.service-flow {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 3px solid var(--accent-main);
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 60px;
}

.flow-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.flow-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-main), var(--accent-secondary));
    border-radius: 2px;
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-step {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.step-header {
    margin-bottom: 25px;
}

.step-number {
    display: inline-block;
    background: var(--gray-light);
    color: #666;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.step-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.step-icon-circle {
    width: 70px;
    height: 70px;
    background: white;
    border: 3px dashed var(--accent-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.flow-step:hover .step-icon-circle {
    border-color: var(--accent-secondary);
    background: var(--accent-main);
}

.step-icon-circle i {
    font-size: 1.8rem;
    color: var(--accent-main);
    transition: color 0.3s ease;
}

.flow-step:hover .step-icon-circle i {
    color: white;
}

.step-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
}

.flow-arrow {
    color: var(--accent-main);
    font-size: 2rem;
    flex-shrink: 0;
}

.flow-arrow i {
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* レスポンシブ */
@media (max-width: 992px) {
    .flow-steps {
        flex-wrap: wrap;
        gap: 30px;
    }

    .flow-step {
        flex: 1 1 calc(50% - 15px);
        min-width: 250px;
    }

    .flow-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .service-flow {
        padding: 40px 20px;
    }

    .flow-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .flow-steps {
        flex-direction: column;
        gap: 30px;
    }

    .flow-step {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .step-icon-circle {
        width: 60px;
        height: 60px;
    }

    .step-icon-circle i {
        font-size: 1.5rem;
    }

    .flow-arrow {
        display: block;
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
}

/* レスポンシブ */
@media (max-width: 992px) {
    .service-container {
        padding: 40px 30px;
        margin: 100px 20px 40px;
    }

    .companies-row {
        flex-direction: column;
        gap: 30px;
    }

    .arrow-horizontal {
        transform: rotate(90deg);
        width: 60px;
        margin: 30px auto;
    }

    .arrow-horizontal::before {
        transform: translateX(-50%) rotate(-90deg);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-container {
        padding: 30px 20px;
        margin: 80px 10px 30px;
    }

    .service-header h1 {
        font-size: 2rem;
    }

    .company-card {
        width: 100%;
        max-width: 280px;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* 注意事項セクション */
.attention-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 3px solid var(--gray-border);
}

.attention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.attention-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--gray-border);
    transition: all 0.3s ease;
}

.attention-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.attention-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.attention-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.attention-icon i {
    font-size: 1.8rem;
    color: white;
}

/* アイコンのカラーバリエーション */
.attention-icon.warning {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.attention-icon.warning::after {
    background: #F59E0B;
}

.attention-card:has(.warning) {
    border-left-color: #F59E0B;
}

.attention-icon.info {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
}

.attention-icon.info::after {
    background: #3B82F6;
}

.attention-card:has(.info) {
    border-left-color: #3B82F6;
}

.attention-icon.caution {
    background: linear-gradient(135deg, #EF4444, #F87171);
}

.attention-icon.caution::after {
    background: #EF4444;
}

.attention-card:has(.caution) {
    border-left-color: #EF4444;
}

.attention-icon.important {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.attention-icon.important::after {
    background: #8B5CF6;
}

.attention-card:has(.important) {
    border-left-color: #8B5CF6;
}

.attention-icon.notice {
    background: linear-gradient(135deg, #EC4899, #F472B6);
}

.attention-icon.notice::after {
    background: #EC4899;
}

.attention-card:has(.notice) {
    border-left-color: #EC4899;
}

.attention-icon.help {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.attention-icon.help::after {
    background: #10B981;
}

.attention-card:has(.help) {
    border-left-color: #10B981;
}

.attention-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.attention-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* 追加の注意書き */
.attention-note {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.attention-note i {
    color: #F59E0B;
    font-size: 2rem;
    margin-top: 3px;
    flex-shrink: 0;
    animation: bell-ring 2s ease-in-out infinite;
}

@keyframes bell-ring {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

.attention-note strong {
    display: block;
    font-size: 1.1rem;
    color: #92400E;
    margin-bottom: 8px;
}

.attention-note p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #78350F;
    margin: 0;
}

.attention-note a {
    color: #F59E0B;
    font-weight: 600;
    text-decoration: underline;
}

.attention-note a:hover {
    color: #D97706;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .attention-section {
        margin-top: 60px;
        padding-top: 40px;
    }

    .attention-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .attention-card {
        padding: 25px 20px;
    }

    .attention-icon {
        width: 50px;
        height: 50px;
    }

    .attention-icon i {
        font-size: 1.5rem;
    }

    .attention-note {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .attention-note i {
        margin: 0 auto;
    }
}