@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.11
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/* 2026 corporate renewal */
:root {
    --renewal-ink: #16334a;
    --renewal-navy: #0b4965;
    --renewal-blue: #087fa3;
    --renewal-aqua: #48b9c8;
    --renewal-mist: #eef7f7;
    --renewal-line: rgba(11, 73, 101, 0.14);
}

body {
    color: var(--renewal-ink);
    background: #fff;
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.container {
    width: min(100% - 48px, 1240px) !important;
    max-width: 1240px !important;
}

.site-header {
    position: sticky !important;
    top: 0;
    z-index: 10000;
    border-bottom: 1px solid var(--renewal-line) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
}

.site-header__inner {
    min-height: 94px !important;
    gap: 28px !important;
}

.site-header__brand {
    min-width: 230px;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-header__logo img {
    display: block;
    width: auto;
    height: 56px;
    max-width: 100%;
    object-fit: contain;
}

.site-header__brand-en,
.renewal-footer__brand-en {
    margin: 0 0 3px;
    color: var(--renewal-aqua);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.site-title {
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--renewal-ink) !important;
    font-size: clamp(1.2rem, 2vw, 1.65rem) !important;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.site-header__menu-top {
    gap: 26px !important;
}

.site-header__menu-top > li > a,
.site-header__menu-product-title,
.site-header__menu-company-title {
    position: relative;
    padding: 36px 0 32px !important;
    border-radius: 0 !important;
    color: var(--renewal-ink) !important;
    background: transparent !important;
    font-size: 0.9rem;
    font-weight: 700;
}

.site-header__menu-top > li > a::after,
.site-header__menu-product-title::after,
.site-header__menu-company-title::after {
    content: none !important;
    display: none !important;
}

.site-header__menu-top > li > a:hover::after,
.site-header__menu-top > li > a.is-current::after,
.site-header__menu-product-title:hover::after,
.site-header__menu-product-title.is-current::after,
.site-header__menu-company-title:hover::after,
.site-header__menu-company-title.is-current::after {
    transform: scaleX(1);
}

.site-header__cta {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    min-width: 150px;
    padding: 16px 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--renewal-navy) !important;
    color: #fff !important;
    line-height: 1.25;
}

.site-header__cta span {
    margin-bottom: 4px;
    color: #7edbe3;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
}

.content-section {
    padding-top: 108px !important;
    padding-bottom: 108px !important;
}

.medix-hero {
    min-height: calc(100vh - 94px) !important;
    padding: 0 !important;
    background: linear-gradient(105deg, #edf8f7 0%, #f9fcfc 46%, #fff 46%) !important;
}

.medix-hero__inner {
    min-height: calc(100vh - 94px);
    grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr) !important;
    gap: 68px !important;
    align-items: center;
}

.medix-hero__copy {
    position: relative;
    z-index: 2;
    padding: 72px 0;
}

.medix-hero__eyebrow,
.renewal-section-kicker {
    margin: 0 0 20px;
    color: var(--renewal-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.medix-hero__title {
    margin: 0 !important;
    color: var(--renewal-ink) !important;
    font-size: clamp(3rem, 5vw, 5.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    letter-spacing: 0.045em;
}

.medix-hero__lead {
    max-width: 520px;
    margin: 32px 0 0 !important;
    color: #526d7b !important;
    font-size: 1rem !important;
    line-height: 2 !important;
}

.medix-hero__actions {
    margin-top: 38px !important;
}

.hero-button,
.link-button {
    border: 1px solid var(--renewal-navy) !important;
    border-radius: 0 !important;
    background: var(--renewal-navy) !important;
    color: #fff !important;
    box-shadow: none !important;
    letter-spacing: 0.04em;
}

.hero-button--ghost,
.link-button {
    background: #fff !important;
    color: var(--renewal-navy) !important;
}

.hero-button:hover,
.link-button:hover {
    background: var(--renewal-aqua) !important;
    border-color: var(--renewal-aqua) !important;
    color: #fff !important;
    transform: none !important;
}

.medix-hero__chips {
    margin-top: 36px !important;
}

.medix-hero__chips li {
    border: 0 !important;
    border-left: 2px solid var(--renewal-aqua) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--renewal-ink) !important;
}

.medix-hero__visual,
.medix-hero__slider {
    min-height: min(72vh, 740px) !important;
}

.medix-hero__slider {
    border-radius: 0 0 0 72px !important;
    box-shadow: 32px 32px 0 rgba(72, 185, 200, 0.11);
}

.medix-news {
    background: #fff !important;
}

.section-headline {
    align-items: flex-end !important;
    margin-bottom: 30px !important;
    border-bottom: 1px solid var(--renewal-line);
    padding-bottom: 22px;
}

.section-headline .title {
    color: var(--renewal-ink) !important;
    font-size: clamp(2.4rem, 5vw, 4.5rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
}

.medix-news-list {
    gap: 0 !important;
    border-top: 1px solid var(--renewal-line);
}

.medix-news-item {
    display: grid !important;
    grid-template-columns: 130px minmax(0, 1fr) 234px;
    align-items: center;
    gap: 30px;
    min-height: 110px;
    padding: 20px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--renewal-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.medix-news-item__thumb {
    justify-self: end;
}

.renewal-about {
    position: relative;
    overflow: hidden;
    background: var(--renewal-mist) !important;
}

.renewal-message {
    background: #fff !important;
}

.renewal-message__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--renewal-line);
}

.renewal-message__heading h2 {
    margin: 0;
    color: var(--renewal-ink);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 600;
}

.renewal-message__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.renewal-message__copy {
    width: min(100%, 850px);
    margin-left: auto;
}

.renewal-message__visual {
    position: relative;
    margin: 0;
}

.renewal-message__visual::after {
    content: '';
    position: absolute;
    right: -18px;
    bottom: -18px;
    z-index: 0;
    width: 68%;
    height: 68%;
    background: var(--renewal-mist);
}

.renewal-message__visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-height: 360px;
    object-fit: cover;
}

.renewal-message__statement {
    margin: 0 0 28px;
    color: var(--renewal-ink);
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    font-weight: 600;
    line-height: 1.65;
}

.renewal-message__copy > p:not(.renewal-message__statement) {
    color: #526d7b;
    line-height: 2.1;
}

.renewal-message__notice {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-top: 70px;
    padding: 30px;
    border-left: 4px solid var(--renewal-aqua);
    background: #f5f9f9;
}

.renewal-message__buildings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.renewal-message__buildings img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.renewal-message__buildings--standalone {
    width: min(70%, 595px);
    margin: 48px 0 0 auto;
    gap: 22px;
}

.renewal-message__notice p {
    margin: 0;
    color: #445f6e;
    font-size: 0.9rem;
    line-height: 1.9;
}

.renewal-about::after {
    content: 'K';
    position: absolute;
    right: -3vw;
    bottom: -14vw;
    color: rgba(72, 185, 200, 0.08);
    font-family: Georgia, serif;
    font-size: min(52vw, 680px);
    line-height: 1;
    pointer-events: none;
}

.renewal-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
    gap: 100px;
}

.renewal-split__label h2,
.renewal-section-heading h2 {
    margin: 0;
    color: var(--renewal-ink);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 600;
}

.renewal-split__statement {
    margin: 0 0 34px;
    color: var(--renewal-ink);
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    font-weight: 600;
    line-height: 1.65;
}

.renewal-split__content > p:not(.renewal-split__statement) {
    max-width: 700px;
    color: #526d7b;
    line-height: 2.1;
}

.renewal-text-link {
    display: inline-flex;
    gap: 30px;
    align-items: center;
    margin-top: 26px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--renewal-navy);
    color: var(--renewal-navy);
    font-weight: 700;
    text-decoration: none;
}

.renewal-business {
    background: #fff !important;
}

.renewal-section-heading {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 56px;
}

.renewal-section-heading > p {
    margin: 0;
    color: #526d7b;
    line-height: 2;
}

.renewal-business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--renewal-line);
    border: 1px solid var(--renewal-line);
}

