/* --- リセットと基本設定 --- */
:root {
    --color-main: #7ec9bf;
    /* 60% */
    --color-sub: #5e958e;
    /* 7.5% */
    --color-light: #d8efec;
    /* 7.5% */
    --color-accent: #f0884f;
    /* 20% */
    --color-text: #5d605d;
    /* 5% */
}

body,
h1,
h2,
h3,
p,
ul,
dl,
dt,
dd,
ol,
li {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    background-color: var(--color-light);
    /* ヘッダーの最大高さ 100px に合わせる */
    padding-top: 100px;
    color: var(--color-text);
    /* デフォルトの文字色 */
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 1. ヘッダー --- */
.site-header {
    position: fixed;
    /* 画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 10px 40px;
    box-sizing: border-box;
    height: 100px;
    display: flex;
    align-items: center;
    transition: height 0.3s ease;
}

/* スクロールした時 (is-topじゃない時) のスタイル */
.site-header:not(.is-top) {
    height: 80px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    /* サイトの最大幅 */
    margin: 0 auto;
}

.logo a {
    display: inline-block;
    position: relative;
    line-height: 1;
}

.logo-label {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 4px;
    font-size: 8px;
    letter-spacing: 0.28em;
    font-weight: normal;
    color: #333;
    opacity: 0.8;
    white-space: nowrap;
}

.footer-logo .logo-label {
    position: static;
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
    margin-bottom: 6px;
    white-space: nowrap;
}

.logo a strong {
    font-size: 20px;
    letter-spacing: 0.2em;
    font-weight: bold;
    color: #333;
}

/* .global-nav の直下の子(>)の ul だけをflexにする */
.global-nav>ul {
    display: flex;
    list-style: none;
}

.global-nav li {
    margin-left: 20px;
    font-size: 14px;
}

/* --- 2. メインビジュアル（動画エリア） --- */
.hero-video-section {
    position: relative;
    /* ヘッダーの高さ100pxを引いた値 */
    height: calc(100vh - 100px);
    overflow: hidden;
    background-color: black;
    min-height: 600px;

    /* ヘッダーの動きと連動 */
    transition: transform 0.3s ease;
}

/* ヘッダーが縮んだ時、動画エリアも一緒に上に動かす */
.site-header:not(.is-top)+.hero-video-section {
    transform: translateY(-20px);
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-video.is-loaded {
    opacity: 0.6;
}

/* 動画読み込み中の背景（ポスター表示時のオーバーレイ防止） */
.video-wrapper {
    background-color: #1e3230;
}

/* about.html 埋め込み動画フェードイン */
.embed-video {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.embed-video.is-loaded {
    opacity: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    gap: 0;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.4em;
    font-weight: bold;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
    font-size: 68px;
    margin: 14px 0 18px;
    font-weight: bold;
    letter-spacing: 0.22em;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text .sub-title {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.14em;
    margin-bottom: 30px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.hero-text .credit-text {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.06em;
    max-width: 680px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

/* --- 3. メインコンテンツ（白い角丸エリア） --- */
.main-content {
    position: relative;
    z-index: 10;
    background-color: white;
    border-radius: 40px 40px 0 0;
    /* 上160px, 左右40px, 下80px */
    padding: 160px 40px 80px;
    margin-top: -100px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    min-height: 60vh;
}

.intro {
    text-align: center;
}

.intro h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.intro .large-text {
    font-size: 20px;
    line-height: 1.8;
}

/* --- 4. 導入事例セクション --- */
.example {
    margin-top: 60px;
    margin-left: -40px;
    margin-right: -40px;
    padding-bottom: 80px;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 40px;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.section-header h3::after {
    content: '';
    display: inline-block;
    width: 100px;
    height: 1px;
    background-color: #ccc;
    margin-left: 20px;
    vertical-align: middle;
}

.slider-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-nav .nav-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: var(--color-main);
    /* ネイビー */
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.slider-nav .nav-button:hover {
    background-color: var(--color-accent);
    /* グリーン */
    border-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-nav .nav-button.disabled {
    background-color: var(--color-light);
    /* グレー */
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    opacity: 0.8;
}

.slider-nav .nav-button.disabled:hover {
    background-color: var(--color-light);
    color: #ccc;
    border-color: #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.slider-container {
    width: 100%;
    overflow-x: hidden;
    cursor: grab;
}

.slider-track {
    display: flex;
    gap: 20px;
    padding: 10px 40px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.case-card {
    flex: 0 0 28%;
    /* 画面幅の約28% (3.5枚表示) */
    min-width: 300px;
    /* 最小幅 */
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.case-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.case-card:hover .card-image img {
    transform: scale(1.08);
    /* 8%拡大 */
}

.card-content {
    padding: 20px;
    background-color: white;
    text-align: left;
}

.card-case-number {
    color: var(--color-text);
    /* デフォルトは黒 */
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
    /* 色変更のアニメーション */
}

.card-case-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    /* 線の太さを 2px に */
    background-color: var(--color-accent);
    /* 常時グリーン */
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    height: 57.6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text);
    /* デフォルトは黒 */
    margin-bottom: 10px;
    transition: color 0.3s;
}

.card-location-industry {
    font-size: 14px;
    color: var(--color-sub);
    margin-top: 15px;
    transition: color 0.3s;
}

/* ホバースタイル */
.case-card:hover .card-title,
.case-card:hover .card-location-industry,
.case-card:hover .card-case-number {
    color: var(--color-accent);
    /* グリーン */
}

/* --- 共通セクションスタイル --- */
.section-padding {
    padding: 80px 40px;
    max-width: 1200px;
    /* サイトの最大幅 */
    margin-left: auto;
    margin-right: auto;
}

.section-padding-wide {
    padding: 80px 40px;
    max-width: none;
}

.section-padding-wide>.section-title,
.section-padding-wide>.section-description,
.section-padding-wide>.button-container,
.section-padding-wide>.faq-list,
.about-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.6;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    text-align: center;
}

/* --- 5. 3つのメリット --- */
.merits-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.merit-item {
    flex: 1;
    text-align: center;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.merit-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.merit-item h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* --- 6. ゆたかな未来とは (トップページ) --- */
.about {
    background-color: var(--color-light);
    /* 薄いグレー背景 */
}

.about-container {
    /* (共通スタイルで .about-container に max-width 指定済み) */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text p,
.about-reason p {
    font-size: 16px;
    line-height: 1.8;
}

.about-reason {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
}

.about-reason h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* --- 7. 導入までの流れ --- */
/* --- 7. 導入までの流れ（スケジュール） --- */
.flow-schedule-section {
    background-color: white;
}

.flow-intro-text {
    text-align: center;
    margin-bottom: 60px;
    font-size: 16px;
    line-height: 1.8;
}

.schedule-wrapper {
    background-color: #f5f5f5;
    /* グレー系に変更 */
    padding: 80px 60px;
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    /* 下線の長さをテキストに合わせるため */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    border-bottom: 2px solid #333;
    /* 下線 */
}

/* 吹き出しの三角 (画像に合わせて白い三角で「切り欠き」に見せるか、黒い三角で「吹き出し」に見せるか。今回は線の下に三角) */
.schedule-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    /* 線の直下 */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #333;
    /* 下線と同じ色 */
}

/* 以前のスタイルを無効化 */
.schedule-title::before {
    content: '';
    position: absolute;
    bottom: -9px;
    /* 線の上に少し被せる白 */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #f5f5f5;
    /* 背景色と同じ色で抜く */
    z-index: 1;
}


.schedule-grid {
    display: grid;
    /* 左端(時間), マネージャー, 従業員 */
    grid-template-columns: 120px 1fr 1fr;
    gap: 0;
    /* 隙間なしで背景色をつなげる */
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
}

/* ヘッダーセル */
/* ヘッダーセル */
.grid-header {
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manager-header {
    background-color: #d8efec;
    /* 薄い青緑 */
    grid-column: 2 / 3;
    border-radius: 10px 0 0 0;
}

.employee-header {
    background-color: #fdf3e6;
    /* 薄いオレンジ */
    grid-column: 3 / 4;
    border-radius: 0 10px 0 0;
}

/* 時間ラベル */
.time-label {
    grid-column: 1 / 2;
    padding: 20px 10px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px dashed #ccc;
}

/* 通常のセル */
.grid-cell {
    padding: 20px;
    position: relative;
    border-bottom: 1px dashed #ccc;
    /* 点線 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.manager-cell {
    background-color: var(--color-light);
    /* マネージャー列の背景継続 */
    grid-column: 2 / 3;
}

.employee-cell {
    background-color: #fff8f0;
    /* 従業員列の背景継続 */
    grid-column: 3 / 4;
}

/* 縦に結合するセル専用 */
.row-span-2 {
    grid-row: span 2;
}

/* 全幅セル (最下部) */
.full-width-cell {
    grid-column: 2 / 4;
    /* マネージャーと従業員列を結合 */
    background: linear-gradient(to right, var(--color-light) 50%, #fff8f0 50%);
    /* 背景色を半分ずつ */
    padding: 30px 20px;
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

/* フローチャート内のボックス */
.flow-box {
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.accent-box {
    background-color: #8CC63F;
    /* 画像に近い明るいグリーン、あるいは var(--color-main) */
    /* ユーザーのコーポレートカラーを使うなら var(--color-main) ですが、
       参考画像のイメージ優先なら明るい緑。ここではコーポレートカラーに合わせつつ調整します。 */
    background-color: var(--color-main);
    color: white;
    font-weight: bold;
    font-size: 18px;
    border: none;
}

.white-box {
    background-color: white;
    border: 1px solid #eee;
}

.white-box strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.white-box p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.full-width {
    max-width: 600px;
    margin: 0 auto;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 80px 1fr;
        /* 従業員列を下にするか、横スクロールにするか */
        /* シンプルに縦に積むのは難しいデザインなので、横幅を狭める */
    }

    .grid-header,
    .grid-cell {
        padding: 10px;
    }

    .time-label {
        font-size: 12px;
        padding: 10px 5px;
    }

    .flow-box {
        padding: 10px;
        font-size: 12px;
    }

    .white-box strong {
        font-size: 14px;
    }
}

.flow-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--color-main);
    /* ネイビーの縦線 */
    padding-left: 40px;
}

.flow-item {
    position: relative;
    padding-bottom: 40px;
}

.flow-item:last-child {
    padding-bottom: 0;
}

.flow-step {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: var(--color-main);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.flow-item::before {
    content: '';
    position: absolute;
    left: -48px;
    /* 縦線の上に丸 */
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-main);
    /* ネイビー */
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--color-main);
}

.flow-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.flow-content p {
    font-size: 16px;
    line-height: 1.7;
}

/* --- 8. 運営管理機関 --- */
.management {
    background-color: var(--color-light);
    /* 背景色 */
}

/* 共通ボタンコンテナ */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 共通ボタンスタイル */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-primary {
    background-color: var(--color-main);
    /* ネイビー */
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* --- 9. キャピタル・グループ --- */
.capital-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.capital-text {
    flex: 2;
}

.capital-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.capital-image {
    flex: 1;
}

.capital-image img {
    width: 100%;
    border-radius: 10px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-main);
    /* ネイビー */
    color: var(--color-main);
    padding: 13px 30px;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

/* --- 10. よくあるご質問 --- */
.faq {
    background-color: var(--color-light);
    /* 背景色 */
}

.faq-list {
    border-top: 1px solid #ddd;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: left;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.faq-question span {
    font-size: 20px;
    color: var(--color-main);
    /* Q. の色はネイビー */
    margin-right: 15px;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #002D62;
    margin-left: auto;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 0 10px 30px 40px;
    font-size: 16px;
    line-height: 1.8;
}

.faq-answer span {
    font-size: 20px;
    color: var(--color-accent);
    /* A. の色は赤系 */
    margin-right: 15px;
    font-weight: bold;
}

/* --- 11. 会社概要 --- */
.profile-list {
    border-top: 1px solid #ddd;
}

.profile-list dt,
.profile-list dd {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.profile-list::after {
    content: "";
    display: table;
    clear: both;
}

.profile-list dt {
    float: left;
    width: 25%;
    font-weight: bold;
    clear: left;
}

.profile-list dd {
    float: left;
    width: 70%;
    margin-left: 0;
}

/* --- 12. フッター --- */
.site-footer-main {
    background-color: var(--color-sub);
    color: white;
    padding: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo a {
    color: white;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.footer-logo a strong {
    letter-spacing: 0.2em;
}

.footer-name-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 4px;
}

.footer-links {
    font-size: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: underline;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 12px;
    color: #aaa;
}

/* --- 13. 下層ページ 共通スタイル --- */

/* 下層ページ ヒーローバナー */
.page-hero {
    height: 350px;
    background-color: #333;
    /* 画像読み込みまでの背景色 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/about-hero-placeholder.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-hero p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 下層ページ メインコンテンツ（グレー背景） */
.subpage-content {
    background-color: #f6f6f6;
    padding: 80px 40px;
}

/* 白い角丸ボックス */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* 白いボックス内の見出し */
.content-title {
    font-size: 24px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-main);
    /* ネイビーの線 */
    margin-bottom: 30px;
}

/* 運営管理機関説明ボックス */
.about-institution-box {
    background: #fff;
    border: 1px solid rgba(126, 201, 191, 0.3);
    border-left: 4px solid var(--color-main);
    border-radius: 0 12px 12px 0;
    padding: 28px 32px;
    margin-top: 28px;
    box-shadow: 0 4px 16px rgba(94, 149, 142, 0.08);
}

.about-institution-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-sub);
    margin-bottom: 12px;
}

.institution-role-list {
    margin-top: 16px;
    border-top: 1px solid var(--color-light);
}

.institution-role-list dt,
.institution-role-list dd {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-light);
    line-height: 1.7;
}

.institution-role-list dt {
    font-weight: 700;
    color: var(--color-sub);
    font-size: 14px;
}

.institution-role-list dd {
    font-size: 14px;
    color: var(--color-text);
    margin-left: 0;
    padding-left: 1em;
}

/* 定義リスト (会社概要などでも使う) */
.definition-list {
    border-top: 1px solid #ddd;
}

.definition-list dt,
.definition-list dd {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    line-height: 1.7;
}

.definition-list dt {
    background-color: #f9f9f9;
    font-weight: bold;
}

/* テーブル (商品一覧) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.data-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* リスト (費用) */
.styled-list {
    list-style-type: none;
    padding-left: 0;
}

.styled-list li {
    font-size: 16px;
    line-height: 1.8;
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

.styled-list li:last-child {
    border-bottom: none;
}

/* --- 16. ナビゲーション ドロップダウン --- */

/* サブメニューを持つ li に矢印を追加 */
.global-nav li.has-submenu {
    position: relative;
    /* サブメニューの基準位置 */
}

.global-nav li.has-submenu>a {
    display: flex;
    align-items: center;
}

/* 矢印のデザイン */
.global-nav li.has-submenu>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #555;
    /* 矢印の色 */
    margin-left: 8px;
    transition: transform 0.3s;
}

/* サブメニューのスタイル */
.sub-menu {
    /* フェードインアニメーション */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    position: absolute;
    top: 100%;

    /* ★変更★ 左揃えにするため、親要素の左端に合わせる */
    left: -25px;

    background-color: white;

    /* ★変更★ 元サイトに合わせて幅を狭くする */
    min-width: 180px;

    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    list-style: none;

    /* ★変更★ 元サイトに合わせて上下の余白を詰める */
    padding: 10px 0;

    z-index: 200;
}

/* 親 li にホバーしたらサブメニューを表示 */
.global-nav li.has-submenu:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

/* ホバー時に矢印を回転 */
.global-nav li.has-submenu:hover>a::after {
    transform: rotate(180deg);
}

/* ★★★ 以下を新規追加 ★★★ */
/* サブメニューの項目 (li) */
.sub-menu li {
    margin-left: 0;
    position: relative;
}

/* 項目間の区切り線 (最初の子以外) */
.sub-menu li:not(:first-child) {
    border-top: 1px solid #f0f0f0;
    /* 薄いグレーの線 */
}

/* ★★★ ここまで ★★★ */


/* サブメニューの項目 (aタグ) スタイル */
.sub-menu li a {
    display: block;

    /* ★変更★ 元サイトに合わせて余白を調整 (特に左右) */
    padding: 14px 25px;

    font-size: 14px;
    color: #333;
    font-weight: 500;
    /* 元サイトは少し太い */
    transition: color 0.3s, background-color 0.3s;

    /* ★追加★ テキストが折り返さないようにする */
    white-space: nowrap;
}

/* ホバーエフェクト */
.sub-menu li a:hover {
    color: var(--color-accent);
    /* グリーン */
    background-color: #f9f9f9;
    /* 薄いグレー */
}

/* --- 契約申請時書類リスト --- */
.contract-application-wrapper {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.documents-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-sub);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-main);
}

.contract-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.title-icon {
    color: #8CC63F;
    /* 黄緑色 */
    font-size: 24px;
    margin-right: 10px;
}

.table-container {
    overflow-x: auto;
    /* スマホで横スクロール */
    border-radius: 8px;
    /* 角丸 */
    overflow: hidden;
    /* 角丸を有効にするため */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 15px;
}

.documents-table th {
    background-color: #93a5ac;
    /* グレー/ブルーグレー */
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.documents-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
    line-height: 1.6;
}

.documents-table tr:last-child td {
    border-bottom: none;
}

.col-no {
    width: 60px;
    text-align: center;
}

.col-name {
    width: 40%;
}

.center-text {
    text-align: center;
    font-weight: bold;
}

.contract-notes {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.contract-notes p {
    margin-bottom: 5px;
}

@media (max-width: 768px) {

    .documents-table th,
    .documents-table td {
        padding: 10px;
        font-size: 13px;
    }

    .col-name {
        width: auto;
    }
}

/* --- シンプルなページタイトル（導入までの流れ用） --- */
.page-title-simple {
    text-align: center !important;
    padding: 80px 20px 60px;
    width: 100%;
    background-color: white;
    /* 背景色を白に強制（全幅） */
}

.page-title-simple h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    text-align: center;
    display: block;
}

.page-title-simple p {
    font-size: 15px;
    line-height: 2;
    color: #333;
    font-weight: 500;
    text-align: center;
    display: block;
    /* inline-blockからblockに変更 */
    margin: 0 auto;
    /* 中央寄せ */
}

@media (max-width: 768px) {
    .page-title-simple {
        padding: 50px 20px 40px;
    }

    .page-title-simple h1 {
        font-size: 26px;
    }

    .page-title-simple p {
        font-size: 14px;
        text-align: left;
        display: block;
    }
}

/* --- 導入事例詳細カード --- */
.case-detail-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.case-number {
    background-color: var(--color-main);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.case-industry {
    font-size: 14px;
    color: var(--color-sub);
}

.case-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-light);
}

.case-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.case-section h4 {
    font-size: 14px;
    font-weight: bold;
    color: var(--color-sub);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-light);
}

.case-section p {
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .case-body {
        grid-template-columns: 1fr;
    }
    .case-detail-card {
        padding: 25px;
    }
}

/* --- 商品選定理由 --- */
.products-reason-list {
    margin-top: 40px;
}

.products-reason-item {
    padding: 20px;
    border-bottom: 1px dashed #ddd;
}

.products-reason-item:last-child {
    border-bottom: none;
}

.products-reason-item h4 {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-sub);
    margin-bottom: 8px;
}

.products-reason-item p {
    font-size: 15px;
    line-height: 1.7;
}

.products-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* --- 17. ハンバーガーメニューボタン --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #555;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

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

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* --- 18. モバイルレスポンシブ --- */
@media (max-width: 768px) {

    body {
        padding-top: 70px;
    }

    .site-header {
        height: 70px;
        padding: 0 20px;
    }

    .site-header:not(.is-top) {
        height: 60px;
    }

    .hero-video-section {
        height: calc(100vh - 70px);
    }

    .hamburger-btn {
        display: flex;
    }

    /* PC用ナビを非表示にしてモバイル用ドロワーに切り替え */
    .global-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
        z-index: 200;
    }

    .global-nav.open {
        display: block;
    }

    .global-nav > ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .global-nav > ul > li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .global-nav > ul > li > a {
        display: block;
        padding: 15px 25px;
        font-size: 15px;
    }

    /* サブメニュー（モバイル） */
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        display: none;
        border-top: 1px solid #f0f0f0;
        background-color: #fafafa;
    }

    .sub-menu.open {
        display: block;
    }

    .sub-menu li {
        border-top: 1px solid #f0f0f0;
    }

    .sub-menu li:not(:first-child) {
        border-top: 1px solid #f0f0f0;
    }

    .sub-menu li a {
        padding: 12px 25px 12px 45px;
        white-space: normal;
    }

    /* ヒーローテキスト */
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text .sub-title {
        font-size: 20px;
    }

    .hero-text .credit-text {
        white-space: normal;
    }

    /* メインコンテンツ */
    .main-content {
        padding: 60px 20px 40px;
        border-radius: 20px 20px 0 0;
    }

    .intro h2 {
        font-size: 20px;
    }

    .intro .large-text {
        font-size: 16px;
    }

    /* メリット */
    .merits-container {
        flex-direction: column;
    }

    /* ゆたかなライフとは？ */
    .about-content {
        flex-direction: column;
    }

    /* 導入までの流れ */
    .flow-list {
        border-left: none;
        padding-left: 0;
    }

    .flow-item {
        padding-bottom: 30px;
        padding-left: 0;
        border-left: 3px solid var(--color-main);
        padding-left: 20px;
    }

    .flow-step {
        margin-bottom: 5px;
    }

    .flow-item::before {
        display: none;
    }

    /* セクションタイトル */
    .section-title {
        font-size: 22px;
        margin-bottom: 40px;
    }

    /* 会社概要テーブル */
    .profile-list dt,
    .profile-list dd {
        float: none;
        width: 100%;
    }

    .profile-list dt {
        padding-bottom: 5px;
        border-bottom: none;
    }

    .profile-list dd {
        padding-top: 5px;
    }

    /* ボタン */
    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* フッター */
    .footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* サブページ */
    .subpage-content {
        padding: 40px 15px;
    }

    .content-wrapper {
        padding: 30px 20px;
    }

    .page-hero {
        height: 250px;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    /* テーブル横スクロール対応 */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        white-space: normal;
        min-width: 80px;
    }

    /* 定義リスト モバイル縦並び */
    .definition-list dt,
    .definition-list dd {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .definition-list dt {
        padding-bottom: 4px;
        border-bottom: none;
    }

    .definition-list dd {
        padding-top: 4px;
        border-bottom: 1px solid #ddd;
    }

    /* 費用シミュレーション 1列に */
    .cost-sim-grid {
        grid-template-columns: 1fr !important;
    }

    .cost-sim-wrapper {
        padding: 20px 16px !important;
    }

    /* CTAセクション */
    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 20px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .cta-section .btn-cta {
        font-size: 15px;
        padding: 16px 32px;
    }

    /* DC説明ボックス */
    .dc-intro-box {
        font-size: 13px;
        padding: 20px 22px;
    }
    .dc-intro-box strong {
        font-size: 15px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    /* 動画サマリー内テーブル */
    .video-summary-table {
        width: 100%;
        font-size: 12px;
    }

    /* プランの仕組み図の説明リスト */
    .role-num-name {
        min-width: 130px;
    }

    /* コンテンツタイトル */
    .content-title {
        font-size: 20px;
    }
}

/* --- 17. 導入事例 一覧ページ カードグリッド --- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-grid-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
}

.case-grid-card .cgc-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-grid-card .cgc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-grid-card:hover .cgc-img img {
    transform: scale(1.06);
}

.case-grid-card .cgc-body {
    padding: 24px;
}

.case-grid-card .cgc-num {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.12em;
    color: var(--color-sub);
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 6px;
}

.case-grid-card .cgc-num::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
}

.case-grid-card .cgc-ttl {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.case-grid-card:hover .cgc-ttl {
    color: var(--color-accent);
}

.case-grid-card .cgc-meta {
    font-size: 13px;
    color: var(--color-sub);
}

/* --- 18. 導入事例 詳細ページ --- */
.case-detail-hero {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #1a2a3a;
}

.case-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.5;
}

.case-detail-hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 80px;
    color: white;
}

.case-detail-hero-text .cdh-num {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.25em;
    margin-bottom: 14px;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.case-detail-hero-text h1 {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.04em;
}

.case-detail-content {
    background: #f6f6f6;
    padding: 70px 40px;
}

.case-detail-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.case-block {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.case-block h2 {
    font-size: 19px;
    font-weight: bold;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-main);
    margin-bottom: 24px;
}

.case-block p {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}

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

.case-overview-table th,
.case-overview-table td {
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.case-overview-table th {
    width: 140px;
    font-weight: bold;
    color: var(--color-sub);
    background: #f9f9f9;
    white-space: nowrap;
}

.case-overview-table tr:last-child th,
.case-overview-table tr:last-child td {
    border-bottom: none;
}

/* 前後ページナビゲーション */
.case-pager {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
}

.case-pager a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-sub);
    text-decoration: none;
    padding: 12px 22px;
    border: 1px solid var(--color-main);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.case-pager a:hover {
    background: var(--color-main);
    color: white;
}

.case-pager .pager-list {
    font-size: 14px;
}

.case-pager .pager-list a {
    border: none;
    padding: 0;
    text-decoration: underline;
}

.case-pager .pager-list a:hover {
    background: none;
    color: var(--color-accent);
}

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

    .case-detail-hero {
        height: 240px;
    }

    .case-detail-hero-text {
        padding: 0 24px;
    }

    .case-detail-hero-text h1 {
        font-size: 22px;
    }

    .case-detail-content {
        padding: 40px 15px;
    }

    .case-block {
        padding: 24px 20px;
    }

    .case-overview-table th {
        width: 100px;
    }

    .case-pager {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- 19. プランの仕組み --- */
.plan-mechanism-wrapper {
    margin-top: 40px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* カラー定義 */
:root {
    --item1-dark: #f09f2b;
    --item1-light: #fef0cd;
    --item2-dark: #64a6df;
    --item2-light: #d6eef8;
    --item3-dark: #58a4df;
    --item3-light: #d6eef8;
    --item4-dark: #309eed;
    --item4-light: #e4f2fc;
    --item4-sub: #86c4f0;
    --item5-dark: #a07eb5;
    --item5-light: #eeddf3;
    --item6-dark: #9bc634;
    --item6-light: #eef3db;
}

/* --- 上段: 機関の説明リスト --- */
.plan-roles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 60px;
}

.role-item {
    display: flex;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
    font-size: 14px;
    min-height: 40px;
}

.role-num-name {
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
    min-width: 180px;
}

.role-no {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    font-size: 18px;
    margin-right: 15px;
    margin-left: 10px;
}

.role-name {
    letter-spacing: 0.1em;
}

.role-desc {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    line-height: 1.5;
}

/* リスト各項目の色設定 */
.role-item-1 .role-num-name { background-color: var(--item1-dark); }
.role-item-1 .role-desc { background-color: var(--item1-light); }
.role-item-2 .role-num-name { background-color: var(--item2-dark); }
.role-item-2 .role-desc { background-color: var(--item2-light); }
.role-item-3 .role-num-name { background-color: var(--item3-dark); }
.role-item-3 .role-desc { background-color: var(--item3-light); }
.role-item-4 .role-num-name { background-color: var(--item4-dark); }
.role-item-4 .role-desc { background-color: var(--item4-light); }
.role-item-5 .role-num-name { background-color: var(--item5-dark); }
.role-item-5 .role-desc { background-color: var(--item5-light); }
.role-item-6 .role-num-name { background-color: var(--item6-dark); }
.role-item-6 .role-desc { background-color: var(--item6-light); }


/* --- 下段: 相関図 --- */
.plan-flow-diagram-wrapper {
    width: 100%;
    overflow-x: auto; /* モバイル対応のため横スクロールを許可 */
    padding-bottom: 20px;
}

.plan-flow-diagram {
    position: relative;
    width: 900px; /* PCレイアウトの固定幅 */
    height: 700px;
    margin: 0 auto;
    font-size: 13px;
    background-color: white;
}

.flow-connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* SVGがクリックを阻害しないように */
}

/* フロー図の各カラム */
.flow-col {
    position: absolute;
    z-index: 2;
    width: 200px;
}

.flow-col-left {
    top: 60px;
    left: 20px;
}

.flow-col-center {
    top: 260px;
    left: 350px;
}

.flow-col-right {
    top: 180px;
    left: 680px;
}

/* ブロック共通スタイル */
.flow-block {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.block-header {
    color: white;
    font-weight: bold;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    letter-spacing: 0.1em;
}

.block-header .no {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-size: 14px;
    margin-right: 10px;
}

.block-body {
    padding: 15px;
    text-align: center;
    color: #333;
}

.block-body.p-large {
    padding: 20px 15px;
}

.block-title {
    font-weight: bold;
    font-size: 15px;
    line-height: 1.4;
}

.block-sub {
    font-size: 11px;
    color: #555;
    margin-top: 5px;
}

.mb-10 { margin-bottom: 10px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }

/* 内部ブロック（記録関連業務など） */
.block-sub-inner {
    border: 1px solid white;
    background: white;
    margin: 0 auto;
    width: 90%;
}
.inner-header {
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 4px;
}
.inner-body {
    padding: 15px 5px;
    background: white;
    font-weight: bold;
    line-height: 1.4;
}

/* 行の分割ブロック (導入企業の 加入者:役員/従業員) */
.block-side {
    width: 30%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    padding: 10px 0;
    letter-spacing: 0.2em;
}
.block-side-content {
    width: 70%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1.6;
}

/* 背景色クラス */
.bg-item-1 { background-color: var(--item1-dark); }
.bg-item-1-light { background-color: var(--item1-light); border: 2px solid var(--item1-light); }
.bg-item-2 { background-color: var(--item2-dark); }
.bg-item-2-light { background-color: var(--item2-light); border: 2px solid var(--item2-light); }
.bg-item-3 { background-color: var(--item3-dark); }
.bg-item-3-light { background-color: var(--item3-light); border: 2px solid var(--item3-light); }
.bg-item-4 { background-color: var(--item4-dark); }
.bg-item-4-light { background-color: var(--item4-light); border: 2px solid var(--item4-light); }
.bg-item-4-sub { background-color: var(--item4-sub); }
.bg-item-5 { background-color: var(--item5-dark); }
.bg-item-5-light { background-color: var(--item5-light); border: 2px solid var(--item5-light); }
.bg-item-6 { background-color: var(--item6-dark); }
.bg-item-6-light { background-color: var(--item6-light); border: 2px solid var(--item6-light); }

/* --- 20. プラン商品一覧カテゴリカラー --- */
.cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    color: white;
}

/* 行背景色 */
.cat-domestic-equity   { background-color: #fff5f0; }
.cat-foreign-equity    { background-color: #f0f6ff; }
.cat-global-equity     { background-color: #f5f0ff; }
.cat-domestic-bond     { background-color: #f0fff5; }
.cat-foreign-bond      { background-color: #f0fdf9; }
.cat-mixed             { background-color: #fffbf0; }
.cat-reit              { background-color: #fff0f6; }
.cat-other             { background-color: #f5f5f0; }
.cat-capital-guaranteed{ background-color: #f0f5ff; }

/* バッジ色 */
.cat-domestic-equity   .cat-badge { background-color: #e8683b; }
.cat-foreign-equity    .cat-badge { background-color: #4a8fd4; }
.cat-global-equity     .cat-badge { background-color: #7b68c8; }
.cat-domestic-bond     .cat-badge { background-color: #5aaa6a; }
.cat-foreign-bond      .cat-badge { background-color: #2aa898; }
.cat-mixed             .cat-badge { background-color: #d4963a; }
.cat-reit              .cat-badge { background-color: #d4628a; }
.cat-other             .cat-badge { background-color: #8a8a7a; }
.cat-capital-guaranteed .cat-badge { background-color: #5a8ad4; }

/* --- 21. DC説明ボックス --- */
.dc-intro-box {
    background: #fff;
    border: 1px solid rgba(126, 201, 191, 0.3);
    border-top: 4px solid var(--color-main);
    padding: 28px 36px;
    margin-top: 36px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(94, 149, 142, 0.1);
    text-align: left;
}
.dc-intro-box strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 12px;
    color: var(--color-sub);
    border-bottom: 1px solid var(--color-light);
    letter-spacing: 0.01em;
}

/* --- 21. 無料相談CTAセクション --- */
.cta-section {
    background: var(--color-accent);
    text-align: center;
    padding: 70px 20px;
}
.cta-section h2 {
    font-size: 26px;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
}
.cta-section p {
    color: white;
    line-height: 1.9;
    margin-bottom: 36px;
    font-size: 15px;
}
.cta-section .btn-cta {
    display: inline-block;
    background: white;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 16px;
    padding: 18px 48px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-section .btn-cta:hover {
    background: #fff3ee;
    transform: translateY(-2px);
}

/* --- 22. リスク注記 --- */
.risk-notice {
    margin-top: 48px;
    padding: 16px 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}