@charset "UTF-8";


:root {
    --main-color: #008080;
    /* グリーン */
    --light-color: #e0f7f7;
    --dark-color: #005050;
    --secondary-color: #28a745;
    --third-color: #495057;
    /* CTAボタン */
    --white-color: #ffffff;
    --text-color: #333333;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 0;
    /* JSでヘッダー高さに応じて動的に設定します */
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* ヘッダー */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    /* スクロールしても常に表示 */
    top: 0;
    left: 0;
    width: 95%;
    z-index: 1000;
    border-bottom: 4px solid var(--main-color);
    /* グロナビ下に緑ライン */
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: inline-block;
    color: var(--dark-color);
    text-decoration: none;
    border: none;
    padding: 0;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.custom-logo img {
    height: 36px;
}

/* ナビゲーション */
.nav {
    min-width: 0;
    justify-content: flex-end;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    /* 折り返しを許可して見切れを防ぐ */
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--third-color);
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s;
    font-size: 20px;
    white-space: nowrap;
    font-weight: 700;
}

.nav a:hover {
    color: var(--main-color);
}

/* Header */
.hero {
    /* 基本は相対配置。デスクトップ用の背景は下のメディアクエリで調整します */
    position: relative;
    overflow: hidden;
    /* ヒーローの高さを表す変数（デスクトップ用の比率をデフォルトとする） */
    --hero-h: calc(100vw * 750 / 1920);
    /* デスクトップ用バナー（1920x750） */
    background-image: url('https://nurse.carenet.com/mailimages/seminar-lp/goenseihaien/img/img-mv-pc.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

@media (max-width: 768px) {
    .hero {
        /* モバイル用縦長バナー（750x1080）に合わせる */
        /* モバイルではヒーロー高さ変数をモバイル比率に切り替える */
        --hero-h: calc(100vw * 1080 / 750);
        background-image: url('https://nurse.carenet.com/mailimages/seminar-lp/goenseihaien/img/img-mv-sp.jpg');
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-position: center top;
        text-align: center;
        /* 横幅に基づいた高さ（フォールバック）とアスペクト比指定 */
        min-height: calc(100vw * 1080 / 750);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .hero {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        /* フォールバック: aspect-ratio 未対応ブラウザ向けに vw ベースで高さを計算 */
        min-height: calc(100vw * 750 / 1920);
        /* デスクトップ用のアスペクト比（1920 / 750）を指定 */
        aspect-ratio: 1920 / 750;
        overflow: hidden;
    }
}

.hero h1 {
    /* font-size: clamp(最小値, 流動的な値, 最大値) */
    font-size: clamp(24px, 5vw, 40px);
    line-height: 1.3;
    /* パディングはコンテナに任せ、h1自体にはマージンのみ調整 */
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

.hero p {
    /* descriptionタグの内容を反映 */
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* メインコンテンツ */
.container {
    padding: 30px 10px;
    /* 左右のパディングを最小限の10pxに変更 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 768px以下でさらに調整 */
@media (max-width: 768px) {

    /* ヒーローのパディングを減らす */
    .hero {
        padding: 40px 10px;
        /* 左右のパディングを10pxに変更 */
    }

    /* .container のパディングはすでに 10px になっているため、変更なし */
}

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 50px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-top: 30px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--main-color);
    border-radius: 2px;
}

/* 全てのh2を中央寄せにする（セクション見出しの中央配置を保証） */
h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* 指定セクションの内容を中央寄せ
           - セクション全体のテキストを中央寄せ
           - セミナーグリッド内のカードをセル中央に配置 */
#seminars,
#features,
#testimonials,
#qualifications {
    text-align: center;
}

/* グリッド内のアイテム（カード）の内容を中央寄せにする */
.seminar-grid {
    justify-items: center;
}

.seminar-card .seminar-content,
.seminar-card .seminar-content h3,
.seminar-card .seminar-content p,
.seminar-link {
    text-align: center;
}

/* 上書き: セミナー一覧と関連資格の本文は左寄せにする */
#seminars .seminar-grid {
    justify-items: start;
    /* カードを左寄せ */
}

#seminars .seminar-card,
#seminars .seminar-card .seminar-content,
#seminars .seminar-card .seminar-content h3,
#seminars .seminar-card .seminar-content p {
    text-align: left;
    /* セミナー本文を左揃え */
}

#seminars .seminar-link {
    text-align: center;
    /* 詳細リンクは中央寄せ */
}

