.news-filter-button {
    background-color: rgba(31, 182, 173, 0.1);
    border: 2px solid rgba(15, 23, 42, 0.75);
    color: #0f172a;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.news-filter-button:hover {
    background-color: rgba(31, 182, 173, 0.18);
    border-color: rgba(15, 23, 42, 0.85);
    color: #0b1220;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.news-filter-button.is-active {
    background: linear-gradient(135deg, #1fb6ad, #0f8a9a);
    border-color: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(15, 138, 154, 0.26);
}

.news-filter-button.is-active:hover {
    background: linear-gradient(135deg, #12988f, #0c6f7d);
    border-color: rgba(12, 23, 40, 0.8);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(12, 111, 125, 0.32);
}

.btn.btn-outline-primary {
    background-color: transparent;
    border: 1.8px solid #1fb6ad;
    color: #0f4c5c;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(31, 182, 173, 0.14);
}

.btn.btn-outline-primary:hover {
    background-color: rgba(31, 182, 173, 0.12);
    border-color: #12988f;
    color: #0f172a;
    box-shadow: 0 12px 24px rgba(18, 152, 143, 0.18);
}

.btn.btn-primary {
    background-color: #1fb6ad;
    border-color: #1fb6ad;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(31, 182, 173, 0.24);
    transition: all 0.2s ease;
}

.btn.btn-primary:hover {
    background-color: #12988f;
    border-color: #12988f;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(18, 152, 143, 0.28);
}

.btn.btn-secondary {
    background-color: rgba(31, 182, 173, 0.1);
    border-color: rgba(31, 182, 173, 0.3);
    color: #0f4c5c;
    transition: all 0.2s ease;
}

.btn.btn-secondary:hover {
    background-color: rgba(31, 182, 173, 0.18);
    border-color: rgba(18, 152, 143, 0.4);
    color: #0f172a;
}

.question-history-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.question-history-item {
    text-align: center;
    min-width: 2.5rem;
    flex: 0 0 auto;
}

.question-history-item .text-muted {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.support-links .text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Figmaデザインに基づいたスタイル */

:root {
    --teal-color: #008080;
    --dark-blue-color: #366092;
    --light-gray-color: #E0E0E0;
    --white-color: #FFFFFF;
    --black-color: #000000;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background-color: #f1f5f9;
    color: #0f172a;
    line-height: 1.6;
    min-height: 100vh;
}

main {
    width: 100%;
    display: block;
    margin-top: clamp(0.65rem, 2.6vw, 1.25rem);
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    color: #0f172a;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.like-button .like-icon {
    font-size: 1rem;
    line-height: 1;
}

.like-button .like-count {
    font-weight: 600;
}

.like-button:hover {
    border-color: rgba(15, 122, 138, 0.6);
    color: #0f7a8a;
}

.like-button.is-liked {
    background-color: rgba(15, 122, 138, 0.12);
    border-color: rgba(15, 122, 138, 0.45);
    color: #0f7a8a;
}

.like-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ヘッダー */
.header-teal {
    background-color: var(--teal-color);
    color: var(--white-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-teal .app-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white-color);
    margin: 0;
}

.header-teal .header-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-teal .header-icons i,
.header-teal .header-icons svg {
    color: var(--white-color);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ユーザーメニュー */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-info-clickable {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.user-info-clickable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.login-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.login-badge span:first-child {
    color: #4ade80; /* 緑色の点 */
    margin-right: 0.25rem;
}

.logout-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.username {
    font-weight: 500;
    color: white;
}

.user-dropdown,
.main-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background-color: var(--white-color);
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show,
.main-dropdown.show {
    display: block;
}

.user-dropdown .dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    color: var(--black-color);
    background-color: #f8f9fa;
}

.user-dropdown .dropdown-item,
.main-dropdown .dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--black-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.main-dropdown .dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.25rem 0;
}

.user-dropdown .dropdown-item:hover,
.main-dropdown .dropdown-item:hover {
    background-color: var(--light-gray-color);
}

.main-dropdown .dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--black-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

/* セクションバナー */
.section-banner {
    background: linear-gradient(135deg, #1fb6ad, #0f8a9a);
    color: var(--white-color);
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1.25rem, 4vw, 2.25rem);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 600;
    width: min(100% - clamp(1rem, 4vw, 2rem), 1080px);
    margin: clamp(1.5rem, 4vw, 2.5rem) auto clamp(0.85rem, 2vw, 1.5rem);
    border-radius: 18px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    box-shadow: 0 16px 34px rgba(31, 182, 173, 0.22);
}

/* コンテンツエリア */
.content-area {
    background-color: var(--white-color);
    padding: 2rem 2.5rem;
    min-height: calc(100vh - 150px);
    text-align: left;
    width: min(100% - clamp(1.5rem, 4vw, 3.5rem), 1100px);
    margin: clamp(0.5rem, 2vw, 1rem) auto clamp(2rem, 4vw, 3rem);
    box-sizing: border-box;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.content-area > :first-child {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .content-area {
        padding: 1.75rem 1.75rem;
        margin-bottom: 2rem;
        border-radius: 16px;
    }

    .section-banner {
        width: min(100% - 2.5rem, 1000px);
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 1.5rem 1.25rem;
        margin: 0 auto 2rem;
        min-height: auto;
        border-radius: 14px;
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    }

    main {
        margin-top: 1.25rem;
    }

    .section-banner {
        width: calc(100% - 1.5rem);
        font-size: 1rem;
        text-align: left;
        padding: 0.85rem 1.1rem;
        margin: 0 auto 1.1rem;
        border-radius: 14px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 15px;
    }

    .content-area {
        padding: 1.25rem 1rem;
        margin: 0 auto 1.5rem;
        border-radius: 12px;
    }

    main {
        margin-top: 1.4rem;
    }

    .section-banner {
        padding: 0.7rem 0.9rem;
        width: calc(100% - 1.2rem);
        margin: 0.6rem auto 0.9rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }
}

@media (max-width: 414px) {
    .content-area {
        padding: 1.1rem 0.85rem;
        margin: 0 auto 1.25rem;
    }

    .section-banner {
        width: min(100% - 1.2rem, 100%);
        margin: 0 auto 0.85rem;
        padding: 0.7rem 0.9rem;
    }
}

/* 試験一覧 */
.exam-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exam-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(31, 182, 173, 0.12), rgba(15, 122, 138, 0.08));
    border: 1px solid rgba(15, 122, 138, 0.18);
    align-items: center;
}

.exam-intro-copy h2 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.exam-intro-copy p,
.exam-intro-highlight p {
    color: #334155;
    line-height: 1.75;
    margin: 0;
}

.exam-intro-highlight {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: rgba(31, 182, 173, 0.18);
    color: #0f4c5c;
    margin-bottom: 0.7rem;
}

.exam-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background-color: #ffffff;
    gap: 1.5rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.exam-card:hover {
    border-color: rgba(15, 122, 138, 0.4);
    transform: translateY(-1px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.exam-card-info {
    flex: 1;
    min-width: 0;
}

.exam-card-heading {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.exam-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.exam-card-title span.badge-purchased {
    background-color: rgba(34, 197, 94, 0.18);
    color: #15803d;
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    font-weight: 600;
}

.exam-card-description {
    margin-top: 0.45rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.exam-card-meta {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #334155;
}

.exam-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background-color: rgba(15, 122, 138, 0.12);
    color: #0f4c5c;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.exam-card-meta-item .meta-icon {
    font-size: 1rem;
    line-height: 1;
}

.exam-card-meta-item.meta-free {
    background-color: rgba(31, 182, 173, 0.18);
    color: #0f766e;
}

.exam-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    min-width: 220px;
}

.exam-card-price {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.2rem;
}

.exam-card-actions .question-link-button {
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.question-link-button--outline {
    background-color: transparent;
    border-color: #1fb6ad;
    color: #1fb6ad;
}

.question-link-button--outline:hover {
    background-color: rgba(31, 182, 173, 0.12);
    color: #0f4c5c;
}

.question-link-button--primary {
    background-color: #1fb6ad;
    border-color: #1fb6ad;
}

.question-link-button--primary:hover {
    background-color: #12988f;
    border-color: #12988f;
}

.exam-card-purchased {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.18);
}

.exam-card-actions form,
.exam-card-actions a {
    width: 100%;
    display: block;
}

.exam-card-actions .question-link-button + form,
.exam-card-actions .question-link-button + a {
    margin-top: 0.4rem;
}

@media (max-width: 768px) {
    .exam-intro-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.5rem;
    }

    .exam-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 1rem;
    }

    .exam-card-actions {
        width: 100%;
        min-width: 0;
        align-items: stretch;
    }

    .exam-card-price {
        text-align: left;
    }

    .exam-card-actions .question-link-button {
        display: inline-flex;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .exam-card {
        padding: 1rem;
        border-radius: 14px;
        gap: 0.85rem;
    }

    .exam-intro-card {
        padding: 1.35rem;
    }

    .exam-card-title {
        font-size: 1.05rem;
        flex-wrap: wrap;
    }

    .exam-card-description {
        font-size: 0.92rem;
    }

    .exam-card-actions {
        gap: 0.5rem;
    }

    .exam-card-actions .question-link-button {
        font-size: 0.95rem;
    }
}

/* 問題一覧用のテーブル */
.question-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.25rem;
}

.question-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(31, 182, 173, 0.14), rgba(15, 122, 138, 0.08));
    border: 1px solid rgba(15, 122, 138, 0.16);
    align-items: center;
    margin-bottom: 1.5rem;
}

