/* ===================================================
   layout.css — サイト構造（骨組み）Figma準拠
   =================================================== */

#l-wrapper { margin-top: var(--header-height); position: relative; }

/* ----- megamenu overlay（メガメニュー開時のヘッダー下を暗転） ----- */
#l-wrapper::after {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--color-overlay);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
#l-wrapper.overlay::after {
    z-index: 999;
    opacity: 1;
}
* {
    box-sizing: border-box;
}

/* ===================================================
   l-page-hero — 内部ページ共通タイトル帯
   （全幅グラデ帯にパンくず＋h1を配置）
   =================================================== */
.l-page-hero {
    position: relative;
    width: 100%;
    padding-bottom: calc(100vw * 80 / 1440);
    background: linear-gradient(65.23deg, #006CBF 0%, #00AFEC 60.1%, #00AFEC 94.7%);
    color: var(--color-white);
    overflow: hidden;
}
.l-page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vw * 44 / 1440);
    background-image: url('../images/bg/arc-white-bg.svg');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    pointer-events: none;
}
.l-page-hero .breadcrumb {
    max-width: none;
    margin: 0;
    padding: 8px 24px;
    color: inherit;
}
.l-page-hero .breadcrumb ol {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-size: var(--fz-xs);
    line-height: 1.8;
    color: inherit;
}
.l-page-hero .breadcrumb li + li::before {
    content: "/";
    margin-right: var(--space-sm);
}
.l-page-hero .breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.l-page-hero__inner {
    max-width: var(--content-narrow);
    margin: 0 auto;
    padding: 18px var(--space-md) 0;
}
.l-page-hero__title {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--fz-4xl);
    font-weight: 700;
    line-height: 1.5;
    color: inherit;
}
.l-page-hero--detail.l-page-hero::after {
    display: none;
}

/* ----- l-page-hero--detail（サービス詳細ページ等：右側にアイキャッチ画像 + 左上グラデBOX） ----- */
.l-page-hero--detail {
    max-width: 1440px;
    margin: 0 auto;
    height: 400px;
    background: none;
}
.l-page-hero--detail .l-page-hero__image {
    position: absolute;
    top: 0;
    left: 180px;
    width: calc(100% - 180px);
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.l-page-hero--detail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 553px;
    height: 200px;
    background: linear-gradient(80deg, var(--color-primary) 0%, var(--color-accent) 60%, var(--color-accent) 95%);
    z-index: 1;
}
.l-page-hero--detail .breadcrumb,
.l-page-hero--detail .l-page-hero__inner {
    position: relative;
    z-index: 2;
}
.l-page-hero--detail .l-page-hero__inner {
    padding: 32px var(--space-md) 0;
    max-width: 400px;
    margin-left: 32px;
}
.l-page-hero--detail .l-page-hero__lead {
    margin: 0 0 var(--space-xs);
    font-family: var(--font-base);
    font-size: var(--fz-base);
    font-weight: 400;
    line-height: 1.8;
    color: inherit;
    opacity: 0.9;
}
.l-page-hero--detail .l-page-hero__title {
    font-size: var(--fz-4xl);
}

@media screen and (max-width: 1024px) {
    .l-page-hero {
        padding-bottom: calc(100vw * 120 / 1440);
    }
    .l-page-hero--detail {
        height: 320px;
    }
    .l-page-hero--detail::before {
        width: 60%;
    }
    .l-page-hero--detail .l-page-hero__inner {
        padding-top: 36px;
    }
}
@media screen and (max-width: 600px) {
    .l-page-hero {
        padding-bottom: calc(100vw * 160 / 1440);
    }
    .l-page-hero--detail {
        height: 220px;
    }
    .l-page-hero--detail::before {
        width: 100%;
        height: 180px;
        background: linear-gradient(80deg, var(--color-primary) 0%, rgba(0, 175, 236, 0.85) 100%);
    }
    .l-page-hero--detail .l-page-hero__inner {
        padding-top: 24px;
        margin-left: 0;
    }
    .l-page-hero--detail .l-page-hero__image {
        height: 180px;
    }
}

/* ===================================================
   l-page-content — 内部ページ共通コンテンツ領域
   （max-width と左右余白をここで一括制御）
   =================================================== */