#seminars .seminar-link .btn-detail {
    font-size: 24px;
    /* フォントサイズを大きく */
}

/* 資格セクションのコンテンツを左寄せ */
#qualifications .qualification-grid,
#qualifications .qualification-list {
    text-align: left;
}

/* セミナー一覧（2列、3行） */
.seminar-grid {
    /* 2列固定表示（幅が狭い場合はメディアクエリで1列に切替） */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 30px;
    margin-bottom: 50px;
}

.seminar-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--main-color);
}

.seminar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.seminar-header {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.seminar-content {
    padding: 20px;
    flex-grow: 1;
}

.seminar-content h3 {
    color: var(--text-color);
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
}

.seminar-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
    min-height: 70px;
    /* 高さの均一化を補助 */
    /* 行数制限を解除して全文を表示する */
    overflow: visible;
    text-overflow: unset;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.seminar-content ul {
    padding-left: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
    list-style: disc;
}

.seminar-link {
    text-align: center;
    padding: 15px 10px;
    border-top: 1px dashed #ddd;
}

.btn-detail {
    display: block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    transition: background-color 0.3s;
    text-align: center;
}

#seminars .seminar-link .btn-detail {
    padding: 12px 0;
    width: auto;
}

.btn-detail:hover {
    background-color: #0056b3;
}

/* セミナーカードのバナー: アスペクト比 1155x290 を維持 */
.seminar-banner {
    width: 100%;
    aspect-ratio: 1155/290;
    /* 推奨比率 */
    overflow: hidden;
    background-color: #f0f0f0;
    height: auto;
    /* aspect-ratio に従わせる */
}

/* 画像はコンテナ全体を覆う（クロップ） */
.seminar-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 旧ブラウザ向けフォールバック（aspect-ratio 非対応時） */
@supports not (aspect-ratio: 1/1) {
    .seminar-banner {
        position: relative;
        padding-top: 25.108%;
        /* 290/1155 ≒ 0.25108 → 25.108% */
        height: 0;
    }

    .seminar-banner img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* 特徴・受講者の声・資格セクションのグリッド設定 */
.feature-grid,
.qualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px 20px;
    border: 1px solid var(--light-color);
    border-radius: 10px;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.testimonial-item {
    font-style: italic;
    margin: 20px auto;
    padding: 20px;
    border-left: 5px solid var(--main-color);
    background-color: var(--white-color);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    border-radius: 4px;
    text-align: left;
}

/* 新: 受講者の声グリッド（参考ページに合わせたデザイン） */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1列固定表示 */
    gap: 16px;
    align-items: start;
    /* 横幅を拡大（以前は720px） */
    width: 100%;
    box-sizing: border-box;
}

.voice-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white-color);
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.voice-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.voice-body {
    text-align: left;
}

.voice-quote {
    margin: 0 0 8px 0;
    font-style: normal;
    color: #333;
    line-height: 1.5;
    font-style: italic;
    font-size: 1.2rem;
}

.voice-meta {
    text-align: right;
    font-size: 16px;
    color: #777;
    font-weight: 700;
}

/* 評価（星）のスタイルを削除しました。評価表示は不要のため取り除いています。 */

.voice-series {
    display: block;
    margin-top: 8px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--main-color);
    text-decoration: none;
    font-size: 1.4rem;
}

@media (max-width: 480px) {
    .voice-card {
        gap: 12px;
        padding: 12px;
    }

    .voice-icon {
        width: 80px;
        height: 80px;
    }
}

.qualification-list {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

/* メディアクエリ（レスポンシブ対応） */
@media (max-width: 992px) {
    .header {
        /* モバイル時には横並びを維持し、ハンバーガーアイコンを右端に配置するために変更 */
        flex-direction: row;
        padding-bottom: 15px;
        flex-wrap: wrap;
        /* 要素が収まらない場合に折り返す */
    }

    .nav ul {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {

    /* 768px以下ではヘッダーの要素は横並びを維持し、スペースを調整 */
    .header {
        flex-direction: row;
        justify-content: space-between;
        /* ロゴとアイコンを両端に配置 */
        align-items: center;
        padding: 10px 5%;
        /* パディングを調整 */
        flex-wrap: nowrap;
        /* 折り返しを禁止 */
    }

    /* .navのスタイルはハンバーガーメニュー関連のCSSで定義済みのため削除 */

    .hero {
        padding: 60px 5% 0px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    /* 768px以下では全てのグリッドを1列に */
    .seminar-grid,
    .feature-grid,
    .qualification-grid {
        grid-template-columns: 1fr;
    }
}

/* ハンバーガーボタン */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-color);
}

.nav-toggle:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

/* PC/タブレット向けの右寄せ設定 (769px以上の画面幅) */
#features p:last-of-type {
    text-align: right;
}

/* スマホ版（768px以下）でのみ左寄せに上書き */
@media (max-width: 768px) {
    #features p:last-of-type {
        text-align: left;
    }
}

