/* ==============================================
   施設運営者向け掲載案内ページ CSS
   page-for-facilities.php
   ============================================== */

.for-facilities {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.8;
}

/* ========== 共通セクション ========== */

.ff-section__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}

.ff-section__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    opacity: 0.7;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ff-section__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: var(--space-xl);
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

@media (min-width: 769px) {
    .ff-section__title {
        font-size: 28px;
        margin-bottom: var(--space-2xl);
    }
}

/* ========== S1: ヒーロー ========== */

.ff-hero {
    background: linear-gradient(170deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 60%),
                url('../img/hero-03.webp') center / cover no-repeat;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.ff-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary-mid) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.ff-hero__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 64px var(--space-xl) 56px;
    position: relative;
    z-index: 1;
    text-align: center;
}

@media (min-width: 769px) {
    .ff-hero__inner {
        padding: 80px var(--space-xl) 72px;
    }
}

.ff-hero__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--color-text);
    line-height: 1.45;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

@media (min-width: 769px) {
    .ff-hero__title {
        font-size: 36px;
        line-height: 1.4;
    }
}

.ff-hero__subtitle {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* 統計 */
.ff-hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ff-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.ff-hero__stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.ff-hero__stat-number small {
    font-size: 14px;
    font-weight: 700;
}

.ff-hero__stat-number--accent {
    font-size: 20px;
    color: var(--color-secondary);
}

@media (min-width: 769px) {
    .ff-hero__stat-number {
        font-size: 36px;
    }
    .ff-hero__stat-number small {
        font-size: 16px;
    }
    .ff-hero__stat-number--accent {
        font-size: 24px;
    }
}

.ff-hero__stat-label {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
    font-weight: 500;
}

.ff-hero__cta {
    display: inline-flex;
}

/* ========== S2: お悩み ========== */

.ff-problems {
    background: var(--color-surface);
}

.ff-problems__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 769px) {
    .ff-problems__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

.ff-problem-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.ff-problem-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.ff-problem-card__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.ff-problem-card__headline {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.ff-problem-card__list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.ff-problem-card__list li {
    font-size: 14px;
    color: var(--color-text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.ff-problem-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-secondary-light);
    border: 2px solid var(--color-secondary);
}

/* ========== S3: 特長 ========== */

.ff-features {
    background: var(--color-secondary);
}
.ff-features .ff-section__label {
    color: #fff;
    opacity: 0.85;
}
.ff-features .ff-section__title {
    color: #fff;
}

.ff-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 769px) {
    .ff-features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

.ff-feature-card {
    background: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
}

.ff-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.ff-feature-card__number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-primary-mid);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.ff-feature-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.ff-feature-card__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.85;
}

/* ========== S4: 料金プラン ========== */

.ff-pricing {
    background: var(--color-surface);
}

.ff-pricing__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    max-width: 720px;
}

@media (min-width: 769px) {
    .ff-pricing__cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

.ff-plan-card {
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
}

.ff-plan-card--recommended {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 24px rgba(240, 149, 106, 0.15);
}

.ff-plan-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 20px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
}

.ff-plan-card__name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    margin-top: var(--space-sm);
}

.ff-plan-card--recommended .ff-plan-card__name {
    margin-top: var(--space-md);
}

.ff-plan-card__price {
    margin-bottom: var(--space-sm);
}

.ff-plan-card__price-amount {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.ff-plan-card--recommended .ff-plan-card__price-amount {
    color: var(--color-secondary);
}

.ff-plan-card__price-unit {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-left: 2px;
}

.ff-plan-card__price-unit small {
    font-size: 12px;
}

.ff-plan-card__discount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-sm);
}

.ff-plan-card__original-price {
    font-size: 13px;
    color: var(--color-text-tertiary);
    text-decoration: line-through;
}

.ff-plan-card__discount-rate {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--color-error);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.ff-plan-card__monthly {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.ff-plan-card__monthly strong {
    color: var(--color-text);
    font-weight: 800;
}

.ff-plan-card__features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-xl);
    text-align: left;
}

.ff-plan-card__features li {
    font-size: 14px;
    color: var(--color-text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.5;
}

.ff-plan-card__features li:last-child {
    border-bottom: none;
}

.ff-plan-card__features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
}

/* 比較表 */
.ff-compare__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.ff-compare__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ff-compare__table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 13px;
}

.ff-compare__table th,
.ff-compare__table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.ff-compare__table thead th {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    background: var(--color-surface-alt);
    border-bottom: 2px solid var(--color-border);
    line-height: 1.4;
}

.ff-compare__table thead th:first-child {
    background: transparent;
}

.ff-compare__label {
    font-weight: 600;
    color: var(--color-text);
    text-align: left !important;
    white-space: nowrap;
}

.ff-compare__highlight {
    background: var(--color-primary-pale) !important;
    color: var(--color-primary);
    font-weight: 600;
}

.ff-compare__table thead .ff-compare__highlight {
    color: var(--color-primary);
    font-weight: 800;
    background: var(--color-primary-pale) !important;
}

.ff-compare__highlight strong {
    color: var(--color-primary-dark);
    font-weight: 800;
}

/* ========== S5: ご利用の流れ ========== */

.ff-flow {
    background: var(--color-bg);
}

.ff-flow__steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

@media (min-width: 769px) {
    .ff-flow__steps {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }
}

.ff-flow__step {
    text-align: center;
    flex: 1;
    max-width: 320px;
}

.ff-flow__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: var(--space-md);
}

.ff-flow__step-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.ff-flow__step-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.ff-flow__step-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin: var(--space-md) 0;
    position: relative;
}

.ff-flow__step-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-primary-mid);
    border-right: 2px solid var(--color-primary-mid);
}