.l-page-content {
    max-width: var(--content-narrow);
    margin: 0 auto;
}
/* 左右余白はコンテンツ幅(1080)に収まらなくなる 1081px 以下でのみ付与 */
@media screen and (max-width: 1081px) {
    .l-page-content {
        padding: 0 var(--space-md);
    }
}

/* ----- l-header ----- */
.l-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background-color: var(--color-white);
    box-shadow: var(--shadow-header);
}
.l-header__top {
    background-color: var(--color-white);
}
.l-header__top-inner {
    display: flex;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 24px;
}
.l-header__logo {
    flex-shrink: 0;
}
.l-header__logo img {
    width: 234px;
    height: 48px;
}
/* モバイル用操作エリア（デフォ非表示） */
.l-header__mobile-actions {
    display: none;
}
/* ドロワー追加コンテンツ（PC/タブレットでは非表示） */
.l-header__drawer-extra {
    display: none;
}
/* オーバーレイ（デフォ非表示） */
.l-header__overlay {
    display: none;
}
.l-header__utility {
    margin-left: auto;
    margin-right: 40px;
}
.l-header__top-right {
    display: flex;
    align-items: center;
    gap: 40px;
}
.l-header__utility ul {
    display: flex;
    align-items: center;
    gap: 24px;
}
.l-header__utility ul li {
    font-size: var(--fz-sm);
    color: var(--color-text);
    line-height: 1.8;
}
.l-header__utility ul li a {
    display: flex;
    align-items: center;
    color: #333333;
    gap: 4px;
}
.l-header__utility ul li a img {
    width: 12px;
    height: 12px;
}
.l-header__contact {
    display: flex;
    align-items: center;
    gap: 16px;
}
.l-header__tel {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.l-header__tel-number {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: var(--fz-xl);
    font-weight: 700;
    color: var(--color-text);
    line-height: normal;
    white-space: nowrap;
}
.l-header__tel-number img {
    width: 18px;
    height: 18px;
}
.l-header__tel-hours {
    font-size: var(--fz-xs);
    font-weight: 700;
    color: var(--color-text);
    line-height: normal;
    white-space: nowrap;
}
.l-header__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--gradient-cta);
    color: var(--color-white);
    font-size: var(--fz-base);
    font-weight: 700;
    line-height: normal;
    padding: 4px 22px;
    height: 72px;
}
.l-header__cta > * {
    position: relative;
    z-index: 1;
}
.l-header__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-cta-hover);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}
.l-header__cta:hover {
    opacity: 1;
}
.l-header__cta:hover::before {
    opacity: 1;
}
.l-header__cta img {
    width: 17px;
    height: 13px;
}
.l-header__nav {
    background-color: var(--color-bg-nav);
}
.l-header__nav-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.l-header__nav-inner li a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 26px;
    font-size: var(--fz-base);
    color: var(--color-text);
    line-height: 1.8;
    white-space: nowrap;
    transition: background-color var(--transition-base);
}
.l-header__nav-inner li a:hover {
    opacity: 1;
    background-color: rgba(0, 175, 236, 0.08);
}
.l-header__nav-inner li a img {
    width: 12px;
    height: 7px;
}
.l-header__nav-inner li.is-current > a {
    border-top: 1px solid var(--color-primary);
}

/* ----- megamenu ----- */
.l-header__nav {
    position: relative;
}
.l-header__nav-inner li.has-child {
    position: static;
}
.l-header__nav-inner li.has-child > a {
    cursor: pointer;
}
.l-header__nav-inner li.has-child > a img {
    transition: transform var(--transition-base);
}
.l-header__nav-inner li.has-child.nav_open > a img {
    transform: rotate(180deg);
}
.l-header__megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(180deg, #dcf6ff 0%, #ffffff 100%);
}
.l-header__megamenu-body {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-xl) 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}
.l-header__megamenu-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
}
.l-header__nav-inner .l-header__megamenu-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-size: var(--fz-lg);
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-primary);
    white-space: nowrap;
    align-self: flex-start;
    background-color: transparent;
}
.l-header__nav-inner .l-header__megamenu-heading:hover {
    background-color: transparent;
    opacity: 0.7;
}
.l-header__nav-inner .l-header__megamenu-heading img {
    width: 24px;
    height: 24px;
}
.l-header__megamenu-list {
    background: var(--color-white);
    padding: var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 16px 64px;
    list-style: none;
    width: 100%;
}
.l-header__nav-inner .l-header__megamenu-list li {
    width: auto;
    border-bottom: none;
}
.l-header__nav-inner .l-header__megamenu-list li a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0;
    font-size: var(--fz-sm);
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-primary);
    white-space: nowrap;
    background-color: transparent;
}
.l-header__nav-inner .l-header__megamenu-list li a:hover {
    background-color: transparent;
    opacity: 0.7;
}
.l-header__nav-inner .l-header__megamenu-list li a img {
    width: 20px;
    height: 20px;
}
.l-header__nav-inner .l-header__megamenu-list li a img.l-header__megamenu-external {
    width: 12px;
    height: 12px;
}
.l-header__nav-inner .l-header__megamenu-list li a .l-header__megamenu-list-multi {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.5;
    white-space: normal;
}
.l-header__nav-inner .l-header__megamenu-list li a .l-header__megamenu-list-multi small {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.5;
}
.l-header__megamenu-close {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--fz-sm);
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-primary);
    transition: opacity var(--transition-base);
}
.l-header__megamenu-close:hover {
    opacity: 0.7;
}
.l-header__megamenu-close::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
    transform: rotate(45deg);
}