.renewal-business-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 370px;
    padding: 40px;
    overflow: hidden;
    background: #fff;
    color: var(--renewal-ink);
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
}

.renewal-business-card::before {
    content: '';
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(72, 185, 200, 0.24);
    border-radius: 50%;
}

.renewal-business-card:hover {
    background: var(--renewal-navy);
    color: #fff;
}

.renewal-business-card__number {
    color: var(--renewal-aqua);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.renewal-business-card__title {
    margin-top: auto;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    font-weight: 700;
}

.renewal-business-card__text {
    margin-top: 14px;
    line-height: 1.8;
    opacity: 0.72;
}

.renewal-business-card__arrow {
    position: absolute;
    top: 34px;
    right: 34px;
    font-size: 1.4rem;
}

.medix-new-products {
    background: #f7fbfb !important;
}

#pickup-products {
    background: #fff !important;
}

.pickup-carousel__viewport {
    gap: 24px !important;
    padding-top: 12px !important;
}

.pickup-carousel__item,
.pickup-carousel__item:last-child {
    border-radius: 0 !important;
    border-color: var(--renewal-line) !important;
    box-shadow: none !important;
}

.pickup-carousel__body,
.pickup-carousel__item:last-child .pickup-carousel__body {
    background: var(--renewal-navy) !important;
}

