@charset "UTF-8";

/* ヘッダー */
.custom-header {
    width: 100vw;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 40, 140, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    border-bottom: 4px solid #00288C;
    /* ヘッダー下の境界線 */
}

.custom-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.custom-logo img {
    height: 36px;
}

.custom-nav {
    display: flex;
    gap: 28px;
}

/* ハンバーガーメニュー用 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 101;
    position: absolute;
    top: 10px;
    right: 20px;
}

.hamburger span {
    height: 4px;
    width: 100%;
    background: var(--primary-color);
    margin: 6px 0;
    border-radius: 2px;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .custom-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
        padding: 80px 0 0 0;
        gap: 0;
        z-index: 200;
        transition: opacity 0.3s;
        opacity: 0;
        pointer-events: none;
    }

    .custom-nav.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .custom-nav a {
        padding: 18px 32px;
        border-bottom: 1px solid #eee;
        font-size: 1.1rem;
        color: var(--secondary-color);
        background: none;
        transition: background 0.2s, color 0.2s;
    }

    .custom-nav a:last-child {
        border-bottom: none;
    }

    .custom-nav a:hover {
        background: var(--accent-color);
        color: #fff;
    }

    .hamburger {
        display: flex;
    }
}

.custom-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s;
}

.custom-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .custom-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 8px;
    }

    .custom-nav {
        gap: 16px;
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .custom-logo img {
        height: 28px;
    }
}

/* Reset and Basic Styles */
:root {
    --primary-color: #00288C;
    --secondary-color: #495057;
    --accent-color: #ff9800;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 固定ヘッダー分の余白（必要に応じて値を調整してください） */
    --header-height: 72px;
    --header-height-mobile: 64px;
    /* CTA position variables (OC = desktop, SP = mobile) */
    --cta-left-oc: clamp(48px, 20%, 40%);
    --cta-bottom-oc: clamp(8px, 30%, 30%);
    --cta-top-sp: 60%;
    --cta-left-sp: 50%;
}