/* ----- megamenu tabs ----- */
.l-header__megamenu-tablist {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    list-style: none;
}
.l-header__nav-inner .l-header__megamenu-tablist > li.l-header__megamenu-tab {
    display: contents;
}
.l-header__megamenu-tab-header {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: inherit;
    font-size: var(--fz-base);
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-white);
    background-color: var(--color-primary);
    border: 1px solid #e0f7ff;
    border-top: none;
    border-left: none;
    cursor: pointer;
    width: auto;
    transition: background-color var(--transition-base), color var(--transition-base);
}
.l-header__megamenu-tab:first-child .l-header__megamenu-tab-header {
    border-left: 1px solid #e0f7ff;
}
.l-header__megamenu-tab.is-active .l-header__megamenu-tab-header {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: #e0f7ff;
    border-bottom-color: var(--color-white);
}
.l-header__megamenu-tab-header::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
}
.l-header__megamenu-tabpanel {
    flex: 0 0 100%;
    order: 999;
    display: none;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    background-color: var(--color-white);
}
.l-header__megamenu-tab.is-active .l-header__megamenu-tabpanel {
    display: flex;
}
.l-header__nav-inner .l-header__megamenu-panel-heading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0 0 var(--space-md);
    border-bottom: 1px solid var(--color-border-dark);
    font-size: var(--fz-sm);
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-primary);
    background-color: transparent;
    white-space: nowrap;
    align-self: stretch;
}
.l-header__nav-inner .l-header__megamenu-panel-heading:hover {
    background-color: transparent;
    opacity: 0.7;
}
.l-header__nav-inner .l-header__megamenu-panel-heading img {
    width: 20px;
    height: 20px;
}
.l-header__megamenu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    list-style: none;
}
.l-header__nav-inner .l-header__megamenu-grid > li {
    flex: 0 0 calc((100% - (var(--space-lg) * 5)) / 6);
    width: auto;
    border-bottom: none;
}
.l-header__nav-inner .l-header__megamenu-grid > li > a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0;
    font-size: var(--fz-sm);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text);
    background-color: transparent;
    white-space: nowrap;
}
.l-header__nav-inner .l-header__megamenu-grid > li > a:hover {
    background-color: transparent;
    opacity: 0.7;
}
.l-header__nav-inner .l-header__megamenu-grid > li > a::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 1px;
    background-color: var(--color-text);
}

