.yd_steps_h {
--ydsh-image-radius: 12px;
--ydsh-tab-radius: 999px;
--ydsh-tabs-gap: 10px;
--ydsh-content-gap: 28px;
--ydsh-tab-active-bg: #111111;
--ydsh-tab-active-color: #ffffff;
--ydsh-tab-idle-bg: #ffffff;
--ydsh-tab-idle-border: #e5e7eb;
--ydsh-tab-idle-color: #374151;
--ydsh-title-color: inherit;
--ydsh-subtitle-color: inherit;
--ydsh-block-bg: transparent;
--ydsh-image-w: 100%;
--ydsh-image-h: 240px;
--ydsh-pad-t: 28px;
--ydsh-pad-b: 40px;
width: 100%;
max-width: 100%;
min-width: 0;
box-sizing: border-box;
overflow: hidden;
contain: inline-size;
padding-top: var(--ydsh-pad-t);
padding-bottom: var(--ydsh-pad-b);
margin-bottom: 40px;
}
.yd_steps_h.has-block-bg {
background-color: var(--ydsh-block-bg);
}
.yd_steps_h.is-full-bleed {
width: 100vw;
max-width: 100vw;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
box-sizing: border-box;
contain: none;
} .yd_steps_h__inner {
max-width: 1120px;
margin: 0 auto;
width: 100%;
padding-left: 20px;
padding-right: 20px;
box-sizing: border-box;
min-width: 0;
}
.yd_steps_h__head {
text-align: center;
max-width: 820px;
margin: 0 auto 28px;
}
.yd_steps_h__title {
margin: 0 0 10px;
color: var(--ydsh-title-color);
font-size: 28px;
font-weight: 700;
line-height: 1.25;
}
.yd_steps_h__subtitle {
color: var(--ydsh-subtitle-color);
font-size: 16px;
line-height: 1.5;
}
.yd_steps_h__subtitle p {
margin: 0;
}
.yd_steps_h__tabsWrap {
display: block;
max-width: 100%;
min-width: 0;
margin-bottom: 28px;
overflow-x: auto;
overflow-y: hidden;
overscroll-behavior-x: contain;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.yd_steps_h__tabsWrap::-webkit-scrollbar {
display: none;
}
.yd_steps_h__tabs {
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
gap: var(--ydsh-tabs-gap);
width: max-content;
max-width: none;
margin: 0;
padding: 2px 0 8px;
}
.yd_steps_h__tab {
appearance: none;
flex: 0 0 auto;
margin: 0;
padding: 10px 18px;
border: 1px solid var(--ydsh-tab-idle-border);
border-radius: var(--ydsh-tab-radius);
background: var(--ydsh-tab-idle-bg);
color: var(--ydsh-tab-idle-color);
font: inherit;
font-size: 14px;
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
cursor: pointer;
transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.yd_steps_h__tab:hover {
border-color: color-mix(in srgb, var(--ydsh-tab-idle-border) 60%, var(--ydsh-tab-active-bg));
}
.yd_steps_h__tab.is-active,
.yd_steps_h__tab[aria-selected="true"] {
border-color: var(--ydsh-tab-active-bg);
background: var(--ydsh-tab-active-bg);
color: var(--ydsh-tab-active-color);
}
.yd_steps_h__tab:focus-visible {
outline: 2px solid var(--ydsh-tab-active-bg);
outline-offset: 2px;
}
.yd_steps_h__panels {
position: relative;
overflow: hidden;
}
.yd_steps_h__panel {
display: grid;
gap: var(--ydsh-content-gap);
align-items: center;
min-width: 0;
} .yd_steps_h__panel:not(.is-active) {
position: absolute;
left: 0;
right: 0;
top: 0;
width: 100%;
max-width: 100%;
overflow: hidden;
visibility: hidden;
pointer-events: none;
z-index: 0;
}
.yd_steps_h__panel.is-active {
position: relative;
z-index: 1;
animation: ydsh-fade 0.22s ease;
}
@keyframes ydsh-fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.yd_steps_h__media {
width: 100%;
max-width: var(--ydsh-image-w);
min-width: 0;
margin: 0 auto;
overflow: hidden;
}
.yd_steps_h__img,
.yd_steps_h__placeholder {
display: block;
width: 100%;
max-width: 100%;
min-width: 0;
height: var(--ydsh-image-h);
object-fit: cover;
border-radius: var(--ydsh-image-radius);
}
.yd_steps_h__placeholder {
background: linear-gradient(135deg, #f3f4f6, #d1d5db);
}
.yd_steps_h__content {
min-width: 0;
}
.yd_steps_h__itemTitle {
margin: 0 0 12px;
font-size: 22px;
font-weight: 700;
line-height: 1.3;
}
.yd_steps_h__itemText {
font-size: 16px;
line-height: 1.6;
color: #374151;
}
.yd_steps_h__itemText p {
margin: 0 0 0.75em;
}
.yd_steps_h__itemText p:last-child {
margin-bottom: 0;
}
@media (min-width: 768px) {
.yd_steps_h {
--ydsh-image-h: 320px;
--ydsh-content-gap: 40px;
--ydsh-pad-t: 36px;
--ydsh-pad-b: 48px;
}
.yd_steps_h__title {
font-size: 36px;
}
.yd_steps_h__subtitle {
font-size: 18px;
}
.yd_steps_h__tabsWrap {
overflow: hidden;
}
.yd_steps_h__tabs {
flex-wrap: wrap;
justify-content: center;
width: 100%;
max-width: 100%;
min-width: 0;
margin-left: 0;
margin-right: 0;
padding-bottom: 0;
}
.yd_steps_h.is-tabs-left .yd_steps_h__tabs {
justify-content: flex-start;
}
.yd_steps_h__panel {
grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.yd_steps_h.is-image-right .yd_steps_h__panel {
grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.yd_steps_h.is-image-right .yd_steps_h__media {
order: 2;
}
.yd_steps_h.is-image-right .yd_steps_h__content {
order: 1;
}
.yd_steps_h__media {
margin: 0;
}
.yd_steps_h__img,
.yd_steps_h__placeholder {
height: var(--ydsh-image-h);
}
.yd_steps_h__itemTitle {
font-size: 26px;
}
}
@media (min-width: 1024px) {
.yd_steps_h {
--ydsh-image-h: 380px;
}
.yd_steps_h__title {
font-size: 40px;
}
}