/* ==================================================
   1. 共通設定
   ================================================== */

/* ページ内ジャンプ */
html {
    scroll-behavior: smooth;
}

h2.caption[id="01"],
h2.caption[id="02"],
h2.caption[id="03"],
h2.caption[id="04"] {
    scroll-margin-top: 100px;
}

/* 共通余白 */
.mt-5 {
    margin-top: 20px !important;
}

/* 青いボタン */
a.bt.bt-blue,
button.bt.bt-blue {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 1em;
    border: none;
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
    line-height: 0.8;
}

/* 枠付きボックス */
.box01 {
    position: relative;
    box-sizing: border-box;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: 2px solid #004ea2;
}

.box01 .box-title {
    position: absolute;
    top: -26px;
    left: -2px;
    display: inline-block;
    height: 25px;
    padding: 0 9px;
    border-radius: 5px 5px 0 0;
    background: #004ea2;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    line-height: 25px;
}


/* ==================================================
   2. お悩みカード（WORRIES）
   ================================================== */

/* セクション */
.worry-section {
    margin: 50px 0;
}

.worry-heading {
    margin-bottom: 30px;
    text-align: center;
}

.worry-heading-sub {
    display: block;
    margin-bottom: 6px;
    color: #5d91bb;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.worry-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 28px 12px;
    color: #003c78;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.5;
}

.worry-heading-line {
    display: block;
    width: 60px;
    height: 4px;
    margin: 0 auto;
    border-radius: 4px;
    background: #5aa3d6;
}

.worry-heading-guide {
    margin: 8px 0 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

/* カード一覧 */
.worry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* カード共通 */
.worry-grid > .worry-card {
    --card-bg: #f5f9fc;
    --card-bg-hover: #eaf3fc;
    --card-border: #d8e4ef;
    --card-accent: #5a9bd5;
    --card-circle: #d9ebfa;

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    margin-bottom: 0;
    padding: 20px;
    overflow: hidden;
    box-sizing: border-box;

    border: 1px solid var(--card-border);
    border-top: 5px solid var(--card-accent);
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 3px 10px rgba(0, 45, 85, 0.07);

    color: #333;
    text-decoration: none !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

/* 4枚それぞれの配色 */
.worry-grid > .worry-card:nth-child(1) {
    --card-bg: #f0f7fd;
    --card-bg-hover: #e4f1fc;
    --card-border: #b8d5ee;
    --card-accent: #5a9bd5;
    --card-circle: #d9ebfa;
}

.worry-grid > .worry-card:nth-child(2) {
    --card-bg: #f0f8f3;
    --card-bg-hover: #e3f3e9;
    --card-border: #b8ddc7;
    --card-accent: #55a879;
    --card-circle: #d9eee1;
}

.worry-grid > .worry-card:nth-child(3) {
    --card-bg: #fff6ed;
    --card-bg-hover: #ffedda;
    --card-border: #f0d0ae;
    --card-accent: #e5a052;
    --card-circle: #ffead4;
}

.worry-grid > .worry-card:nth-child(4) {
    --card-bg: #f6f2fc;
    --card-bg-hover: #eee6fa;
    --card-border: #d4c5eb;
    --card-accent: #9b80ce;
    --card-circle: #e8def8;
}

/* ホバー */
.worry-grid > .worry-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-border);
    border-top-color: var(--card-accent);
    background: var(--card-bg-hover);
    box-shadow: 0 9px 22px rgba(0, 45, 85, 0.14);
    color: #333;
    text-decoration: none !important;
}

.worry-card:visited,
.worry-card:active {
    color: #333;
}

.worry-card:focus-visible {
    outline: 3px solid #5aa3d6;
    outline-offset: 4px;
}

/* 人物画像 */
.worry-person {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    isolation: isolate;
    flex-shrink: 0;
    width: 120px;
    height: 140px;
    margin-bottom: 15px;
}

.worry-person::before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 50%;
    width: 112px;
    height: 112px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--card-circle, #d9ebfa);
}

.worry-person img {
    position: relative;
    z-index: 1;
    display: block;
    width: 120px;
    max-height: 140px;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
}