/* ----- l-footer ----- */
.l-footer__cta {
    background-color: var(--color-bg-cta);
    text-align: center !important;
    padding: var(--space-4xl) 0;
}
.l-footer__cta h2 {
    font-family: var(--font-heading);
    font-size: var(--fz-2xl);
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    text-align: center !important;
}
.l-footer__cta > p {
    font-size: var(--fz-base);
    color: var(--color-text);
    line-height: 1.8;
    text-align: center !important;
}
.l-footer__cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 27px;
    max-width: var(--content-narrow);
    margin: var(--space-2xl) auto 0;
}
.l-footer__cta-tel {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: var(--radius-sm);
    height: 96px;
}
.l-footer__cta-tel img {
    width: 32px;
    height: 32px;
}
.l-footer__cta-tel p:first-of-type {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fz-4xl);
    font-weight: 700;
    color: var(--color-text);
}
.l-footer__cta-tel p:last-of-type {
    font-size: var(--fz-xs);
    color: var(--color-text);
}
.l-footer__cta .c-conversion {
    flex: 1 1 50%;
    width: auto;
    min-width: 0;
    height: 96px;
    font-size: var(--fz-xl);
    border-radius: var(--radius-sm);
}
.l-footer__cta .c-conversion img {
    width: 24px;
    height: 19px;
}
.l-footer__main {
    background-color: var(--color-bg-nav);
    padding: var(--space-3xl) 0;
}
.l-footer__main-inner {
    max-width: var(--content-narrow);
    margin: 0 auto;
}
.l-footer__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3xl);
}
.l-footer__info-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.l-footer__info-left img {
    width: 249px;
    height: 51px;
}
.l-footer__info-left p {
    font-size: var(--fz-sm);
    color: var(--color-text);
    line-height: 1.5;
}
.l-footer__info-left p:last-child {
    font-size: 14px;
}
.l-footer__info-left p:last-child span {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}
.l-footer__info-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.l-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: var(--space-md);
}
.l-footer__nav > div {
    flex: 0 0 calc((100% - 120px) / 4);
    width: 240px;
}
.l-footer__nav > div > p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 12px;
    font-family: var(--font-base);
    font-size: var(--fz-sm);
    font-weight: 500;
    color: var(--color-primary);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-dark);
}
.l-footer__nav > div > p::after {
    content: "";
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: url('../images/icons/icon_arrow_right.svg') no-repeat center / contain;
}
/* タイトル内のリンクは見た目維持（色・装飾を継承） */
.l-footer__nav > div > p > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-base);
}
.l-footer__nav > div > p > a:hover {
    opacity: 0.7;
}
.l-footer__nav ul {
    margin-bottom: var(--space-lg);
}
.l-footer__nav ul li {
    font-size: var(--fz-xs);
    line-height: 1.5;
    padding: 4px 0;
}
.l-footer__nav ul li a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text);
}
.l-footer__nav ul li a::before {
    content: "-";
    display: inline-block;
    width: 8px;
    align-self: flex-start;
}
/* 外部リンクアイコン（icon_external.svg はcomponent.cssの共通ルール）をflexレイアウトで整える */
.l-footer__nav ul li.blank a::after {
    flex-shrink: 0;
    margin-left: 0;
    margin-left: 4px;
}
.l-footer__nav ul li a:hover {
    opacity: 1;
    color: var(--color-primary);
}
.l-footer__bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-dark);
    text-align: center;
}
.l-footer__bottom ul {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: var(--space-lg);
    list-style: none;
    padding: 0;
}
.l-footer__bottom ul li {
    font-size: var(--fz-xs);
}
.l-footer__bottom ul li a {
    color: var(--color-text);
}
.l-footer__bottom ul li a:hover {
    opacity: 1;
    color: var(--color-primary);
}
.l-footer__bottom > p {
    font-size: var(--fz-xs);
    color: var(--color-text);
}

/* ===================================================
   レスポンシブ — タブレット (601-1024px)
   =================================================== */
