/* 講師プロフィール */
.karen-custom-media-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 2em 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.karen-custom-media-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.karen-custom-media-card__image-wrapper {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    background-color: #f3f4f6;
}

@media (min-width: 720px) {
    .karen-custom-media-card {
        flex-direction: row;
        align-items: stretch;
    }

    .karen-custom-media-card__image-wrapper {
        width: 32%;
        max-width: 240px;
        aspect-ratio: auto;
    }
}

.karen-custom-media-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% 50%;
    display: block;
    margin: 0 !important;
}
.karen-custom-media-card__image.step-2-profile {
    object-position: 15% 50%;
}
.karen-custom-media-card__image.step-3-profile {
    object-position: 65% 50%;
}

.karen-custom-media-card__content {
    padding: 24px;
    flex-grow: 1;
}

.karen-custom-media-card__tag {
    display: inline-block;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    color: #fff;
    background-color: #B7470A;
    font-size: 0.9rem;
}

.karen-custom-media-card__title {
    margin: 0 0 10px 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1f2937;
    line-height: 1.4;
}

.karen-custom-media-card__text {
    margin: 0 0 16px 0 !important;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
}

.karen-custom-media-card__button {
    display: inline-block;
    padding: 8px 18px;
    background-color: #2563eb;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.karen-custom-media-card__button:hover {
    background-color: #1d4ed8;
}

























/* 開業講習トップ（ロードマップ） */

/* フロー全体・共通設定 */
.karen-roadmap-flow {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 0;
    flex-wrap: nowrap;
}

/* 各ステップ・共通スタイル */
.karen-roadmap-step {
    display: flex;
    flex: 1;
    gap: 0;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: start;
    align-items: start;

    width: 100%;
    box-sizing: border-box;

    border-radius: 4px;
    text-align: center;
    background-color: #fafafa;
    border: 1px solid #333;
    padding: 25px 25px 15px 25px;
    box-shadow: 0px 0px 5px rgb(100 120 165 / 0.5);
}

/* カード・上部 */
.karen-step-top {
    display: flex;
    gap: 12px; /* 上部右側のgapと合わせている */
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    width: 100%;
}

/* カード・上部左側 */
.karen-step-top .karen-step-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 3.5;
    min-width: 300px;
}

/* カード・上部右側 */
.karen-step-top .karen-step-right {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex: 6.5;
}

/* カード・下部 */
.karen-step-bottom {
    width: 100%;
    padding: 10px;
}

/* 講習タイトル */
.karen-roadmap-step .karen-step-title {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    margin-bottom: 15px;
}

/* 講習名 */
.karen-roadmap-step .karen-step-title .karen-step-name {
    font-weight: 700;
    font-size: 22px;
    color: #333;
    text-align: left;
    margin-top: 0 !important;
}

/* 概要 */
.karen-step-description p {
    text-align: left;
    line-height: 1.3;
    font-size: 18px;
    margin-top: 0px;
    margin-bottom: 15px !important;
}
.karen-step-description p:last-child {
    margin-bottom: 0px;
}

/* 日数・料金 */
.karen-step-schedule-price-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.karen-step-schedule-price {
    width: 50%;
}
.karen-step-schedule-price h4 {
    font-size: 15px;
    text-align: left;
    border-bottom: 1px solid #777;
    margin: 0 0 10px 0 !important;
    padding: 0;
}
.karen-step-schedule-price p {
    text-align: center;
    margin: 0; padding: 0;
    line-height: 1;
    font-size: 17px;
}

/* おすすめの人・学べること */
.karen-step-desc-container {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    flex: 1;
}

.karen-step-desc-list {
    flex: 1;
}
.karen-step-desc-list:nth-child(2) {
    flex: 0.75;
}
.karen-step-desc-list h4 {
    text-align: left;
    font-size: 15px;
    margin: 0 0 10px 0 !important;
    padding: 0;
    font-weight: 700;
    border-bottom: 1px solid #777;
}
.karen-step-desc-list ul {
    text-align: left;
    font-size: 15px;
    margin: 0 20px 0 20px;
    padding:0 0 0 0px;
}

/* ステップ表示（丸囲い） */
.karen-steps-container {
    display: block;
    margin: 0;
}
.karen-steps {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 70px;
    width: 70px;

    margin: 0;
    padding: 5px;
    border-radius: 400px;

    background: #000;
    color: #fff;

    box-shadow: 0 0 0 2px #fff;
    outline: 1px solid #000;
    outline-offset: 2px;
}

.karen-steps .karen-step-number,
.karen-steps .karen-step-string {
    display: block;
    text-wrap: nowrap;
    text-align: center;
    line-height: 1;
    padding: 0;
}
.karen-steps .karen-step-string {
    font-size: 13px;
    font-weight: 700;
    margin: 5px auto 0 auto;
}
.karen-steps .karen-step-number {
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto;
}

/* 【PC用】矢印（＞）のスタイル */
.karen-roadmap-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
/*
    width: 24px;
    height: 24px;
*/
    width: 100%;
    height: 75px;
}
.karen-roadmap-arrow::after {
    content: "";
/*
    width: 16px;
    height: 16px;
    border-right: 5px solid #333;
    border-bottom: 5px solid #333;
*/
    width: 42px;
    height: 42px;

    transform: rotate(45deg);
    position: absolute;
    border-top: none;
    border-left: none;
    border-right: 10px solid #333;
    border-bottom: 10px solid #333;
    top: 7px;
}






@media (max-width: 950px) {

    /* カード・上部を縦並びに変更 */
    .karen-step-top {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        width: 100%;
    }

    /* 横並び時より広く間隔をとる */
    .karen-step-top {
        gap: 30px;
    }

    .karen-roadmap-arrow {
        width: 100%;
        height: 55px;
    }
    .karen-roadmap-arrow::after {
        width: 32px;
        height: 32px;
        border-right-width: 7px;
        border-bottom-width: 7px;
        top: 5px;
    }

    /* カード・上部左側 */
    .karen-step-top .karen-step-left {
        width: calc(100% - 40px);
    }
    
    /* カード・上部右側 */
    .karen-step-top .karen-step-right {
        width: calc(100% - 40px);
    }
}

@media (max-width: 575px) {
    
    .karen-roadmap-step .karen-step-title .karen-step-name {
        font-weight: 700;
        font-size: 20px;
    }
    .karen-roadmap-step .karen-step-description p {
        font-weight: 400;
        font-size: 16px;
    }

    /* 講習説明を縦並びに変更 */
    .karen-step-desc-container {
        display: flex;
        gap: 12px;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        flex: 1;
    }

    /* 横一杯の表示 */
    .karen-step-desc-list {
        width: 100%;
    }
}

@media (max-width: 425px) {
    .karen-step-top .karen-step-right {
        width: 100%;
    }
}