/* 本文エリア */
.worry-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
}

/* 吹き出し */
.worry-card .balloon {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 70px;
    margin-bottom: 15px;
    padding: 12px 18px;

    border: 2px solid var(--card-border);
    border-radius: 24px;
    background: #fff;

    color: #003c78;
    font-weight: bold;
    text-align: center;
    line-height: 1.6;
}

/* 吹き出しの三角形 */
.worry-card .balloon::before,
.worry-card .balloon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
}

.worry-card .balloon::before {
    top: -14px;
    border-width: 0 12px 14px;
    border-color: transparent transparent var(--card-border);
}

.worry-card .balloon::after {
    top: -10px;
    border-width: 0 10px 12px;
    border-color: transparent transparent #fff;
}

/* 説明文 */
.worry-card .worry-content p {
    flex: 1 0 auto;
    min-height: 100px;
    margin: 0;
    color: #333;
    line-height: 1.8;
    text-decoration: none;
}

/* 詳しく見る */
.worry-card .worry-content::after {
    content: "\8A73\3057\304F\898B\308B \2192";
    display: block;
    flex: 0 0 auto;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 60, 120, 0.15);

    color: #286a9f;
    font-size: 14px;
    font-weight: bold;
    text-align: right;
    line-height: 1.5;

    transition: color 0.2s ease;
}

.worry-card:hover .worry-content::after {
    color: #003c78;
}

.worry-card:focus-visible .worry-content::after {
    text-decoration: underline;
}


/* ==================================================
   3. MWS セクション
   ================================================== */

/* リストを縦並びにする */
.block-flame2 {
    display: block !important;
}

.block-flame2 li {
    width: 100% !important;
    margin: 0 0 20px !important;
}

.block-flame2 dl > dd {
    display: block !important;
    clear: both !important;
}

/* 画像＋導入文 */
.block-flame2 dl > dd .mws-head {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    float: none !important;
    margin: 0 0 16px !important;
}

.block-flame2 dl > dd .mws-head img {
    display: block !important;
    max-width: 100px !important;
    height: auto !important;
}

.block-flame2 dl > dd .mws-head p {
    flex: 1 1 auto;
    margin: 0 !important;
    line-height: 1.7 !important;
}