@media screen and (max-width: 1024px) {
    /* ----- l-header（タブレット：3段組み） ----- */
    .l-header__top-inner {
        flex-wrap: wrap;
        padding: 10px 0 0 20px;
        align-items: center;
    }
    .l-header__logo img {
        width: 200px;
        height: auto;
    }
    /* Row1: ロゴ + contact */
    .l-header__top-right {
        order: 2;
        margin-left: auto;
        gap: 16px;
    }
    /* Row2: ユーティリティナビ */
    .l-header__utility {
        order: 3;
        flex-basis: 100%;
        margin: 10px 0 0;
        padding: 8px 16px 8px 0;
        border-top: 1px solid var(--color-border-gray);
    }
    .l-header__utility ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px var(--space-lg);
    }
    .l-header__utility ul li {
        font-size: var(--fz-xs);
    }
    .l-header__utility ul li a img {
        width: 10px;
        height: 10px;
    }
    .l-header__contact {
        gap: 12px;
    }
    .l-header__tel {
        align-items: flex-end;
        gap: 2px;
    }
    .l-header__tel-number {
        font-size: var(--fz-lg);
    }
    .l-header__tel-number img {
        width: 16px;
        height: 16px;
    }
    .l-header__tel-hours {
        font-size: 1.1rem;
    }
    .l-header__cta {
        height: 56px;
        padding: 4px 18px;
        font-size: var(--fz-sm);
    }
    .l-header__nav-inner {
        max-width: 100%;
        padding: 0 var(--space-md);
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 var(--space-xs);
    }
    .l-header__nav-inner li a {
        font-size: var(--fz-sm);
        padding: 10px 12px;
        gap: 4px;
    }
    /* ----- megamenu（タブレット：段組み替え） ----- */
    .l-header__megamenu-body {
        padding: var(--space-lg) var(--space-md);
        gap: var(--space-lg);
    }
    .l-header__megamenu-main {
        gap: var(--space-md);
    }
    .l-header__nav-inner .l-header__megamenu-heading {
        font-size: var(--fz-base);
        gap: var(--space-sm);
    }
    .l-header__nav-inner .l-header__megamenu-heading img {
        width: 20px;
        height: 20px;
    }
    /* リンク一覧：4列→2列 */
    .l-header__megamenu-list {
        padding: var(--space-md);
        gap: var(--space-sm) var(--space-md);
    }
    .l-header__nav-inner .l-header__megamenu-list li {
        flex: 0 0 calc((100% - var(--space-md)) / 2);
    }
    .l-header__nav-inner .l-header__megamenu-list li a {
        white-space: normal;
    }
    /* タブ：2列 */
    .l-header__megamenu-tab-header {
        flex: 1 1 calc(50% - 1px);
        padding: var(--space-xs) var(--space-md);
        font-size: var(--fz-sm);
        border-left: 1px solid #e0f7ff;
    }
    /* タブパネル */
    .l-header__megamenu-tabpanel {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    /* グリッド：6列→3列 */
    .l-header__megamenu-grid {
        gap: var(--space-sm) var(--space-md);
    }
    .l-header__nav-inner .l-header__megamenu-grid > li {
        flex: 0 0 calc((100% - (var(--space-md) * 2)) / 3);
    }

    /* ----- l-footer（タブレット） ----- */
    .l-footer__cta {
        padding: var(--space-4xl) var(--space-2xl);
    }
    .l-footer__cta h2 {
        font-size: var(--fz-xl);
    }
    .l-footer__cta-buttons {
        flex-direction: column;
        padding: 0;
        gap: var(--space-md);
        margin-top: var(--space-lg);
    }
    .l-footer__cta-tel {
        flex: none;
        width: 100%;
        max-width: 526px;
        height: 80px;
    }
    .l-footer__cta-tel p:first-of-type {
        font-size: 2.8rem;
    }
    .l-footer__cta .c-conversion {
        flex: none;
        width: 100%;
        max-width: 526px;
        min-width: 0;
        height: 80px;
        font-size: var(--fz-lg);
        box-sizing: border-box;
    }
    .l-footer__main {
        padding: var(--space-3xl) var(--space-2xl);
    }
    .l-footer__info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-lg);
        margin-bottom: var(--space-2xl);
    }
    .l-footer__info-left {
        align-items: center;
    }
    .l-footer__info-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    .l-footer__nav {
        flex-wrap: wrap;
        gap: var(--space-xl) var(--space-lg);
    }
    .l-footer__nav > div {
        flex: none;
        width: calc(50% - var(--space-md));
    }
    .l-footer__bottom {
        padding: var(--space-lg) 0 0;
    }
}

/* ===================================================
   レスポンシブ — タブレット＋スマートフォン (1024px以下)
   ハンバーガー＋ドロワー方式に切替
   =================================================== */
