@charset "UTF-8";

/* =========================================================
   下層ページ メインビジュアル (Sub Hero)
========================================================= */
.p-sub-hero {
    position: relative;
    width: 100%;
    height: 395px; /* お好みで高さを調整してください（例: 320px + ヘッダー分など） */
    padding-top: 75px; /* 固定ヘッダーの高さ分、中の文字を下げる */
    background-color: var(--color-main);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 0; /* ★上部のマージンをなくして画面最上部にくっつける */
}

.p-sub-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.p-sub-hero__inner {
    position: relative;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    100% { transform: translateY(0); opacity: 1; }
}

.p-sub-hero__title {
    font-family: var(--font-english);
    font-size: 2.8rem;
    font-weight: normal;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.p-sub-hero__en {
    display: block;
    font-family: var(--font-english);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
    .p-sub-hero { 
        height: 280px; /* スマホ版の高さ */
        padding-top: 60px; /* スマホ版ヘッダーの高さ */
    }
    .p-sub-hero__title { font-size: 1.8rem; }
    .p-sub-hero__en { font-size: 0.9rem; }
}

/* =========================================================
   自立支援医療制度 ページ固有スタイル
========================================================= */
.p-support-section {
    padding: 80px 0;
}

.p-support-intro {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
}

/* 各セクションブロック（薄いグレーの枠線） */
.p-support-block {
    margin-bottom: 50px;
    border: 1px solid #eaeaea;
    background-color: #fff;
    padding: 40px;
    border-radius: 6px;
}
.p-support-block:last-child {
    margin-bottom: 0;
}

/* タイトルの左側に細く縦に四角い棒をつける装飾 (h2用) */
.p-support-heading {
    position: relative;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-main);
    padding-left: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 12px;
}
.p-support-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 15px;
    width: 4px;
    background-color: var(--color-main);
    border-radius: 2px;
}

.p-support-body {
    font-size: 0.95rem;
    line-height: 1.8;
}

.p-support-body p {
    margin-bottom: 15px;
}
.p-support-body p:last-child {
    margin-bottom: 0;
}

/* 小さいフォントの補足テキスト用 */
.p-support-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

/* h3見出しのスタイル */
.p-support-subheading {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--color-main);
    margin-top: 25px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.p-support-subheading::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-main);
    margin-right: 8px;
    border-radius: 1px;
}
.p-support-subheading:first-of-type {
    margin-top: 0;
}

/* 番号付きリストなどのスタイル */
.p-support-list {
    margin-left: 20px;
    margin-bottom: 15px;
}
.p-support-list li {
    list-style-type: decimal;
    margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
    .p-support-section { padding: 40px 0; }
    .p-support-intro { text-align: left; margin-bottom: 30px; }
    .p-support-block { padding: 25px 20px; }
    .p-support-heading { font-size: 1.15rem; }
}