@charset "UTF-8";

/*メインビジュアル*/
.s_mv {
    width: 100%;
    height: 300px;
    background: url(../image/top/top_mv_2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    /* スマホなどで幅が狭まった時、アスペクト比を維持して縮小させる */
    /* 例：PCで横1200px / 縦300px なら 「4 / 1」 */
    aspect-ratio: 4 / 1;
}

.s_mv_inner {
    color: #fff;
    position: absolute;
    top: 32%;
    right: 5%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.s_mv_title {
    display: block;
    font-size: clamp(1.5rem, 0.786rem + 3.57vw, 4rem);
    font-family: var(--font3);
    font-weight: 500;
    text-align: right;
}

.breadcrumb ul {
    display: flex;
    color: #555;
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 4px 30px;
}

.breadcrumb li {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.breadcrumb li a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

.breadcrumb li+li::before {
    content: "";
    display: block;
    width: 0.5em;
    height: 0.5em;
    border-right: 1px solid #555;
    border-bottom: 1px solid #555;
    transform: rotate(-45deg);
    margin-right: 10px;
}

.b_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 80px auto;
    font-size: clamp(2.5rem, 2.173rem + 1.63vw, 3.5rem);
    font-weight: 600;
    color: #2574EB;
    line-height: 1em;
    letter-spacing: -0.05rem;
}

.b_title span {
    background: linear-gradient(135deg, #0FC9F7, #2574EB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: var(--font3);
}

.section_title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 54px 8px 24px 0;
    border-left: 5px solid #2574EB;
    padding-left: 8px;
    line-height: 1.2;
    letter-spacing: -0.08rem;
}

.description_top {
    text-align: center;
    margin-bottom: 80px;
    font-size: 1.12rem;
    font-weight: 500;
}

.minilab_item {
    display: flex;
    gap: 15px;
    margin-bottom: 100px;
}

.minilab_item img {
    width: 40%;
    height: auto;
    /* 追加推奨：隣のテキストが長くても画像が縦に伸びないようにする設定 */
    align-self: flex-start;
}

.minilab_item_text {
    flex: 1;
    /* width: 60% の代わりに「残り全部」という指定にすると柔軟です */
    min-width: 0;
}

.item_name {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.item_description {
    font-size: 0.9375rem;
    margin: 8px 0 30px;
}

.item_description span {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 20px;
}

/* PDFリンクのスタイル */
.item_link {
    display: inline-flex;
    align-items: flex-start;
    color: #2574EB;
    text-decoration: underline;
    font-weight: 500;
    margin-top: 10px;
}

.item_link:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* PDFアイコン（擬似要素で表示） */
.item_link::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    /* 赤いPDFアイコンのSVGデータ */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ea4335'%3E%3Cpath d='M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v2.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

.btn_contact_b {
    position: relative;
    font-size: 12px;
    position: relative;
    display: inline-block;
    padding: 4px 18px 4px 10px;
    background-color: #fff;
    color: #555;
    border: #686868 2px solid;
    border-radius: 18px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
    margin-top: 15px;
}

.btn_contact_b:hover {
    background-color: #16b1f4;
    color: #fff;
    border: #16b1f4 2px solid;
}

.btn_contact_b::after {
    content: '〉';
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%) translateX(0);
    font-size: 10px;
    font-weight: 500;
    transition: transform 0.3s ease-out;
}

/* translateXで右にスライドさせる */
.btn_contact_b:hover::after {
    transform: translateY(-50%) translateX(3px);
}

/* スマホ用レスポンシブ（文字サイズ調整） */
@media (max-width: 768px) {
    .s_mv {
        height: auto;
    }

    .minilab_item {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 100px;
    }

    .minilab_item img {
        width: 100%;
        height: auto;
    }

    .item_description span {
        align-items: flex-start;
    }
}