@media screen and (max-width: 1024px) {
    /* ----- megamenu（SP：ドロワー内アコーディオン） ----- */
    .l-header__megamenu {
        position: static;
        background-color: var(--color-bg-nav);
    }
    .l-header__megamenu-body {
        max-width: none;
        padding: var(--space-md);
        gap: var(--space-md);
        align-items: stretch;
    }
    .l-header__megamenu-main {
        width: 100%;
        gap: var(--space-md);
    }
    .l-header__nav-inner .l-header__megamenu-heading {
        font-size: var(--fz-sm);
        padding: 0;
        justify-content: flex-start;
        gap: var(--space-sm);
    }
    .l-header__nav-inner .l-header__megamenu-heading img {
        width: 18px;
        height: 18px;
        transform: none;
    }
    /* リンク一覧：1列 */
    .l-header__megamenu-list {
        padding: var(--space-md);
        gap: 0;
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .l-header__nav-inner .l-header__megamenu-list li {
        flex: 1 1 100%;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--color-border-gray);
    }
    .l-header__nav-inner .l-header__megamenu-list li:last-child {
        border-bottom: none;
    }
    .l-header__nav-inner .l-header__megamenu-list li a {
        padding: 0;
        justify-content: flex-start;
        font-size: var(--fz-sm);
        white-space: normal;
    }
    .l-header__nav-inner .l-header__megamenu-list li a img {
        transform: none;
        width: 20px;
        height: 20px;
    }
    .l-header__nav-inner .l-header__megamenu-list li a img.l-header__megamenu-external {
        width: 12px;
        height: 12px;
    }
    /* タブ：入れ子ブロック縦並び（display:contents を解除） */
    .l-header__megamenu-tablist {
        display: block;
    }
    .l-header__nav-inner .l-header__megamenu-tablist > li.l-header__megamenu-tab {
        display: block;
        width: 100%;
    }
    .l-header__megamenu-tab-header {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
        font-size: var(--fz-sm);
        border: 1px solid #e0f7ff;
        border-top: none;
    }
    .l-header__megamenu-tab:first-child .l-header__megamenu-tab-header {
        border-top: 1px solid #e0f7ff;
    }
    /* SPではパネル表示をJSのスライドで制御するため、is-activeの自動表示を無効化 */
    .l-header__megamenu-tab.is-active .l-header__megamenu-tabpanel {
        display: none;
    }
    /* タブヘッダーのチェブロン：開いた状態で反転 */
    .l-header__megamenu-tab.is-active .l-header__megamenu-tab-header::after {
        transform: rotate(-135deg) translate(2px, 2px);
    }
    /* タブパネル */
    .l-header__megamenu-tabpanel {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    .l-header__nav-inner .l-header__megamenu-panel-heading {
        padding: 0 0 var(--space-sm);
        justify-content: flex-start;
        font-size: var(--fz-sm);
    }
    .l-header__nav-inner .l-header__megamenu-panel-heading img {
        transform: none;
        width: 18px;
        height: 18px;
    }
    /* グリッド：1列 */
    .l-header__megamenu-grid {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
    }
    .l-header__nav-inner .l-header__megamenu-grid > li {
        flex: 1 1 100%;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--color-border-gray);
    }
    .l-header__nav-inner .l-header__megamenu-grid > li:last-child {
        border-bottom: none;
    }
    .l-header__nav-inner .l-header__megamenu-grid > li > a {
        padding: 0;
        justify-content: flex-start;
        font-size: var(--fz-sm);
    }
    /* 閉じるボタン（SPでは非表示） */
    .l-header__megamenu-close {
        display: none;
    }
    /* 開いた親の矢印回転 */
    .l-header__nav-inner li.has-child.nav_open > a img {
        transform: rotate(180deg);
    }
    /* ----- l-header（SP） ----- */
    .l-header__top-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 12px 0 16px;
        height: 64px;
    }
    .l-header__logo img {
        width: 150px;
        height: auto;
    }
    .l-header__top-right {
        display: none;
    }
    .l-header__utility {
        display: none;
    }
    /* モバイル操作エリア */
    .l-header__mobile-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        height: 100%;
    }
    .l-header__mobile-tel {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        background-color: var(--color-bg-nav);
    }
    .l-header__mobile-tel img {
        width: 22px;
        height: 22px;
    }
    .l-header__hamburger {
        position: relative;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .l-header__hamburger span {
        position: absolute;
        left: 10px;
        right: 10px;
        height: 2px;
        background-color: var(--color-primary-dark);
        border-radius: 2px;
        transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base);
    }
    .l-header__hamburger span:nth-child(1) { top: 14px; }
    .l-header__hamburger span:nth-child(2) { top: 21px; }
    .l-header__hamburger span:nth-child(3) { top: 28px; }
    .l-header.is-drawer-open .l-header__hamburger span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }
    .l-header.is-drawer-open .l-header__hamburger span:nth-child(2) {
        opacity: 0;
    }
    .l-header.is-drawer-open .l-header__hamburger span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }

    /* ----- ドロワーナビ（SP） ----- */
    .l-header__nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-white);
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: var(--z-drawer);
    }
    .l-header.is-drawer-open .l-header__nav {
        transform: translateX(0);
    }
    .l-header__nav-inner {
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 0;
        max-width: none;
        gap: 0;
    }
    .l-header__nav-inner li {
        width: 100%;
        border-bottom: 1px solid var(--color-border-gray);
    }
    .l-header__nav-inner li a {
        justify-content: space-between;
        padding: 16px 20px;
        font-size: var(--fz-sm);
    }

    /* ----- ドロワー追加コンテンツ ----- */
    .l-header__drawer-extra {
        display: block;
        padding: var(--space-lg) 20px var(--space-2xl);
    }
    .l-header__drawer-utility {
        margin-bottom: var(--space-lg);
    }
    .l-header__drawer-utility li {
        border-bottom: 1px solid var(--color-border-gray);
    }
    .l-header__drawer-utility li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 4px;
        font-size: var(--fz-xs);
        color: var(--color-text);
    }
    .l-header__drawer-utility li a img {
        width: 12px;
        height: 12px;
    }
    .l-header__drawer-contact {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    .l-header__drawer-tel {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-sm);
        padding: 10px;
        background-color: var(--color-white);
        border: 1px solid var(--color-border-blue);
        border-radius: var(--radius-sm);
        color: var(--color-text);
    }
    .l-header__drawer-tel img {
        width: 20px;
        height: 20px;
    }
    .l-header__drawer-tel span {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.2;
    }
    .l-header__drawer-tel strong {
        font-size: var(--fz-xl);
        font-weight: 700;
    }
    .l-header__drawer-tel small {
        font-size: 1.1rem;
        color: var(--color-text-gray);
    }
    .l-header__drawer-contact > .l-header__drawer-tel,
    .l-header__drawer-contact > .c-conversion {
        width: 100%;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
    }
    .l-header__drawer-contact .c-conversion {
        height: 56px;
        font-size: var(--fz-sm);
    }

    /* ----- オーバーレイ ----- */
    .l-header__overlay {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(0, 0, 0, 0);
        pointer-events: none;
        transition: background-color var(--transition-base);
        z-index: var(--z-overlay);
    }
    .l-header.is-drawer-open .l-header__overlay {
        background-color: rgba(0, 0, 0, 0.4);
        pointer-events: auto;
    }
    /* ドロワー開閉中のbodyスクロールロック */
    body.is-drawer-open {
        overflow: hidden;
    }

    /* ----- l-footer（SP） ----- */
    .l-footer__cta {
        padding: var(--space-3xl) var(--space-md);
    }
    .l-footer__cta h2 {
        font-size: var(--fz-lg);
    }
    .l-footer__cta > p {
        font-size: var(--fz-sm);
    }
    .l-footer__cta-buttons {
        gap: var(--space-md);
        margin-top: var(--space-md);
    }
    .l-footer__cta-tel {
        height: 72px;
    }
    .l-footer__cta-tel img {
        width: 24px;
        height: 24px;
    }
    .l-footer__cta-tel p:first-of-type {
        font-size: var(--fz-2xl);
    }
    .l-footer__cta-tel p:last-of-type {
        font-size: var(--fz-xs);
    }
    .l-footer__cta .c-conversion {
        width: 100%;
        max-width: 526px;
        min-width: 0;
        height: 72px;
        font-size: var(--fz-sm);
        box-sizing: border-box;
    }
    .l-footer__main {
        padding: var(--space-2xl) var(--space-md);
    }
    .l-footer__info-left img {
        width: 200px;
        height: auto;
    }
    .l-footer__info-right img {
        height: 48px;
        width: auto;
    }
    .l-footer__nav {
        gap: var(--space-md);
    }
    .l-footer__nav > div {
        width: 100%;
    }
    .l-footer__nav h3 {
        padding-bottom: 6px;
        margin-bottom: 8px;
    }
    .l-footer__nav ul {
        margin-bottom: var(--space-md);
    }
    .l-footer__bottom {
        padding: var(--space-md) 0 0;
    }
    .l-footer__bottom ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px var(--space-md);
        margin-bottom: var(--space-md);
    }
    .l-footer__bottom > p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .l-page-hero--detail .breadcrumb {
        padding-left: var(--space-md);
    }
    .l-page-hero .breadcrumb ol {
        overflow-x: scroll;
    }

    .l-footer__info-right {
        flex-direction: column;
    }
    .l-footer__info-right a img {
        height: auto;
        width: 240px;
    }
    
}