.question-intro-copy h2 {
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.question-intro-copy p {
    color: #334155;
    line-height: 1.7;
    margin: 0;
}

.question-intro-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.question-intro-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.1);
    letter-spacing: 0.01em;
    cursor: default;
    pointer-events: none;
}

.question-intro-pill span:first-child {
    font-size: 1.2rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* 復習モード用のスタイル（色は通常のpillと同じ） */
.question-intro-pill--review {
    /* 通常のpillと同じスタイルを継承 */
}

.question-auth-banner {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    color: #1f2937;
    line-height: 1.75;
}

.question-auth-banner strong {
    color: #0f766e;
}

.question-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.question-toolbar-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.question-toolbar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.question-meta-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.question-meta-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.8;
}

.question-meta-separator {
    color: rgba(148, 163, 184, 0.5);
    margin: 0 0.25rem;
}

.review-button {
    display: inline-block;
    text-align: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    min-width: 220px;
}

.review-button span {
    font-size: 1.05rem;
}

.review-button--primary {
    background: linear-gradient(135deg, #1fb6ad, #0f8a9a);
    border-color: #0f8a9a;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(15, 138, 154, 0.32);
}

.review-button--primary:hover {
    background: linear-gradient(135deg, #12988f, #0c6f7d);
    border-color: #0c6f7d;
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(12, 111, 125, 0.36);
}

.review-button--outline {
    background-color: rgba(31, 182, 173, 0.18);
    border-color: #1fb6ad;
    color: #0f4c5c;
    box-shadow: 0 10px 22px rgba(31, 182, 173, 0.18);
}

.review-button--outline:hover {
    background-color: rgba(31, 182, 173, 0.28);
    border-color: #12988f;
    color: #0f172a;
    box-shadow: 0 12px 26px rgba(18, 152, 143, 0.24);
}

.review-button--ghost {
    background-color: transparent;
    border-color: rgba(148, 163, 184, 0.45);
    color: #475569;
}

.review-button--ghost:hover {
    border-color: rgba(15, 122, 138, 0.35);
    color: #0f4c5c;
}

/* 未定着ボタン用の吹き出し */
.review-button-with-tooltip {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: flex-start;
    z-index: 1;
}

.review-button-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: -12px;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 12px;
    max-width: 400px;
    min-width: 280px;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
    z-index: 1000 !important;
    /* animation: fuwafuwa 2s infinite; */ /* アニメーションを無効化 */
    pointer-events: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.review-button-tooltip::after {
    content: '';
    position: absolute;
    top: calc(100% - 18px);
    left: 1.5rem;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: rotate(45deg);
    z-index: -1;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* 吹き出しのふわふわアニメーション */
@keyframes fuwafuwa {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.question-empty-state {
    text-align: center;
    padding: 2.25rem;
    color: #0f172a;
    background-color: rgba(248, 250, 252, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    margin-top: 1.5rem;
    font-size: 1rem;
}

.question-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background-color: white;
}

.question-table th,
.question-table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray-color);
    vertical-align: middle;
}

.question-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1f2937;
}

.question-table td:first-child {
    white-space: nowrap;
    min-width: fit-content;
}

.question-table .question-table-number {
    font-weight: 600;
}

.question-table .question-table-body {
    color: #475569;
}

.question-table .question-table-history {
    min-width: 180px;
}

@media (max-width: 720px) {
    .question-table-wrapper {
        overflow: visible;
    }

    .question-table {
        min-width: 0;
        border: 0;
    }

    .question-intro-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.35rem 1.4rem;
    }

    .question-intro-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .question-table thead {
        display: none;
    }

    .question-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .question-table tr {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        background-color: #fff;
        border-radius: 12px;
        padding: 1rem;
        border: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .question-table td {
        display: block;
        border-bottom: none;
        padding: 0;
    }

    .question-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 0.35rem;
        font-size: 0.9rem;
    }

    .question-table .question-table-number {
        order: 1;
    }

    .question-table .question-table-number .question-link-button {
        width: 100%;
        justify-content: center;
        display: inline-flex;
        margin-top: 0.25rem;
    }

    .question-table .question-table-body {
        order: 2;
        color: #475569;
    }

    .question-table .question-table-history {
        order: 3;
        background-color: rgba(15, 122, 138, 0.05);
        border-radius: 10px;
        padding: 0.8rem 0.65rem;
    }

    .question-table .question-link-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: inline-flex;
    }

    .question-history-wrapper {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.35rem;
    }

    .question-history-item {
        flex: 0 0 auto;
        min-width: 2.25rem;
    }

    .question-history-item .text-muted {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .question-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .question-toolbar-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .question-toolbar-meta {
        width: 100%;
        justify-content: center;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(148, 163, 184, 0.15);
        border-bottom: none;
    }

    .review-button {
        justify-content: center;
        min-width: auto;
        width: 100%;
    }

    .review-button-with-tooltip {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .review-button-tooltip {
        position: relative;
        bottom: auto;
        left: auto;
        margin-bottom: -10px;
        margin-left: 0;
        transform: none;
        max-width: 100%;
        width: 100%;
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .review-button-tooltip::after {
        content: '';
        position: absolute;
        top: calc(100% - 15px);
        left: 1.5rem;
        width: 24px;
        height: 24px;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        transform: rotate(45deg);
        z-index: -1;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    }
}

/* 合格体験記 */
.experience-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(31, 182, 173, 0.13), rgba(15, 122, 138, 0.09));
    border: 1px solid rgba(15, 122, 138, 0.18);
    margin-bottom: 1.75rem;
    align-items: center;
}

