/* --- サービスカード --- */
.service-detail-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-teal);
}

.service-detail-card h3 {
    color: var(--color-blue);
    font-size: 1.5rem;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-detail-card h3 .icon {
    font-size: 1.8rem;
}

.service-detail-card .subtitle {
    color: var(--color-teal);
    font-weight: bold;
    margin-bottom: 15px;
}

.service-detail-card ul {
    padding-left: 20px;
}

.service-detail-card li {
    margin-bottom: 8px;
}

/* --- 料金テーブル (旧デザイン等) --- */
.price-section {
    background: var(--color-teal-light);
}

.price-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.price-card-header {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal) 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.price-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.price-card-body {
    padding: 30px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row .label {
    font-weight: 500;
}

.price-row .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-blue);
}

.price-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 15px;
    padding: 15px;
    background: var(--color-bg-gray);
    border-radius: 8px;
}

/* --- 比較表 --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
}

.comparison-table th {
    background: var(--color-teal);
    color: #fff;
    font-weight: bold;
}

.comparison-table th:first-child {
    background: var(--color-blue);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--color-bg-gray);
}

.check-mark {
    color: var(--color-green);
    font-size: 1.3rem;
}

/* --- CTA (サービスページ用) --- */
.cta-section {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff !important;
    /* 強制的に白字 */
}

