﻿/* ========================================
   復旧申請ページ専用スタイル
   HTML側の <main class="recovery-page"> 内に適用
   ======================================== */

.recovery-page {
    --recovery-pink: #f58084;
    --recovery-red: #f20d0d;
    --recovery-border: #aaa;
    --recovery-text: #222;

    color: var(--recovery-text);
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.7;
    box-sizing: border-box;
}

.recovery-page *,
.recovery-page *::before,
.recovery-page *::after {
    box-sizing: border-box;
}

/* ページタイトル */
.recovery-page .page-title {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.5;
}

/* セクション枠 */
.recovery-page .section {
    position: relative;
    margin: 30px 14px 34px;
    padding: 70px 24px 24px;
    border: 1px solid var(--recovery-border);
    border-radius: 4px;
    background: #fff;
}

/* 枠の上端いっぱいに広がるピンクの見出し */
.recovery-page .section-title {
    position: absolute;
    top: -1px;
    right: -1px;
    left: -1px;
    margin: 0;
    padding: 10px 24px;
    width: auto;
    background: var(--recovery-pink);
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
    border-radius: 4px;
}

.recovery-page .section-content {
    min-width: 0;
    padding-top: 0;
}

/* 重要なお知らせ */
.recovery-page .notice-heading {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: bold;
}

.recovery-page .notice-heading a {
    color: var(--recovery-text);
    text-decoration: underline;
    text-decoration-color: #e7c74b;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.recovery-page .notice-date {
    font-size: 15px;
    font-weight: normal;
}

.recovery-page .notice-body {
    margin: 0;
}

/* 復旧申請の案内 */
.recovery-page .intro-text {
    margin: 0 0 18px;
    overflow-wrap: anywhere;
}

.recovery-page .important-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px;
    padding: 15px 18px;
    border: 1px solid #f0cece;
    border-radius: 4px;
    background: #fff5f5;
}

.recovery-page .important-icon {
    flex: 0 0 auto;
    color: #b42318;
    font-size: 24px;
    line-height: 1.5;
}

.recovery-page .important-point strong {
    display: block;
    margin-bottom: 3px;
}

.recovery-page .important-point p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* 復旧申請方法のアコーディオン */
.recovery-page .procedure-details {
    margin-top: 12px;
    text-align: center;
}

.recovery-page .procedure-details summary {
    list-style: none;
    cursor: pointer;
}

.recovery-page .procedure-details summary::-webkit-details-marker {
    display: none;
}

.recovery-page .procedure-details summary::marker {
    content: "";
}

/* 控えめな白背景＋赤枠の展開ボタン */
.recovery-page .procedure-details > summary.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    max-width: 100%;
    min-height: 44px;
    margin: 0 auto;
    padding: 9px 22px;
    border: 1px solid #e34b50;
    border-radius: 4px;
    background: #fff;
    color: #c9363c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    transition: background-color 0.2s ease;
}

.recovery-page .procedure-details > summary.action-button:hover {
    background: #fff3f3;
}

.recovery-page .procedure-details summary:focus-visible,
.recovery-page .accordion-item summary:focus-visible {
    outline: 2px solid #2463a6;
    outline-offset: 2px;
}

.recovery-page .procedure-open {
    display: none;
}

.recovery-page .procedure-details[open] .procedure-closed {
    display: none;
}

.recovery-page .procedure-details[open] .procedure-open {
    display: inline;
}

.recovery-page .procedure-content {
    margin-top: 20px;
    padding: 22px 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    text-align: left;
}

.recovery-page .procedure-content h3 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 20px;
}

.recovery-page .procedure-content ol {
    margin: 0;
    padding-left: 1.5em;
}

.recovery-page .procedure-content li {
    margin-bottom: 18px;
    padding-left: 5px;
}

.recovery-page .procedure-content li:last-child {
    margin-bottom: 0;
}

.recovery-page .procedure-content li p {
    margin: 5px 0 0;
}

.recovery-page .procedure-note {
    margin: 20px 0 0;
    color: #666;
    font-size: 13px;
}

/* その他の案内：アコーディオン */
.recovery-page .accordion-list {
    margin: 0;
    padding: 0;
}

.recovery-page .accordion-item {
    border-bottom: 1px solid #ddd;
}

.recovery-page .accordion-item:first-child {
    border-top: 1px solid #ddd;
}

.recovery-page .accordion-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 8px;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.recovery-page .accordion-item summary::-webkit-details-marker {
    display: none;
}

.recovery-page .accordion-item summary::marker {
    content: "";
}

.recovery-page .accordion-item summary:hover {
    background: #f8f8f8;
}

.recovery-page .accordion-icon {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 23px;
}

.recovery-page .accordion-label {
    flex: 1;
    font-weight: bold;
}

.recovery-page .accordion-arrow {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.recovery-page .accordion-arrow::before,
.recovery-page .accordion-arrow::after {
    position: absolute;
    top: 8px;
    left: 3px;
    width: 12px;
    height: 2px;
    background: #666;
    content: "";
}

.recovery-page .accordion-arrow::after {
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.recovery-page .accordion-item[open] .accordion-arrow::after {
    transform: rotate(0deg);
}

.recovery-page .accordion-content {
    padding: 4px 18px 18px 54px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.recovery-page .accordion-content p {
    margin: 12px 0;
}

.recovery-page .accordion-content ul {
    margin: 10px 0;
    padding-left: 1.5em;
}

.recovery-page .accordion-content li {
    margin: 5px 0;
}

/* 注意箇所の下線 */
.recovery-page .attention-underline {
    text-decoration-line: underline;
    text-decoration-color: #e7838a;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    font-weight: 600;
}

/* スマートフォン */
@media (max-width: 600px) {
    .recovery-page .page-title {
        margin-bottom: 24px;
        font-size: 23px;
    }

    .recovery-page .section {
        margin: 28px 8px 30px;
        padding: 58px 14px 18px;
    }

    .recovery-page .section-title {
        top: -1px;
        right: -1px;
        left: -1px;
        max-width: none;
        padding: 8px 14px;
        font-size: 17px;
        line-height: 1.5;
        border-radius: 4px;
        overflow-wrap: anywhere;
    }

    .recovery-page .notice-heading {
        font-size: 16px;
    }

    .recovery-page .notice-date {
        font-size: 13px;
    }

    .recovery-page .important-point {
        gap: 9px;
        padding: 13px 12px;
    }

    .recovery-page .procedure-details > summary.action-button {
        width: auto;
        max-width: 100%;
        min-height: 42px;
        padding: 9px 14px;
        font-size: 15px;
    }

    .recovery-page .procedure-content {
        padding: 18px 14px;
    }

    .recovery-page .procedure-content h3 {
        font-size: 18px;
    }

    .recovery-page .accordion-item summary {
        gap: 8px;
        padding: 13px 3px;
    }

    .recovery-page .accordion-icon {
        flex-basis: 28px;
        font-size: 21px;
    }

    .recovery-page .accordion-label {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .recovery-page .accordion-content {
        padding: 4px 12px 16px 39px;
        font-size: 14px;
    }
}