.medix-cta {
    background: linear-gradient(110deg, var(--renewal-navy), #087795) !important;
}

.medix-cta__inner {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.medix-cta__eyebrow,
.medix-cta .section-title {
    color: #fff !important;
}

.site-footer {
    padding: 82px 0 24px !important;
    border-top: 0 !important;
    background: #092f43 !important;
    color: rgba(255, 255, 255, 0.78) !important;
}

.renewal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 0.9fr;
    gap: 70px;
}

.renewal-footer__name {
    margin: 0 0 24px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
}

.renewal-footer__address {
    line-height: 1.9;
}

.renewal-footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.renewal-footer__heading {
    margin: 0 0 18px;
    color: #63cbd5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.renewal-footer__links a {
    display: block;
    margin: 11px 0;
    color: #fff;
    text-decoration: none;
}

.renewal-footer__contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
}

.renewal-footer__contact span {
    color: #63cbd5;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

.renewal-footer__contact strong {
    margin: 8px 0;
    font-size: 1.45rem;
}

.renewal-footer__contact small {
    opacity: 0.72;
}

.renewal-footer__bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.14);
    font-size: 0.78rem;
}

.renewal-footer__bottom a {
    color: inherit;
}

@media (max-width: 1080px) {
    .site-header__actions {
        display: none !important;
    }
    .site-header__menu-top {
        gap: 16px !important;
    }
    .medix-hero__inner {
        grid-template-columns: 0.85fr 1.15fr !important;
        gap: 36px !important;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 32px, 1240px) !important;
    }
    .site-header__inner {
        min-height: 74px !important;
    }
    .site-header__brand-en {
        font-size: 0.58rem;
    }
    .site-header__logo img {
        height: 46px;
    }
    .site-header__nav.is-open {
        top: 74px;
        border-radius: 0 !important;
    }
    .site-header__menu-top > li > a,
    .site-header__menu-product-title,
    .site-header__menu-company-title {
        padding: 13px 14px !important;
    }
    .content-section {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }
    .medix-hero {
        min-height: auto !important;
        padding: 0 0 54px !important;
        background: var(--renewal-mist) !important;
    }
    .medix-hero__inner {
        display: flex !important;
        flex-direction: column-reverse;
        min-height: auto;
        gap: 0 !important;
    }
    .medix-hero__visual,
    .medix-hero__slider {
        width: 100%;
        min-height: 58vw !important;
    }
    .medix-hero__slider {
        border-radius: 0 0 0 34px !important;
        box-shadow: 14px 14px 0 rgba(72,185,200,0.11);
    }
    .medix-hero__copy {
        width: 100%;
        padding: 42px 0 0;
    }
    .medix-hero__title {
        font-size: clamp(2.25rem, 11vw, 3.4rem) !important;
    }
    .medix-hero__lead {
        margin-top: 22px !important;
    }
    .section-headline .title {
        font-size: clamp(2.15rem, 12vw, 3.5rem) !important;
    }
    .medix-news-item {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 20px 0 !important;
    }
    .medix-news-item__thumb {
        justify-self: start;
    }
    .renewal-split,
    .renewal-section-heading,
    .renewal-business-grid,
    .renewal-footer {
        grid-template-columns: 1fr;
        gap: 38px;
    }
    .renewal-message__heading {
        display: block;
    }
    .renewal-message__main,
    .renewal-message__notice {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .renewal-message__visual img {
        min-height: 240px;
    }
    .renewal-message__statement br {
        display: none;
    }
    .renewal-split__statement br {
        display: none;
    }
    .renewal-business-card {
        min-height: 270px;
    }
    .renewal-footer__bottom {
        flex-direction: column;
        gap: 12px;
    }
}