.experience-intro-copy h2 {
    font-size: 1.45rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.experience-intro-copy p {
    color: #334155;
    line-height: 1.75;
    margin: 0;
}

.experience-intro-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-end;
}

.experience-intro-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.experience-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.88);
    color: #0f4c5c;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.15);
}

.experience-pill span {
    font-size: 1.05rem;
}

.experience-intro-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
    text-align: right;
}

.experience-intro-note {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
}

.experience-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    font-size: 0.95rem;
}

.experience-cta-button span {
    font-size: 1.05rem;
}

.experience-cta-button--primary {
    background-color: #1fb6ad;
    border-color: #1fb6ad;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(31, 182, 173, 0.28);
}

.experience-cta-button--primary:hover {
    background-color: #12988f;
    border-color: #12988f;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(18, 152, 143, 0.32);
}

.experience-cta-button--outline {
    background-color: transparent;
    border-color: rgba(15, 122, 138, 0.45);
    color: #0f4c5c;
}

.experience-cta-button--outline:hover {
    background-color: rgba(31, 182, 173, 0.08);
    color: #0f172a;
}

.experience-empty-state {
    text-align: center;
    padding: 2.25rem;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #0f172a;
    font-size: 1rem;
    margin-top: 2rem;
}

.experience-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.experience-back-link {
    color: #0f4c5c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.experience-back-link:hover {
    color: #12988f;
}

.experience-detail-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.experience-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.experience-detail-meta-icon {
    opacity: 0.8;
}

.experience-detail-meta-separator {
    color: rgba(148, 163, 184, 0.5);
}

.experience-detail-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.experience-detail-headline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.experience-detail-headline h1 {
    font-size: 1.65rem;
    margin: 0;
    color: #0f172a;
}

.experience-detail-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.community-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    padding: 1.6rem 1.8rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(31, 182, 173, 0.12), rgba(15, 122, 138, 0.08));
    border: 1px solid rgba(15, 122, 138, 0.18);
    align-items: center;
    margin-bottom: 1.5rem;
}

.community-intro-copy h2 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 0.7rem;
}

.community-intro-copy p {
    color: #334155;
    line-height: 1.75;
    margin: 0;
}

.community-intro-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.community-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background-color: #1fb6ad;
    border: 1.5px solid #1fb6ad;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(31, 182, 173, 0.26);
    transition: all 0.2s ease;
}

.community-cta-button:hover {
    background-color: #12988f;
    border-color: #12988f;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(18, 152, 143, 0.32);
}

.community-intro-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    color: #0f4c5c;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.15);
}

.community-empty-state {
    text-align: center;
    padding: 2.5rem;
    background-color: rgba(248, 250, 252, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #0f172a;
    margin-top: 1.5rem;
}

.community-empty-state p {
    font-size: 1rem;
    margin: 0;
}

.community-empty-link {
    margin-top: 0.75rem;
}

.community-empty-link a {
    color: #0f4c5c;
    text-decoration: none;
    font-weight: 600;
}

.community-empty-link a:hover {
    color: #12988f;
}

.news-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 1.25rem;
    padding: 1.75rem 1.9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(31, 182, 173, 0.13), rgba(15, 122, 138, 0.07));
    border: 1px solid rgba(15, 122, 138, 0.18);
    margin-bottom: 1.75rem;
    align-items: center;
}

.news-hero-copy h2 {
    font-size: 1.45rem;
    color: #0f172a;
    margin-bottom: 0.65rem;
}

.news-hero-copy p {
    color: #334155;
    line-height: 1.75;
    margin: 0;
}

.news-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
}

.news-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f4c5c;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.15);
}

.news-item-highlight {
    border-color: rgba(31, 182, 173, 0.45);
    box-shadow: 0 18px 34px rgba(31, 182, 173, 0.22);
    background: rgba(255, 255, 255, 0.95);
}

.news-empty-state {
    text-align: center;
    padding: 2.25rem;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #0f172a;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .community-intro-card,
    .news-hero-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.5rem 1.4rem;
        gap: 1.1rem;
    }

    .community-intro-actions,
    .news-hero-meta {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .community-cta-button,
    .news-hero-pill {
        width: 100%;
        justify-content: center;
    }
}

.experience-detail-info-left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: #475569;
    font-size: 0.95rem;
}

.experience-detail-updated {
    color: #0f4c5c;
}

.experience-detail-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #0f4c5c;
    font-weight: 600;
}

.experience-detail-content {
    color: #1f2937;
    line-height: 1.9;
    font-size: 1.02rem;
    white-space: pre-line;
    word-break: break-word;
    text-align: left !important;
    text-indent: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    direction: ltr !important;
    display: block;
    overflow-wrap: break-word;
}

.experience-detail-content::first-line {
    text-indent: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.experience-detail-content > *:first-child,
.experience-detail-content > br:first-child {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
}

/* 合格体験記返信セクション */
.experience-replies-section {
    margin-top: 2rem;
}

.experience-replies-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(15, 122, 138, 0.2);
}

.experience-reply-card {
    background-color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.experience-reply-header {
    margin-bottom: 0.75rem;
}

.experience-reply-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
    flex-wrap: wrap;
}

.experience-reply-author {
    color: #0f172a;
    font-weight: 600;
}

.experience-reply-date {
    color: #64748b;
}

