/* =========================================================
   研修メニュー 共通スタイル（/menu/whatwedo.html 配下）
   whyus.html と同じ配色トークン・ヘッダー・フッターを共有
   ========================================================= */
:root {
    --primary-color: #004aad;
    --secondary-color: #f0f4f8;
    --accent-color: #ff9f1c;
    --dark-blue: #002d6b;
    --dark-navy: #1a252f;
    --text-dark: #333333;
    --text-light: #666666;
    --border: #dfe6ee;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1.1rem;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
}

.btn-primary:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 159, 28, 0.4);
}

.btn-header {
    padding: 12px 25px;
    font-size: 0.9rem;
}

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

.btn-white:hover {
    background-color: #f4f6fa;
}

.btn-blue {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.25);
}

.btn-blue:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.35);
}

.btn svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.12em;
    margin-left: 6px;
}

/* --- Header --- */
header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo a {
    display: flex;
    align-items: center;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.1rem;
    position: relative;
    z-index: 2001;
}

.logo-img {
    height: 45px;
    margin-right: 12px;
    object-fit: contain;
}

.pc-nav ul {
    display: flex;
    gap: 25px;
}

.pc-nav a {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
}

.pc-nav a:hover,
.pc-nav a[aria-current="page"] {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    transition: 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* --- Page header --- */
.page-header {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    background-color: var(--dark-blue);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 背景写真を抑え、見出しを読みやすくする */
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 45, 107, 0.55);
    pointer-events: none;
}

.page-header > .container {
    position: relative;
}

.page-header p {
    margin-top: 10px;
    font-size: 0.95rem;
    opacity: 0.92;
}

/* --- Breadcrumb --- */
.breadcrumb {
    background-color: var(--secondary-color);
    font-size: 0.85rem;
    padding: 10px 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb li+li::before {
    content: "/";
    margin-right: 6px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* =========================================================
   本文（WordPressブロックからの変換結果）
   ========================================================= */
.content {
    padding: 48px 0 64px;
}

.content>.container {
    max-width: 900px;
}

.content-menu>.container {
    max-width: 1100px;
}

.content p,
.content ul,
.content ol,
.content .table-wrap,
.content figure.img,
.content .balloon,
.content .related-card,
.content .cols,
.content .actions,
.content .search {
    margin-bottom: 1.4em;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.4;
    margin: 2.4em 0 1em;
    padding: 0.5em 0.8em;
    border-left: 6px solid var(--primary-color);
    background: var(--secondary-color);
    border-radius: 0 6px 6px 0;
}

.content h2.h-ends {
    background: none;
    border-left: none;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.6em 0.4em;
    text-align: center;
    border-radius: 0;
}

.content h2.h-brackets {
    background: none;
    border-left: none;
    padding: 0.4em 0;
    text-align: center;
    border-radius: 0;
}

.content h2.h-brackets::before {
    content: "【";
}

.content h2.h-brackets::after {
    content: "】";
}

.content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.4;
    margin: 2em 0 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--border);
}

.content h3.h-plain {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0.5em 0;
}

.content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.8em 0 0.7em;
}

.content h5,
.content h6 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5em 0 0.6em;
}

.content h2.small,
.content h3.small {
    font-size: 1.05rem;
}

.content .center {
    text-align: center;
}

.content .small {
    font-size: 0.9rem;
}

.content .large {
    font-size: 1.3rem;
}

.content .red {
    color: #c0392b;
}

.content strong {
    font-weight: 700;
}

.content a:not(.btn):not(.card):not(.related-card) {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.content a:not(.btn):not(.card):not(.related-card):hover {
    color: var(--dark-blue);
}

.content sup {
    font-size: 0.7em;
    vertical-align: super;
}

/* リード文 */
.content .lead,
.content .lead-text {
    max-width: 760px;
    margin: 0 auto 1.6em;
    text-align: center;
    font-size: 1.1rem;
}

.content .lead strong {
    color: var(--primary-color);
}

.content .lead p+p {
    margin-top: 6px;
}

.content .lead p {
    margin-bottom: 0;
}

.content .actions {
    text-align: center;
    margin: 2em 0;
}

/* リスト */
.content ul,
.content ol {
    padding-left: 1.6em;
}

.content ul {
    list-style: disc;
}

.content ol {
    list-style: decimal;
}

.content li {
    margin-bottom: 0.5em;
}

.content li>ul,
.content li>ol {
    margin: 0.4em 0 0;
}

.content ul.tri {
    list-style: none;
    padding-left: 1.4em;
}

.content ul.tri li::before {
    content: "▶";
    color: var(--primary-color);
    font-size: 0.7em;
    margin-left: -1.6em;
    margin-right: 0.6em;
    vertical-align: 0.15em;
}

.content ol.num-square,
.content ul.num-square,
.content ol.num-circle {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}

.content ol.num-square>li,
.content ul.num-square>li,
.content ol.num-circle>li {
    counter-increment: item;
    position: relative;
    padding-left: 2.4em;
    margin-bottom: 0.8em;
}

.content ol.num-square>li::before,
.content ul.num-square>li::before,
.content ol.num-circle>li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 1.7em;
    height: 1.7em;
    line-height: 1.7em;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85em;
    border-radius: 4px;
}