.cta-section p {
    color: #fff;
    text-align: center !important;
    /* 中央寄せ */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-white {
    display: inline-block;
    background: #fff;
    color: var(--color-blue);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
}

.cta-section .btn-white:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- モバイル対応調整 (サービスページ固有) --- */
@media (max-width: 768px) {


    .service-detail-card {
        padding: 25px;
    }

    .price-row {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
}

/* --- サービス詳細（新デザイン - 枠付き） --- */
.bordered-section {
    border: 2px solid var(--color-teal);
    border-radius: 20px;
    padding: 60px 50px;
    margin-bottom: 100px;
    position: relative;
    background: #fff;
}

.section-number {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 4rem;
    color: var(--color-teal);
    background: #fff;
    padding: 0 20px;
    z-index: 1;
    line-height: 1;
}

.section-header-wrapper {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.section-header {
    display: inline-block;
    background: #fff;
    padding: 0 30px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.sub-header {
    background: #F9F9F7;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 5px;
    margin-bottom: 30px;
    color: #333;
}

.section-content-wrapper {
    position: relative;
}

.consultation-circle {
    width: 100px;
    height: 100px;
    border: 2px solid var(--color-teal);
    border-radius: 50%;
    color: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    background: #fff;
    position: absolute;
    right: 0;
    top: 20%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.3;
}

.comparison-grid {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.comparison-col {
    flex: 1;
    text-align: center;
}

.comparison-col+.comparison-col {
    border-left: 1px dotted #ccc;
    padding-left: 40px;
}

.user-type-label {
    display: inline-block;
    font-weight: bold;
    border-bottom: 2px solid #888;
    margin-bottom: 15px;
    padding-bottom: 5px;
    color: #444;
}

.user-type-label::before {
    content: '👤 ';
}

.comparison-main-text {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-box {
    border-top: 1px dotted #ccc;
    border-bottom: 1px dotted #ccc;
    padding: 10px 0;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.cost-info {
    font-size: 0.85rem;
    color: #666;
    text-align: left;
    line-height: 1.6;
    margin-top: 20px;
}

/* --- 料金プラン（新デザイン） --- */
.plan-header-text {
    text-align: center;
    margin-bottom: 40px;
}

.plan-header-text h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.plan-note {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
}

.premium-price-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.premium-price-table th,
.premium-price-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #444;
    background-color: #fff;
}

.premium-price-table th:last-child,
.premium-price-table td:last-child {
    border-right: none;
}

.plan-header-cell {
    padding: 0 5px !important;
    vertical-align: top;
}

.plan-box {
    padding: 15px 8px;
    border-radius: 4px 4px 0 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 110px;
    justify-content: center;
}

.plan-box.light {
    background-color: #555e6b;
}

.plan-box.standard {
    background-color: var(--color-teal);
}

.plan-box.pro {
    background-color: #2b6b9a;
}

.plan-box.consulting {
    background-color: #1e834d;
}

.plan-box .plan-name {
    font-size: 0.95rem;
    font-weight: bold;
    opacity: 0.9;
}

.plan-box .plan-price {
    font-size: 1.2rem;
    font-weight: 800;
}

.plan-box .plan-meta {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 500;
    line-height: 1.2;
}

.table-category-row td {
    text-align: left !important;
    font-weight: bold;
    color: #666 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    padding: 15px 10px 8px 15px !important;
    background: #fff !important;
    border-bottom: 2px solid #eee;
}

.premium-price-table td:first-child {
    background-color: #fff;
    text-align: left;
    font-weight: 600;
    width: 220px;
    min-width: 220px;
    position: sticky;
    left: 0;
    z-index: 10;
    padding-left: 15px;
    border-right: 1px solid #f0f0f0;
    white-space: normal;
    line-height: 1.3;
}

.premium-price-table tr:nth-child(even) td,
.premium-price-table tr:nth-child(even) td:first-child {
    background-color: #fff;
}

.check-circle {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.65rem;
}

.check-circle.checked {
    background-color: #2db871;
}

.check-circle.checked::before {
    content: '✓';
    font-weight: bold;
}

.check-circle.unchecked {
    border: 2px solid #eee;
    background-color: transparent;
}

.check-circle.light.checked {
    background-color: #555e6b;
}

.check-circle.standard.checked {
    background-color: var(--color-teal);
}

.check-circle.pro.checked {
    background-color: #2b6b9a;
}

.check-circle.consulting.checked {
    background-color: #1e834d;
}

.dash-text {
    color: #ddd;
    font-size: 0.8rem;
}

/* --- Plan Cards --- */
.plan-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.plan-card {
    flex: 1;
    min-width: 0;
    max-width: 280px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 40px 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.plan-card.light {
    border-color: #f0f7f4;
    border-top-width: 8px;
    border-top-color: #B8DCD4;
}

.plan-card.standard {
    border-color: #e8f4f3;
    border-top-width: 8px;
    border-top-color: var(--color-teal);
    box-shadow: 0 20px 50px rgba(74, 155, 155, 0.15);
}

.plan-card.professional {
    border-color: #e8f0f5;
    border-top-width: 8px;
    border-top-color: #2b6b9a;
}

.plan-card.full {
    border-color: #e6edf2;
    border-top-width: 8px;
    border-top-color: var(--color-blue);
}

.plan-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.plan-name-main {
    font-size: 0.85rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 20px;
    white-space: nowrap;
}

.plan-name-sub {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}

.plan-catch {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--color-teal);
    line-height: 1.4;
    margin-top: 15px;
    margin-bottom: 20px;
    height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-target-box {
    background: #f9f9f9;
    width: 100%;
    padding: 15px 10px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.plan-target-label {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.plan-target-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    line-height: 1.5;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
    width: 100%;
}

.plan-features-list li {
    font-size: 0.75rem;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.plan-features-list li::before {
    content: '✓';
    color: var(--color-teal);
    font-weight: bold;
}

.plan-price-large {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
    width: 100%;
    white-space: nowrap;
}

.plan-price-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-blue);
    display: inline;
}

.plan-price-period {
    font-size: 0.8rem;
    color: #888;
    display: inline;
    margin-left: 5px;
}

/* --- Accordion Table --- */
.accordion-table-wrapper {
    margin-top: 30px;
}

.accordion-trigger {
    display: block;
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid var(--color-sand);
    color: var(--color-teal);
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    margin: 0 auto;
    max-width: 400px;
}

.accordion-trigger:hover {
    background: var(--color-teal-light);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.accordion-content.open {
    max-height: 3000px;
}

.accordion-trigger.open::after {
    content: ' ✕';
}

.accordion-trigger:not(.open)::after {
    content: ' ▾';
}

/* 共通内容枠 */
.common-service-box {
    background-color: #E6F4F1;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px solid var(--color-sand);
    text-align: center;
}

.common-service-box h4 {
    margin-top: 0;
    color: var(--color-teal);
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.common-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.common-service-list li {
    position: relative;
    padding-left: 20px;
}

.common-service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-teal);
    font-weight: bold;
}

/* --- スポット相談 --- */
.spot-section {
    margin-bottom: 100px;
}

.spot-header-wrapper {
    background-color: #FAF9F6;
    border-radius: 50px 0 50px 0;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 50px;
}

.spot-header-title {
    font-size: 2rem;
    color: var(--color-teal);
    font-weight: bold;
    letter-spacing: 0.1em;
}

.spot-content {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
    max-width: 960px;
    margin: 0 auto;
}

.spot-image-wrapper {
    flex: 1;
    position: relative;
}

.spot-image {
    width: 100%;
    border-radius: 30px 0 30px 0;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    max-height: 350px;
}

.spot-text-wrapper {
    flex: 1.2;
}

.spot-desc {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #444;
}

.spot-list-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.spot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.spot-list li {
    position: relative;
    padding-left: 15px;
    font-weight: bold;
    color: #555;
    width: 100%;
}

.spot-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--color-teal);
}

.spot-price-badge {
    display: inline-block;
    border: 1px solid #444;
    border-radius: 30px;
    padding: 10px 30px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #444;
}

/* --- Startup Steps (Roadmap Design) --- */
.startup-roadmap {
    margin: 60px 0 80px;
}

.startup-steps {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.step-card {
    flex: 1;
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-sand);
}

.step-num-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--color-teal);
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}


.step-card p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.step-highlight {
    background: var(--color-teal-light);
    color: var(--color-teal);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
}

.step-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 80px;
    /* ロゴの高さに合わせる */
    margin-bottom: 5px;
}

.step-card h3 {
    font-size: 1.2rem;
    color: var(--color-blue);
    margin: 0;
    /* タイトルエリア内で中央寄せするため */
    line-height: 1.4;
}

.freee-title-logo {
    max-width: 70px;
    /* 少し小さめに調整 */
    height: auto;
}

.startup-steps::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    height: 2px;
    background: dashed #e0e0e0;
    z-index: -1;
}

/* --- 追加のレスポンシブ対応 --- */
@media screen and (max-width: 900px) {
    .startup-steps {
        flex-direction: column;
        gap: 40px;
    }

    .startup-steps::after {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .plan-cards-container {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }

    .bordered-section {
        padding: 40px 20px;
        margin-bottom: 60px;
    }

    .section-number {
        font-size: 3rem;
        top: -50px;
    }

    .comparison-grid {
        flex-direction: column;
        gap: 30px;
    }

    .comparison-col+.comparison-col {
        border-left: none;
        padding-left: 0;
        border-top: 1px dotted #ccc;
        padding-top: 30px;
    }

    .consultation-circle {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px auto;
    }

    .spot-content {
        flex-direction: column;
        padding: 0;
    }

    .spot-text-wrapper {
        text-align: center;
        margin-top: 20px;
    }

    .spot-list {
        justify-content: center;
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .spot-list li {
        text-align: left;
        width: 100%;
        display: block;
    }
}