.experience-reply-content {
    color: #1f2937;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    white-space: pre-line;
    word-break: break-word;
    text-align: left !important;
    text-indent: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    direction: ltr !important;
}

.experience-reply-content::first-line {
    text-indent: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.experience-reply-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-no-replies {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    color: #64748b;
}

.experience-reply-form-card {
    background-color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.experience-reply-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.experience-reply-login-prompt {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-top: 2rem;
    color: #64748b;
}

.experience-reply-login-prompt a {
    color: #0f8a9a;
    text-decoration: underline;
}

.experience-reply-login-prompt a:hover {
    color: #1fb6ad;
}

@media (max-width: 900px) {
    .experience-intro-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.5rem 1.6rem;
        gap: 1.25rem;
    }

    .experience-intro-actions,
    .experience-intro-cta {
        align-items: flex-start;
        text-align: left;
    }

    .experience-intro-pills {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .experience-intro-card {
        padding: 1.35rem 1.4rem;
    }

    .experience-cta-button {
        width: 100%;
        justify-content: center;
    }

    .experience-detail-card {
        padding: 1.5rem;
    }

    .experience-detail-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-detail-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* 問題タイトルのボタンスタイル */
.question-link-button {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: var(--teal-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1.5px solid var(--teal-color);
    white-space: nowrap;
}

.question-link-button:hover {
    background-color: #006666;
    border-color: #006666;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 前回解答の表示 */
.answer-status {
    font-size: 1.2rem;
    font-weight: bold;
}

.answer-status.correct {
    color: green;
}

.answer-status.incorrect {
    color: red;
}

/* 復習ボタン */
.review-button {
    background-color: var(--light-gray-color);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin: 1rem auto;
    display: block;
    cursor: pointer;
    width: 90%;
    max-width: 400px;
}

.review-button:hover {
    background-color: #D0D0D0;
}

.review-button:focus {
    outline: 3px solid rgba(15, 122, 138, 0.35);
    outline-offset: 3px;
}

/* 問題文エリア */
.question-body {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1.5rem 0;
}

/* 選択肢 */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.choice-box {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--black-color);
    border-radius: 8px;
    background-color: var(--light-gray-color);
    display: flex;
    align-items: center;
    height: 56px; /* 見本のボタン高さに近づける */
    font-size: 1.25rem; /* 文字を大きく */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.choice-box:hover {
    background-color: #D0D0D0;
}

.choice-box.selected {
    background-color: var(--teal-color);
    color: var(--white-color);
    border-color: var(--teal-color);
}

.choice-box input[type="radio"] {
    display: none;
}

/* 解答結果エリア */
.answer-result {
    margin: 2rem 0;
}

.correct-answer {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* アコーディオンのスタイル改善 */
.accordion {
    margin-top: 1.5rem;
}

.accordion-item {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.accordion-button {
    background-color: rgba(248, 250, 252, 0.9);
    color: #0f172a;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(31, 182, 173, 0.1);
    color: #0f4c5c;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(31, 182, 173, 0.25);
    border-color: transparent;
}

.accordion-body {
    padding: 1.25rem;
    background-color: #ffffff;
}

.explanation-section {
    margin: 1.5rem 0;
}

.explanation-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* ナビゲーションボタン */
.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.nav-button {
    background-color: #1fb6ad;
    color: #ffffff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 12px 24px rgba(31, 182, 173, 0.24);
    min-width: 140px;
}

.nav-button:hover {
    background-color: #12988f;
    box-shadow: 0 14px 28px rgba(18, 152, 143, 0.32);
    transform: translateY(-1px);
}

/* お問い合わせページ */
.contact-intro-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(15, 122, 138, 0.08);
    color: var(--dark-blue-color);
    line-height: 1.6;
}

.contact-intro-text {
    margin: 0;
    font-size: 1rem;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-submit {
    text-align: center;
    margin-top: 2rem;
}

.contact-back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.required-mark {
    color: #dc2626;
    margin-left: 0.25rem;
}

/* 購入完了ページ */
.purchase-success-content {
    text-align: center;
    padding: 2rem;
}

.purchase-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.purchase-success-icon--success {
    color: #28a745;
}

.purchase-success-icon--pending {
    font-size: 2rem;
    color: #ffc107;
}

.purchase-success-title {
    color: var(--dark-blue-color);
    margin-bottom: 1rem;
}

.purchase-success-message {
    color: var(--black-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.purchase-success-exam {
    color: var(--black-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.purchase-success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.purchase-success-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray-color);
}

/* 作成ページ */
.create-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.create-form-back-link {
    margin-bottom: 1rem;
}

.create-form-submit {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form-help-text {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ログインフォーム */
.login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--black-color);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--teal-color);
    border-width: 2px;
}

.login-button {
    background: linear-gradient(135deg, #1fb6ad, #0f8a9a);
    color: var(--white-color);
    border: none;
    border-radius: 12px;
    padding: 0.85rem 2.25rem;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 16px 30px rgba(15, 138, 154, 0.28);
    transition: all 0.2s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, #12988f, #0c6f7d);
    box-shadow: 0 18px 34px rgba(12, 111, 125, 0.32);
}

/* 解説ボタン */
.explanation-button {
    background-color: var(--light-gray-color);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1rem;
}

.explanation-button:hover {
    background-color: #D0D0D0;
}

/* エラーメッセージ */
.error-message {
    color: red;
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: #FFE5E5;
    border-radius: 4px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .choices-container {
        gap: 0.5rem;
    }
    
    .choice-box {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
    
    .question-table {
        font-size: 0.9rem;
    }
    
    .question-table th,
    .question-table td {
        padding: 0.5rem;
    }
    
    .question-table td:first-child {
        min-width: auto;
    }
    
    .question-link-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .question-table td {
        display: table-cell;
        vertical-align: middle;
    }
    
    /* ヘッダーのログイン状態表示 */
    .user-info-clickable {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-end;
        padding: 0.2rem 0.4rem;
    }
    
    .username {
        font-size: 0.8rem;
    }
    
    .login-badge,
    .logout-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* コミュニティページ */
.search-filter-box {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.search-form-group {
    flex: 1;
    min-width: 200px;
}

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

.search-form-buttons {
    display: flex;
    gap: 0.5rem;
}

.search-form-buttons .btn {
    white-space: nowrap;
    border-radius: 999px;
    font-weight: 600;
}

.search-form-buttons .btn-primary {
    background-color: #1fb6ad;
    border-color: #1fb6ad;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 182, 173, 0.24);
    transition: all 0.2s ease;
}

.search-form-buttons .btn-primary:hover {
    background-color: #12988f;
    border-color: #12988f;
    box-shadow: 0 12px 26px rgba(18, 152, 143, 0.3);
    color: #ffffff;
}

.search-form-buttons .btn-secondary {
    background-color: rgba(31, 182, 173, 0.1);
    border-color: rgba(31, 182, 173, 0.3);
    color: #0f4c5c;
    transition: all 0.2s ease;
}

.search-form-buttons .btn-secondary:hover {
    background-color: rgba(31, 182, 173, 0.18);
    border-color: rgba(18, 152, 143, 0.4);
    color: #0f172a;
}

/* トピック一覧（PC表示：テーブル） */
.topics-table-container {
    background-color: white;
    border: 1px solid var(--light-gray-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.topics-table {
    width: 100%;
    border-collapse: collapse;
}

.topics-table thead {
    background-color: var(--dark-blue-color);
    color: white;
}

.topics-table th {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--dark-blue-color);
    font-weight: 500;
}

.experience-table-container {
    border-color: rgba(31, 182, 173, 0.25);
    box-shadow: 0 22px 36px rgba(31, 182, 173, 0.18);
}

.experience-table thead {
    background: linear-gradient(135deg, #1fb6ad, #0f8a9a);
    color: #ffffff;
}

.experience-table th {
    border-bottom: none;
}

.experience-table tbody tr:nth-child(2n) {
    background-color: rgba(31, 182, 173, 0.05);
}

.experience-table tbody tr:hover {
    background-color: rgba(31, 182, 173, 0.12);
}

.community-table-container {
    border-color: rgba(31, 182, 173, 0.25);
    box-shadow: 0 22px 36px rgba(31, 182, 173, 0.18);
}

.community-table thead {
    background: linear-gradient(135deg, #1fb6ad, #0f8a9a);
    color: #ffffff;
}

.community-table th {
    border-bottom: none;
}

.community-table tbody tr:nth-child(2n) {
    background-color: rgba(31, 182, 173, 0.05);
}

.community-table tbody tr:hover {
    background-color: rgba(31, 182, 173, 0.12);
}

.topic-th-center {
    text-align: center;
}

.topics-table tbody tr {
    border-bottom: 1px solid var(--light-gray-color);
}

.topics-table tbody tr.topic-pinned {
    background-color: #fff9e6;
}

.topics-table tbody tr:last-child {
    border-bottom: none;
}

.topic-title-cell {
    padding: 0.75rem;
}

.topic-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    display: block;
}

.topic-link:hover {
    color: #12988f;
}

.topic-pin-icon {
    color: #ff6b00;
    margin-right: 0.25rem;
}

.topic-closed-label {
    color: #999;
    margin-right: 0.25rem;
}

.topic-author-cell,
.topic-exam-cell,
.topic-count-cell,
.topic-date-cell {
    padding: 0.75rem;
    text-align: center;
    color: #334155;
    font-weight: 600;
}

.topic-date-cell {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.exam-badge {
    background-color: var(--teal-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.exam-empty {
    color: #999;
}

/* トピック一覧（スマホ表示：カード） */
.topics-mobile-list {
    display: none;
}

.topic-card {
    background-color: white;
    border: 1px solid var(--light-gray-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.topic-card.topic-pinned {
    background-color: #fff9e6;
    border-left: 4px solid #ff6b00;
}

.topic-card-header {
    margin-bottom: 0.75rem;
}

.topic-card-title {
    text-decoration: none;
    color: var(--black-color);
    font-weight: 500;
    font-size: 1rem;
    display: block;
    line-height: 1.5;
}

.topic-card-title:hover {
    color: var(--teal-color);
}

.topic-card-meta {
    font-size: 0.85rem;
    color: #666;
}

.topic-card-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.topic-card-meta-row:last-child {
    margin-bottom: 0;
}

.topic-card-author {
    font-weight: 500;
    color: var(--black-color);
}

.exam-badge-mobile {
    background-color: var(--teal-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.topic-card-stats {
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topic-card-date {
    color: #999;
    margin-left: auto;
}

/* コミュニティページのレスポンシブ対応 */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form-group {
        width: 100%;
        min-width: auto;
    }
    
    .search-form-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .search-form-buttons .btn {
        flex: 1;
    }
    
    /* PC表示のテーブルを非表示 */
    .topics-table-container {
        display: none;
    }
    
    /* スマホ表示のカードを表示 */
    .topics-mobile-list {
        display: block;
    }
    
    .topic-card {
        padding: 0.75rem;
    }
    
    .topic-card-title {
        font-size: 0.95rem;
    }
    
    .topic-card-meta {
        font-size: 0.8rem;
    }
    
    .topic-card-meta-row {
        gap: 0.5rem;
    }
    
    /* ページネーションのレスポンシブ対応 */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* トピック詳細ページ */
.topic-back-link {
    margin-bottom: 1rem;
}

.topic-back-link .btn {
    display: inline-block;
    text-decoration: none;
}

.topic-detail-card {
    background-color: white;
    border: 1px solid var(--light-gray-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.topic-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.topic-detail-meta {
    flex: 1;
}

.topic-detail-meta-row {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.topic-meta-separator {
    margin-left: 0;
}

.topic-exam-badge-detail {
    background-color: var(--teal-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.topic-detail-stats {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    margin-left: 1rem;
}

.topic-detail-content {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    white-space: pre-line;
    line-height: 1.6;
    word-wrap: break-word;
    text-align: left !important;
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    text-indent: 0 !important;
    direction: ltr !important;
}

.topic-detail-content::first-line {
    text-indent: 0 !important;
    padding-left: 1rem !important;
    margin-left: 0 !important;
}

.topic-detail-content * {
    text-align: left !important;
}

.topic-replies-section {
    margin-bottom: 1.5rem;
}

.topic-replies-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.topic-post-card {
    background-color: white;
    border: 1px solid var(--light-gray-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.topic-post-header {
    margin-bottom: 0.5rem;
}

.topic-post-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.topic-post-author {
    color: var(--black-color);
}

.topic-post-date {
    margin-left: 0;
}

.topic-post-edited {
    color: #999;
    margin-left: 0;
}

.topic-post-content {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    white-space: pre-line;
    line-height: 1.6;
    word-wrap: break-word;
    text-align: left !important;
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    direction: ltr !important;
    text-indent: 0 !important;
}

.topic-post-content::first-line {
    text-indent: 0 !important;
    padding-left: 1rem !important;
    margin-left: 0 !important;
}

.topic-post-content * {
    text-align: left !important;
}

.topic-post-actions {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
}

.topic-no-replies {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.topic-no-replies p {
    color: #666;
}

.topic-reply-form-card {
    background-color: white;
    border: 1px solid var(--light-gray-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.topic-reply-form-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.topic-reply-form-submit {
    text-align: center;
}

.topic-reply-form-submit .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.topic-login-required {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.topic-login-required p {
    margin-bottom: 1rem;
}

.topic-closed-message {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.topic-closed-message p {
    color: #666;
}

/* トピック詳細ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .topic-detail-card {
        padding: 1rem;
    }
    
    .topic-detail-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .topic-detail-stats {
        text-align: left;
        margin-left: 0;
        width: 100%;
    }
    
    .topic-detail-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .topic-meta-separator {
        margin-left: 0;
    }
    
    .topic-detail-content {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .topic-post-card {
        padding: 1rem;
    }
    
    .topic-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .topic-post-date,
    .topic-post-edited {
        margin-left: 0;
    }
    
    .topic-post-content {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .topic-reply-form-card {
        padding: 1rem;
    }
    
    .topic-reply-form-title {
        font-size: 1.1rem;
    }
    
    .topic-reply-form-submit .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .topic-login-required,
    .topic-closed-message {
        padding: 1.5rem;
    }
    
    .topic-back-link .btn {
        width: 100%;
        text-align: center;
    }
}

/* ホームページ */
.home-hero {
    background: radial-gradient(125% 125% at 35% 12%, rgba(15, 122, 138, 0.75) 0%, rgba(20, 70, 92, 0.88) 48%, #0b2130 100%);
    color: #0f172a;
    padding: 5rem 1.5rem;
}

.home-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 5rem;
    align-items: center;
    flex-wrap: wrap;
}

.home-hero-copy {
    flex: 1 1 420px;
}

.home-hero-copy h1 {
    font-size: clamp(2.5rem, 3.5vw, 3.8rem);
    line-height: 1.3;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.home-hero-copy p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.home-hero-actions .btn-primary,
.home-hero-actions .btn-secondary {
    padding: 1.1rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.home-hero-actions .btn-primary {
    background-color: #fff;
    color: #0f7a8a;
    border: 2px solid transparent;
}

.home-hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    background-color: #f8fafc;
    color: #0f172a;
}

.home-hero-actions .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    backdrop-filter: blur(8px);
}

.home-hero-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.home-hero-copy .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.home-hero-copy .badge::before {
    content: '🎯';
}

.home-hero-exams {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.exam-chip {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.home-hero-visual {
    flex: 1 1 450px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding: 2rem 0;
    min-height: 400px;
}

.home-hero-image {
    max-width: 85%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    background: transparent;
    mix-blend-mode: normal;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.home-hero-image:hover {
    transform: translateY(-4px);
}

/* 画像の背景をグラデーションに溶け込ませる - 強化版 */
.home-hero-visual::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(ellipse 80% 80% at 60% 50%, 
        rgba(15, 122, 138, 0.4) 0%, 
        rgba(20, 70, 92, 0.6) 40%, 
        rgba(11, 33, 48, 0.3) 70%, 
        transparent 100%);
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

/* 画像の後ろに追加のグラデーション効果 */
.home-hero-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, 
        rgba(15, 122, 138, 0.15) 0%, 
        transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    width: min(320px, 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
}

.preview-header {
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.preview-body {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.preview-card {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 110px;
}

.preview-label {
    font-size: 0.85rem;
    opacity: 0.75;
    letter-spacing: 0.05em;
}

.preview-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.preview-unit {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

.home-section {
    padding: 5rem 1.5rem;
    background: radial-gradient(145% 145% at 85% -10%, rgba(17, 153, 158, 0.3) 0%, rgba(204, 238, 240, 0.94) 48%, rgba(230, 242, 245, 0.97) 100%);
}

.home-section-alt {
    background: radial-gradient(145% 145% at 10% -15%, rgba(31, 182, 173, 0.22) 0%, rgba(219, 242, 240, 0.95) 55%, rgba(236, 246, 246, 0.98) 100%);
}

.home-section-header {
    max-width: 1000px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

.home-section-header .section-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(15, 122, 138, 0.15), rgba(31, 182, 173, 0.15));
    color: #0f7a8a;
    border: 1px solid rgba(15, 122, 138, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(15, 122, 138, 0.1);
}

.home-section-header h2 {
    font-size: clamp(2rem, 2.5vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.home-section-header p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

.home-feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.home-feature-card {
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 122, 138, 0.1);
    padding: 1.75rem;
    box-shadow: 0 18px 36px rgba(15, 122, 138, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.home-feature-card ul {
    padding-left: 1.1rem;
    margin: 0;
    list-style: none;
}

.home-feature-card ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.home-feature-card ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #0f7a8a;
    font-size: 0.9rem;
    line-height: 1;
    top: 0.2rem;
}

.testimonial-list li {
    background-color: #f0f8ff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.plan-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
    border: 1px solid rgba(15, 122, 138, 0.15);
    box-shadow: 0 10px 20px rgba(15, 122, 138, 0.05);
}

.plan-card-highlight {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #4a3410;
    position: relative;
}

.plan-card-highlight::after {
    content: 'おすすめ';
    position: absolute;
    top: -12px;
    right: 16px;
    background-color: #fff;
    color: #f59e0b;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.plan-label {
    display: inline-block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.btn.btn-link {
    align-self: flex-start;
    padding: 0;
    color: #0f7a8a;
    font-weight: 600;
}

.home-support-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.support-card {
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 122, 138, 0.1);
    padding: 1.75rem;
    box-shadow: 0 18px 36px rgba(15, 122, 138, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.support-card p {
    color: #555;
    margin: 0;
    line-height: 1.7;
}

.policy-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.policy-links a {
    color: #0f7a8a;
    text-decoration: underline;
}

.text-link {
    color: #0f7a8a;
    font-weight: 600;
}

.home-cta {
    background: radial-gradient(140% 140% at 85% 15%, rgba(31, 182, 173, 0.45) 0%, rgba(31, 182, 173, 0.25) 40%, rgba(241, 252, 255, 0.98) 100%);
    color: #0f172a;
    padding: 5rem 1.5rem;
}

.home-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.home-cta-inner h2 {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.home-cta-inner p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.home-cta-note {
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.home-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-cta-actions .btn {
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 12px 24px rgba(31, 182, 173, 0.25);
    transition: all 0.3s ease;
}

.home-cta-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(31, 182, 173, 0.35);
}

.home-news-list {
    max-width: 1100px;
    margin: 0 auto 1.5rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.home-news-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 18px 36px rgba(15, 122, 138, 0.08);
    border: 1px solid rgba(15, 122, 138, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.home-news-badge {
    background-color: #f97316;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
}

.home-news-title {
    font-size: 1.1rem;
    margin: 0;
}

.home-news-title a {
    text-decoration: none;
    color: inherit;
}

.home-news-title a:hover {
    color: #0f7a8a;
}

.home-news-snippet {
    color: #555;
    flex: 1;
}

.home-news-actions {
    text-align: center;
}

.home-news-actions .btn {
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .home-news-list {
        grid-template-columns: 1fr;
    }
}

.home-dashboard-preview .home-dashboard-grid {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.home-dashboard-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 14px 28px rgba(15, 122, 138, 0.08);
    border: 1px solid rgba(15, 122, 138, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.home-dashboard-label {
    font-size: 0.85rem;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-dashboard-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.home-dashboard-unit {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.2rem;
}

.home-dashboard-sub {
    font-size: 0.85rem;
    color: #94a3b8;
}

.home-dashboard-recent {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 24px rgba(15, 122, 138, 0.06);
    padding: 1.5rem;
}

.home-dashboard-recent h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.home-dashboard-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.home-dashboard-recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.home-dashboard-recent-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.recent-title {
    font-weight: 600;
    color: #0f172a;
}

.recent-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #64748b;
    flex-shrink: 0;
}

.recent-exam {
    font-weight: 600;
    color: #0f7a8a;
}

.home-dashboard-link {
    margin-top: 1.5rem;
    text-align: center;
}

.home-dashboard-empty {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 122, 138, 0.08), rgba(31, 182, 173, 0.08));
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(15, 122, 138, 0.12);
}

.home-dashboard-empty p {
    margin-bottom: 1rem;
    color: #334155;
}

.question-discussion {
    margin: 3rem auto 0 auto;
    max-width: 900px;
    background-color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(15, 122, 138, 0.06);
    padding: 1.75rem;
}

.discussion-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.discussion-form textarea {
    resize: vertical;
}

.discussion-actions {
    margin-top: 0.75rem;
    text-align: right;
}

.discussion-login-note {
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    color: #475569;
}

.discussion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discussion-item {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 1rem;
    background-color: #f8fafc;
}

.discussion-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.discussion-item-body {
    color: #0f172a;
    line-height: 1.6;
    white-space: pre-line;
    text-align: left !important;
    text-indent: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    direction: ltr !important;
    word-break: break-word;
}

.discussion-item-body::first-line {
    text-indent: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.discussion-item-footer {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.discussion-item-footer .btn-link {
    padding: 0;
    font-size: 0.85rem;
    white-space: nowrap;
}

.discussion-like-wrapper {
    display: flex;
    align-items: center;
}

.discussion-replies {
    margin-top: 1rem;
    border-left: 3px solid rgba(15, 122, 138, 0.2);
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.discussion-reply {
    background-color: #fff;
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.discussion-reply .discussion-item-body {
    line-height: 1.5;
}

.discussion-empty {
    text-align: center;
    color: #64748b;
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
}

.reply-form {
    margin-top: 1rem;
    border: 1px dashed rgba(15, 122, 138, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
}

.home-audience-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.home-audience-card {
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.75rem;
    box-shadow: 0 14px 28px rgba(15, 122, 138, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.home-audience-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.home-audience-card p {
    color: #475569;
    line-height: 1.7;
}

.home-audience-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #334155;
}

.home-audience-card ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .home-dashboard-preview .home-dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .home-dashboard-recent-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .recent-meta {
        gap: 0.5rem;
    }

    .home-audience-grid {
        grid-template-columns: 1fr;
    }
}

/* ダッシュボード */
.dashboard-page {
    max-width: 1100px;
    margin: 0 auto;
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.dashboard-tab {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background-color: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.dashboard-tab:hover {
    border-color: rgba(15, 122, 138, 0.6);
    color: #0f7a8a;
}

.dashboard-tab.is-active {
    background: linear-gradient(135deg, #0f7a8a, #1fb6ad);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(15, 122, 138, 0.25);
}

.dashboard-panels {
    position: relative;
}

.dashboard-panel {
    display: none;
}

.dashboard-panel.is-active {
    display: block;
}

.dashboard-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.dashboard-coaching-message {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

.dashboard-coaching-message strong {
    color: var(--teal-color);
    font-weight: 600;
}

.dashboard-metric-row {
    display: grid;
    gap: 1rem;
}

.dashboard-metric-row.top-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-metric-row.bottom-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 600px;
}

.dashboard-metric-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 122, 138, 0.1);
    box-shadow: 0 12px 24px rgba(15, 122, 138, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #64748b;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.metric-unit {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.15rem;
}

.metric-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-muted {
    color: #cbd5f5;
}

.dashboard-weekly {
    margin-bottom: 2.5rem;
}

.dashboard-weekly h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.dashboard-weekly-chart {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 24px rgba(15, 122, 138, 0.06);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.weekly-bar {
    display: grid;
    grid-template-columns: 60px 1fr 50px;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.weekly-bar-label {
    color: #475569;
    font-weight: 600;
}

.weekly-bar-track {
    background-color: #e2e8f0;
    border-radius: 999px;
    height: 12px;
    position: relative;
    overflow: hidden;
}

.weekly-bar-fill {
    background: linear-gradient(135deg, #0f7a8a, #1fb6ad);
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.weekly-bar-count {
    text-align: right;
    font-weight: 600;
    color: #0f172a;
}

.dashboard-history {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 24px rgba(15, 122, 138, 0.06);
    padding: 1.5rem;
}

.dashboard-history-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.dashboard-history-header h2 {
    font-size: 1.3rem;
}

.dashboard-history-note {
    color: #64748b;
    font-size: 0.9rem;
}

.dashboard-history-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-history-table th,
.dashboard-history-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0.5rem;
    text-align: left;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.dashboard-history-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.history-question {
    word-break: break-word;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-correct {
    background-color: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.badge-incorrect {
    background-color: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.badge-unknown {
    background-color: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.dashboard-empty {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(15, 122, 138, 0.08), rgba(31, 182, 173, 0.08));
    border-radius: 12px;
}

.dashboard-empty p {
    margin-bottom: 1rem;
    color: #334155;
}

@media (max-width: 768px) {
    .dashboard-summary {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .dashboard-tabs {
        gap: 0.6rem;
    }

    .dashboard-tab {
        flex: 1 1 calc(50% - 0.3rem);
        text-align: center;
    }

    .weekly-bar {
        grid-template-columns: 50px 1fr 40px;
        font-size: 0.85rem;
    }

    .dashboard-history-header {
        align-items: flex-start;
    }

    .dashboard-history-table th,
    .dashboard-history-table td {
        padding: 0.65rem 0.35rem;
    }
}

@media (max-width: 576px) {
    .dashboard-metric-row {
        grid-template-columns: 1fr;
    }

    .dashboard-tab {
        flex: 1 1 100%;
    }
}

/* ダッシュボード */
.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
}

.dashboard-section {
    margin-bottom: 2.5rem;
}

.dashboard-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid rgba(15, 122, 138, 0.15);
    box-shadow: 0 18px 36px rgba(15, 122, 138, 0.08);
}

.dashboard-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #0f7a8a;
}

.dashboard-metric {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-suffix {
    font-size: 1.2rem;
    margin-left: 0.25rem;
}

.dashboard-subtext {
    font-size: 0.9rem;
    color: #666;
}

.weekly-activity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.weekly-activity-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weekly-label {
    width: 60px;
    font-weight: 600;
    color: #444;
}

.weekly-bar {
    flex: 1;
    background-color: #f1f5f9;
    border-radius: 999px;
    height: 12px;
    position: relative;
    overflow: hidden;
}

.weekly-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #0f7a8a, #1fb6ad);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.weekly-value {
    width: 40px;
    text-align: right;
    font-weight: 600;
    color: #333;
}

.recent-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-activity-item {
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.activity-correct {
    background-color: #22c55e;
}

.activity-incorrect {
    background-color: #ef4444;
}

.activity-unknown {
    background-color: #6366f1;
}

.activity-title {
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}

.activity-exam {
    font-weight: 600;
}

.dashboard-empty {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.dashboard-empty p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .activity-meta {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 3rem 1.25rem;
    }

    .home-hero-inner {
        gap: 2rem;
        flex-direction: column;
    }

    .home-hero-visual {
        flex: 1 1 auto;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        min-height: 300px;
        padding: 1.5rem 0;
        justify-content: center;
    }

    .home-hero-image {
        max-width: 90%;
        max-height: 400px;
    }

    .home-hero-visual::before,
    .home-hero-visual::after {
        display: none;
    }

    .home-hero-copy {
        flex: 1 1 auto;
        width: 100%;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .home-hero-actions .btn-primary,
    .home-hero-actions .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1.05rem;
        width: 100%;
        justify-content: center;
    }

    .home-section,
    .home-cta {
        padding: 3rem 1.25rem;
    }

    .home-feature-card,
    .support-card {
        padding: 1.5rem;
    }

    .plan-card-highlight::after {
        right: 12px;
    }

    .preview-body {
        grid-template-columns: 1fr;
    }
}

.legal-page {
    line-height: 1.8;
    color: #333;
}

.legal-note {
    background-color: #fff9e6;
    border-left: 4px solid #f59e0b;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f7a8a;
}

.legal-section p,
.legal-section ul {
    margin-bottom: 1rem;
}

.legal-section ul {
    padding-left: 1.2rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
}

.legal-dl {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 2fr;
    gap: 0.75rem 1.25rem;
}

.legal-dl div {
    display: contents;
}

.legal-dl dt {
    font-weight: 600;
    color: #0f7a8a;
}

.legal-dl dd {
    margin: 0;
}

@media (max-width: 768px) {
    .legal-dl {
        grid-template-columns: 1fr;
    }

    .legal-dl dt {
        margin-top: 0.75rem;
    }
}

/* アカウント設定 */
.account-settings {
    max-width: 900px;
    margin: 0 auto;
}

.account-section {
    background-color: #ffffff;
    border: 1px solid var(--light-gray-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 24px rgba(15, 122, 138, 0.06);
}

.account-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f7a8a;
}

.account-section-desc {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.account-form .form-group {
    margin-bottom: 1.25rem;
}

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

.account-form .required {
    color: #dc2626;
    margin-left: 0.25rem;
}

.account-actions {
    text-align: right;
    margin-top: 1.5rem;
}

.account-section-danger {
    border-left: 4px solid #dc2626;
    background: #fff5f5;
}

.account-section-danger h2 {
    color: #b91c1c;
}

.account-section-danger .account-section-desc {
    color: #7f1d1d;
}

.account-section-danger .btn-danger {
    padding: 0.75rem 2rem;
}

@media (max-width: 768px) {
    .account-section {
        padding: 1.5rem;
    }

    .account-actions {
        text-align: center;
    }

    .account-actions .btn {
        width: 100%;
    }
}

/* 新着情報 */
.news-page {
    max-width: 900px;
    margin: 0 auto;
}

.news-lead {
    margin-bottom: 1.5rem;
    color: #555;
}

.news-filter {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    padding: 1.5rem;
    border: 1px solid var(--light-gray-color);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 12px 24px rgba(15, 122, 138, 0.05);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.news-badge {
    background-color: #f97316;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.news-title a {
    text-decoration: none;
    color: inherit;
}

.news-title a:hover {
    color: var(--teal-color);
}

.news-snippet {
    color: #555;
    margin-bottom: 0.75rem;
}

.news-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.news-pagination .page-info {
    color: #666;
}

.breadcrumb-nav {
    margin-bottom: 1rem;
}

.news-detail {
    border: 1px solid var(--light-gray-color);
    border-radius: 12px;
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 12px 24px rgba(15, 122, 138, 0.05);
}

.news-detail-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.news-detail-body {
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
}

.news-back-link {
    margin-top: 2rem;
    text-align: center;
}

/* エラーページ */
.error-page {
    text-align: center;
    padding: 3rem 2rem;
}

.error-page-code {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.error-page-code--404 {
    color: var(--teal-color);
}

.error-page-code--500 {
    color: #dc2626;
}

.error-page-title {
    color: var(--dark-blue-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.error-page-message {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.error-page-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-page-button {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .news-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .news-item {
        padding: 1.25rem;
    }

    .news-detail {
        padding: 1.5rem;
    }

    .news-detail-title {
        font-size: 1.5rem;
    }

    .news-pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.metric-sub-block {
    display: block;
    margin-top: 0.25rem;
}

.review-button-icon {
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
}

.review-button-label {
    display: inline-flex;
    align-items: center;
}

/* 試験カテゴリー見出し */
.exam-category-section {
    margin-bottom: 3rem;
}

.exam-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--teal-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(31, 182, 173, 0.2);
    position: relative;
}

.exam-category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-color), rgba(31, 182, 173, 0.3));
    border-radius: 2px;
}

@media (max-width: 768px) {
    .exam-category-title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.6rem;
    }
    
    .exam-category-section {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .exam-category-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .exam-category-section {
        margin-bottom: 2rem;
    }
}

/* 固定フッターバー（追跡バー） */
.fixed-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(31, 182, 173, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.fixed-cta-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.fixed-cta-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fixed-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #fff;
    color: #0f7a8a;
    padding: 1.1rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.fixed-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    background-color: #f8fafc;
    color: #0f172a;
}

.fixed-cta-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.fixed-cta-text {
    line-height: 1;
}

/* 固定フッターバーのレスポンシブ対応 */
@media (max-width: 768px) {
    .fixed-cta-bar {
        padding: 0.85rem 1rem;
    }

    .fixed-cta-button {
        padding: 1rem 2rem;
        font-size: 1.05rem;
        gap: 0.6rem;
    }

    .fixed-cta-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .fixed-cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .fixed-cta-text {
        font-size: 1rem;
    }
}

/* 固定フッターバーのためにbodyにパディングを追加（コンテンツが隠れないように） */
body {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }
}

/* ホニーポットフィールド（人間には見えない、ボット検出用） */
.honeypot-field-wrapper,
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