/* Hero layout: show the slideshow above the introduction copy. */
body .medix-hero {
    min-height: auto !important;
    padding: 28px 0 72px !important;
}

body .medix-hero__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: auto !important;
    gap: 36px !important;
}

body .medix-hero__visual {
    order: 1;
    width: 100%;
    min-height: 0 !important;
}

body .medix-hero__slider {
    width: 100%;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
}

body .medix-hero__slide,
body .medix-hero__slide img {
    width: 100%;
    height: 100% !important;
}

body .medix-hero__slide img {
    object-fit: cover;
}

body .medix-hero__copy {
    order: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

body .medix-hero__actions,
body .medix-hero__chips {
    justify-content: center;
}

@media (max-width: 768px) {
    body .medix-hero {
        padding: 16px 0 52px !important;
    }

    body .medix-hero__inner {
        gap: 24px !important;
    }

    body .medix-hero__slider {
        aspect-ratio: 4 / 3;
    }
}

/* Header alignment: keep the company logo left and group all controls right. */
@media (min-width: 769px) {
    body .site-header__inner {
        display: flex !important;
        align-items: center !important;
        width: calc(100% - 64px) !important;
        max-width: none !important;
        margin-right: 32px !important;
        margin-left: 32px !important;
    }

    body .site-header__topbar,
    body .site-header__brand {
        flex: 0 0 auto;
        margin-right: 0 !important;
    }

    body .site-header__nav {
        flex: 0 1 auto;
        margin-left: auto !important;
    }

    body .site-header__menu-top {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    body .site-header__menu-top > li {
        flex: 0 0 auto !important;
    }

    body .site-header__menu-top > li > a,
    body .site-header__menu-product-title,
    body .site-header__menu-company-title {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 88px;
        padding: 12px 20px !important;
        white-space: nowrap !important;
        line-height: 1.4 !important;
    }

    body .site-header__actions {
        flex: 0 0 auto;
        margin-left: 20px !important;
    }
}

/* News archive: the card link must span the parent grid instead of collapsing
   into its narrow first column. */
.medix-news-archive .medix-news-card__link {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: 130px minmax(0, 1fr) 234px;
    grid-template-rows: auto auto auto;
    column-gap: 24px;
    row-gap: 10px;
    align-items: start;
    width: 100% !important;
    min-width: 0;
    padding: 22px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}

.medix-news-archive .section-title::before {
    content: none !important;
}

.medix-news-archive .section-title::after {
    content: '' !important;
    position: static !important;
    display: block !important;
    width: 56px !important;
    height: 3px !important;
    margin: 14px 0 0 !important;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f5d8f, #5cb0d6) !important;
    transform: none !important;
}

.medix-news-archive .medix-news-card__link .medix-news-item__date {
    grid-column: 1;
    grid-row: 1 / 4;
    white-space: nowrap;
}

.medix-news-archive .medix-news-card__title,
.medix-news-archive .medix-news-card__excerpt,
.medix-news-archive .medix-news-card__more {
    grid-column: 2;
    min-width: 0;
}

.medix-news-archive .medix-news-card__title {
    grid-row: 1;
    margin: 0;
}

.medix-news-archive .medix-news-card__excerpt {
    grid-row: 2;
    margin: 0;
}

.medix-news-archive .medix-news-card__more {
    grid-row: 3;
}

.medix-news-archive .medix-news-card__thumb {
    grid-column: 3;
    grid-row: 1 / 4;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .medix-news-archive .medix-news-card__link {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .medix-news-archive .medix-news-card__link .medix-news-item__date,
    .medix-news-archive .medix-news-card__title,
    .medix-news-archive .medix-news-card__excerpt,
    .medix-news-archive .medix-news-card__more,
    .medix-news-archive .medix-news-card__thumb {
        grid-column: 1;
        grid-row: auto;
    }

    .medix-news-archive .medix-news-card__thumb {
        width: min(100%, 234px) !important;
    }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

.custom-footer-links {
    margin-top: 30px;
    padding: 20px;
    background-color: #1a1a1a; /* ダークテーマに合わせた背景色 */
    border-radius: 8px;
}

.custom-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.custom-section-title .title-block {
    width: 4px;
    height: 20px;
    background-color: #007bff; /* 青い縦線 */
    margin-right: 10px;
}

.custom-section-title h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff; /* 白い文字 */
}

.custom-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-footer-links li {
    margin-bottom: 8px;
}

.custom-footer-links a {
    color: #add8e6; /* リンクの色 */
    text-decoration: none;
}

.custom-footer-links a:hover {
    text-decoration: underline;
}

.custom-disclaimer {
    display: flex;
    align-items: flex-start;
    background-color: #2a2a2a; /* 免責事項の背景色 */
    border: 1px solid #28a745; /* 緑色の枠線 */
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    color: #ffffff;
    font-size: 0.9em;
}

.custom-disclaimer .disclaimer-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

.custom-disclaimer p {
    margin: 0;
}

.custom-hashtags {
    margin-top: 30px;
    padding: 20px;
    background-color: #1a1a1a; /* ダークテーマに合わせた背景色 */
    border-radius: 8px;
}

.custom-hashtags ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* タグ間のスペース */
}

.custom-hashtags li {
    margin: 0;
}

.custom-hashtags a {
    display: inline-block;
    background-color: #333; /* タグの背景色 */
    color: #add8e6; /* タグの文字色 */
    padding: 5px 10px;
    border-radius: 20px; /* 角丸 */
    text-decoration: none;
    font-size: 0.9em;
}

.custom-hashtags a:hover {
    background-color: #555;
    text-decoration: none;
}

/* ヘッダーメニュー項目に枠線を追加 */
#navi .menu-item a {
    border: 1px solid #555; /* 枠線の色と太さ */
    border-radius: 5px; /* 枠線の角丸 */
    padding: 8px 12px; /* 内側の余白 */
    margin: 0 5px; /* メニュー項目間の余白 */
    display: inline-block; /* 枠線が正しく適用されるように */
    transition: all 0.3s ease; /* ホバーアニメーション */
}

#navi .menu-item a:hover {
    background-color: #333; /* ホバー時の背景色 */
    border-color: #007bff; /* ホバー時の枠線色 */
    color: #ffffff; /* ホバー時の文字色を白に */
}

