@charset "UTF-8";

/* =========================================
   10 HOME
   トップページ母艦専用CSS
========================================= */

/* =========================================
   HOME FONT
   今回トップページで使うフォントのみ
========================================= */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans JP';
  src: url('../fonts/NotoSansJP-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   10 HOME FOUNDATION：SWELL見出し解除
   トップページ母艦 .yk-home 内だけに適用
========================================================= */

.yk-home h1,
.yk-home h2,
.yk-home h3,
.yk-home h4,
.yk-home h5,
.yk-home h6,
.yk-home .post_content h1,
.yk-home .post_content h2,
.yk-home .post_content h3,
.yk-home .post_content h4,
.yk-home .post_content h5,
.yk-home .post_content h6,
.yk-home .entry-content h1,
.yk-home .entry-content h2,
.yk-home .entry-content h3,
.yk-home .entry-content h4,
.yk-home .entry-content h5,
.yk-home .entry-content h6 {
  margin: 0;
  padding: 0;
  font-family: var(--yk-font-base, 'Montserrat', 'Noto Sans JP', sans-serif) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.025em !important;
  color: inherit !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* SWELL見出しの装飾疑似要素を消す */
.yk-home h1::before,
.yk-home h1::after,
.yk-home h2::before,
.yk-home h2::after,
.yk-home h3::before,
.yk-home h3::after,
.yk-home h4::before,
.yk-home h4::after,
.yk-home h5::before,
.yk-home h5::after,
.yk-home h6::before,
.yk-home h6::after {
  content: none !important;
  display: none !important;
}


/* =========================================================
   10 HOME FULLBLEED FIX
   yk-home自体をSWELL本文幅から完全に抜く
========================================================= */

/* トップページ母艦そのものを画面幅いっぱいへ */
.yk-home {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
  overflow: hidden;

  background: var(--yk-bg-main, #f7f5f1) !important;
}

/* SWELL / WPグループの内側コンテナ制限を解除 */
.yk-home > .wp-block-group__inner-container,
.yk-home > .swell-block-fullWide__inner,
.yk-home > .swell-block-fullWide__inner > .wp-block-group__inner-container {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* WPの is-layout-constrained による幅制限対策 */
.yk-home.is-layout-constrained > *,
.yk-home .is-layout-constrained > * {
  max-width: none !important;
}

/* yk-home 内の各セクションは、親幅いっぱいでOK */
.yk-home .yk-heroCircle,
.yk-home .yk-section,
.yk-home .service-sec,
.yk-home .works-sec,
.yk-home .approach-sec,
.yk-home .about-sec,
.yk-home .contact-sec {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  background: transparent !important;
}

/* 各セクションの本文幅レール */
.yk-home .split-sec__wrap,
.yk-home .works-sec__headWrap,
.yk-home .contact-sec__headWrap,
.yk-home .works-gallery,
.yk-home .contact-action {
  width: min(1280px, calc(100% - 64px));
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* SP */
@media (max-width: 767px) {
  .yk-home .split-sec__wrap,
  .yk-home .works-sec__headWrap,
  .yk-home .contact-sec__headWrap,
  .yk-home .works-gallery,
  .yk-home .contact-action {
    width: min(100% - 40px, 100%);
  }
}


/* =========================================================
   10 HOME REVEAL
   文字・要素の表示アニメーション
   JSで .is-visible が付くと発火
========================================================= */

.yk-home .reveal {
  opacity: 0;
  transform: translateX(-48px);
  transition:
    opacity .9s ease,
    transform .9s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}

.yk-home .reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.yk-home .reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity .9s ease,
    transform .9s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}

.yk-home .reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   10 HOME SECTION BASE
   Service / Works / Approach / About / Contact 共通骨格
   - 旧追加CSSのセクション見出し・リード・revealを整理
   - 白背景指定は入れない
========================================================= */

.yk-home {
  --yk-bg-main: #f7f5f1;
  --yk-bg-about: #2f332d;
  --yk-text-main: #111;
  --yk-text-sub: #333;
  --yk-text-light: #f7f5f1;
  --yk-section-max: 1280px;
  --yk-section-gap: clamp(28px, 4vw, 72px);

  background: var(--yk-bg-main) !important;
  color: var(--yk-text-main);
  transition:
    background-color 0.9s ease,
    color 0.9s ease;
}

/* yk-home 自体をSWELL本文幅から抜く */
.post_content > .yk-home,
.entry-content > .yk-home,
.wp-block-group.yk-home,
.yk-home {
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* グループ内部の幅制限を解除 */
.yk-home > .wp-block-group__inner-container,
.wp-block-group.yk-home > .wp-block-group__inner-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* 各セクションは背景を持たず、yk-homeの背景を見せる */
.yk-home .yk-section,
.yk-home .service-sec,
.yk-home .works-sec,
.yk-home .approach-sec,
.yk-home .about-sec,
.yk-home .contact-sec {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  background: transparent !important;
  color: inherit;
}

/* 通常セクションの上下余白 */
.yk-home .yk-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* 中身の本文レール */
.yk-home .split-sec__wrap,
.yk-home .works-sec__headWrap,
.yk-home .contact-sec__headWrap,
.yk-home .works-gallery,
.yk-home .contact-action {
  width: min(var(--yk-section-max), calc(100% - 64px));
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* セクション見出し：左右分割 */
.yk-home .split-sec__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--yk-section-gap);
  align-items: start;
  margin-bottom: 56px;
}

/* 左側見出し */
.yk-home .split-sec__left {
  overflow: hidden;
}

.yk-home .split-sec__title {
  margin: 0 !important;
  padding: 0 !important;
}

/* Service / Works / Approach / About / Contact の大見出し */
.yk-home .split-sec__word {
  display: block;
  font-size: clamp(56px, 7.2vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: inherit;
  white-space: nowrap;
}

/* 右側リード */
.yk-home .split-sec__right {
  max-width: 520px;
}

.yk-home .split-sec__right p {
  margin: 0 !important;
  font-size: 16px;
  line-height: 2;
  color: inherit;
}

/* Approachだけ文字が長いので少し抑える */
.yk-home .approach-sec .split-sec__word {
  font-size: clamp(48px, 6.4vw, 96px);
}

/* =========================================================
   10 HOME REVEAL
   JSで .is-visible が付くと発火
========================================================= */

.yk-home .reveal {
  opacity: 0;
  transform: translateX(-48px);
  transition:
    opacity .9s ease,
    transform .9s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}

.yk-home .reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.yk-home .reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity .9s ease,
    transform .9s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}

.yk-home .reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   10 HOME SECTION TITLE WIPE
   セクション英語見出し専用ワイプ
   - 通常 .reveal とは切り離して制御
   - .is-title-wiped が付いたら発火
========================================================= */

.yk-home .split-sec__word {
  position: relative;
  display: inline-block;
  overflow: hidden;

  opacity: 1 !important;
  transform: none !important;
  transition: none !important;

  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

/* 走る帯 */
.yk-home .split-sec__word::after {
  content: "";
  position: absolute;
  top: 0;
  right: -0.08em;
  bottom: 0;
  left: -0.08em;
  z-index: 2;
  background: currentColor;
  opacity: 0;
  transform: translateX(-105%);
  pointer-events: none;
  will-change: transform, opacity;
}

/* 発火時：文字本体を開く */
.yk-home .split-sec__word.is-title-wiped {
  animation: ykSectionWordTextReveal 1.05s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* 発火時：帯が走る */
.yk-home .split-sec__word.is-title-wiped::after {
  animation: ykSectionWordWipeBar 1.05s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* 文字の見え方 */
@keyframes ykSectionWordTextReveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  38% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* 帯の動き */
@keyframes ykSectionWordWipeBar {
  0% {
    opacity: 1;
    transform: translateX(-105%);
  }

  42% {
    opacity: 1;
    transform: translateX(0%);
  }

  99% {
    opacity: 1;
    transform: translateX(105%);
  }

  100% {
    opacity: 0;
    transform: translateX(105%);
  }
}

/* 動きを減らす設定の人には即表示 */
@media (prefers-reduced-motion: reduce) {
  .yk-home .split-sec__word {
    clip-path: inset(0 0 0 0);
  }

  .yk-home .split-sec__word::after {
    display: none;
  }

  .yk-home .split-sec__word.is-title-wiped {
    animation: none;
  }
}

/* =========================================================
   10 HOME SERVICE
========================================================= */

.yk-home .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.18);
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.yk-home .service-card {
  padding: 36px 32px 40px;
  border-right: 1px solid rgba(17, 17, 17, 0.18);
  box-sizing: border-box;
}

.yk-home .service-card:last-child {
  border-right: 0;
}

.yk-home .service-card__title {
  margin: 0 0 18px !important;
  padding: 0 !important;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  color: inherit;
}

.yk-home .service-card__text {
  margin: 0 !important;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: inherit;
}

/* =========================================================
   10 HOME WORKS
========================================================= */

.yk-home .works-sec__head {
  margin-bottom: 48px;
}

.yk-home .works-gallery {
  background: transparent !important;
}

.yk-home .works-gallery + .works-gallery {
  margin-top: 40px !important;
}

/* =========================================================
   10 HOME APPROACH
========================================================= */

.yk-home .approach-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.18);
}

.yk-home .approach-step {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  align-items: start;
}

.yk-home .approach-step__num {
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(17, 17, 17, 0.55);
  padding-top: 6px;
}

.yk-home .approach-step__body {
  max-width: 760px;
}

.yk-home .approach-step__title {
  margin: 0 0 12px !important;
  font-size: 1.5rem;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  font-weight: 500 !important;
  color: inherit;
}

.yk-home .approach-step__text {
  margin: 0 !important;
  font-size: 15px;
  line-height: 2;
  color: inherit;
}

/* =========================================================
   10 HOME ABOUT
========================================================= */

.yk-home .about-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(17, 17, 17, 0.18);
  align-items: start;
  transition: border-color 0.75s ease;
}

.yk-home .about-profile__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yk-home .about-profile__name {
  margin: 0 !important;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: inherit;
}

.yk-home .about-profile__owner {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.8;
  color: inherit;
}

.yk-home .about-meta {
  margin: 0;
}

.yk-home .about-meta__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  transition: border-color 0.75s ease;
}

.yk-home .about-meta__row:first-child {
  padding-top: 0;
}

.yk-home .about-meta dt {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: inherit;
  opacity: 0.65;
}

.yk-home .about-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: inherit;
}

/* About領域で母艦背景を変更 */
.yk-home.is-about-active {
  background: var(--yk-bg-about) !important;
}

.yk-home.is-about-active .about-sec,
.yk-home.is-about-active .about-sec h2,
.yk-home.is-about-active .about-sec h3,
.yk-home.is-about-active .about-sec p,
.yk-home.is-about-active .about-sec dt,
.yk-home.is-about-active .about-sec dd,
.yk-home.is-about-active .about-sec span {
  color: var(--yk-text-light) !important;
}

.yk-home.is-about-active .about-profile,
.yk-home.is-about-active .about-meta__row {
  border-color: rgba(247, 245, 241, 0.25) !important;
}

/* =========================================================
   10 HOME CONTACT
========================================================= */

.yk-home .contact-sec.yk-section {
  padding-bottom: 112px;
}

.yk-home .contact-sec__head {
  margin-bottom: 56px;
}

.yk-home .contact-action {
  margin-top: 0 !important;
  background: transparent !important;
}

.yk-home .contact-sec .wp-block-buttons {
  margin-top: 96px !important;
  background: transparent !important;
}

.yk-home .contact-sec .wp-block-button,
.yk-home .contact-sec .swell-block-button,
.yk-home .contact-sec .wp-block-group {
  background: transparent !important;
}

/* =========================================================
   10 HOME RESPONSIVE
========================================================= */

@media (max-width: 960px) {
  .yk-home .split-sec__head {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
  }

  .yk-home .split-sec__word {
    font-size: clamp(52px, 14vw, 96px);
    white-space: normal;
  }

  .yk-home .approach-sec .split-sec__word {
    font-size: clamp(46px, 12vw, 84px);
  }

  .yk-home .split-sec__right {
    max-width: none;
  }

  .yk-home .service-grid {
    grid-template-columns: 1fr;
  }

  .yk-home .service-card {
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  }

  .yk-home .service-card:last-child {
    border-bottom: 0;
  }

  .yk-home .service-card__text {
    max-width: 44em;
  }
}

@media (max-width: 767px) {
  .yk-home .yk-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .yk-home .split-sec__wrap,
  .yk-home .works-sec__headWrap,
  .yk-home .contact-sec__headWrap,
  .yk-home .works-gallery,
  .yk-home .contact-action {
    width: min(100% - 40px, 100%);
  }

  .yk-home .split-sec__head {
    margin-bottom: 40px;
  }

  .yk-home .split-sec__right p {
    font-size: 15px;
    line-height: 1.9;
  }

  .yk-home .service-card {
    padding: 24px 0;
  }

  .yk-home .service-card__title {
    margin-bottom: 12px !important;
    font-size: 22px;
  }

  .yk-home .service-card__text {
    font-size: 14px;
    line-height: 1.9;
  }

  .yk-home .approach-step {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }

  .yk-home .approach-step__num {
    padding-top: 0;
    margin-bottom: 2px;
  }

  .yk-home .approach-step__title {
    font-size: 1.15rem;
    margin-bottom: 10px !important;
  }

  .yk-home .approach-step__text {
    font-size: 14px;
    line-height: 1.9;
  }

  .yk-home .about-profile {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 22px;
  }

  .yk-home .about-profile__name {
    font-size: 28px;
  }

  .yk-home .about-profile__owner {
    font-size: 14px;
    line-height: 1.7;
  }

  .yk-home .about-meta__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .yk-home .about-meta dt {
    font-size: 13px;
  }

  .yk-home .about-meta dd {
    font-size: 14px;
    line-height: 1.8;
  }

  .yk-home .works-gallery + .works-gallery {
    margin-top: 28px !important;
  }

  .yk-home .contact-sec__head {
    margin-bottom: 40px;
  }

  .yk-home .contact-sec .wp-block-buttons {
    margin-top: 40px !important;
  }
}


/* =========================================================
   Contact：本文とボタンの距離調整
   contact-sec / contact-cta が付いたグループ内のボタンに効かせる
========================================================= */

.contact-sec.contact-cta .wp-block-buttons,
.contact-sec.contact-cta .swell-block-button,
.contact-sec.contact-cta .wp-block-button {
  margin-top: 96px !important;
}

/* =========================================
   1. 本文レールを少し上品に狭める
   背景はフルブリードのまま、中身だけ左右余白を増やす
========================================= */

.yk-home {
  --yk-section-max: 1120px;
}

/* PC：本文エリアを少し内側へ */
@media (min-width: 1024px) {
  .yk-home .split-sec__wrap,
  .yk-home .works-sec__headWrap,
  .yk-home .contact-sec__headWrap,
  .yk-home .works-gallery,
  .yk-home .contact-action {
    width: min(var(--yk-section-max), calc(100% - 128px)) !important;
  }
}

/* タブレット */
@media (max-width: 1023px) and (min-width: 768px) {
  .yk-home .split-sec__wrap,
  .yk-home .works-sec__headWrap,
  .yk-home .contact-sec__headWrap,
  .yk-home .works-gallery,
  .yk-home .contact-action {
    width: min(100% - 72px, 100%) !important;
  }
}

/* SP：少しだけ左右余白を増やす */
@media (max-width: 767px) {
  .yk-home .split-sec__wrap,
  .yk-home .works-sec__headWrap,
  .yk-home .contact-sec__headWrap,
  .yk-home .works-gallery,
  .yk-home .contact-action {
    width: min(100% - 48px, 100%) !important;
  }
}

/* かなり狭いスマホだけ少し戻す */
@media (max-width: 390px) {
  .yk-home .split-sec__wrap,
  .yk-home .works-sec__headWrap,
  .yk-home .contact-sec__headWrap,
  .yk-home .works-gallery,
  .yk-home .contact-action {
    width: min(100% - 40px, 100%) !important;
  }
}


/* =========================================
   2. Contactセクションを黒背景側の白文字にする
========================================= */

body.is-home-dark-active .contact-sec,
body.is-home-dark-active .contact-sec h1,
body.is-home-dark-active .contact-sec h2,
body.is-home-dark-active .contact-sec h3,
body.is-home-dark-active .contact-sec p,
body.is-home-dark-active .contact-sec span,
body.is-home-dark-active .contact-sec a {
  color: var(--yk-text-light, #f7f5f1) !important;
}

/* Contact内のリード文も白に寄せる */
body.is-home-dark-active .contact-sec .split-sec__right p {
  color: var(--yk-text-light, #f7f5f1) !important;
}

/* Contact内の線ボタンを黒背景でも見えるようにする */
body.is-home-dark-active .contact-sec .wp-block-button__link,
body.is-home-dark-active .contact-sec .swell-block-button__link,
body.is-home-dark-active .contact-sec .c-btn {
  color: var(--yk-text-light, #f7f5f1) !important;
  border-color: rgba(247, 245, 241, 0.85) !important;
  background: transparent !important;
}


/* =========================================
   3. Contact本文とボタンの間を広げる
========================================= */

.yk-home .contact-sec__head {
  margin-bottom: 72px !important;
}

/* SWELLボタンブロック側にも余白を確保 */
.yk-home .contact-sec .wp-block-buttons {
  margin-top: 72px !important;
}

.yk-home .contact-action {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .yk-home .contact-sec__head {
    margin-bottom: 52px !important;
  }

  .yk-home .contact-sec .wp-block-buttons {
    margin-top: 52px !important;
  }
}


/* =========================================
   4. Contactボタン下〜Footer前に余白を作る
   スペーサーブロックを使わずCSSで管理
========================================= */

.yk-home .contact-sec.yk-section {
  padding-bottom: 150px !important;
}

@media (max-width: 767px) {
  .yk-home .contact-sec.yk-section {
    padding-bottom: 112px !important;
  }
}









/* =========================================================
   Mask Slide Hero：帯マスク開閉ヒーロー
========================================================= */

.yk-maskHero {
  position: relative;
  min-height: calc(100svh - var(--swl-headerH, 0px));
  display: flex;
  align-items: center;
  background: #f7f5f1;
  color: #111;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(96px, 12vh, 150px) 0 clamp(90px, 12vh, 140px);
}

.yk-maskHero__inner {
  width: min(88vw, 1120px);
  margin: 0 auto;
  box-sizing: border-box;
}

.yk-maskHero__label {
  margin: 0 0 34px !important;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: rgba(17, 17, 17, 0.48);
  opacity: 0;
  transform: translateY(10px);
}

.yk-maskHero__title {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 1.22;
  font-weight: 600 !important;
  letter-spacing: -0.045em;
  color: #111;
}

/* 1行ごとの箱 */
.yk-maskHero__line {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
}

.yk-maskHero__line + .yk-maskHero__line {
  margin-top: 0.08em;
}

.yk-maskHero__text {
  position: relative;
  z-index: 1;
  display: block;
  white-space: nowrap;
  opacity: 1;
}

/* 文字を隠す帯 */
.yk-maskHero__cover {
  position: absolute;
  top: -0.08em;
  bottom: -0.08em;
  left: 0;
  width: 100%;
  background: #f7f5f1;
  z-index: 2;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}

/* メイン帯 */
.yk-maskHero__cover--main {
  transform: translateX(0%);
}

/* 途中で戻ってくるサブ帯 */
.yk-maskHero__cover--sub {
  width: 46%;
  transform: translateX(-130%);
}

/* リード */
.yk-maskHero__lead {
  margin: 44px 0 0 !important;
  max-width: 560px;
  font-size: 15px;
  line-height: 2;
  color: rgba(17, 17, 17, 0.68);
  opacity: 0;
  transform: translateY(12px);
}

/* ボタン */
.yk-maskHero__action {
  margin-top: 56px;
  opacity: 0;
  transform: translateY(12px);
}

.yk-maskHero__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 34px;
  border: 1.5px solid #111;
  border-radius: 999px;
  color: #111 !important;
  background: transparent;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.06em;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.yk-maskHero__btn:hover {
  background: #111;
  color: #f7f5f1 !important;
  transform: translateY(-2px);
}

.yk-maskHero__btnIcon {
  font-size: 15px;
  line-height: 1;
}

/* SP */
@media (max-width: 767px) {
  .yk-maskHero {
    min-height: calc(100svh - var(--swl-headerH, 0px));
    padding: 92px 0 88px;
  }

  .yk-maskHero__inner {
    width: min(100% - 48px, 100%);
  }

  .yk-maskHero__label {
    margin-bottom: 30px !important;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .yk-maskHero__title {
    font-size: clamp(39px, 10.5vw, 56px);
    line-height: 1.3;
    letter-spacing: -0.055em;
  }

  .yk-maskHero__lead {
    margin-top: 42px !important;
    font-size: 14px;
    line-height: 1.95;
  }

  .yk-maskHero__action {
    margin-top: 54px;
  }

  .yk-maskHero__btn {
    padding: 14px 32px;
    font-size: 15px;
  }
}


/* =========================================================
   Mask Hero：SP崩れ対策・ボタン干渉回避
========================================================= */

/* ヒーロー内ボタンはいったん使わない */
.yk-maskHero__action,
.yk-maskHero__btn {
  display: none !important;
}

/* 文字の切れ対策 */
.yk-maskHero__line {
  overflow: visible !important;
  padding-left: 0.08em;
  padding-right: 0.08em;
}

/* マスク帯だけは行からはみ出して動けるようにする */
.yk-maskHero__cover {
  top: -0.12em;
  bottom: -0.12em;
}


/* SP専用 */
@media (max-width: 767px) {
  .yk-maskHero {
    min-height: calc(100svh - var(--swl-headerH, 0px));
    padding: 96px 0 96px !important;
    align-items: center;
  }

  .yk-maskHero__inner {
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
  }

  .yk-maskHero__label {
    margin-bottom: 28px !important;
    font-size: 11px !important;
    letter-spacing: 0.16em;
  }

  .yk-maskHero__title {
    font-size: clamp(29px, 7.6vw, 35px) !important;
    line-height: 1.36 !important;
    letter-spacing: -0.07em !important;
  }

  .yk-maskHero__line {
    width: max-content;
    max-width: 100%;
  }

  .yk-maskHero__text {
    white-space: nowrap;
  }

  .yk-maskHero__lead {
    margin-top: 44px !important;
    font-size: 14px !important;
    line-height: 1.95 !important;
  }
}

/* =========================================================
   Mask Hero：SP見出しサイズ 強制調整
   2行で収めるために大胆に縮小
========================================================= */

@media (max-width: 767px) {
  .yk-maskHero__inner {
    width: calc(100% - 20px) !important;
    margin: 0 auto !important;
  }

  .yk-maskHero__title {
    font-size: 25px !important;
    line-height: 1.38 !important;
    letter-spacing: -0.08em !important;
  }

  .yk-maskHero__line {
    max-width: 100% !important;
  }

  .yk-maskHero__text {
    white-space: nowrap !important;
  }
}