/* モバイルでは下矢印 */
@media (max-width: 768px) {
    .ff-flow__step-arrow::before {
        transform: translate(-50%, -50%) rotate(135deg);
    }
}

/* PCでは右矢印 */
@media (min-width: 769px) {
    .ff-flow__step-arrow {
        margin: 36px var(--space-md) 0;
    }
    .ff-flow__step-arrow::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }
}

/* ========== S6: 導入事例 ========== */

.ff-voices {
    background: var(--color-surface);
}

.ff-voices__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 769px) {
    .ff-voices__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

.ff-voice-card {
    background: var(--color-bg);
    border: 2px solid var(--color-secondary-light, #f0c8a0);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.ff-voice-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.ff-voice-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-secondary) !important;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.ff-voice-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
}

.ff-voice-card__meta {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

.ff-voice-card__text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.85;
}

.ff-voice-card__text strong {
    color: var(--color-secondary-dark, #d47a3a);
    font-weight: 700;
}

/* ========== S7: FAQ ========== */

.ff-faq {
    background: var(--color-surface);
}

.ff-faq__list {
    max-width: 720px;
}

.ff-faq__item {
    border-bottom: 1px solid var(--color-border);
}

.ff-faq__item:first-child {
    border-top: 1px solid var(--color-border);
}

.ff-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    line-height: 1.55;
    transition: color 0.2s;
}

.ff-faq__question:hover {
    color: var(--color-primary);
}

.ff-faq__icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-right: 2px solid var(--color-text-secondary);
    border-bottom: 2px solid var(--color-text-secondary);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.ff-faq__question[aria-expanded="true"] .ff-faq__icon {
    transform: rotate(-135deg);
}

.ff-faq__answer {
    padding: 0 0 var(--space-lg) 0;
}

.ff-faq__answer[hidden] {
    display: none;
}

.ff-faq__answer p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.85;
}

/* ========== S7: お問い合わせフォーム ========== */

.ff-contact {
    background: var(--color-primary-pale);
}

.ff-contact__lead {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.ff-contact__form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
}

@media (min-width: 769px) {
    .ff-contact__form {
        padding: var(--space-2xl);
    }
}

.ff-contact__field {
    margin-bottom: var(--space-lg);
}

.ff-contact__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.ff-contact__required {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--color-error);
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

.ff-contact__input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ff-contact__input::placeholder {
    color: var(--color-text-tertiary);
}

.ff-contact__input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 139, 111, 0.12);
}

.ff-contact__input.is-error {
    border-color: var(--color-error);
}

/* ラジオボタン */
.ff-contact__radios {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.ff-contact__radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
}

.ff-contact__radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* エラー・成功メッセージ */
.ff-contact__error {
    background: rgba(192, 57, 43, 0.08);
    color: var(--color-error);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.ff-contact__error[hidden] {
    display: none;
}

.ff-contact__success {
    background: var(--color-primary-pale);
    color: var(--color-primary-dark);
    font-size: 15px;
    font-weight: 600;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    line-height: 1.7;
}

.ff-contact__success[hidden] {
    display: none;
}

.ff-contact__submit {
    margin-top: var(--space-sm);
}

.ff-contact__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== ページ末CTA ========== */

.ff-bottom-cta {
    background: var(--color-primary);
    text-align: center;
}

.ff-bottom-cta .ff-section__inner {
    padding: var(--space-2xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

@media (min-width: 769px) {
    .ff-bottom-cta .ff-section__inner {
        flex-direction: row;
        justify-content: center;
    }
}

.ff-bottom-cta__text {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.ff-bottom-cta .btn--secondary {
    background: #fff;
    color: var(--color-secondary);
    white-space: nowrap;
}

.ff-bottom-cta .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-secondary-dark);
}

/* ========== フッター固定CTA ========== */
.ff-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--color-secondary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    pointer-events: none;
}
.ff-sticky-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.ff-sticky-cta__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 12px var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}
.ff-sticky-cta__text {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}
.ff-sticky-cta__btn {
    background: #fff !important;
    color: var(--color-secondary) !important;
    font-weight: 700;
    padding: 10px 32px;
    border-radius: 100px;
    white-space: nowrap;
    font-size: 14px;
    transition: background 0.2s ease;
}
.ff-sticky-cta__btn:hover {
    background: rgba(255,255,255,0.9) !important;
}
@media (max-width: 768px) {
    .ff-sticky-cta__inner {
        flex-direction: column;
        gap: 8px;
        padding: 10px var(--space-md);
    }
    .ff-sticky-cta__text {
        font-size: 13px;
    }
    .ff-sticky-cta__btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* SP表示のみbr */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

/* ========== レスポンシブ調整 ========== */

@media (max-width: 768px) {
    .ff-hero__inner {
        text-align: left;
        padding: 40px var(--space-lg) 36px;
    }
    .ff-hero__title {
        font-size: 22px;
        line-height: 1.5;
    }
    .ff-hero__subtitle {
        margin-left: 0;
        margin-right: 0;
        font-size: 14px;
    }
    .ff-hero__subtitle br {
        display: none;
    }
    .ff-hero__stats {
        justify-content: flex-start;
        gap: var(--space-md);
    }
    .ff-hero__stat {
        align-items: flex-start;
    }
    .ff-hero__cta {
        width: 100%;
        justify-content: center;
    }
    .ff-section__inner {
        padding: 56px var(--space-lg);
    }
    .ff-plan-card__price-amount {
        font-size: 32px;
    }
    .ff-compare__table {
        font-size: 12px;
    }
    .ff-compare__table th,
    .ff-compare__table td {
        padding: 10px 8px;
    }
}