.medix-floating-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: none;
    align-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(135deg, #4bc0f0, #2f93d1);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(28, 96, 140, 0.24);
    transition: width 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.medix-floating-contact:hover,
.medix-floating-contact:focus-visible {
    width: 220px;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(28, 96, 140, 0.32);
}

.medix-floating-contact__icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.medix-floating-contact__icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.medix-floating-contact__text {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding-right: 18px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.medix-floating-contact:hover .medix-floating-contact__text,
.medix-floating-contact:focus-visible .medix-floating-contact__text {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .medix-floating-contact {
        display: inline-flex;
    }
}

@media (max-width: 1023px) {
    .medix-floating-contact {
        display: none !important;
    }
}

/* ksdemo01 refresh: clean aqua/white Web 2.0 tone */
:root {
    --kst-ink: #17324d;
    --kst-muted: #5d7185;
    --kst-blue: #0d74a8;
    --kst-blue-deep: #075d8b;
    --kst-aqua: #5fd5e7;
    --kst-aqua-soft: #eefbff;
    --kst-line: #d8ebf5;
    --kst-shadow: 0 18px 42px rgba(13, 116, 168, 0.13);
    --kst-card-shadow: 0 12px 28px rgba(23, 50, 77, 0.08);
}

body {
    color: var(--kst-ink);
    background:
        linear-gradient(180deg, #f7fcff 0, #ffffff 360px),
        #ffffff;
}

.container {
    max-width: 1160px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(216, 235, 245, 0.86) !important;
    box-shadow: 0 12px 30px rgba(23, 50, 77, 0.07) !important;
    backdrop-filter: blur(12px);
}

.site-header__inner {
    margin-top: 0 !important;
    padding: 14px 24px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(216, 235, 245, 0.88) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(23, 50, 77, 0.07) !important;
}

#primary {
    padding-top: 0 !important;
}

.site-title,
.site-title a {
    color: var(--kst-ink) !important;
    letter-spacing: 0 !important;
}

.site-header__menu-top > li > a,
.site-header__menu-product-title,
.site-header__menu-company-title {
    border: 1px solid rgba(13, 116, 168, 0.16) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef9fd 100%) !important;
    color: #24435e !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 5px 14px rgba(23, 50, 77, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.site-header__menu-top > li > a:hover,
.site-header__menu-product-title:hover,
.site-header__menu-company-title:hover,
.site-header__menu-top > li > a.is-current,
.site-header__menu-product-title.is-current,
.site-header__menu-company-title.is-current {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #1290c8 0%, #086899 100%) !important;
    color: #ffffff !important;
    border-color: rgba(7, 93, 139, 0.2) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), 0 10px 22px rgba(13, 116, 168, 0.22);
}

.site-header__cta,
.hero-button,
.link-button {
    border: 1px solid rgba(255,255,255,0.64) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #67ddeb 0%, #18a3cc 52%, #0874a9 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 13px 26px rgba(13, 116, 168, 0.24) !important;
    text-shadow: 0 1px 0 rgba(0, 67, 96, 0.24);
}

.site-header__cta:hover,
.hero-button:hover,
.link-button:hover {
    filter: none !important;
    transform: translateY(-1px);
    background: linear-gradient(180deg, #7be7f2 0%, #22add5 52%, #08699a 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.62), 0 17px 32px rgba(13, 116, 168, 0.30) !important;
    text-decoration: none !important;
}

.hero-button--ghost {
    background: linear-gradient(180deg, #ffffff 0%, #f1fbff 100%) !important;
    border: 1px solid rgba(13, 116, 168, 0.24) !important;
    color: var(--kst-blue-deep) !important;
    text-shadow: none;
    box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(23, 50, 77, 0.08) !important;
}

.medix-hero {
    min-height: 420px !important;
    padding: 28px 0 34px !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(235,249,255,0.94) 100%),
        radial-gradient(circle at 72% 6%, rgba(95, 213, 231, 0.22), transparent 32%) !important;
    border-bottom: 1px solid var(--kst-line) !important;
}

.medix-hero::before {
    background:
        linear-gradient(120deg, rgba(255,255,255,0.7), rgba(255,255,255,0) 42%),
        repeating-linear-gradient(90deg, rgba(13,116,168,0.035) 0, rgba(13,116,168,0.035) 1px, transparent 1px, transparent 82px) !important;
}

.medix-hero::after {
    display: none;
}

.medix-hero__inner {
    min-height: 360px !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr) !important;
    gap: 34px !important;
}

.medix-hero__title {
    color: #0b2c47 !important;
    font-size: clamp(2rem, 3.3vw, 3.1rem) !important;
    line-height: 1.12 !important;
    text-shadow: 0 1px 0 #fff;
}

.medix-hero__lead,
.section-description,
.medix-news-card__excerpt,
.company-page__card p {
    color: var(--kst-muted) !important;
}

.medix-hero__chips li,
.product-category-badge {
    border: 1px solid rgba(13, 116, 168, 0.18) !important;
    background: linear-gradient(180deg, #ffffff 0%, #edfaff 100%) !important;
    color: #226082 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 7px 16px rgba(23, 50, 77, 0.06);
}

.medix-hero__visual {
    min-height: 340px !important;
}

.medix-hero__slider {
    min-height: 340px !important;
    border: 1px solid rgba(255,255,255,0.92);
    border-radius: 8px !important;
    box-shadow: var(--kst-shadow), inset 0 1px 0 rgba(255,255,255,0.8);
}

.content-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fdff 100%);
}