/* リンク一覧 */
.block-flame2 dl > dd .mws-links {
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.block-flame2 dl > dd .mws-links ul {
    display: block !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.block-flame2 dl > dd .mws-links li {
    display: block !important;
    float: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #cfd7e6;
}

.block-flame2 dl > dd .mws-links li + li {
    margin-top: 12px !important;
}

.block-flame2 dl > dd .mws-links a {
    display: inline-block;
    text-decoration: underline;
}

.block-flame2 dl > dd .mws-links .mws-desc {
    margin: 4px 0 0 !important;
    line-height: 1.7 !important;
}

/* 後半の3リンク */
.block-flame2 dl > dd .mws-links ul.mws-secondary-links li {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.mws-secondary-links .links-item {
    min-height: 20px;
    margin-top: 16px;
    padding-left: 30px;
    background-image: url("/WebRelease2/r.9114018336031642263.r882sa000000006p/s13dha000000002p/dv669v0000000cqi/dv669v0000001374/common/img/ico_boxarrow.png");
    background-repeat: no-repeat;
    background-position: 0 4px;
    background-size: 20px auto;
    line-height: 1.6;
}

.mws-secondary-links .links-item a {
    display: block;
    padding: 0 !important;
    color: #000 !important;
    text-decoration: underline;
    line-height: 1.6;
}

.block-flame2 dl > dd .mws-links ul.mws-secondary-links > li.links-item {
    padding: 0 !important;
}


/* ==================================================
   4. ボックス・カード共通
   ================================================== */

/* block-flame 内の見出し */
.block-flame li dt {
    padding: 10px;
    background: #7bcfb945;
    font-size: 1.125rem;
    font-weight: bold;
}

/* カード内の文章 */
.block-flame > li dd p {
    margin-bottom: 0;
}

/* カード下部のボタン用スペース */
.block-flame > li {
    position: relative;
    padding-bottom: 60px;
}

/* カード内ボタン */
.block-flame > li > a.bt-content-bottom {
    display: block;
    margin-top: 16px;
}

/* 下部配置ボタン */
.block-flame .bt-content-bottom2,
.bt-content-bottom2 {
    width: 30%;
}

.block-flame .bt-content-bottom2 {
    position: absolute;
    right: 20px;
    bottom: 22px;
}

.block-flame .bt-content-bottom2 span {
    min-height: auto;
    padding: 7px 30px;
    background-size: 40px auto;
    font-size: 1rem;
    font-weight: normal;
}

/* 青系カード */
.block-flame li.card-blue dt {
    background-color: #f0f7fd;
}


/* オレンジ系カード */
.block-flame li.card-orange dt {
    background-color: #f0d0ae;
}


/* 紫系カード */
.block-flame li.card-purple dt {
    background-color: #d4c5eb;
}

/* 紫系カードの見出し背景色 */
ul.block-flame > li.card-purple > dl > dt {
    background: #d4c5eb !important;
}


/* ==================================================
   5. 就労支援のためのアセスメントシート
   ================================================== */

.mws-assessment {
    width: 100%;
    box-sizing: border-box;
}

.mws-assessment *,
.mws-assessment *::before,
.mws-assessment *::after {
    box-sizing: border-box;
}

.mws-assessment dt {
    margin-bottom: 20px;
}

/* 画像＋説明 */
.mws-assessment-head {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    width: 100%;
    margin-bottom: 24px;
}

.mws-assessment-image {
    width: 120px;
    min-width: 0;
}

.mws-assessment-image img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.mws-assessment-content {
    width: 100%;
    min-width: 0;
}

/* 通常の説明文 */
.mws-assessment-description {
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.8;
}

/* 黄色い説明ボックス */
.mws-assessment .mws-assessment-highlight {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 10px 15px;
    border: 1px solid #f0dfaa;
    border-radius: 8px;
    background: #fff2cc !important;
    color: #333;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* リンク一覧 */
.mws-assessment-links {
    clear: both;
    width: 100%;
    margin-top: 0;
}

.mws-assessment-primary-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mws-assessment-primary-links > li {
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #d5d9df;
    border-bottom: 4px solid #e1e5ed;
}

.mws-assessment-primary-links > li > a {
    display: inline;
    line-height: 1.8;
}

.mws-assessment-primary-links > li > p {
    margin: 4px 0 0;
    padding: 0;
    line-height: 1.8;
}


/* =========================================
   6.キャリアカード：レイアウト修正版
   画像＋通常文を横並び
   囲みコメントはその下に全幅表示
   ========================================= */

/* =========================================
   キャリアカード：レイアウト最終修正版
   ========================================= */

/* 画像と通常コメントを横並び */
.block-flame li .career-card-layout {
    display: grid !important;
    grid-template-columns: 100px minmax(0, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 画像 */
.block-flame li .career-card-image {
    width: 100px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.block-flame li .career-card-image img {
    display: block !important;
    width: 100px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* 通常コメント */
.block-flame li .career-card-text {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.block-flame li .career-card-description {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.8 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* 黄色い囲みコメント：必ず次の段に配置 */
.block-flame li dd > .career-card-highlight {
    display: block !important;
    position: static !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 16px 0 0 !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;

    border: 1px solid #f0dfaa !important;
    border-radius: 8px !important;
    background: #fff2cc !important;
    color: #333 !important;

    line-height: 1.8 !important;
    overflow-wrap: anywhere;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    .block-flame li .career-card-layout {
        grid-template-columns: 80px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .block-flame li .career-card-image,
    .block-flame li .career-card-image img {
        width: 80px !important;
    }

    .block-flame li dd > .career-card-highlight {
        padding: 10px !important;
    }
}

/* =========================================
   キャリアカード最終修正
   画像＋通常コメントを横並び
   黄色い囲みコメントをその下に全幅表示
   ========================================= */

/* カード内の基本設定 */
ul.block-flame > li:has(.career-card-layout) {
    box-sizing: border-box !important;
    padding-bottom: 70px !important;
}

/* dl・ddの既存レイアウトを解除 */
ul.block-flame > li:has(.career-card-layout) > dl {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

ul.block-flame > li:has(.career-card-layout) > dl > dd {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* キャリアカードの見出しと説明文の間隔 */
ul.block-flame > li:has(.career-card-layout) > dl > dt {
    margin-bottom: 15px !important;
}

/* 画像と通常コメントの横並び */
ul.block-flame > li:has(.career-card-layout) .career-card-layout {
    display: grid !important;
    grid-template-columns: 100px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* 画像エリア */
ul.block-flame > li:has(.career-card-layout) .career-card-image {
    display: block !important;
    width: 100px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.block-flame > li:has(.career-card-layout) .career-card-image img {
    display: block !important;
    width: 100% !important;
    max-width: 100px !important;
    height: auto !important;
    margin: 0 !important;
}

/* 通常コメントのエリア */
ul.block-flame > li:has(.career-card-layout) .career-card-text {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

ul.block-flame > li:has(.career-card-layout) .career-card-description {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    line-height: 1.8 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* 黄色い囲みコメントは横並びの外に置く */
ul.block-flame > li:has(.career-card-layout) > dl > dd > .career-card-highlight {
    display: block !important;
    position: static !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    border: 1px solid #f0dfaa !important;
    border-radius: 8px !important;
    background: #fff2cc !important;
    color: #333 !important;
    line-height: 1.8 !important;
    overflow-wrap: break-word !important;
}

/* ボタン */
ul.block-flame > li:has(.career-card-layout) > a.bt-content-bottom {
    display: block !important;
    position: absolute !important;
    right: 20px !important;
    bottom: 20px !important;
    width: auto !important;
    max-width: calc(100% - 40px) !important;
    margin: 0 !important;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    ul.block-flame > li:has(.career-card-layout) .career-card-layout {
        grid-template-columns: 80px minmax(0, 1fr) !important;
        column-gap: 12px !important;
    }

    ul.block-flame > li:has(.career-card-layout) .career-card-image {
        width: 80px !important;
    }

    ul.block-flame > li:has(.career-card-layout) .career-card-image img {
        max-width: 80px !important;
    }

    ul.block-flame > li:has(.career-card-layout) > dl > dd > .career-card-highlight {
        padding: 10px !important;
    }

    ul.block-flame > li:has(.career-card-layout) > a.bt-content-bottom {
        right: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
}

/* ==================================================
   7. レスポンシブ対応
   ================================================== */

@media screen and (max-width: 900px) {
    .worry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .worry-heading h2 {
        font-size: 24px;
    }
}

@media screen and (max-width: 767px) {
    /* アセスメント */
    .mws-assessment-head {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
    }

    .mws-assessment-image {
        width: 80px;
    }

    .mws-assessment-image img {
        width: 80px;
    }

    .mws-assessment-description {
        margin-bottom: 14px;
    }

    .mws-assessment .mws-assessment-highlight {
        padding: 12px;
    }

    .mws-assessment-primary-links > li {
        padding: 10px;
    }

    /* キャリアカード */
    .block-flame .career-card-layout {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
    }

    .block-flame .career-card-image img {
        width: 80px;
    }

    .block-flame .career-card-highlight {
        padding: 10px !important;
    }
}

@media screen and (max-width: 600px) {
    /* お悩みカード */
    .worry-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .worry-heading {
        margin-bottom: 24px;
    }

    .worry-heading h2 {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 21px;
    }

    .worry-heading-guide {
        padding: 0 10px;
        font-size: 13px;
    }

    .worry-grid > .worry-card {
        padding: 18px;
    }

    .worry-person {
        margin-bottom: 12px;
    }

    .worry-card .worry-content p {
        min-height: 0;
        flex: 0 0 auto;
    }

    .worry-card .worry-content::after {
        margin-top: 12px;
        padding-top: 8px;
        font-size: 13px;
    }
}

/* アニメーションを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .worry-card,
    .worry-grid > .worry-card,
    .worry-card .worry-content::after {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/*ページタイトル非表示*/
.pagetitle{
    display: none;
}