/* Common Page Components Styles */

/* Page Header Styles */
.page-header {
    margin-top: 2.5rem;
    padding: 3rem 0;
}

.page-header .title-slide-up {
    opacity: 1 !important; /* アニメーションによる不可視化を防止 */
}

/* Section Styles */
.page-section {
    padding: 4rem 0;
}

.page-section-header {
    margin-bottom: 3rem;
}

.page-section-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.page-section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* Flow Chart */
.flow-chart {
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    position: relative;
    padding: 2rem;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 0.5rem;
    margin-bottom: 3rem;
}

.flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--color-primary);
}

.flow-step-number {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.flow-step-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.price-table th,
.price-table td {
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

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

.price-table tr:nth-child(even) {
    background: #f8fafc;
}

.price-table td:last-child {
    text-align: right;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

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

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* Circle Navigation */
.circle-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1090px;
    margin: 0 auto;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .circle-nav {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.circle-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    padding: 1rem;
    color: #374151;
    transition: all 0.3s ease;
    text-decoration: none;
}

.circle-nav-item:hover {
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.circle-nav-icon {
    margin-bottom: 0.5rem;
    color: #374151;
}

.circle-nav-title {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
    text-align: center;
}

.circle-nav-subtitle {
    font-size: 0.625rem;
    line-height: 0.75rem;
    color: #6b7280;
    text-align: center;
}

@media (min-width: 768px) {
    .circle-nav-item {
        padding: 1.5rem;
    }
    .circle-nav-icon {
        margin-bottom: 0.75rem;
    }
    .circle-nav-title {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    .circle-nav-subtitle {
        font-size: 0.75rem;
        line-height: 1rem;
    }
}

/* Icon Set */
.icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .icon {
        width: 2rem;
        height: 2rem;
    }
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.icon-xl {
    width: 2.5rem;
    height: 2.5rem;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    .page-section {
        padding: 3rem 0;
    }

    .page-section-title {
        font-size: 1.875rem;
    }

    .flow-step {
        padding: 1.5rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.75rem;
    }

    .btn-lg {
        padding: 0.875rem 2.5rem;
    }
}
