/* =========================================
   お悩みごとまとめページ 専用CSS
   配置想定：/css/worries-summary.css
   HTML想定：/worries/index.html
========================================= */

body.worries-summary-page main {
    padding-top: 0 !important;
}

/* ===== ファーストビュー ===== */
.worries-summary-hero .worry-hero-inner {
    justify-content: center;
}

.worries-summary-hero-card {
    max-width: 860px;
    text-align: center;
}

.worries-summary-hero-card .worry-eyebrow {
    justify-content: center;
}

.worries-summary-hero-card .worry-hero-buttons {
    justify-content: center;
}

/* ===== 導入・迷った方向け案内 ===== */
.worries-intro-section .section-subtitle {
    margin-bottom: 28px;
}

.worries-guide-box {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--worry-border);
    border-radius: 24px;
    box-shadow: var(--worry-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.worries-guide-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--worry-orange-light);
    color: var(--worry-orange);
    font-size: 24px;
}

.worries-guide-box p {
    margin: 0;
    line-height: 1.85;
    color: var(--worry-text);
    font-weight: 700;
}

.worries-guide-box a {
    color: var(--worry-orange);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 900;
}

/* ===== カテゴリーボタン ===== */
.worries-category-nav {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.worries-category-button {
    min-height: 82px;
    padding: 16px 18px;
    border-radius: 999px;
    background: #f08300;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(240, 131, 0, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.worries-category-button:hover {
    color: #fff;
    background: #d07200;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(240, 131, 0, 0.28);
}

.worries-category-button i {
    font-size: 22px;
}

/* ===== カテゴリー見出し ===== */
.worries-category-block {
    scroll-margin-top: 96px;
    margin-top: 44px;
}

.worries-category-block:first-of-type {
    margin-top: 0;
}

.worries-category-heading {
    /* display: flex; */
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 22px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    border: 1px solid var(--worry-border);
}

.worries-category-heading div {
    margin-bottom: 20px;
}

.worries-category-mark {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    background: var(--worry-orange);
    color: #fff;
    font-size: 28px;
}

.worries-category-label {
    color: var(--worry-orange);
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.worries-category-heading h3 {
    color: var(--worry-text);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.35;
    margin: 0;
}

/* ===== お悩みカード ===== */
.worries-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.worries-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px 26px 24px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--worry-shadow);
    border: 2px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.worries-card:hover {
    transform: translateY(-4px);
    border-color: var(--worry-orange);
    box-shadow: 0 16px 36px rgba(232, 130, 12, 0.16);
}

.worries-card.is-ready::after {
    content: "作成中";
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--worry-orange);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.worries-card-icon {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--worry-orange-light);
    color: var(--worry-orange);
    font-size: 26px;
    margin-bottom: 16px;
}

.worries-card-category {
    color: var(--worry-orange);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.worries-card h4 {
    color: var(--worry-text);
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 900;
    margin-bottom: 12px;
    padding-right: 48px;
}

.worries-card p:not(.worries-card-category) {
    color: var(--worry-sub);
    line-height: 1.85;
    font-size: 0.96rem;
    margin-bottom: 20px;
}

.worries-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--worry-orange);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.worries-card-link::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.worries-card-link:hover {
    color: #fff;
    background: var(--worry-orange-dark);
    transform: translateY(-1px);
}

/* ===== 大切にしていること ===== */
.worries-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 32px;
}

.worries-value-card {
    text-align: center;
}

.worries-value-card p {
    text-align: left;
}

/* ===== 代表メッセージ ===== */
.worries-message-card {
    align-items: flex-start;
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
    .worries-value-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* .worries-summary-hero-card {
        text-align: left;
    } */

    .worries-summary-hero-card .worry-eyebrow,
    .worries-summary-hero-card .worry-hero-buttons {
        justify-content: flex-start;
    }

    .worries-guide-box {
        display: block;
        padding: 22px 18px;
    }

    .worries-guide-icon {
        margin-bottom: 12px;
    }

    .worries-category-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .worries-category-button {
        min-height: 58px;
        border-radius: 18px;
    }

    .worries-category-heading {
        align-items: flex-start;
        padding: 20px 18px;
    }

    .worries-category-mark {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .worries-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .worries-card {
        padding: 24px 20px 22px;
    }

    .worries-card p:not(.worries-card-category) {
        font-size: 12px;
    }

    .worries-card h4 {
        padding-right: 0;
        font-size: 14px;
    }

    .worries-card.is-ready::after {
        top: 16px;
        right: 16px;
    }

    .worries-card-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .worries-category-heading {
        display: block;
    }

    .worries-category-mark {
        margin-bottom: 12px;
    }
}