body {
    margin: 0;
    /* 上部に固定ヘッダー分の余白を確保して、メインビジュアルが被らないようにする */
    padding-top: var(--header-height);
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .seminar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-color);
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* Header */
.hero {
    /* 基本は相対配置。デスクトップ用の背景は下のメディアクエリで調整します */
    position: relative;
    width: 100%;
    overflow: hidden;
    /* ヒーローの高さを表す変数（デスクトップ用の比率をデフォルトとする） */
    --hero-h: calc(100vw * 750 / 1920);
    /* デスクトップ用バナー（1920x750） */
    background-image: url('https://nurse.carenet.com/mailimages/seminar-lp/zyokusou/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/zyokusou/img/img-mv-sp.jpg');
        background-repeat: no-repeat;
        /* 背景は中央寄せ・cover にして、コンテナ高さをバナーの縦横比に合わせる */
        background-position: center center;
        background-size: cover;
        text-align: center;
        /* 横幅に基づいた高さ（フォールバック）とアスペクト比指定 */
        min-height: calc(100vw * 1080 / 750);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hero h1 {
    margin: 0;
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 50px;
}

/* Problems Section */
.problems {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.problems ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

.problems li {
    background-color: var(--background-color);
    padding: 15px;
    border-left: 5px solid var(--primary-color);
    border-radius: 4px;
    font-size: 1.2rem;
}

.problems .solution {
    text-align: center;
    font-weight: 700;
    font-size: 2.0rem;
    margin-top: 30px;
    color: var(--accent-color);
}

/* Seminar Section */
.seminar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.seminar-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.seminar-card:hover {
    transform: translateY(-5px);
}

.seminar-card img {
    width: 100%;
    height: auto;
    display: block;
}

.seminar-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.seminar-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.seminar-content p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-wide {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 90px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-wide:hover {
    background-color: #0056b3;
}

.btn2 {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 120px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn2:hover {
    background-color: #0056b3;
}

.btn2-wide {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 90px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn2-wide:hover {
    background-color: #0056b3;
}

.btn3 {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn3:hover {
    background-color: #0056b3;
}

.btn3-wide {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 90px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn3-wide:hover {
    background-color: #0056b3;
}

/* ボタンのレスポンシブ分岐
           PC: 769px 以上では既存スタイルを基本に表示
           SP: 768px 以下ではフル幅または小さめスタイルに切替 */
@media (max-width: 768px) {
    .btn {
        width: 90%;
        padding: 10px 10px;
        font-size: 0.95rem;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .btn2 {
        width: 90%;
        padding: 12px 16px;
        font-size: 1.1rem;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .btn3 {
        width: 100%;
        padding: 12px 16px;
        font-size: 1.1rem;
        border-radius: 8px;
        box-sizing: border-box;
    }

}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.feature-item h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

/* Testimonials Section */
.testimonial {
    background: #fff;
    border-left: 5px solid var(--accent-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
}

.testimonial p {
    margin: 0;
    font-style: italic;
}

.testimonial footer {
    text-align: right;
    margin-top: 15px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Info Section */
.info-section {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 40px;
}

.info-section h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-section ul li {
    margin-bottom: 10px;
}

/* Info Section2 */
.info-section2 {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 40px;
}

.info-section2 h3 {
    margin-bottom: 20px;
}

.info-section2 ul li {
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.site-footer h2 {
    color: #fff;
    margin: 0;
}

.site-footer h2::after {
    background-color: var(--accent-color);
}

.site-footer p {
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .container {
        width: 100%;
        padding: 20px 8px;
    }

    .seminar-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .features-grid {
        gap: 16px;
    }
}

/* モバイル時はヘッダーがやや小さめになる想定なので、余白も調整 */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-height-mobile);
    }
}

/* .seminar-grid のスタイルは他で定義済みのため空のルールセットは削除しました */

@media (min-width: 769px) {
    .hero {
        position: relative;
        display: flex;
        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;
    }
}

/* アクセシビリティ対応: 画面上は表示しないが DOM に残すユーティリティ */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero-content {
    /* ヒーロー要素自体を基準にボタンを配置するため、ここは通常のフローにしておく */
    position: static;
    width: 100%;
    max-width: 1100px;
    text-align: center;
    color: #fff;
    z-index: 2;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    color: #343a40;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.hero-lead {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-cta {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    font-weight: bold;
    /* ヒーロー高さに比例してサイズが変わるようにする（--hero-h を基準） */
    font-size: clamp(12px, calc(var(--hero-h) * 0.05), 32px);
    padding: clamp(8px, calc(var(--hero-h) * 0.012), 20px) clamp(12px, calc(var(--hero-h) * 0.04), 80px);
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: background 0.2s, left 0.25s ease, bottom 0.25s ease, transform 0.25s ease;
    /* ヒーロー内のサイズに合わせて位置する（JS不要、absoluteで親要素(.hero)に対して%が効く） */
    position: absolute;
    /* left/bottom は OC 用変数で管理 */
    left: var(--cta-left-oc, clamp(48px, 20%, 40%));
    bottom: var(--cta-bottom-oc, clamp(8px, 16%, 30%));
    z-index: 1000;
    /* ヘッダー(999)より上に出す */
}

.hero-cta:hover {
    background: #e07c00;
}

/* デスクトップ（OC）でCTAをさらに下に移動（変数値から相対30%下げる） */
@media (min-width: 769px) {
    .hero-cta {
        bottom: calc(var(--cta-bottom-oc, clamp(8px, 16%, 30%)) - 15%);
        left: calc(var(--cta-left-oc, clamp(48px, 20%, 40%)) - -3%)
    }
}

@media (max-width: 768px) {
    .hero-content {
        width: 100vw;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .hero-cta {
        /* モバイルはヒーロー高さに比例させつつ上限・下限を設定 */
        font-size: clamp(12px, calc(var(--hero-h) * 0.04), 20px);
        padding: clamp(6px, calc(var(--hero-h) * 0.01), 14px) clamp(8px, calc(var(--hero-h) * 0.02), 40px);
        /* モバイルは横中央揃え、ヒーローの上から top を変数で指定 */
        position: absolute;
        left: var(--cta-left-sp, 50%);
        transform: translateX(-50%);
        border-radius: clamp(12px, calc(var(--hero-h) * 0.02), 28px);
        z-index: 1000;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .sp-br {
        display: inline;
    }
}

@media (min-width: 769px) {
    .sp-br {
        display: none;
    }
}

@media (max-width: 768px) {
    .sp-br2 {
        display: inline;
    }
}

@media (min-width: 769px) {
    .sp-br2 {
        display: none;
    }
}

@media (max-width: 768px) {
    .sp-br3 {
        display: inline;
    }
}

@media (min-width: 769px) {
    .sp-br3 {
        display: none;
    }
}

@media (max-width: 768px) {
    .sp-br4 {
        display: inline;
    }
}

@media (min-width: 769px) {
    .sp-br4 {
        display: none;
    }
}

/* 注意書き（特徴下）の標準スタイルとレスポンシブ調整 */
.note-warning {
    text-align: right;
    /* PC: 右寄せ */
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 12px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .note-warning {
        text-align: left;
        /* SP: 左寄せ */
    }
}

/* ページ内リンク（フラグメント）で見切れないように、ヘッダー分の余白を確保 */
html {
    scroll-padding-top: calc(var(--header-height) - 30px);
}

/* セクション等のアンカー対象にマージンを設定（ブラウザ互換補助） */
section[id],
.container[id] {
    scroll-margin-top: calc(var(--header-height) - 30px);
}