.content ol.num-circle>li::before {
    border-radius: 50%;
}

/* 表 */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.75;
}

.content th,
.content td {
    border: 1px solid var(--border);
    padding: 12px 16px;
    vertical-align: top;
    text-align: left;
}

.content th {
    background: var(--secondary-color);
    font-weight: 700;
}

.content table.stripes tr:nth-child(odd) td {
    background: #f7f9fb;
}

/* 画像 */
.content figure.img img,
.card-body img,
.related-card img {
    opacity: 0.55;
    filter: saturate(0.65);
}

.content figure.img {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.content figure.img img {
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.content figure.img.bordered img {
    border: 1px solid var(--border);
}

.content figcaption {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5em;
}

/* ヒーロー帯（研修のキャッチコピー） */
.hero-band {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 36px 28px;
    margin-bottom: 2em;
    text-align: center;
}

.hero-catch {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.5;
    margin-bottom: 0.6em !important;
}

.hero-band p:last-child {
    margin-bottom: 0;
}

.hero-band p {
    color: var(--text-dark);
}

/* 吹き出し（受講者の声） */
.balloon {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.balloon-icon {
    flex: 0 0 64px;
    text-align: center;
}

.balloon-icon img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--white);
}

.balloon-icon figcaption {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.3;
}

.balloon-body {
    position: relative;
    flex: 1 1 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.balloon-body::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 22px;
    border: 8px solid transparent;
    border-left: 0;
    border-right-color: var(--border);
}

.balloon-body::after {
    content: "";
    position: absolute;
    left: -8px;
    top: 22px;
    border: 8px solid transparent;
    border-left: 0;
    border-right-color: var(--white);
}

.balloon-body p {
    margin: 0;
}

.balloon-body p+p {
    margin-top: 0.6em;
}

/* 関連研修カード（ブログカード埋め込み） */
.related-card {
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    background: var(--white);
    transition: box-shadow 0.25s, border-color 0.25s;
}

.related-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(0, 74, 173, 0.12);
}

.related-card img {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

.related-card-body strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.02rem;
    line-height: 1.4;
}

.related-card-body p {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--text-light);
}

/* カラム（特長3つ など） */
.cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.col {
    text-align: center;
}

.col h3 {
    border-bottom: none;
    margin-top: 0.4em;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
}

.icon-circle svg {
    width: 30px;
    height: 30px;
}

/* --- 検索 --- */
.search {
    max-width: 760px;
    margin: 0 auto 1.6em;
}

.search form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search input[type="search"]:focus {
    box-shadow: inset 0 0 0 2px rgba(0, 74, 173, 0.25);
}

.search button {
    flex: 0 0 auto;
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 0 26px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.search button:hover {
    background-color: var(--dark-blue);
}

.search button svg {
    width: 1em;
    height: 1em;
}

.search .note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 6px 0 0;
    text-align: right;
}

/* --- カード一覧（メニュー・カテゴリ） --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 1.6em 0 0;
}

.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    padding: 24px 24px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 74, 173, 0.15);
    border-color: var(--primary-color);
    outline: none;
}

.content .card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.5;
    padding-bottom: 12px;
    margin: 0 0 16px;
    border-bottom: 2px solid var(--secondary-color);
}

.card-body {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex: 1 1 auto;
}

.card-body img {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
}

.content .card-body p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0;
}

.card-body .kw {
    font-weight: 700;
    color: var(--primary-color);
}

.card-more {
    margin-top: 16px;
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.card-more::after {
    content: "→";
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.card:hover .card-more::after {
    transform: translateX(4px);
}

/* --- 同じカテゴリの他の研修 --- */
.siblings {
    background: var(--secondary-color);
    padding: 40px 0;
}

.siblings .container {
    max-width: 900px;
}

.siblings h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 14px;
}

.siblings ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.siblings li a {
    display: block;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.93rem;
    color: var(--primary-color);
}