.content-section:nth-of-type(even) {
    background: #ffffff;
}

.section-headline .title,
.section-title {
    color: var(--kst-ink) !important;
    letter-spacing: 0 !important;
}

.section-headline .title::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--kst-aqua), var(--kst-blue));
}

.medix-warning {
    border: 2px solid #ff4242 !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #fff475 0%, #ffe65a 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 14px 30px rgba(219, 42, 42, 0.12) !important;
}

.medix-news-item,
.medix-news-card,
.pickup-carousel__item,
.company-page__card,
.company-page__table,
.company-page__list li,
.company-page__timeline li,
.medix-cta__inner,
.modal-content {
    border: 1px solid var(--kst-line) !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fdff 100%) !important;
    box-shadow: var(--kst-card-shadow) !important;
}

.medix-news-item:hover,
.medix-news-card:hover,
.pickup-carousel__item:hover,
.company-page__card:hover {
    border-color: rgba(13, 116, 168, 0.26) !important;
    box-shadow: 0 18px 38px rgba(13, 116, 168, 0.15) !important;
}

.medix-news-item__date,
.medix-news-card__more {
    color: var(--kst-blue) !important;
}

.pickup-carousel__body,
.pickup-carousel__item:last-child .pickup-carousel__body {
    background: linear-gradient(180deg, #1290c8 0%, #0873a7 100%) !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255,255,255,0.34) !important;
}

.pickup-carousel__body h3,
.pickup-carousel__item:last-child .pickup-carousel__body h3 {
    color: #ffffff !important;
}

.pickup-carousel__body p,
.pickup-carousel__item:last-child .pickup-carousel__body p {
    color: #eaf9ff !important;
}

.pickup-carousel__control,
.scroll-top-button,
.medix-floating-contact {
    background: linear-gradient(180deg, #67ddeb 0%, #18a3cc 52%, #0874a9 100%) !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.58), 0 14px 28px rgba(13, 116, 168, 0.25) !important;
}

.pickup-carousel__control:hover,
.scroll-top-button:hover {
    background: linear-gradient(180deg, #7be7f2 0%, #22add5 52%, #08699a 100%) !important;
}

.medix-cta__inner {
    background:
        radial-gradient(circle at 88% 14%, rgba(95, 213, 231, 0.32), transparent 34%),
        linear-gradient(135deg, #0b4965 0%, #087fa3 100%) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    box-shadow: 0 20px 44px rgba(7, 93, 139, 0.2) !important;
}

.medix-cta {
    background: linear-gradient(135deg, #eaf8fc 0%, #f8fdff 100%) !important;
}

.medix-cta .medix-cta__eyebrow {
    color: #8ce9f2 !important;
}

.medix-cta .section-title {
    color: #ffffff !important;
}

.medix-cta .hero-button {
    border-color: rgba(255, 255, 255, 0.9) !important;
    background: #ffffff !important;
    color: #075d8b !important;
    text-shadow: none !important;
    box-shadow: 0 12px 26px rgba(0, 47, 70, 0.2) !important;
}

.medix-cta .hero-button:hover {
    background: #dff8ff !important;
    color: #064f77 !important;
}

.site-footer {
    background: linear-gradient(180deg, #f6fcff 0%, #eaf7fd 100%) !important;
    border-top: 1px solid var(--kst-line) !important;
    color: var(--kst-muted) !important;
}

.medix-new-products .pickup-carousel__item,
#pickup-products .pickup-carousel__item {
    cursor: pointer;
}

.medix-new-products .pickup-carousel__item,
#pickup-products .pickup-carousel__item,
.medix-new-products .pickup-carousel__item:last-child,
#pickup-products .pickup-carousel__item:last-child {
    display: flex;
    flex-direction: column;
    flex-basis: 280px;
    width: 280px;
    height: 500px;
    transform: none;
}

.medix-new-products .pickup-carousel__item:hover,
#pickup-products .pickup-carousel__item:hover,
.medix-new-products .pickup-carousel__item:last-child:hover,
#pickup-products .pickup-carousel__item:last-child:hover {
    transform: translateY(-2px);
}

.medix-new-products .pickup-carousel__image,
#pickup-products .pickup-carousel__image {
    flex: 0 0 280px;
    width: 100%;
    height: 280px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.medix-new-products .pickup-carousel__body,
#pickup-products .pickup-carousel__body,
.medix-new-products .pickup-carousel__item:last-child .pickup-carousel__body,
#pickup-products .pickup-carousel__item:last-child .pickup-carousel__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px;
}

.medix-news .medix-news-item__thumb {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.page-id-165 .product-item > img,
.post-type-archive-product .product-item > img,
.taxonomy-product_category .product-item > img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-gallery {
    width: min(80%, 720px);
    margin: 0 auto 32px;
}

.product-gallery__stage {
    position: relative;
    overflow: hidden;
    border: 1px solid #d9e5ee;
    border-radius: 14px;
    background: #fff;
}

.product-gallery__slide {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.product-gallery__slide.is-active {
    display: flex;
}

.product-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-gallery__zoom {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-gallery__zoom::after {
    content: '⊕';
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(15, 93, 143, 0.88);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-gallery__zoom:hover::after,
.product-gallery__zoom:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.product-gallery__lightbox[hidden] {
    display: none;
}

.product-gallery__lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    padding: 70px 30px 30px;
    background: rgba(0, 0, 0, 0.88);
}

.product-gallery__lightbox-image {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: auto;
    background: #fff;
}

.product-gallery__lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    background: rgba(15, 93, 143, 0.95);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.product-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    background: rgba(15,93,143,0.88);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transform: translateY(-50%);
}

.product-gallery__arrow--prev {
    left: 14px;
}

.product-gallery__arrow--next {
    right: 14px;
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(10, minmax(52px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.product-gallery__thumb {
    overflow: hidden;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.product-gallery__thumb.is-active {
    border-color: #0f5d8f;
}

.product-gallery__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}

@media screen and (max-width: 1023px) {
    .medix-hero__inner {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 768px) {
    .product-gallery__slide {
        min-height: 0;
        padding: 12px;
    }

    .product-gallery__thumbs {
        grid-template-columns: repeat(5, minmax(48px, 1fr));
    }

    .site-header__inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header__nav.is-open {
        padding: 12px;
        border: 1px solid var(--kst-line);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: var(--kst-card-shadow);
    }

    .medix-hero {
        min-height: 0 !important;
        padding-top: 18px !important;
    }

    .medix-hero__visual {
        min-height: 220px !important;
    }

    .medix-hero__slider {
        min-height: 220px !important;
    }

    .medix-hero__title {
        font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
    }
}

/* Renewal priority overrides */
body .site-header {
    position: sticky !important;
    top: 0;
    border-bottom: 1px solid var(--renewal-line) !important;
    background: rgba(255,255,255,0.96) !important;
    box-shadow: none !important;
}
body .site-header__inner { min-height: 94px !important; }
body .site-title a { color: var(--renewal-ink) !important; }
body .site-header__cta {
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--renewal-navy) !important;
    color: #fff !important;
}
body.home .medix-hero {
    min-height: calc(100vh - 94px) !important;
    padding: 0 !important;
    background: linear-gradient(105deg,#edf8f7 0%,#f9fcfc 46%,#fff 46%) !important;
}
body.home .medix-hero__inner {
    min-height: calc(100vh - 94px) !important;
    grid-template-columns: minmax(340px,.82fr) minmax(520px,1.18fr) !important;
    gap: 68px !important;
}
body.home .medix-hero__visual,
body.home .medix-hero__slider { min-height: min(72vh,740px) !important; }
body.home .medix-hero__slider { border-radius: 0 0 0 72px !important; }
body.home .medix-hero__title {
    color: var(--renewal-ink) !important;
    font-size: clamp(3rem,5vw,5.2rem) !important;
    line-height: 1.28 !important;
}
body .content-section {
    padding-top: 108px !important;
    padding-bottom: 108px !important;
}
body .section-headline .title { color: var(--renewal-ink) !important; }
body.home .medix-new-products { background: #f7fbfb !important; }
body.home #pickup-products { background: #fff !important; }
body .site-footer {
    padding: 82px 0 24px !important;
    border-top: 0 !important;
    background: #092f43 !important;
    color: rgba(255,255,255,.78) !important;
}
@media (max-width: 768px) {
    body .site-header__inner { min-height: 74px !important; }
    body .content-section {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }
    body.home .medix-hero {
        min-height: auto !important;
        padding: 0 0 54px !important;
        background: var(--renewal-mist) !important;
    }
    body.home .medix-hero__inner {
        display: flex !important;
        flex-direction: column-reverse !important;
        min-height: auto !important;
        gap: 0 !important;
    }
    body.home .medix-hero__visual,
    body.home .medix-hero__slider {
        width: 100% !important;
        min-height: 58vw !important;
    }
    body.home .medix-hero__title { font-size: clamp(2.25rem,11vw,3.4rem) !important; }
}
