/* ============================================
   薬学生向けバージョン カスタムスタイル
   ============================================ */

/* ヒーローセクション - PC表示最適化 */
.hero {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    min-height: 650px;
    display: flex;
    flex-direction: column;
}

/* 学生らしい爽やかなグラデーション背景（薄め） */
.hero__background {
    background: linear-gradient(135deg, #f4fafd 0%, #eaf5fc 30%, #e2f1fa 60%, #daedf8 100%);
    filter: none;
    top: 0;
    height: 100%;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(135, 206, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(173, 216, 230, 0.2) 0%, transparent 40%);
    z-index: 0;
}

/* ヒーローラッパー - PC: 左半分の中央にテキスト */
.hero__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    margin: 0;
    padding: 40px 20px;
    flex: 1;
}

/* テキストコンテンツ - 左半分の中央 */
.hero__content {
    flex: 0 0 auto;
    width: auto;
    max-width: 500px;
    padding: 0;
    z-index: 2;
}

/* タイトル */
.hero__title {
    color: #1a365d;
    text-shadow: none;
    white-space: nowrap;
    font-size: clamp(36px, 4vw, 52px);
    margin-bottom: 12px;
}

.hero__title span:last-child {
    color: var(--color-primary);
}

.hero__label {
    background-color: #4299e1;
    color: #ffffff;
    font-size: clamp(20px, 2.2vw, 26px);
}

.hero__text {
    color: #2d3748;
    margin-bottom: 16px;
}

.hero__text p {
    color: #4a5568;
}

/* PC表示では改行を非表示 */
.sp-only {
    display: none;
}

/* PC表示ではスマホ用画像を非表示 */
.hero__image .sp-image {
    display: none;
}

.hero__image .pc-image {
    display: block;
}

/* 女性画像 - 右半分の中央・下揃え、1.5倍サイズ */
.hero__image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

.hero__image img {
    width: auto;
    height: auto;
    max-height: 680px;
    object-fit: contain;
    object-position: bottom center;
}

/* ============================================
   大画面対応 (1400px以上)
   ============================================ */
@media (min-width: 1400px) {
    .hero {
        min-height: 700px;
    }
    
    .hero__image img {
        max-height: 771px;
    }
}

/* ============================================
   中画面対応 (1024px - 1399px)
   ============================================ */
@media (min-width: 1024px) and (max-width: 1399px) {
    .hero {
        min-height: 650px;
    }
    
    .hero__wrapper {
        padding: 30px 20px;
    }
    
    .hero__title {
        font-size: clamp(32px, 3.5vw, 46px);
    }
    
    .hero__image img {
        max-height: 635px;
    }
}

/* ============================================
   タブレット対応 (768px - 1023px)
   ============================================ */
@media (max-width: 1023px) {
    .hero {
        min-height: 550px;
    }
    
    .hero__wrapper {
        padding: 20px 15px;
    }

    .hero__content {
        max-width: 400px;
    }
    
    .hero__title {
        font-size: clamp(28px, 3.5vw, 38px);
    }
    
    .hero__label {
        font-size: clamp(16px, 2vw, 20px);
    }

    .hero__image img {
        max-height: 509px;
    }
}

/* ============================================
   スマホ対応 (767px以下)
   ============================================ */
@media (max-width: 767px) {
    .hero {
        min-height: 500px;
        padding-top: 20px;
        overflow: hidden;
    }

    /* スマホ: 文字を背景左端に完全に揃える */
    .hero__wrapper {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        padding: 20px 0;
        gap: 16px;
        min-height: 460px;
    }

    /* .innerクラスのパディングをオーバーライドして左端から2文字分右に */
    .hero__content.inner {
        width: 100%;
        max-width: 85%;
        text-align: left;
        z-index: 2;
        padding: 0 0 0 2em !important;
        margin-left: 0;
    }

    .hero__content {
        max-width: 85%;
        text-align: left;
        z-index: 2;
        padding-left: 0;
        margin-left: 0;
    }
    
    .hero__title {
        white-space: normal;
        font-size: clamp(24px, 6vw, 32px);
        text-shadow: none;
    }
    
    .hero__label {
        font-size: clamp(16px, 4.5vw, 22px);
    }

    /* スマホ用：テキスト改行表示・フォント調整 */
    .sp-only {
        display: inline;
    }

    /* スマホ用：切り抜き画像を表示、PC用画像を非表示 */
    .hero__image .sp-image {
        display: block;
    }

    .hero__image .pc-image {
        display: none;
    }

    .hero__text {
        font-size: clamp(12px, 3.5vw, 15px);
        line-height: 1.7;
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9), -1px -1px 2px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 255, 255, 0.8);
    }

    .hero__text p {
        margin-bottom: 12px;
    }
    
    .btn--round {
        width: auto;
        white-space: nowrap;
    }
    
    .hero__links {
        align-items: flex-start;
    }

    /* 画像: スマホでは右下に配置、背景右端に揃える (0.9倍) */
    .hero__image {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 59%;
        justify-content: flex-end;
        z-index: 1;
        opacity: 0.85;
        overflow: hidden;
    }

    .hero__image img {
        max-height: none;
        height: auto;
        width: 100%;
        min-height: 450px;
        object-fit: cover;
        object-position: left bottom;
    }

    /* セクション1のタイトルを左揃え */
    .concerns__header {
        text-align: left;
    }

    .concerns__header h2 {
        text-align: left;
    }

    /* セクション2のタイトルを左揃え */
    .heading-arrow {
        text-align: left;
    }

    .heading-arrow h2 {
        text-align: left;
    }
}

/* ============================================
   小さいスマホ対応 (480px以下)
   ============================================ */
@media (max-width: 480px) {
    .hero {
        min-height: 450px;
    }
    
    .hero__wrapper {
        min-height: 410px;
    }
    
    .hero__content {
        max-width: 85%;
    }
    
    .hero__image {
        right: 0;
        width: 63%;
    }

    .hero__image img {
        min-height: 405px;
    }

    .hero__title {
        font-size: clamp(24px, 6.5vw, 32px);
    }
}

/* ============================================
   活用事例セクション - 中央揃え・画像位置調整
   ============================================ */
/* セクション6全体を中央揃え */
.section.case-studies .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-studies__header {
    width: 100%;
    text-align: center;
}

.case-studies__blocks {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-studies__block {
    width: 100%;
    max-width: 1040px;
}

/* PC表示時の画像サイズをボックスに収める＆矢印を画像に対して中央揃え */
@media (min-width: 1024px) {
    .before-after__image {
        width: clamp(280px, 25vw, 380px);
        height: clamp(186px, 16vw, 253px);
    }
    
    /* グリッドを画像のみに対して中央揃えにするためalign-items: start */
    .case-studies__block .before-after__grid {
        align-items: start;
    }
    
    /* 矢印を画像の高さに合わせて中央に配置 */
    .case-studies__block .before-after__arrow {
        height: clamp(186px, 16vw, 253px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 全ての事例画像を上揃え */
.case-studies__block .before-after__image img {
    object-position: center top;
}