.siblings li a:hover {
    border-color: var(--primary-color);
}

.siblings .back {
    margin-top: 16px;
    font-weight: 700;
}

.siblings .back a {
    color: var(--primary-color);
}

/* --- Share --- */
.share {
    border-top: 1px solid var(--border);
    padding: 28px 0 40px;
}

.share .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share .label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-right: 6px;
}

.share a,
.share button {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}

.share a:hover,
.share button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- Footer CTA / Footer --- */
.footer-cta {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 90px 0;
    text-align: center;
}

.footer-cta h2 {
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.4;
}

.footer-cta p {
    margin: 24px 0 32px;
    font-size: 1.15rem;
    opacity: 0.92;
}

.footer-cta .hours {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 20px;
}

footer {
    background-color: #0b1218;
    color: #888;
    padding: 50px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 24px;
}

footer nav a {
    color: #bbb;
}

footer nav a:hover {
    color: var(--white);
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .header-inner .btn-header {
        display: none;
    }

    .pc-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px;
        transition: 0.4s;
        z-index: 1500;
        display: block;
    }

    .pc-nav.active {
        right: 0;
    }

    .pc-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

    .pc-nav a {
        font-size: 1.2rem;
        display: block;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .pc-nav a[aria-current="page"] {
        border-bottom-color: var(--primary-color);
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .content {
        padding: 32px 0 48px;
    }

    .content h2 {
        font-size: 1.25rem;
    }

    .content h3 {
        font-size: 1.1rem;
    }

    .content .lead,
    .content .lead-text {
        text-align: left;
        font-size: 1rem;
    }

    .content .actions .btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
    }

    .search form {
        flex-direction: column;
    }

    .search button {
        justify-content: center;
        padding: 12px;
    }

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

    .card {
        padding: 20px 18px 16px;
    }

    .card-body img {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .hero-band {
        padding: 24px 18px;
    }

    .hero-catch {
        font-size: 1.2rem;
    }

    .balloon-icon {
        flex-basis: 48px;
    }

    .balloon-icon img {
        width: 48px;
        height: 48px;
    }

    .related-card img {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .siblings ul {
        grid-template-columns: 1fr;
    }

    .content td,
    .content th {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .footer-cta {
        padding: 60px 0;
    }

    .footer-cta h2 {
        font-size: 1.5rem;
    }

    .footer-cta p {
        font-size: 1rem;
    }
}

/* =========================================================
   学習テキスト系ページ用（囲み枠・注意枠・引用・コード・動画）
   ========================================================= */
.content .box {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 1.6em;
    overflow: hidden;
}

.content .box-title {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 8px 16px;
    margin: 0;
}

.content .box-body {
    padding: 16px 18px 4px;
}

.content .box-body h4 {
    margin-top: 0.2em;
}

.content .alert {
    border-radius: 8px;
    padding: 16px 18px 4px;
    margin-bottom: 1.6em;
    border: 1px solid;
}

.content .alert-info {
    background: #eef5fc;
    border-color: #b9d3ee;
}

.content .alert-success {
    background: #eef8ef;
    border-color: #bfe0c3;
}

.content .alert-warning {
    background: #fff8e6;
    border-color: #f2dc9e;
}

.content .alert-danger {
    background: #fdeeee;
    border-color: #efb5b5;
}

.content blockquote {
    border-left: 4px solid var(--border);
    background: #fafbfc;
    padding: 12px 18px;
    margin: 0 0 1.6em;
    color: var(--text-light);
}

.content blockquote p:last-child {
    margin-bottom: 0;
}

.content pre.code {
    background: #1e2630;
    color: #e6edf3;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 1.6em;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: Consolas, "Courier New", monospace;
}

.content pre.code code {
    font-family: inherit;
    white-space: pre;
}

.content code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
    background: var(--secondary-color);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

.content pre.code code {
    background: none;
    padding: 0;
}

.content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.4em 0;
}

.content .video {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.6em;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.content .video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.content em {
    font-style: normal;
    background: linear-gradient(transparent 60%, #ffe9a8 60%);
}

/* 目次（学習テキスト） */
.content .toc {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 2em;
}

.content .toc-title {
    font-weight: 800;
    color: var(--dark-blue);
    margin: 0 0 8px;
}

.content .toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.content .toc ul ul {
    padding-left: 1.4em;
    margin-top: 4px;
}

.content .toc li {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.content .toc a {
    text-decoration: none;
}

.content .toc a:hover {
    text-decoration: underline;
}

.content h2[id],
.content h3[id],
.content h4[id] {
    scroll-margin-top: 90px;
}