/* --- ハンバーガーメニュー関連のCSS --- */

/* チェックボックスを非表示にする */
.menu-toggle {
    display: none;
}

/* ハンバーガーアイコンのスタイル */
.hamburger-icon {
    display: none;
    /* デフォルトでは非表示 */
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1010;
    /* ナビゲーションより上に */
    padding: 5px;
}

.hamburger-icon .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* ナビゲーションメニューの初期状態（モバイル時） */
@media (max-width: 768px) {

    /* ナビゲーションを初期状態で非表示にする */
    .nav {
        position: absolute;
        top: 100%;
        /* ヘッダーの直下に配置 */
        left: 0;
        width: 100%;
        max-height: 0;
        /* 高さを0にして非表示 */
        overflow: hidden;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: max-height 0.3s ease-in-out;
    }

    /* ハンバーガーアイコンを表示 */
    .hamburger-icon {
        display: block;
        align-self: center;
        margin-left: auto;
        /* 右端に寄せる */
    }

    /* ナビゲーションのリストを縦並びにして、タップしやすいようにパディングを追加 */
    .nav ul {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        gap: 10px;
    }

    .nav ul li {
        width: 100%;
        /* liを横幅いっぱいに広げる */
        text-align: center;
        /* これにより、中の<a>タグが中央寄せされる */
    }

    .nav a {
        padding: 10px 0px;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* チェックボックスがチェックされたとき（メニューが開いたとき）のスタイル */
    #menu-toggle:checked~.nav {
        max-height: 300px;
        /* メニューの高さに合わせて調整 */
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* ハンバーガーアイコン（×印）へのアニメーション */
    #menu-toggle:checked~.hamburger-icon .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #menu-toggle:checked~.hamburger-icon .bar:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked~.hamburger-icon .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- スマートフォンでのページ内リンクの見切れ修正 --- */
@media screen and (max-width: 768px) {

    /* ページ内リンクのターゲットとなるIDを持つ要素にオフセットを設定 */
    #seminars,
    #features,
    #testimonials,
    #qualifications {
        /* 固定ヘッダーの高さ（例: 60px）+ マージンを考慮した値（80px）を設定 */
        scroll-margin-top: 20px;
    }
}

/* FVエリアのスタイル */
.fv-text-container {
    padding-left: min(16px, 5vw);
    padding-right: min(16px, 5vw);
    max-width: 39%;
    position: relative;
    top: -80px;
    left: -380px;
    text-align: center;
}

.catchphrase {
    /* * clamp() でフォントサイズを設定
     * 例: 16pxから22pxの間で、ビューポート幅(2.5vw)に応じて調整
     */
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.7;
    text-align: left;
    /* テキストの配置を調整 */
    max-width: 800px;
    /* 最大幅を設定して読みやすくする */
    margin: 0 auto 40px;
    /* 中央寄せと下部マージンを設定 */
}

/* スマートフォン向けの調整 (例: 画面幅768px以下) */
@media (max-width: 768px) {
    .catchphrase {
        /* スマートフォン向けのフォントサイズとパディングを調整 */
        font-size: 15px;
        padding: 0 15px;
        /* 左右に余白を追加して画面端に寄りすぎるのを防ぐ */
    }
}

.lead-text {
    /* clamp(最小値, 流動的な値, 最大値) */
    font-size: clamp(16px, 3.5vw, 22px);
    line-height: 1.6;
}

/* イントロメッセージセクションのスタイル */
.intro-message-section {
    padding: 40px 20px 0px; 
}

.intro-message-inner {
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; 
    line-height: 1.8; 
    color: var(--dark-color);
}

.intro-message-inner p {
    font-size: 1.4rem; 
    font-weight: bold; 
    margin-bottom: 1.5em; 
    display: inline-block; 
    text-align: center;
}

@media screen and (max-width: 768px) {
    .intro-message-section {
        padding: 0px 15px !important;
    }

    .intro-message-inner p {
        font-size: 1rem !important;
        text-align: justify !important;
        /* スマホでは読みやすさのため両端揃え */
    }
}